]> git.saurik.com Git - wxWidgets.git/blame - configure
fixed IMPLEMENT_APP to work even if compiled with --with-themes and win32 or gtk...
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
dd8df4fc 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
dd8df4fc
VZ
273PACKAGE_VERSION='2.7.0'
274PACKAGE_STRING='wxWidgets 2.7.0'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
b3c86150 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 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
849ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
850ac_env_GST_CFLAGS_value=$GST_CFLAGS
851ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
852ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
853ac_env_GST_LIBS_set=${GST_LIBS+set}
854ac_env_GST_LIBS_value=$GST_LIBS
855ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
856ac_cv_env_GST_LIBS_value=$GST_LIBS
a848cd7e
SC
857
858#
859# Report the --help message.
860#
861if test "$ac_init_help" = "long"; then
862 # Omit some internal or obsolete options to make the list less imposing.
863 # This message is too long to be a string in the A/UX 3.1 sh.
864 cat <<_ACEOF
dd8df4fc 865\`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
a848cd7e
SC
866
867Usage: $0 [OPTION]... [VAR=VALUE]...
868
869To assign environment variables (e.g., CC, CFLAGS...), specify them as
870VAR=VALUE. See below for descriptions of some of the useful variables.
871
872Defaults for the options are specified in brackets.
873
874Configuration:
875 -h, --help display this help and exit
876 --help=short display options specific to this package
877 --help=recursive display the short help of all the included packages
878 -V, --version display version information and exit
879 -q, --quiet, --silent do not print \`checking...' messages
880 --cache-file=FILE cache test results in FILE [disabled]
881 -C, --config-cache alias for \`--cache-file=config.cache'
882 -n, --no-create do not create output files
883 --srcdir=DIR find the sources in DIR [configure dir or \`..']
884
885_ACEOF
886
887 cat <<_ACEOF
888Installation directories:
889 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 890 [$ac_default_prefix]
a848cd7e 891 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 892 [PREFIX]
a848cd7e
SC
893
894By default, \`make install' will install all the files in
895\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
896an installation prefix other than \`$ac_default_prefix' using \`--prefix',
897for instance \`--prefix=\$HOME'.
898
899For better control, use the options below.
900
901Fine tuning of the installation directories:
902 --bindir=DIR user executables [EPREFIX/bin]
903 --sbindir=DIR system admin executables [EPREFIX/sbin]
904 --libexecdir=DIR program executables [EPREFIX/libexec]
905 --datadir=DIR read-only architecture-independent data [PREFIX/share]
906 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
907 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
908 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
909 --libdir=DIR object code libraries [EPREFIX/lib]
910 --includedir=DIR C header files [PREFIX/include]
911 --oldincludedir=DIR C header files for non-gcc [/usr/include]
912 --infodir=DIR info documentation [PREFIX/info]
913 --mandir=DIR man documentation [PREFIX/man]
914_ACEOF
915
916 cat <<\_ACEOF
917
918X features:
919 --x-includes=DIR X include files are in DIR
920 --x-libraries=DIR X library files are in DIR
921
922System types:
923 --build=BUILD configure for building on BUILD [guessed]
924 --host=HOST cross-compile to build programs to run on HOST [BUILD]
925 --target=TARGET configure for building compilers for TARGET [HOST]
926_ACEOF
927fi
928
929if test -n "$ac_init_help"; then
930 case $ac_init_help in
dd8df4fc 931 short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
a848cd7e
SC
932 esac
933 cat <<\_ACEOF
934
935Optional Features:
936 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
937 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
938 --enable-gui use GUI classes
77ffb593
JS
939 --enable-monolithic build wxWidgets as single library
940 --enable-plugins build parts of wxWidgets as loadable components
941 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 942 --enable-nanox use NanoX
f34ca037 943 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
944 --enable-gpe use GNOME PDA Environment features if possible
945 --enable-shared create shared library code
946 --enable-optimise create optimised code
947 --enable-debug same as debug_flag and debug_info
948 --enable-stl use STL for containers
949 --enable-omf use OMF object format
950 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
951 --enable-debug_info create code with debugging information
952 --enable-debug_gdb create code with extra GDB debugging information
953 --enable-debug_cntxt use wxDebugContext
954 --enable-mem_tracing create code with memory tracing
955 --enable-profile create code with profiling information
956 --enable-no_rtti create code without RTTI information
957 --enable-no_exceptions create code without C++ exceptions handling
958 --enable-permissive compile code disregarding strict ANSI
959 --enable-no_deps create code without dependency information
95768535 960 --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
961 --enable-compat24 enable wxWidgets 2.4 compatibility
962 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 963 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
964 --enable-intl use internationalization system
965 --enable-config use wxConfig (and derived) classes
966 --enable-protocols use wxProtocol and derived classes
967 --enable-ftp use wxFTP (requires wxProtocol
968 --enable-http use wxHTTP (requires wxProtocol
969 --enable-fileproto use wxFileProto class (requires wxProtocol
970 --enable-sockets use socket/network classes
971 --enable-ole use OLE classes (Win32 only)
972 --enable-dataobj use data object classes
973 --enable-ipc use interprocess communication (wxSocket etc.)
974 --enable-apple_ieee use the Apple IEEE codec
81f90336 975 --enable-arcstream use wxArchive streams
eaff0f0d 976 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 977 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
978 --enable-cmdline use wxCmdLineParser class
979 --enable-datetime use wxDateTime class
36b6448c 980 --enable-debugreport use wxDebugReport class
a848cd7e
SC
981 --enable-dialupman use dialup network classes
982 --enable-dynlib use wxLibrary class for DLL loading
983 --enable-dynamicloader use (new) wxDynamicLibrary class
984 --enable-exceptions build exception-safe library
985 --enable-ffile use wxFFile class
986 --enable-file use wxFile class
987 --enable-filesystem use virtual file systems classes
988 --enable-fontmap use font encodings conversion classes
989 --enable-fs_inet use virtual HTTP/FTP filesystems
990 --enable-fs_zip use virtual ZIP filesystems
991 --enable-geometry use geometry class
992 --enable-log use logging system
993 --enable-longlong use wxLongLong class
994 --enable-mimetype use wxMimeTypesManager
995 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
996 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 997 --enable-std_iostreams use standard C++ stream classes
59746b65 998 --enable-std_string use standard C++ string classes
07158944 999 --enable-stdpaths use wxStandardPaths class
a848cd7e 1000 --enable-stopwatch use wxStopWatch class
07158944 1001 --enable-streams use wxStream etc classes
a848cd7e
SC
1002 --enable-sysoptions use wxSystemOptions
1003 --enable-textbuf use wxTextBuffer class
1004 --enable-textfile use wxTextFile class
1005 --enable-timer use wxTimer class
1006 --enable-unicode compile wxString with Unicode support
1007 --enable-sound use wxSound class
3b57de8b 1008 --enable-mediactrl use wxMediaCtrl class
15291213 1009 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
8b6682b9 1010 --enable-printfposparam use wxVsnprintf() which supports positional parameters
81f90336 1011 --enable-zipstream use wxZip streams
a848cd7e 1012 --enable-url use wxURL class
ca5c6ac3 1013 --enable-variant use wxVariant class
a848cd7e
SC
1014 --enable-protocol use wxProtocol class
1015 --enable-protocol-http HTTP support in wxProtocol
1016 --enable-protocol-ftp FTP support in wxProtocol
1017 --enable-protocol-file FILE support in wxProtocol
1018 --enable-threads use threads
1019 --enable-docview use document view architecture
1020 --enable-help use help subsystem
1021 --enable-mshtmlhelp use MS HTML Help (win32)
1022 --enable-html use wxHTML sub-library
1023 --enable-htmlhelp use wxHTML-based help
9a8f0513 1024 --enable-xrc use XRC resources sub-library
3f60522a 1025 --enable-aui use AUI docking library
a848cd7e
SC
1026 --enable-constraints use layout-constraints system
1027 --enable-printarch use printing architecture
1028 --enable-mdi use multiple document interface architecture
8a7b1113 1029 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
1030 --enable-loggui use standard GUI logger
1031 --enable-logwin use wxLogWindow
1032 --enable-logdialog use wxLogDialog
646b6ec1 1033 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 1034 --enable-richtext use wxRichTextCtrl
a848cd7e
SC
1035 --enable-postscript use wxPostscriptDC device context (default for gtk+)
1036 --enable-prologio not available; see contrib
1037 --enable-resources not available; see contrib
1038 --enable-clipboard use wxClipboard class
1039 --enable-dnd use Drag'n'Drop classes
1040 --enable-metafile use win32 metafiles
1041 --enable-controls use all usual controls
1042 --enable-accel use accelerators
1043 --enable-button use wxButton class
1044 --enable-bmpbutton use wxBitmapButton class
95a46303 1045 --enable-bmpcombobox use wxBitmapComboBox class
a848cd7e
SC
1046 --enable-calendar use wxCalendarCtrl class
1047 --enable-caret use wxCaret class
1048 --enable-checkbox use wxCheckBox class
1049 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
1050 --enable-choice use wxChoice class
92bbdbcd 1051 --enable-choicebook use wxChoicebook class
e9263684 1052 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 1053 --enable-combobox use wxComboBox class
a57d600f 1054 --enable-comboctrl use wxComboCtrl class
da98e9be 1055 --enable-datepick use wxDatePickerCtrl class
e9263684 1056 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 1057 --enable-display use wxDisplay class
e9263684
VZ
1058 --enable-filepicker use wxFilePickerCtrl class
1059 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
1060 --enable-gauge use wxGauge class
1061 --enable-grid use wxGrid class
20e34ecc 1062 --enable-dataviewctrl, use wxDataViewCtrl class
6954625c 1063 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
1064 --enable-imaglist use wxImageList class
1065 --enable-listbook use wxListbook class
1066 --enable-listbox use wxListBox class
1067 --enable-listctrl use wxListCtrl class
1068 --enable-notebook use wxNotebook class
a57d600f 1069 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
1070 --enable-radiobox use wxRadioBox class
1071 --enable-radiobtn use wxRadioButton class
1072 --enable-sash use wxSashWindow class
1073 --enable-scrollbar use wxScrollBar class and scrollable windows
1074 --enable-slider use wxSlider class
1075 --enable-spinbtn use wxSpinButton class
1076 --enable-spinctrl use wxSpinCtrl class
1077 --enable-splitter use wxSplitterWindow class
1078 --enable-statbmp use wxStaticBitmap class
1079 --enable-statbox use wxStaticBox class
1080 --enable-statline use wxStaticLine class
1081 --enable-stattext use wxStaticText class
1082 --enable-statusbar use wxStatusBar class
1083 --enable-tabdialog use wxTabControl class
1084 --enable-textctrl use wxTextCtrl class
1085 --enable-togglebtn use wxToggleButton class
1086 --enable-toolbar use wxToolBar class
1087 --enable-tbarnative use native wxToolBar class
0093c2fc 1088 --enable-treebook use wxTreebook class
5ec3bc43 1089 --enable-toolbook use wxToolbook class
a848cd7e
SC
1090 --enable-treectrl use wxTreeCtrl class
1091 --enable-tipwindow use wxTipWindow class
1092 --enable-popupwin use wxPopUpWindow class
1093 --enable-commondlg use all common dialogs
1094 --enable-choicedlg use wxChoiceDialog
1095 --enable-coldlg use wxColourDialog
1096 --enable-filedlg use wxFileDialog
1097 --enable-finddlg use wxFindReplaceDialog
1098 --enable-fontdlg use wxFontDialog
1099 --enable-dirdlg use wxDirDialog
1100 --enable-msgdlg use wxMessageDialog
1101 --enable-numberdlg use wxNumberEntryDialog
1102 --enable-splash use wxSplashScreen
1103 --enable-textdlg use wxTextDialog
1104 --enable-tipdlg use startup tips
1105 --enable-progressdlg use wxProgressDialog
1106 --enable-wizarddlg use wxWizard
1107 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1108 --enable-miniframe use wxMiniFrame class
1109 --enable-tooltips use wxToolTip class
1110 --enable-splines use spline drawing code
fbe2ca43 1111 --enable-mousewheel use mousewheel
a848cd7e
SC
1112 --enable-validators use wxValidator and derived classes
1113 --enable-busyinfo use wxBusyInfo
4cb1d3da 1114 --enable-joystick use wxJoystick
38b4a946 1115 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1116 --enable-dragimage use wxDragImage
1117 --enable-accessibility enable accessibility support
38b4a946 1118 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1119 --enable-palette use wxPalette class
1120 --enable-image use wxImage class
1121 --enable-gif use gif images (GIF file format)
1122 --enable-pcx use pcx images (PCX file format)
1123 --enable-iff use iff images (IFF file format)
1124 --enable-pnm use pnm images (PNM file format)
1125 --enable-xpm use xpm images (XPM file format)
1126 --enable-icocur use Windows ICO and CUR formats
77ffb593 1127 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1128 --enable-vendor=VENDOR vendor name (win32 DLL only)
1129 --disable-largefile omit support for large files
1130 --disable-gtktest do not try to compile and run a test GTK+ program
1131 --disable-gtktest Do not try to compile and run a test GTK program
1132 --disable-sdltest Do not try to compile and run a test SDL program
1133 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1134 --disable-dependency-tracking
1135 don't use dependency tracking even if the compiler
1136 can
ebee3cd0
VS
1137 --disable-precomp-headers
1138 don't use precompiled headers even if compiler can
a848cd7e
SC
1139
1140Optional Packages:
1141 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1142 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1143 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1144 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1145 --with-motif use Motif/Lesstif
1146 --with-mac use Mac OS X
1147 --with-cocoa use Cocoa
1148 --with-wine use Wine
1149 --with-msw use MS-Windows
1150 --with-pm use OS/2 Presentation Manager
1151 --with-mgl use SciTech MGL
b3c86150 1152 --with-directfb use DirectFB
a848cd7e
SC
1153 --with-microwin use MicroWindows
1154 --with-x11 use X11
1155 --with-libpng use libpng (PNG image format)
1156 --with-libjpeg use libjpeg (JPEG file format)
1157 --with-libtiff use libtiff (TIFF file format)
1158 --with-libxpm use libxpm (XPM file format)
1159 --with-libmspack use libmspack (CHM help files loading)
1160 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1161 --with-gnomeprint use GNOME print for printing under GNOME
1162 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1163 --with-hildon use Hildon framework for Nokia 770
a848cd7e 1164 --with-opengl use OpenGL (or Mesa)
4353a8df 1165 --with-themes=all|list use only the specified comma-separated list of wxUniversal themes
a848cd7e
SC
1166 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1167 --with-regex enable support for wxRegEx class
1168 --with-zlib use zlib for LZW compression
1169 --with-odbc use the IODBC and wxODBC classes
1170 --with-expat enable XML support using expat parser
ceec2216 1171 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1172 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1173 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1174 --with-x use the X Window System
1175 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1176 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1177 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1178 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1179 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1180
1181Some influential environment variables:
dcc1b6ad
VS
1182 CC C compiler command
1183 CFLAGS C compiler flags
1184 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1185 nonstandard directory <lib dir>
1186 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1187 headers in a nonstandard directory <include dir>
1188 CPP C preprocessor
1189 CXX C++ compiler command
1190 CXXFLAGS C++ compiler flags
1191 CXXCPP C++ preprocessor
3ecd9f92 1192 PKG_CONFIG path to pkg-config utility
b3c86150
VS
1193 DIRECTFB_CFLAGS
1194 C compiler flags for DIRECTFB, overriding pkg-config
1195 DIRECTFB_LIBS
1196 linker flags for DIRECTFB, overriding pkg-config
3ecd9f92
MW
1197 PANGOX_CFLAGS
1198 C compiler flags for PANGOX, overriding pkg-config
1199 PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1200 PANGOFT2_CFLAGS
1201 C compiler flags for PANGOFT2, overriding pkg-config
1202 PANGOFT2_LIBS
1203 linker flags for PANGOFT2, overriding pkg-config
1204 PANGOXFT_CFLAGS
1205 C compiler flags for PANGOXFT, overriding pkg-config
1206 PANGOXFT_LIBS
1207 linker flags for PANGOXFT, overriding pkg-config
1208 LIBGNOMEPRINTUI_CFLAGS
1209 C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1210 LIBGNOMEPRINTUI_LIBS
1211 linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1212 GNOMEVFS_CFLAGS
1213 C compiler flags for GNOMEVFS, overriding pkg-config
1214 GNOMEVFS_LIBS
1215 linker flags for GNOMEVFS, overriding pkg-config
1216 HILDON_CFLAGS
1217 C compiler flags for HILDON, overriding pkg-config
1218 HILDON_LIBS linker flags for HILDON, overriding pkg-config
1219 GST_CFLAGS C compiler flags for GST, overriding pkg-config
1220 GST_LIBS linker flags for GST, overriding pkg-config
a848cd7e
SC
1221
1222Use these variables to override the choices made by `configure' or to help
1223it to find libraries and programs with nonstandard names/locations.
1224
77ffb593 1225Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1226_ACEOF
1227fi
1228
1229if test "$ac_init_help" = "recursive"; then
1230 # If there are subdirs, report their specific --help.
1231 ac_popdir=`pwd`
1232 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1233 test -d $ac_dir || continue
1234 ac_builddir=.
1235
1236if test "$ac_dir" != .; then
1237 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1238 # A "../" for each directory in $ac_dir_suffix.
1239 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1240else
1241 ac_dir_suffix= ac_top_builddir=
1242fi
1243
1244case $srcdir in
1245 .) # No --srcdir option. We are building in place.
1246 ac_srcdir=.
1247 if test -z "$ac_top_builddir"; then
1248 ac_top_srcdir=.
1249 else
1250 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1251 fi ;;
1252 [\\/]* | ?:[\\/]* ) # Absolute path.
1253 ac_srcdir=$srcdir$ac_dir_suffix;
1254 ac_top_srcdir=$srcdir ;;
1255 *) # Relative path.
1256 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1257 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1258esac
ac1cb8d3
VS
1259
1260# Do not use `cd foo && pwd` to compute absolute paths, because
1261# the directories may not exist.
1262case `pwd` in
1263.) ac_abs_builddir="$ac_dir";;
1264*)
1265 case "$ac_dir" in
1266 .) ac_abs_builddir=`pwd`;;
1267 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1268 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1269 esac;;
1270esac
1271case $ac_abs_builddir in
1272.) ac_abs_top_builddir=${ac_top_builddir}.;;
1273*)
1274 case ${ac_top_builddir}. in
1275 .) ac_abs_top_builddir=$ac_abs_builddir;;
1276 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1277 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1278 esac;;
1279esac
1280case $ac_abs_builddir in
1281.) ac_abs_srcdir=$ac_srcdir;;
1282*)
1283 case $ac_srcdir in
1284 .) ac_abs_srcdir=$ac_abs_builddir;;
1285 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1286 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1287 esac;;
1288esac
1289case $ac_abs_builddir in
1290.) ac_abs_top_srcdir=$ac_top_srcdir;;
1291*)
1292 case $ac_top_srcdir in
1293 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1294 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1295 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1296 esac;;
1297esac
a848cd7e
SC
1298
1299 cd $ac_dir
1300 # Check for guested configure; otherwise get Cygnus style configure.
1301 if test -f $ac_srcdir/configure.gnu; then
1302 echo
1303 $SHELL $ac_srcdir/configure.gnu --help=recursive
1304 elif test -f $ac_srcdir/configure; then
1305 echo
1306 $SHELL $ac_srcdir/configure --help=recursive
1307 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1308 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1309 echo
1310 $ac_configure --help
1311 else
1312 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1313 fi
ca5c6ac3 1314 cd "$ac_popdir"
a848cd7e
SC
1315 done
1316fi
1317
1318test -n "$ac_init_help" && exit 0
1319if $ac_init_version; then
1320 cat <<\_ACEOF
dd8df4fc 1321wxWidgets configure 2.7.0
ac1cb8d3 1322generated by GNU Autoconf 2.59
a848cd7e 1323
ac1cb8d3 1324Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1325This configure script is free software; the Free Software Foundation
1326gives unlimited permission to copy, distribute and modify it.
1327_ACEOF
1328 exit 0
1329fi
1330exec 5>config.log
1331cat >&5 <<_ACEOF
1332This file contains any messages produced by compilers while
1333running configure, to aid debugging if configure makes a mistake.
1334
dd8df4fc 1335It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1336generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1337
1338 $ $0 $@
1339
1340_ACEOF
1341{
1342cat <<_ASUNAME
1343## --------- ##
1344## Platform. ##
1345## --------- ##
1346
1347hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1348uname -m = `(uname -m) 2>/dev/null || echo unknown`
1349uname -r = `(uname -r) 2>/dev/null || echo unknown`
1350uname -s = `(uname -s) 2>/dev/null || echo unknown`
1351uname -v = `(uname -v) 2>/dev/null || echo unknown`
1352
1353/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1354/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1355
1356/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1357/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1358/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1359hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1360/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1361/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1362/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1363
1364_ASUNAME
1365
1366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1367for as_dir in $PATH
1368do
1369 IFS=$as_save_IFS
1370 test -z "$as_dir" && as_dir=.
1371 echo "PATH: $as_dir"
1372done
1373
1374} >&5
1375
1376cat >&5 <<_ACEOF
1377
1378
1379## ----------- ##
1380## Core tests. ##
1381## ----------- ##
1382
1383_ACEOF
1384
1385
1386# Keep a trace of the command line.
1387# Strip out --no-create and --no-recursion so they do not pile up.
1388# Strip out --silent because we don't want to record it for future runs.
1389# Also quote any args containing shell meta-characters.
1390# Make two passes to allow for proper duplicate-argument suppression.
1391ac_configure_args=
1392ac_configure_args0=
1393ac_configure_args1=
1394ac_sep=
1395ac_must_keep_next=false
1396for ac_pass in 1 2
1397do
1398 for ac_arg
1399 do
1400 case $ac_arg in
1401 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1402 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1403 | -silent | --silent | --silen | --sile | --sil)
1404 continue ;;
1405 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1406 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1407 esac
1408 case $ac_pass in
1409 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1410 2)
1411 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1412 if test $ac_must_keep_next = true; then
ac1cb8d3 1413 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1414 else
ac1cb8d3
VS
1415 case $ac_arg in
1416 *=* | --config-cache | -C | -disable-* | --disable-* \
1417 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1418 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1419 | -with-* | --with-* | -without-* | --without-* | --x)
1420 case "$ac_configure_args0 " in
1421 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1422 esac
1423 ;;
1424 -* ) ac_must_keep_next=true ;;
1425 esac
a848cd7e
SC
1426 fi
1427 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1428 # Get rid of the leading space.
1429 ac_sep=" "
1430 ;;
1431 esac
1432 done
1433done
1434$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1435$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1436
1437# When interrupted or exit'd, cleanup temporary files, and complete
1438# config.log. We remove comments because anyway the quotes in there
1439# would cause problems or look ugly.
1440# WARNING: Be sure not to use single quotes in there, as some shells,
1441# such as our DU 5.0 friend, will then `close' the trap.
1442trap 'exit_status=$?
1443 # Save into config.log some information that might help in debugging.
1444 {
1445 echo
1446
1447 cat <<\_ASBOX
1448## ---------------- ##
1449## Cache variables. ##
1450## ---------------- ##
1451_ASBOX
1452 echo
1453 # The following way of writing the cache mishandles newlines in values,
1454{
1455 (set) 2>&1 |
1456 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1457 *ac_space=\ *)
1458 sed -n \
ac1cb8d3
VS
1459 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1460 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1461 ;;
1462 *)
1463 sed -n \
ac1cb8d3 1464 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1465 ;;
1466 esac;
1467}
1468 echo
1469
1470 cat <<\_ASBOX
1471## ----------------- ##
1472## Output variables. ##
1473## ----------------- ##
1474_ASBOX
1475 echo
1476 for ac_var in $ac_subst_vars
1477 do
1478 eval ac_val=$`echo $ac_var`
1479 echo "$ac_var='"'"'$ac_val'"'"'"
1480 done | sort
1481 echo
1482
1483 if test -n "$ac_subst_files"; then
1484 cat <<\_ASBOX
1485## ------------- ##
1486## Output files. ##
1487## ------------- ##
1488_ASBOX
1489 echo
1490 for ac_var in $ac_subst_files
1491 do
1492 eval ac_val=$`echo $ac_var`
ac1cb8d3 1493 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1494 done | sort
1495 echo
1496 fi
1497
1498 if test -s confdefs.h; then
1499 cat <<\_ASBOX
1500## ----------- ##
1501## confdefs.h. ##
1502## ----------- ##
1503_ASBOX
1504 echo
1505 sed "/^$/d" confdefs.h | sort
1506 echo
1507 fi
1508 test "$ac_signal" != 0 &&
1509 echo "$as_me: caught signal $ac_signal"
1510 echo "$as_me: exit $exit_status"
1511 } >&5
ac1cb8d3 1512 rm -f core *.core &&
a848cd7e
SC
1513 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1514 exit $exit_status
1515 ' 0
1516for ac_signal in 1 2 13 15; do
1517 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1518done
1519ac_signal=0
1520
1521# confdefs.h avoids OS command line length limits that DEFS can exceed.
1522rm -rf conftest* confdefs.h
1523# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1524echo >confdefs.h
1525
1526# Predefined preprocessor variables.
1527
1528cat >>confdefs.h <<_ACEOF
1529#define PACKAGE_NAME "$PACKAGE_NAME"
1530_ACEOF
1531
1532
1533cat >>confdefs.h <<_ACEOF
1534#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1535_ACEOF
1536
1537
1538cat >>confdefs.h <<_ACEOF
1539#define PACKAGE_VERSION "$PACKAGE_VERSION"
1540_ACEOF
1541
1542
1543cat >>confdefs.h <<_ACEOF
1544#define PACKAGE_STRING "$PACKAGE_STRING"
1545_ACEOF
1546
1547
1548cat >>confdefs.h <<_ACEOF
1549#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1550_ACEOF
1551
1552
1553# Let the site file select an alternate cache file if it wants to.
1554# Prefer explicitly selected file to automatically selected ones.
1555if test -z "$CONFIG_SITE"; then
1556 if test "x$prefix" != xNONE; then
1557 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1558 else
1559 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1560 fi
1561fi
1562for ac_site_file in $CONFIG_SITE; do
1563 if test -r "$ac_site_file"; then
1564 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1565echo "$as_me: loading site script $ac_site_file" >&6;}
1566 sed 's/^/| /' "$ac_site_file" >&5
1567 . "$ac_site_file"
1568 fi
1569done
1570
1571if test -r "$cache_file"; then
1572 # Some versions of bash will fail to source /dev/null (special
1573 # files actually), so we avoid doing that.
1574 if test -f "$cache_file"; then
1575 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1576echo "$as_me: loading cache $cache_file" >&6;}
1577 case $cache_file in
1578 [\\/]* | ?:[\\/]* ) . $cache_file;;
1579 *) . ./$cache_file;;
1580 esac
1581 fi
1582else
1583 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1584echo "$as_me: creating cache $cache_file" >&6;}
1585 >$cache_file
1586fi
1587
1588# Check that the precious variables saved in the cache have kept the same
1589# value.
1590ac_cache_corrupted=false
1591for ac_var in `(set) 2>&1 |
ac1cb8d3 1592 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1593 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1594 eval ac_new_set=\$ac_env_${ac_var}_set
1595 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1596 eval ac_new_val="\$ac_env_${ac_var}_value"
1597 case $ac_old_set,$ac_new_set in
1598 set,)
1599 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1600echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1601 ac_cache_corrupted=: ;;
1602 ,set)
1603 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1604echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1605 ac_cache_corrupted=: ;;
1606 ,);;
1607 *)
1608 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1609 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1610echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1611 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1612echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1613 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1614echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1615 ac_cache_corrupted=:
a848cd7e
SC
1616 fi;;
1617 esac
1618 # Pass precious variables to config.status.
1619 if test "$ac_new_set" = set; then
1620 case $ac_new_val in
1621 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1622 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1623 *) ac_arg=$ac_var=$ac_new_val ;;
1624 esac
1625 case " $ac_configure_args " in
1626 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1627 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1628 esac
1629 fi
1630done
1631if $ac_cache_corrupted; then
1632 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1633echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1634 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1635echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1636 { (exit 1); exit 1; }; }
1637fi
1638
1639ac_ext=c
1640ac_cpp='$CPP $CPPFLAGS'
1641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1643ac_compiler_gnu=$ac_cv_c_compiler_gnu
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674ac_aux_dir=
1675for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1676 if test -f $ac_dir/install-sh; then
1677 ac_aux_dir=$ac_dir
1678 ac_install_sh="$ac_aux_dir/install-sh -c"
1679 break
1680 elif test -f $ac_dir/install.sh; then
1681 ac_aux_dir=$ac_dir
1682 ac_install_sh="$ac_aux_dir/install.sh -c"
1683 break
1684 elif test -f $ac_dir/shtool; then
1685 ac_aux_dir=$ac_dir
1686 ac_install_sh="$ac_aux_dir/shtool install -c"
1687 break
1688 fi
1689done
1690if test -z "$ac_aux_dir"; then
1691 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1692echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1693 { (exit 1); exit 1; }; }
1694fi
1695ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1696ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1697ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1698
1699# Make sure we can run config.sub.
1700$ac_config_sub sun4 >/dev/null 2>&1 ||
1701 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1702echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1703 { (exit 1); exit 1; }; }
1704
1705echo "$as_me:$LINENO: checking build system type" >&5
1706echo $ECHO_N "checking build system type... $ECHO_C" >&6
1707if test "${ac_cv_build+set}" = set; then
1708 echo $ECHO_N "(cached) $ECHO_C" >&6
1709else
1710 ac_cv_build_alias=$build_alias
1711test -z "$ac_cv_build_alias" &&
1712 ac_cv_build_alias=`$ac_config_guess`
1713test -z "$ac_cv_build_alias" &&
1714 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1715echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1716 { (exit 1); exit 1; }; }
1717ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1718 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1719echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1720 { (exit 1); exit 1; }; }
1721
1722fi
1723echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1724echo "${ECHO_T}$ac_cv_build" >&6
1725build=$ac_cv_build
1726build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1727build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1728build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1729
1730
1731echo "$as_me:$LINENO: checking host system type" >&5
1732echo $ECHO_N "checking host system type... $ECHO_C" >&6
1733if test "${ac_cv_host+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1735else
1736 ac_cv_host_alias=$host_alias
1737test -z "$ac_cv_host_alias" &&
1738 ac_cv_host_alias=$ac_cv_build_alias
1739ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1740 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1741echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1742 { (exit 1); exit 1; }; }
1743
1744fi
1745echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1746echo "${ECHO_T}$ac_cv_host" >&6
1747host=$ac_cv_host
1748host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1749host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1750host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1751
1752
1753echo "$as_me:$LINENO: checking target system type" >&5
1754echo $ECHO_N "checking target system type... $ECHO_C" >&6
1755if test "${ac_cv_target+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1757else
1758 ac_cv_target_alias=$target_alias
1759test "x$ac_cv_target_alias" = "x" &&
1760 ac_cv_target_alias=$ac_cv_host_alias
1761ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1762 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1763echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1764 { (exit 1); exit 1; }; }
1765
1766fi
1767echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1768echo "${ECHO_T}$ac_cv_target" >&6
1769target=$ac_cv_target
1770target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1771target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1772target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1773
1774
1775# The aliases save the names the user supplied, while $host etc.
1776# will get canonicalized.
1777test -n "$target_alias" &&
1778 test "$program_prefix$program_suffix$program_transform_name" = \
1779 NONENONEs,x,x, &&
1780 program_prefix=${target_alias}-
1781
1782
1783
ceec2216 1784wx_major_version_number=2
dd8df4fc
VZ
1785wx_minor_version_number=7
1786wx_release_number=0
5b5d4ef2 1787wx_subrelease_number=1
a848cd7e 1788
ceec2216
RL
1789WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1790WX_VERSION=$WX_RELEASE.$wx_release_number
1791WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1792
ceec2216 1793WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1794
a848cd7e
SC
1795
1796
1797
1798USE_UNIX=1
1799USE_OS2=0
1800USE_WIN32=0
1801USE_DOS=0
1802USE_BEOS=0
1803USE_MAC=0
1804
1805USE_AIX=
1806USE_BSD= USE_DARWIN= USE_FREEBSD=
1807USE_GNU= USE_HPUX=
1808USE_LINUX=
1809USE_NETBSD=
1810USE_OPENBSD=
1811USE_OSF= USE_SGI=
1812USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1813USE_ULTRIX=
1814USE_UNIXWARE=
1815
1816USE_ALPHA=
1817
1818NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1819
b3c86150 1820ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
a848cd7e
SC
1821
1822DEFAULT_wxUSE_COCOA=0
1823DEFAULT_wxUSE_GTK=0
1824DEFAULT_wxUSE_MAC=0
1825DEFAULT_wxUSE_MGL=0
1826DEFAULT_wxUSE_MICROWIN=0
1827DEFAULT_wxUSE_MOTIF=0
1828DEFAULT_wxUSE_MSW=0
1829DEFAULT_wxUSE_PM=0
1830DEFAULT_wxUSE_X11=0
b3c86150 1831DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1832
1833DEFAULT_DEFAULT_wxUSE_COCOA=0
1834DEFAULT_DEFAULT_wxUSE_GTK=0
1835DEFAULT_DEFAULT_wxUSE_MAC=0
1836DEFAULT_DEFAULT_wxUSE_MGL=0
1837DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1838DEFAULT_DEFAULT_wxUSE_MOTIF=0
1839DEFAULT_DEFAULT_wxUSE_MSW=0
1840DEFAULT_DEFAULT_wxUSE_PM=0
1841DEFAULT_DEFAULT_wxUSE_X11=0
b3c86150 1842DEFAULT_DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1843
1844PROGRAM_EXT=
1845SO_SUFFIX=so
1846SAMPLES_RPATH_FLAG=
1847SAMPLES_RPATH_POSTLINK=
1848
a03b8b04
RD
1849DEFAULT_STD_FLAG=yes
1850
a848cd7e
SC
1851case "${host}" in
1852 *-hp-hpux* )
1853 USE_HPUX=1
1854 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1855 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1856 SO_SUFFIX=sl
1857 cat >>confdefs.h <<\_ACEOF
1858#define __HPUX__ 1
1859_ACEOF
1860
2eef8513 1861
c92ad099 1862 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1863 ;;
1864 *-*-linux* )
1865 USE_LINUX=1
1866 cat >>confdefs.h <<\_ACEOF
1867#define __LINUX__ 1
1868_ACEOF
1869
1870 TMP=`uname -m`
1871 if test "x$TMP" = "xalpha"; then
1872 USE_ALPHA=1
1873 cat >>confdefs.h <<\_ACEOF
1874#define __ALPHA__ 1
1875_ACEOF
1876
1877 fi
1878 DEFAULT_DEFAULT_wxUSE_GTK=1
1879 ;;
1880 *-*-gnu* | *-*-k*bsd*-gnu )
1881 USE_GNU=1
1882 TMP=`uname -m`
1883 if test "x$TMP" = "xalpha"; then
1884 USE_ALPHA=1
1885 cat >>confdefs.h <<\_ACEOF
1886#define __ALPHA__ 1
1887_ACEOF
1888
1889 fi
1890 DEFAULT_DEFAULT_wxUSE_GTK=1
1891 ;;
1892 *-*-irix5* | *-*-irix6* )
1893 USE_SGI=1
1894 USE_SVR4=1
1895 cat >>confdefs.h <<\_ACEOF
1896#define __SGI__ 1
1897_ACEOF
1898
1899 cat >>confdefs.h <<\_ACEOF
1900#define __SVR4__ 1
1901_ACEOF
1902
1903 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1904 ;;
1905 *-*-solaris2* )
1906 USE_SUN=1
1907 USE_SOLARIS=1
1908 USE_SVR4=1
1909 cat >>confdefs.h <<\_ACEOF
1910#define __SUN__ 1
1911_ACEOF
1912
1913 cat >>confdefs.h <<\_ACEOF
1914#define __SOLARIS__ 1
1915_ACEOF
1916
1917 cat >>confdefs.h <<\_ACEOF
1918#define __SVR4__ 1
1919_ACEOF
1920
1921 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1922 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1923 ;;
1924 *-*-sunos4* )
1925 USE_SUN=1
1926 USE_SUNOS=1
1927 USE_BSD=1
1928 cat >>confdefs.h <<\_ACEOF
1929#define __SUN__ 1
1930_ACEOF
1931
1932 cat >>confdefs.h <<\_ACEOF
1933#define __SUNOS__ 1
1934_ACEOF
1935
1936 cat >>confdefs.h <<\_ACEOF
1937#define __BSD__ 1
1938_ACEOF
1939
1940 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1941 ;;
1942 *-*-freebsd*)
1943 USE_BSD=1
1944 USE_FREEBSD=1
1945 cat >>confdefs.h <<\_ACEOF
1946#define __FREEBSD__ 1
1947_ACEOF
1948
1949 cat >>confdefs.h <<\_ACEOF
1950#define __BSD__ 1
1951_ACEOF
1952
1953 DEFAULT_DEFAULT_wxUSE_GTK=1
1954 ;;
c9a66001 1955 *-*-openbsd*|*-*-mirbsd*)
a848cd7e
SC
1956 USE_BSD=1
1957 USE_OPENBSD=1
1958 cat >>confdefs.h <<\_ACEOF
1959#define __OPENBSD__ 1
1960_ACEOF
1961
1962 cat >>confdefs.h <<\_ACEOF
1963#define __BSD__ 1
1964_ACEOF
1965
1966 DEFAULT_DEFAULT_wxUSE_GTK=1
1967 ;;
1968 *-*-netbsd*)
1969 USE_BSD=1
1970 USE_NETBSD=1
1971 cat >>confdefs.h <<\_ACEOF
1972#define __NETBSD__ 1
1973_ACEOF
1974
1975 cat >>confdefs.h <<\_ACEOF
1976#define __BSD__ 1
1977_ACEOF
1978
1979 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1980 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1981
def7c04a 1982 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1983 ;;
1984 *-*-osf* )
1985 USE_ALPHA=1
1986 USE_OSF=1
1987 cat >>confdefs.h <<\_ACEOF
1988#define __ALPHA__ 1
1989_ACEOF
1990
1991 cat >>confdefs.h <<\_ACEOF
1992#define __OSF__ 1
1993_ACEOF
1994
1995 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1996 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1997 ;;
1998 *-*-dgux5* )
1999 USE_ALPHA=1
2000 USE_SVR4=1
2001 cat >>confdefs.h <<\_ACEOF
2002#define __ALPHA__ 1
2003_ACEOF
2004
2005 cat >>confdefs.h <<\_ACEOF
2006#define __SVR4__ 1
2007_ACEOF
2008
2009 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2010 ;;
2011 *-*-sysv5* )
2012 USE_SYSV=1
2013 USE_SVR4=1
2014 cat >>confdefs.h <<\_ACEOF
2015#define __SYSV__ 1
2016_ACEOF
2017
2018 cat >>confdefs.h <<\_ACEOF
2019#define __SVR4__ 1
2020_ACEOF
2021
2022 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2023 ;;
2024 *-*-aix* )
2025 USE_AIX=1
2026 USE_SYSV=1
2027 USE_SVR4=1
2028 SO_SUFFIX=a
2029 cat >>confdefs.h <<\_ACEOF
2030#define __AIX__ 1
2031_ACEOF
2032
2033 cat >>confdefs.h <<\_ACEOF
2034#define __SYSV__ 1
2035_ACEOF
2036
2037 cat >>confdefs.h <<\_ACEOF
2038#define __SVR4__ 1
2039_ACEOF
2040
2041 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2042 ;;
2043
2044 *-*-*UnixWare*)
2045 USE_SYSV=1
2046 USE_SVR4=1
2047 USE_UNIXWARE=1
2048 cat >>confdefs.h <<\_ACEOF
2049#define __UNIXWARE__ 1
2050_ACEOF
2051
2052 ;;
2053
2054 *-*-cygwin* | *-*-mingw32* )
2055 SO_SUFFIX=dll
2056 PROGRAM_EXT=".exe"
a848cd7e 2057 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 2058 DEFAULT_STD_FLAG=no
a848cd7e
SC
2059 ;;
2060
2061 *-pc-msdosdjgpp )
2062 USE_UNIX=0
2063 USE_DOS=1
2064 cat >>confdefs.h <<\_ACEOF
2065#define __DOS__ 1
2066_ACEOF
2067
2068 PROGRAM_EXT=".exe"
2069 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
2070 ;;
2071
2072 *-pc-os2_emx | *-pc-os2-emx )
2073 cat >>confdefs.h <<\_ACEOF
2074#define __EMX__ 1
2075_ACEOF
2076
2077 USE_OS2=1
2078 cat >>confdefs.h <<\_ACEOF
2079#define __OS2__ 1
2080_ACEOF
2081
2082 PROGRAM_EXT=".exe"
2083 DEFAULT_DEFAULT_wxUSE_PM=1
2084 CXX=gcc
2085 LDFLAGS="$LDFLAGS -Zcrtdll"
2086 ac_executable_extensions=".exe"
2087 export ac_executable_extensions
2088 ac_save_IFS="$IFS"
2089 IFS='\\'
2090 ac_TEMP_PATH=
2091 for ac_dir in $PATH; do
2092 IFS=$ac_save_IFS
2093 if test -z "$ac_TEMP_PATH"; then
2094 ac_TEMP_PATH="$ac_dir"
2095 else
2096 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2097 fi
2098 done
2099 export PATH="$ac_TEMP_PATH"
2100 unset ac_TEMP_PATH
a03b8b04 2101 DEFAULT_STD_FLAG=no
a848cd7e
SC
2102 ;;
2103
cfda0ea8 2104 *-*-darwin* )
a848cd7e
SC
2105 USE_BSD=1
2106 USE_DARWIN=1
2107 SO_SUFFIX=dylib
2108 cat >>confdefs.h <<\_ACEOF
2109#define __BSD__ 1
2110_ACEOF
2111
2112 cat >>confdefs.h <<\_ACEOF
2113#define __DARWIN__ 1
a848cd7e
SC
2114_ACEOF
2115
2116 cat >>confdefs.h <<\_ACEOF
2117#define TARGET_CARBON 1
2118_ACEOF
2119
2120 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2121 DEFAULT_STD_FLAG=no
a848cd7e 2122 ;;
1e9e8aba
DE
2123 powerpc-apple-macos* )
2124 USE_UNIX=0
2125 ac_cv_c_bigendian=yes
2126 SO_SUFFIX=shlib
2127 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2128 DEFAULT_STD_FLAG=no
1e9e8aba 2129 ;;
a848cd7e
SC
2130
2131 *-*-beos* )
2132 USE_BEOS=1
2133 cat >>confdefs.h <<\_ACEOF
2134#define __BEOS__ 1
2135_ACEOF
2136
2137 ;;
2138
2139 *)
c9a66001
VZ
2140 { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2141echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2142 { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2143echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
5acfd58d
MW
2144
2145 DEFAULT_DEFAULT_wxUSE_X11=1
2146 DEFAULT_wxUSE_SHARED=no
a848cd7e
SC
2147esac
2148
2149
2150
2151
2152 wx_arg_cache_file="configarg.cache"
2153 echo "loading argument cache $wx_arg_cache_file"
2154 rm -f ${wx_arg_cache_file}.tmp
2155 touch ${wx_arg_cache_file}.tmp
2156 touch ${wx_arg_cache_file}
2157
2158
2159DEBUG_CONFIGURE=0
2160if test $DEBUG_CONFIGURE = 1; then
2161 DEFAULT_wxUSE_UNIVERSAL=no
2162 DEFAULT_wxUSE_STL=no
2163
2164 DEFAULT_wxUSE_NANOX=no
2165
2166 DEFAULT_wxUSE_THREADS=yes
2167
5acfd58d 2168 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2169 DEFAULT_wxUSE_OPTIMISE=no
2170 DEFAULT_wxUSE_PROFILE=no
2171 DEFAULT_wxUSE_NO_DEPS=no
2172 DEFAULT_wxUSE_NO_RTTI=no
2173 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2174 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2175 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2176 DEFAULT_wxUSE_PERMISSIVE=no
2177 DEFAULT_wxUSE_DEBUG_FLAG=yes
2178 DEFAULT_wxUSE_DEBUG_INFO=yes
2179 DEFAULT_wxUSE_DEBUG_GDB=yes
2180 DEFAULT_wxUSE_MEM_TRACING=no
2181 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2182 DEFAULT_wxUSE_DMALLOC=no
2183 DEFAULT_wxUSE_APPLE_IEEE=no
2184
2185 DEFAULT_wxUSE_EXCEPTIONS=no
2186 DEFAULT_wxUSE_LOG=yes
2187 DEFAULT_wxUSE_LOGWINDOW=no
2188 DEFAULT_wxUSE_LOGGUI=no
2189 DEFAULT_wxUSE_LOGDIALOG=no
2190
2191 DEFAULT_wxUSE_GUI=yes
2192 DEFAULT_wxUSE_CONTROLS=no
2193
2194 DEFAULT_wxUSE_REGEX=no
2195 DEFAULT_wxUSE_XML=no
2196 DEFAULT_wxUSE_EXPAT=no
2197 DEFAULT_wxUSE_ZLIB=no
2198 DEFAULT_wxUSE_LIBPNG=no
2199 DEFAULT_wxUSE_LIBJPEG=no
2200 DEFAULT_wxUSE_LIBTIFF=no
2201 DEFAULT_wxUSE_LIBXPM=no
2202 DEFAULT_wxUSE_LIBMSPACK=no
2203 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2204 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2205 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2206 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2207 DEFAULT_wxUSE_ODBC=no
2208 DEFAULT_wxUSE_OPENGL=no
2209
2210 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2211 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2212 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2213 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2214 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2215 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2216 DEFAULT_wxUSE_CMDLINE_PARSER=no
2217 DEFAULT_wxUSE_DATETIME=no
2218 DEFAULT_wxUSE_TIMER=no
2219 DEFAULT_wxUSE_STOPWATCH=no
2220 DEFAULT_wxUSE_FILE=no
2221 DEFAULT_wxUSE_FFILE=no
07158944 2222 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2223 DEFAULT_wxUSE_TEXTBUFFER=no
2224 DEFAULT_wxUSE_TEXTFILE=no
2225 DEFAULT_wxUSE_SOUND=no
3b57de8b 2226 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2227 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2228 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2229 DEFAULT_wxUSE_INTL=no
2230 DEFAULT_wxUSE_CONFIG=no
2231 DEFAULT_wxUSE_FONTMAP=no
2232 DEFAULT_wxUSE_STREAMS=no
2233 DEFAULT_wxUSE_SOCKETS=no
2234 DEFAULT_wxUSE_OLE=no
2235 DEFAULT_wxUSE_DATAOBJ=no
2236 DEFAULT_wxUSE_DIALUP_MANAGER=no
2237 DEFAULT_wxUSE_JOYSTICK=no
2238 DEFAULT_wxUSE_DYNLIB_CLASS=no
2239 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2240 DEFAULT_wxUSE_LONGLONG=no
2241 DEFAULT_wxUSE_GEOMETRY=no
2242
2243 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2244 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2245 DEFAULT_wxUSE_POSTSCRIPT=no
2246
2247 DEFAULT_wxUSE_CLIPBOARD=no
2248 DEFAULT_wxUSE_TOOLTIPS=no
2249 DEFAULT_wxUSE_DRAG_AND_DROP=no
2250 DEFAULT_wxUSE_DRAGIMAGE=no
2251 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2252 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2253
8a7b1113 2254 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2255 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2256 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2257 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2258
2259 DEFAULT_wxUSE_RESOURCES=no
2260 DEFAULT_wxUSE_CONSTRAINTS=no
2261 DEFAULT_wxUSE_IPC=no
2262 DEFAULT_wxUSE_HELP=no
2263 DEFAULT_wxUSE_MS_HTML_HELP=no
2264 DEFAULT_wxUSE_WXHTML_HELP=no
2265 DEFAULT_wxUSE_TREELAYOUT=no
2266 DEFAULT_wxUSE_METAFILE=no
2267 DEFAULT_wxUSE_MIMETYPE=no
2268 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2269 DEFAULT_wxUSE_PROTOCOL=no
2270 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2271 DEFAULT_wxUSE_PROTOCOL_FTP=no
2272 DEFAULT_wxUSE_PROTOCOL_FILE=no
2273 DEFAULT_wxUSE_URL=no
ca5c6ac3 2274 DEFAULT_wxUSE_VARIANT=no
a848cd7e
SC
2275
2276 DEFAULT_wxUSE_COMMONDLGS=no
2277 DEFAULT_wxUSE_CHOICEDLG=no
2278 DEFAULT_wxUSE_COLOURDLG=no
2279 DEFAULT_wxUSE_DIRDLG=no
2280 DEFAULT_wxUSE_FILEDLG=no
2281 DEFAULT_wxUSE_FINDREPLDLG=no
2282 DEFAULT_wxUSE_FONTDLG=no
2283 DEFAULT_wxUSE_MSGDLG=no
2284 DEFAULT_wxUSE_NUMBERDLG=no
2285 DEFAULT_wxUSE_TEXTDLG=no
2286 DEFAULT_wxUSE_SPLASH=no
2287 DEFAULT_wxUSE_STARTUP_TIPS=no
2288 DEFAULT_wxUSE_PROGRESSDLG=no
2289 DEFAULT_wxUSE_WIZARDDLG=no
2290
2291 DEFAULT_wxUSE_MENUS=no
2292 DEFAULT_wxUSE_MINIFRAME=no
2293 DEFAULT_wxUSE_HTML=no
91dea314 2294 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2295 DEFAULT_wxUSE_XRC=no
3f60522a 2296 DEFAULT_wxUSE_AUI=no
646b6ec1 2297 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2298 DEFAULT_wxUSE_FILESYSTEM=no
2299 DEFAULT_wxUSE_FS_INET=no
2300 DEFAULT_wxUSE_FS_ZIP=no
2301 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2302 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2303 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2304 DEFAULT_wxUSE_VALIDATORS=no
2305
2306 DEFAULT_wxUSE_ACCEL=no
2307 DEFAULT_wxUSE_BUTTON=no
2308 DEFAULT_wxUSE_BMPBUTTON=no
95a46303 2309 DEFAULT_wxUSE_BITMAPCOMBOBOX=no
a848cd7e
SC
2310 DEFAULT_wxUSE_CALCTRL=no
2311 DEFAULT_wxUSE_CARET=no
2312 DEFAULT_wxUSE_CHECKBOX=no
2313 DEFAULT_wxUSE_CHECKLST=no
2314 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2315 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684 2316 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2317 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2318 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2319 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2320 DEFAULT_wxUSE_DISPLAY=no
e9263684
VZ
2321 DEFAULT_wxUSE_DIRPICKERCTRL=no
2322 DEFAULT_wxUSE_FILEPICKERCTRL=no
2323 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
2324 DEFAULT_wxUSE_GAUGE=no
2325 DEFAULT_wxUSE_GRID=no
6954625c 2326 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2327 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2328 DEFAULT_wxUSE_IMAGLIST=no
2329 DEFAULT_wxUSE_LISTBOOK=no
2330 DEFAULT_wxUSE_LISTBOX=no
2331 DEFAULT_wxUSE_LISTCTRL=no
2332 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2333 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2334 DEFAULT_wxUSE_RADIOBOX=no
2335 DEFAULT_wxUSE_RADIOBTN=no
2336 DEFAULT_wxUSE_SASH=no
2337 DEFAULT_wxUSE_SCROLLBAR=no
2338 DEFAULT_wxUSE_SLIDER=no
2339 DEFAULT_wxUSE_SPINBTN=no
2340 DEFAULT_wxUSE_SPINCTRL=no
2341 DEFAULT_wxUSE_SPLITTER=no
2342 DEFAULT_wxUSE_STATBMP=no
2343 DEFAULT_wxUSE_STATBOX=no
2344 DEFAULT_wxUSE_STATLINE=no
2345 DEFAULT_wxUSE_STATTEXT=no
2346 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2347 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2348 DEFAULT_wxUSE_TEXTCTRL=no
2349 DEFAULT_wxUSE_TOGGLEBTN=no
2350 DEFAULT_wxUSE_TOOLBAR=no
2351 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
0093c2fc 2352 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2353 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2354 DEFAULT_wxUSE_TREECTRL=no
2355 DEFAULT_wxUSE_POPUPWIN=no
2356 DEFAULT_wxUSE_TIPWINDOW=no
2357
2358 DEFAULT_wxUSE_UNICODE=no
2359 DEFAULT_wxUSE_UNICODE_MSLU=no
2360 DEFAULT_wxUSE_WCSRTOMBS=no
2361
2362 DEFAULT_wxUSE_PALETTE=no
2363 DEFAULT_wxUSE_IMAGE=no
2364 DEFAULT_wxUSE_GIF=no
2365 DEFAULT_wxUSE_PCX=no
2366 DEFAULT_wxUSE_PNM=no
2367 DEFAULT_wxUSE_IFF=no
2368 DEFAULT_wxUSE_XPM=no
2369 DEFAULT_wxUSE_ICO_CUR=no
2370 DEFAULT_wxUSE_ACCESSIBILITY=no
2371
2372 DEFAULT_wxUSE_MONOLITHIC=no
2373 DEFAULT_wxUSE_PLUGINS=no
2374 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2375else
2376 DEFAULT_wxUSE_UNIVERSAL=no
2377 DEFAULT_wxUSE_STL=no
2378
2379 DEFAULT_wxUSE_NANOX=no
2380
2381 DEFAULT_wxUSE_THREADS=yes
2382
5acfd58d 2383 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2384 DEFAULT_wxUSE_OPTIMISE=yes
2385 DEFAULT_wxUSE_PROFILE=no
2386 DEFAULT_wxUSE_NO_DEPS=no
2387 DEFAULT_wxUSE_NO_RTTI=no
2388 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2389 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2390 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2391 DEFAULT_wxUSE_PERMISSIVE=no
2392 DEFAULT_wxUSE_DEBUG_FLAG=no
2393 DEFAULT_wxUSE_DEBUG_INFO=no
2394 DEFAULT_wxUSE_DEBUG_GDB=no
2395 DEFAULT_wxUSE_MEM_TRACING=no
2396 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2397 DEFAULT_wxUSE_DMALLOC=no
2398 DEFAULT_wxUSE_APPLE_IEEE=yes
2399
2400 DEFAULT_wxUSE_EXCEPTIONS=yes
2401 DEFAULT_wxUSE_LOG=yes
2402 DEFAULT_wxUSE_LOGWINDOW=yes
2403 DEFAULT_wxUSE_LOGGUI=yes
2404 DEFAULT_wxUSE_LOGDIALOG=yes
2405
2406 DEFAULT_wxUSE_GUI=yes
2407
2408 DEFAULT_wxUSE_REGEX=yes
2409 DEFAULT_wxUSE_XML=yes
2410 DEFAULT_wxUSE_EXPAT=yes
2411 DEFAULT_wxUSE_ZLIB=yes
2412 DEFAULT_wxUSE_LIBPNG=yes
2413 DEFAULT_wxUSE_LIBJPEG=yes
2414 DEFAULT_wxUSE_LIBTIFF=yes
2415 DEFAULT_wxUSE_LIBXPM=yes
2416 DEFAULT_wxUSE_LIBMSPACK=yes
2417 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2418 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2419 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2420 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2421 DEFAULT_wxUSE_ODBC=no
52cb607e 2422 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2423
2424 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2425 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2426 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2427 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2428 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2429 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2430 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2431 DEFAULT_wxUSE_DATETIME=yes
2432 DEFAULT_wxUSE_TIMER=yes
2433 DEFAULT_wxUSE_STOPWATCH=yes
2434 DEFAULT_wxUSE_FILE=yes
2435 DEFAULT_wxUSE_FFILE=yes
07158944 2436 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2437 DEFAULT_wxUSE_TEXTBUFFER=yes
2438 DEFAULT_wxUSE_TEXTFILE=yes
2439 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2440 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2441 DEFAULT_wxUSE_GSTREAMER8=no
15291213 2442 DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
a848cd7e
SC
2443 DEFAULT_wxUSE_INTL=yes
2444 DEFAULT_wxUSE_CONFIG=yes
2445 DEFAULT_wxUSE_FONTMAP=yes
2446 DEFAULT_wxUSE_STREAMS=yes
2447 DEFAULT_wxUSE_SOCKETS=yes
2448 DEFAULT_wxUSE_OLE=yes
2449 DEFAULT_wxUSE_DATAOBJ=yes
2450 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2451 DEFAULT_wxUSE_JOYSTICK=yes
2452 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2453 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2454 DEFAULT_wxUSE_LONGLONG=yes
2455 DEFAULT_wxUSE_GEOMETRY=yes
2456
2457 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2458 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2459 DEFAULT_wxUSE_POSTSCRIPT=yes
2460
2461 DEFAULT_wxUSE_CLIPBOARD=yes
2462 DEFAULT_wxUSE_TOOLTIPS=yes
2463 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2464 DEFAULT_wxUSE_DRAGIMAGE=yes
2465 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2466 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2467
8a7b1113 2468 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2469 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2470 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2471 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2472
2473 DEFAULT_wxUSE_RESOURCES=no
2474 DEFAULT_wxUSE_CONSTRAINTS=yes
2475 DEFAULT_wxUSE_IPC=yes
2476 DEFAULT_wxUSE_HELP=yes
2477 DEFAULT_wxUSE_MS_HTML_HELP=yes
2478 DEFAULT_wxUSE_WXHTML_HELP=yes
2479 DEFAULT_wxUSE_TREELAYOUT=yes
2480 DEFAULT_wxUSE_METAFILE=yes
2481 DEFAULT_wxUSE_MIMETYPE=yes
2482 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2483 DEFAULT_wxUSE_PROTOCOL=yes
2484 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2485 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2486 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2487 DEFAULT_wxUSE_URL=yes
ca5c6ac3 2488 DEFAULT_wxUSE_VARIANT=yes
a848cd7e
SC
2489
2490 DEFAULT_wxUSE_COMMONDLGS=yes
2491 DEFAULT_wxUSE_CHOICEDLG=yes
2492 DEFAULT_wxUSE_COLOURDLG=yes
2493 DEFAULT_wxUSE_DIRDLG=yes
2494 DEFAULT_wxUSE_FILEDLG=yes
2495 DEFAULT_wxUSE_FINDREPLDLG=yes
2496 DEFAULT_wxUSE_FONTDLG=yes
2497 DEFAULT_wxUSE_MSGDLG=yes
2498 DEFAULT_wxUSE_NUMBERDLG=yes
2499 DEFAULT_wxUSE_TEXTDLG=yes
2500 DEFAULT_wxUSE_SPLASH=yes
2501 DEFAULT_wxUSE_STARTUP_TIPS=yes
2502 DEFAULT_wxUSE_PROGRESSDLG=yes
2503 DEFAULT_wxUSE_WIZARDDLG=yes
2504
2505 DEFAULT_wxUSE_MENUS=yes
2506 DEFAULT_wxUSE_MINIFRAME=yes
2507 DEFAULT_wxUSE_HTML=yes
91dea314 2508 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2509 DEFAULT_wxUSE_XRC=yes
3f60522a 2510 DEFAULT_wxUSE_AUI=yes
646b6ec1 2511 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2512 DEFAULT_wxUSE_FILESYSTEM=yes
2513 DEFAULT_wxUSE_FS_INET=yes
2514 DEFAULT_wxUSE_FS_ZIP=yes
2515 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2516 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2517 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2518 DEFAULT_wxUSE_VALIDATORS=yes
2519
2520 DEFAULT_wxUSE_ACCEL=yes
2521 DEFAULT_wxUSE_BUTTON=yes
2522 DEFAULT_wxUSE_BMPBUTTON=yes
95a46303 2523 DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
a848cd7e
SC
2524 DEFAULT_wxUSE_CALCTRL=yes
2525 DEFAULT_wxUSE_CARET=yes
2526 DEFAULT_wxUSE_CHECKBOX=yes
2527 DEFAULT_wxUSE_CHECKLST=yes
2528 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2529 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684 2530 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2531 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2532 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2533 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2534 DEFAULT_wxUSE_DISPLAY=yes
e9263684
VZ
2535 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2536 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2537 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2538 DEFAULT_wxUSE_GAUGE=yes
2539 DEFAULT_wxUSE_GRID=yes
6954625c 2540 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2541 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2542 DEFAULT_wxUSE_IMAGLIST=yes
2543 DEFAULT_wxUSE_LISTBOOK=yes
2544 DEFAULT_wxUSE_LISTBOX=yes
2545 DEFAULT_wxUSE_LISTCTRL=yes
2546 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2547 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2548 DEFAULT_wxUSE_RADIOBOX=yes
2549 DEFAULT_wxUSE_RADIOBTN=yes
2550 DEFAULT_wxUSE_SASH=yes
2551 DEFAULT_wxUSE_SCROLLBAR=yes
2552 DEFAULT_wxUSE_SLIDER=yes
2553 DEFAULT_wxUSE_SPINBTN=yes
2554 DEFAULT_wxUSE_SPINCTRL=yes
2555 DEFAULT_wxUSE_SPLITTER=yes
2556 DEFAULT_wxUSE_STATBMP=yes
2557 DEFAULT_wxUSE_STATBOX=yes
2558 DEFAULT_wxUSE_STATLINE=yes
2559 DEFAULT_wxUSE_STATTEXT=yes
2560 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2561 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2562 DEFAULT_wxUSE_TEXTCTRL=yes
2563 DEFAULT_wxUSE_TOGGLEBTN=yes
2564 DEFAULT_wxUSE_TOOLBAR=yes
2565 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
0093c2fc 2566 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2567 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2568 DEFAULT_wxUSE_TREECTRL=yes
2569 DEFAULT_wxUSE_POPUPWIN=yes
2570 DEFAULT_wxUSE_TIPWINDOW=yes
2571
78de529b 2572 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2573 DEFAULT_wxUSE_UNICODE_MSLU=yes
2574 DEFAULT_wxUSE_WCSRTOMBS=no
2575
2576 DEFAULT_wxUSE_PALETTE=yes
2577 DEFAULT_wxUSE_IMAGE=yes
2578 DEFAULT_wxUSE_GIF=yes
2579 DEFAULT_wxUSE_PCX=yes
2580 DEFAULT_wxUSE_IFF=no
2581 DEFAULT_wxUSE_PNM=yes
2582 DEFAULT_wxUSE_XPM=yes
2583 DEFAULT_wxUSE_ICO_CUR=yes
2584 DEFAULT_wxUSE_ACCESSIBILITY=no
2585
2586 DEFAULT_wxUSE_MONOLITHIC=no
2587 DEFAULT_wxUSE_PLUGINS=no
2588 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2589
f34ca037 2590 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2591fi
2592
2593
2594
f34ca037 2595
a848cd7e
SC
2596for toolkit in `echo $ALL_TOOLKITS`; do
2597 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2598 if test "x$LINE" != "x" ; then
2599 has_toolkit_in_cache=1
2600 eval "DEFAULT_$LINE"
2601 eval "CACHE_$toolkit=1"
f34ca037
MW
2602
2603 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2604 if test "x$LINE" != "x" ; then
2605 eval "DEFAULT_$LINE"
2606 fi
a848cd7e
SC
2607 fi
2608done
2609
2610
2611
2612 enablestring=
2613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2614echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2615 no_cache=0
2616 # Check whether --enable-gui or --disable-gui was given.
2617if test "${enable_gui+set}" = set; then
2618 enableval="$enable_gui"
2619
2620 if test "$enableval" = yes; then
2621 ac_cv_use_gui='wxUSE_GUI=yes'
2622 else
2623 ac_cv_use_gui='wxUSE_GUI=no'
2624 fi
2625
2626else
2627
2628 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2629 if test "x$LINE" != x ; then
2630 eval "DEFAULT_$LINE"
2631 else
2632 no_cache=1
2633 fi
2634
2635 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2636
2637fi;
2638
2639 eval "$ac_cv_use_gui"
2640 if test "$no_cache" != 1; then
2641 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2642 fi
2643
2644 if test "$wxUSE_GUI" = yes; then
2645 echo "$as_me:$LINENO: result: yes" >&5
2646echo "${ECHO_T}yes" >&6
2647 else
2648 echo "$as_me:$LINENO: result: no" >&5
2649echo "${ECHO_T}no" >&6
2650 fi
2651
2652
2653 enablestring=
2654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2655echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2656 no_cache=0
2657 # Check whether --enable-monolithic or --disable-monolithic was given.
2658if test "${enable_monolithic+set}" = set; then
2659 enableval="$enable_monolithic"
2660
2661 if test "$enableval" = yes; then
2662 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2663 else
2664 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2665 fi
2666
2667else
2668
2669 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2670 if test "x$LINE" != x ; then
2671 eval "DEFAULT_$LINE"
2672 else
2673 no_cache=1
2674 fi
2675
2676 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2677
2678fi;
2679
2680 eval "$ac_cv_use_monolithic"
2681 if test "$no_cache" != 1; then
2682 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2683 fi
2684
2685 if test "$wxUSE_MONOLITHIC" = yes; then
2686 echo "$as_me:$LINENO: result: yes" >&5
2687echo "${ECHO_T}yes" >&6
2688 else
2689 echo "$as_me:$LINENO: result: no" >&5
2690echo "${ECHO_T}no" >&6
2691 fi
2692
2693
2694 enablestring=
2695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2696echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2697 no_cache=0
2698 # Check whether --enable-plugins or --disable-plugins was given.
2699if test "${enable_plugins+set}" = set; then
2700 enableval="$enable_plugins"
2701
2702 if test "$enableval" = yes; then
2703 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2704 else
2705 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2706 fi
2707
2708else
2709
2710 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2711 if test "x$LINE" != x ; then
2712 eval "DEFAULT_$LINE"
2713 else
2714 no_cache=1
2715 fi
2716
2717 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2718
2719fi;
2720
2721 eval "$ac_cv_use_plugins"
2722 if test "$no_cache" != 1; then
2723 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2724 fi
2725
2726 if test "$wxUSE_PLUGINS" = yes; then
2727 echo "$as_me:$LINENO: result: yes" >&5
2728echo "${ECHO_T}yes" >&6
2729 else
2730 echo "$as_me:$LINENO: result: no" >&5
2731echo "${ECHO_T}no" >&6
2732 fi
2733
2734
1c14217d
VZ
2735 withstring=without
2736 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2737echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2738 no_cache=0
2739
2740# Check whether --with-subdirs or --without-subdirs was given.
2741if test "${with_subdirs+set}" = set; then
2742 withval="$with_subdirs"
2743
2744 if test "$withval" = yes; then
2745 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2746 else
2747 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2748 fi
2749
2750else
2751
2752 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2753 if test "x$LINE" != x ; then
2754 eval "DEFAULT_$LINE"
2755 else
2756 no_cache=1
2757 fi
2758
2759 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2760
2761fi;
2762
2763 eval "$ac_cv_use_subdirs"
2764 if test "$no_cache" != 1; then
2765 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2766 fi
2767
2768 if test "$wxWITH_SUBDIRS" = yes; then
2769 echo "$as_me:$LINENO: result: yes" >&5
2770echo "${ECHO_T}yes" >&6
2771 else
2772 echo "$as_me:$LINENO: result: no" >&5
2773echo "${ECHO_T}no" >&6
2774 fi
2775
2776
a848cd7e
SC
2777if test "$wxUSE_GUI" = "yes"; then
2778
2779
2780 enablestring=
2781 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2782echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2783 no_cache=0
2784 # Check whether --enable-universal or --disable-universal was given.
2785if test "${enable_universal+set}" = set; then
2786 enableval="$enable_universal"
2787
2788 if test "$enableval" = yes; then
2789 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2790 else
2791 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2792 fi
2793
2794else
2795
2796 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2797 if test "x$LINE" != x ; then
2798 eval "DEFAULT_$LINE"
2799 else
2800 no_cache=1
2801 fi
2802
2803 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2804
2805fi;
2806
2807 eval "$ac_cv_use_universal"
2808 if test "$no_cache" != 1; then
2809 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2810 fi
2811
2812 if test "$wxUSE_UNIVERSAL" = yes; then
2813 echo "$as_me:$LINENO: result: yes" >&5
2814echo "${ECHO_T}yes" >&6
2815 else
2816 echo "$as_me:$LINENO: result: no" >&5
2817echo "${ECHO_T}no" >&6
2818 fi
2819
2820
2821# Check whether --with-gtk or --without-gtk was given.
2822if test "${with_gtk+set}" = set; then
2823 withval="$with_gtk"
2824 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2825fi;
2826
2827# Check whether --with-motif or --without-motif was given.
2828if test "${with_motif+set}" = set; then
2829 withval="$with_motif"
2830 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2831fi;
2832
2833# Check whether --with-mac or --without-mac was given.
2834if test "${with_mac+set}" = set; then
2835 withval="$with_mac"
c228d3a4 2836 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2837fi;
2838
2839# Check whether --with-cocoa or --without-cocoa was given.
2840if test "${with_cocoa+set}" = set; then
2841 withval="$with_cocoa"
c228d3a4 2842 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2843fi;
2844
2845# Check whether --with-wine or --without-wine was given.
2846if test "${with_wine+set}" = set; then
2847 withval="$with_wine"
2848 wxUSE_WINE="$withval" CACHE_WINE=1
2849fi;
2850
2851# Check whether --with-msw or --without-msw was given.
2852if test "${with_msw+set}" = set; then
2853 withval="$with_msw"
2854 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2855fi;
2856
2857# Check whether --with-pm or --without-pm was given.
2858if test "${with_pm+set}" = set; then
2859 withval="$with_pm"
2860 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2861fi;
2862
2863# Check whether --with-mgl or --without-mgl was given.
2864if test "${with_mgl+set}" = set; then
2865 withval="$with_mgl"
2866 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2867fi;
2868
b3c86150
VS
2869# Check whether --with-directfb or --without-directfb was given.
2870if test "${with_directfb+set}" = set; then
2871 withval="$with_directfb"
2872 wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2873fi;
2874
a848cd7e
SC
2875# Check whether --with-microwin or --without-microwin was given.
2876if test "${with_microwin+set}" = set; then
2877 withval="$with_microwin"
2878 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2879fi;
2880
2881# Check whether --with-x11 or --without-x11 was given.
2882if test "${with_x11+set}" = set; then
2883 withval="$with_x11"
2884 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2885fi;
2886
2887 enablestring=
2888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2889echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2890 no_cache=0
2891 # Check whether --enable-nanox or --disable-nanox was given.
2892if test "${enable_nanox+set}" = set; then
2893 enableval="$enable_nanox"
2894
2895 if test "$enableval" = yes; then
2896 ac_cv_use_nanox='wxUSE_NANOX=yes'
2897 else
2898 ac_cv_use_nanox='wxUSE_NANOX=no'
2899 fi
2900
2901else
2902
2903 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2904 if test "x$LINE" != x ; then
2905 eval "DEFAULT_$LINE"
2906 else
2907 no_cache=1
2908 fi
2909
2910 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2911
2912fi;
2913
2914 eval "$ac_cv_use_nanox"
2915 if test "$no_cache" != 1; then
2916 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2917 fi
2918
2919 if test "$wxUSE_NANOX" = yes; then
2920 echo "$as_me:$LINENO: result: yes" >&5
2921echo "${ECHO_T}yes" >&6
2922 else
2923 echo "$as_me:$LINENO: result: no" >&5
2924echo "${ECHO_T}no" >&6
2925 fi
2926
2927
f34ca037
MW
2928# Check whether --enable-gtk2 or --disable-gtk2 was given.
2929if test "${enable_gtk2+set}" = set; then
2930 enableval="$enable_gtk2"
2931 wxUSE_GTK2="$enableval"
2932fi;
a848cd7e 2933
a848cd7e
SC
2934 enablestring=
2935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2936echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2937 no_cache=0
2938 # Check whether --enable-gpe or --disable-gpe was given.
2939if test "${enable_gpe+set}" = set; then
2940 enableval="$enable_gpe"
2941
2942 if test "$enableval" = yes; then
2943 ac_cv_use_gpe='wxUSE_GPE=yes'
2944 else
2945 ac_cv_use_gpe='wxUSE_GPE=no'
2946 fi
2947
2948else
2949
2950 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2951 if test "x$LINE" != x ; then
2952 eval "DEFAULT_$LINE"
2953 else
2954 no_cache=1
2955 fi
2956
2957 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2958
2959fi;
2960
2961 eval "$ac_cv_use_gpe"
2962 if test "$no_cache" != 1; then
2963 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2964 fi
2965
2966 if test "$wxUSE_GPE" = yes; then
2967 echo "$as_me:$LINENO: result: yes" >&5
2968echo "${ECHO_T}yes" >&6
2969 else
2970 echo "$as_me:$LINENO: result: no" >&5
2971echo "${ECHO_T}no" >&6
2972 fi
2973
2974
2975
2976 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2977echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2978 no_cache=0
2979
2980# Check whether --with-libpng or --without-libpng was given.
2981if test "${with_libpng+set}" = set; then
2982 withval="$with_libpng"
2983
2984 if test "$withval" = yes; then
2985 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2986 elif test "$withval" = no; then
2987 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2988 elif test "$withval" = sys; then
2989 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2990 elif test "$withval" = builtin; then
2991 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2992 else
2993 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2994echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2995 { (exit 1); exit 1; }; }
2996 fi
2997
2998else
2999
3000 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
3001 if test "x$LINE" != x ; then
3002 eval "DEFAULT_$LINE"
3003 else
3004 no_cache=1
3005 fi
3006
3007 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3008
3009fi;
3010
3011 eval "$ac_cv_use_libpng"
3012 if test "$no_cache" != 1; then
3013 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3014 fi
3015
3016 if test "$wxUSE_LIBPNG" = yes; then
3017 echo "$as_me:$LINENO: result: yes" >&5
3018echo "${ECHO_T}yes" >&6
3019 elif test "$wxUSE_LIBPNG" = no; then
3020 echo "$as_me:$LINENO: result: no" >&5
3021echo "${ECHO_T}no" >&6
3022 elif test "$wxUSE_LIBPNG" = sys; then
3023 echo "$as_me:$LINENO: result: system version" >&5
3024echo "${ECHO_T}system version" >&6
3025 elif test "$wxUSE_LIBPNG" = builtin; then
3026 echo "$as_me:$LINENO: result: builtin version" >&5
3027echo "${ECHO_T}builtin version" >&6
3028 else
3029 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3030echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3031 { (exit 1); exit 1; }; }
3032 fi
3033
3034
3035 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3036echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3037 no_cache=0
3038
3039# Check whether --with-libjpeg or --without-libjpeg was given.
3040if test "${with_libjpeg+set}" = set; then
3041 withval="$with_libjpeg"
3042
3043 if test "$withval" = yes; then
3044 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3045 elif test "$withval" = no; then
3046 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3047 elif test "$withval" = sys; then
3048 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3049 elif test "$withval" = builtin; then
3050 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3051 else
3052 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3053echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3054 { (exit 1); exit 1; }; }
3055 fi
3056
3057else
3058
3059 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3060 if test "x$LINE" != x ; then
3061 eval "DEFAULT_$LINE"
3062 else
3063 no_cache=1
3064 fi
3065
3066 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3067
3068fi;
3069
3070 eval "$ac_cv_use_libjpeg"
3071 if test "$no_cache" != 1; then
3072 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3073 fi
3074
3075 if test "$wxUSE_LIBJPEG" = yes; then
3076 echo "$as_me:$LINENO: result: yes" >&5
3077echo "${ECHO_T}yes" >&6
3078 elif test "$wxUSE_LIBJPEG" = no; then
3079 echo "$as_me:$LINENO: result: no" >&5
3080echo "${ECHO_T}no" >&6
3081 elif test "$wxUSE_LIBJPEG" = sys; then
3082 echo "$as_me:$LINENO: result: system version" >&5
3083echo "${ECHO_T}system version" >&6
3084 elif test "$wxUSE_LIBJPEG" = builtin; then
3085 echo "$as_me:$LINENO: result: builtin version" >&5
3086echo "${ECHO_T}builtin version" >&6
3087 else
3088 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3089echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3090 { (exit 1); exit 1; }; }
3091 fi
3092
3093
3094 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3095echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3096 no_cache=0
3097
3098# Check whether --with-libtiff or --without-libtiff was given.
3099if test "${with_libtiff+set}" = set; then
3100 withval="$with_libtiff"
3101
3102 if test "$withval" = yes; then
3103 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3104 elif test "$withval" = no; then
3105 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3106 elif test "$withval" = sys; then
3107 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3108 elif test "$withval" = builtin; then
3109 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3110 else
3111 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3112echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3113 { (exit 1); exit 1; }; }
3114 fi
3115
3116else
3117
3118 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3119 if test "x$LINE" != x ; then
3120 eval "DEFAULT_$LINE"
3121 else
3122 no_cache=1
3123 fi
3124
3125 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3126
3127fi;
3128
3129 eval "$ac_cv_use_libtiff"
3130 if test "$no_cache" != 1; then
3131 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3132 fi
3133
3134 if test "$wxUSE_LIBTIFF" = yes; then
3135 echo "$as_me:$LINENO: result: yes" >&5
3136echo "${ECHO_T}yes" >&6
3137 elif test "$wxUSE_LIBTIFF" = no; then
3138 echo "$as_me:$LINENO: result: no" >&5
3139echo "${ECHO_T}no" >&6
3140 elif test "$wxUSE_LIBTIFF" = sys; then
3141 echo "$as_me:$LINENO: result: system version" >&5
3142echo "${ECHO_T}system version" >&6
3143 elif test "$wxUSE_LIBTIFF" = builtin; then
3144 echo "$as_me:$LINENO: result: builtin version" >&5
3145echo "${ECHO_T}builtin version" >&6
3146 else
3147 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3148echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3149 { (exit 1); exit 1; }; }
3150 fi
3151
3152
3153 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3154echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3155 no_cache=0
3156
3157# Check whether --with-libxpm or --without-libxpm was given.
3158if test "${with_libxpm+set}" = set; then
3159 withval="$with_libxpm"
3160
3161 if test "$withval" = yes; then
3162 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3163 elif test "$withval" = no; then
3164 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3165 elif test "$withval" = sys; then
3166 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3167 elif test "$withval" = builtin; then
3168 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3169 else
3170 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3171echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3172 { (exit 1); exit 1; }; }
3173 fi
3174
3175else
3176
3177 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3178 if test "x$LINE" != x ; then
3179 eval "DEFAULT_$LINE"
3180 else
3181 no_cache=1
3182 fi
3183
3184 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3185
3186fi;
3187
3188 eval "$ac_cv_use_libxpm"
3189 if test "$no_cache" != 1; then
3190 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3191 fi
3192
3193 if test "$wxUSE_LIBXPM" = yes; then
3194 echo "$as_me:$LINENO: result: yes" >&5
3195echo "${ECHO_T}yes" >&6
3196 elif test "$wxUSE_LIBXPM" = no; then
3197 echo "$as_me:$LINENO: result: no" >&5
3198echo "${ECHO_T}no" >&6
3199 elif test "$wxUSE_LIBXPM" = sys; then
3200 echo "$as_me:$LINENO: result: system version" >&5
3201echo "${ECHO_T}system version" >&6
3202 elif test "$wxUSE_LIBXPM" = builtin; then
3203 echo "$as_me:$LINENO: result: builtin version" >&5
3204echo "${ECHO_T}builtin version" >&6
3205 else
3206 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3207echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3208 { (exit 1); exit 1; }; }
3209 fi
3210
3211
1c14217d
VZ
3212 withstring=
3213 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3214echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3215 no_cache=0
3216
3217# Check whether --with-libmspack or --without-libmspack was given.
3218if test "${with_libmspack+set}" = set; then
3219 withval="$with_libmspack"
3220
3221 if test "$withval" = yes; then
3222 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3223 else
3224 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3225 fi
3226
3227else
3228
3229 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3230 if test "x$LINE" != x ; then
3231 eval "DEFAULT_$LINE"
3232 else
3233 no_cache=1
3234 fi
3235
3236 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3237
3238fi;
3239
3240 eval "$ac_cv_use_libmspack"
3241 if test "$no_cache" != 1; then
3242 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3243 fi
3244
3245 if test "$wxUSE_LIBMSPACK" = yes; then
3246 echo "$as_me:$LINENO: result: yes" >&5
3247echo "${ECHO_T}yes" >&6
3248 else
3249 echo "$as_me:$LINENO: result: no" >&5
3250echo "${ECHO_T}no" >&6
3251 fi
3252
3253
1c14217d
VZ
3254 withstring=
3255 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3256echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3257 no_cache=0
3258
3259# Check whether --with-sdl or --without-sdl was given.
3260if test "${with_sdl+set}" = set; then
3261 withval="$with_sdl"
3262
3263 if test "$withval" = yes; then
3264 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3265 else
3266 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3267 fi
3268
3269else
3270
3271 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3272 if test "x$LINE" != x ; then
3273 eval "DEFAULT_$LINE"
3274 else
3275 no_cache=1
3276 fi
3277
3278 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3279
3280fi;
3281
3282 eval "$ac_cv_use_sdl"
3283 if test "$no_cache" != 1; then
3284 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3285 fi
3286
3287 if test "$wxUSE_LIBSDL" = yes; then
3288 echo "$as_me:$LINENO: result: yes" >&5
3289echo "${ECHO_T}yes" >&6
3290 else
3291 echo "$as_me:$LINENO: result: no" >&5
3292echo "${ECHO_T}no" >&6
3293 fi
3294
3295
1c14217d
VZ
3296 withstring=
3297 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3298echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3299 no_cache=0
3300
3301# Check whether --with-gnomeprint or --without-gnomeprint was given.
3302if test "${with_gnomeprint+set}" = set; then
3303 withval="$with_gnomeprint"
3304
3305 if test "$withval" = yes; then
3306 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3307 else
3308 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3309 fi
3310
3311else
3312
3313 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3314 if test "x$LINE" != x ; then
3315 eval "DEFAULT_$LINE"
3316 else
3317 no_cache=1
3318 fi
3319
3320 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3321
3322fi;
3323
3324 eval "$ac_cv_use_gnomeprint"
3325 if test "$no_cache" != 1; then
3326 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3327 fi
3328
3329 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3330 echo "$as_me:$LINENO: result: yes" >&5
3331echo "${ECHO_T}yes" >&6
3332 else
3333 echo "$as_me:$LINENO: result: no" >&5
3334echo "${ECHO_T}no" >&6
3335 fi
3336
3337
2b850ae1
RR
3338 withstring=
3339 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3340echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3341 no_cache=0
3342
3343# Check whether --with-gnomevfs or --without-gnomevfs was given.
3344if test "${with_gnomevfs+set}" = set; then
3345 withval="$with_gnomevfs"
3346
3347 if test "$withval" = yes; then
3348 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3349 else
3350 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3351 fi
3352
3353else
3354
3355 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3356 if test "x$LINE" != x ; then
3357 eval "DEFAULT_$LINE"
3358 else
3359 no_cache=1
3360 fi
3361
3362 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3363
3364fi;
3365
3366 eval "$ac_cv_use_gnomevfs"
3367 if test "$no_cache" != 1; then
3368 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3369 fi
3370
3371 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3372 echo "$as_me:$LINENO: result: yes" >&5
3373echo "${ECHO_T}yes" >&6
3374 else
3375 echo "$as_me:$LINENO: result: no" >&5
3376echo "${ECHO_T}no" >&6
3377 fi
3378
3379
3565d135
RR
3380 withstring=
3381 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3382echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3383 no_cache=0
3384
3385# Check whether --with-hildon or --without-hildon was given.
3386if test "${with_hildon+set}" = set; then
3387 withval="$with_hildon"
3388
3389 if test "$withval" = yes; then
3390 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3391 else
3392 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3393 fi
3394
3395else
3396
3397 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3398 if test "x$LINE" != x ; then
3399 eval "DEFAULT_$LINE"
3400 else
3401 no_cache=1
3402 fi
3403
3404 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3405
3406fi;
3407
3408 eval "$ac_cv_use_hildon"
3409 if test "$no_cache" != 1; then
3410 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3411 fi
3412
3413 if test "$wxUSE_LIBHILDON" = yes; then
3414 echo "$as_me:$LINENO: result: yes" >&5
3415echo "${ECHO_T}yes" >&6
3416 else
3417 echo "$as_me:$LINENO: result: no" >&5
3418echo "${ECHO_T}no" >&6
3419 fi
3420
3421
1c14217d
VZ
3422 withstring=
3423 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3424echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3425 no_cache=0
3426
3427# Check whether --with-opengl or --without-opengl was given.
3428if test "${with_opengl+set}" = set; then
3429 withval="$with_opengl"
3430
3431 if test "$withval" = yes; then
3432 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3433 else
3434 ac_cv_use_opengl='wxUSE_OPENGL=no'
3435 fi
3436
3437else
3438
3439 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3440 if test "x$LINE" != x ; then
3441 eval "DEFAULT_$LINE"
3442 else
3443 no_cache=1
3444 fi
3445
3446 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3447
3448fi;
3449
3450 eval "$ac_cv_use_opengl"
3451 if test "$no_cache" != 1; then
3452 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3453 fi
3454
3455 if test "$wxUSE_OPENGL" = yes; then
3456 echo "$as_me:$LINENO: result: yes" >&5
3457echo "${ECHO_T}yes" >&6
3458 else
3459 echo "$as_me:$LINENO: result: no" >&5
3460echo "${ECHO_T}no" >&6
3461 fi
3462
3463
4353a8df
VZ
3464if test "$wxUSE_UNIVERSAL" = "yes"; then
3465
3466# Check whether --with-themes or --without-themes was given.
3467if test "${with_themes+set}" = set; then
3468 withval="$with_themes"
3469 wxUNIV_THEMES="$withval"
3470fi;
3471fi
3472
a848cd7e
SC
3473fi
3474
3475
1c14217d
VZ
3476 withstring=
3477 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3478echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3479 no_cache=0
3480
3481# Check whether --with-dmalloc or --without-dmalloc was given.
3482if test "${with_dmalloc+set}" = set; then
3483 withval="$with_dmalloc"
3484
3485 if test "$withval" = yes; then
3486 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3487 else
3488 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3489 fi
3490
3491else
3492
3493 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3494 if test "x$LINE" != x ; then
3495 eval "DEFAULT_$LINE"
3496 else
3497 no_cache=1
3498 fi
3499
3500 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3501
3502fi;
3503
3504 eval "$ac_cv_use_dmalloc"
3505 if test "$no_cache" != 1; then
3506 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3507 fi
3508
3509 if test "$wxUSE_DMALLOC" = yes; then
3510 echo "$as_me:$LINENO: result: yes" >&5
3511echo "${ECHO_T}yes" >&6
3512 else
3513 echo "$as_me:$LINENO: result: no" >&5
3514echo "${ECHO_T}no" >&6
3515 fi
3516
3517
3518 echo "$as_me:$LINENO: checking for --with-regex" >&5
3519echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3520 no_cache=0
3521
3522# Check whether --with-regex or --without-regex was given.
3523if test "${with_regex+set}" = set; then
3524 withval="$with_regex"
3525
3526 if test "$withval" = yes; then
3527 ac_cv_use_regex='wxUSE_REGEX=yes'
3528 elif test "$withval" = no; then
3529 ac_cv_use_regex='wxUSE_REGEX=no'
3530 elif test "$withval" = sys; then
3531 ac_cv_use_regex='wxUSE_REGEX=sys'
3532 elif test "$withval" = builtin; then
3533 ac_cv_use_regex='wxUSE_REGEX=builtin'
3534 else
3535 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3536echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3537 { (exit 1); exit 1; }; }
3538 fi
3539
3540else
3541
3542 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3543 if test "x$LINE" != x ; then
3544 eval "DEFAULT_$LINE"
3545 else
3546 no_cache=1
3547 fi
3548
3549 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3550
3551fi;
3552
3553 eval "$ac_cv_use_regex"
3554 if test "$no_cache" != 1; then
3555 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3556 fi
3557
3558 if test "$wxUSE_REGEX" = yes; then
3559 echo "$as_me:$LINENO: result: yes" >&5
3560echo "${ECHO_T}yes" >&6
3561 elif test "$wxUSE_REGEX" = no; then
3562 echo "$as_me:$LINENO: result: no" >&5
3563echo "${ECHO_T}no" >&6
3564 elif test "$wxUSE_REGEX" = sys; then
3565 echo "$as_me:$LINENO: result: system version" >&5
3566echo "${ECHO_T}system version" >&6
3567 elif test "$wxUSE_REGEX" = builtin; then
3568 echo "$as_me:$LINENO: result: builtin version" >&5
3569echo "${ECHO_T}builtin version" >&6
3570 else
3571 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3572echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3573 { (exit 1); exit 1; }; }
3574 fi
3575
3576
3577 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3578echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3579 no_cache=0
3580
3581# Check whether --with-zlib or --without-zlib was given.
3582if test "${with_zlib+set}" = set; then
3583 withval="$with_zlib"
3584
3585 if test "$withval" = yes; then
3586 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3587 elif test "$withval" = no; then
3588 ac_cv_use_zlib='wxUSE_ZLIB=no'
3589 elif test "$withval" = sys; then
3590 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3591 elif test "$withval" = builtin; then
3592 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3593 else
3594 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3595echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3596 { (exit 1); exit 1; }; }
3597 fi
3598
3599else
3600
3601 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3602 if test "x$LINE" != x ; then
3603 eval "DEFAULT_$LINE"
3604 else
3605 no_cache=1
3606 fi
3607
3608 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3609
3610fi;
3611
3612 eval "$ac_cv_use_zlib"
3613 if test "$no_cache" != 1; then
3614 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3615 fi
3616
3617 if test "$wxUSE_ZLIB" = yes; then
3618 echo "$as_me:$LINENO: result: yes" >&5
3619echo "${ECHO_T}yes" >&6
3620 elif test "$wxUSE_ZLIB" = no; then
3621 echo "$as_me:$LINENO: result: no" >&5
3622echo "${ECHO_T}no" >&6
3623 elif test "$wxUSE_ZLIB" = sys; then
3624 echo "$as_me:$LINENO: result: system version" >&5
3625echo "${ECHO_T}system version" >&6
3626 elif test "$wxUSE_ZLIB" = builtin; then
3627 echo "$as_me:$LINENO: result: builtin version" >&5
3628echo "${ECHO_T}builtin version" >&6
3629 else
3630 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3631echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3632 { (exit 1); exit 1; }; }
3633 fi
3634
3635
3636 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3637echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3638 no_cache=0
3639
3640# Check whether --with-odbc or --without-odbc was given.
3641if test "${with_odbc+set}" = set; then
3642 withval="$with_odbc"
3643
3644 if test "$withval" = yes; then
3645 ac_cv_use_odbc='wxUSE_ODBC=yes'
3646 elif test "$withval" = no; then
3647 ac_cv_use_odbc='wxUSE_ODBC=no'
3648 elif test "$withval" = sys; then
3649 ac_cv_use_odbc='wxUSE_ODBC=sys'
3650 elif test "$withval" = builtin; then
3651 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3652 else
3653 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3654echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3655 { (exit 1); exit 1; }; }
3656 fi
3657
3658else
3659
3660 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3661 if test "x$LINE" != x ; then
3662 eval "DEFAULT_$LINE"
3663 else
3664 no_cache=1
3665 fi
3666
3667 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3668
3669fi;
3670
3671 eval "$ac_cv_use_odbc"
3672 if test "$no_cache" != 1; then
3673 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3674 fi
3675
3676 if test "$wxUSE_ODBC" = yes; then
3677 echo "$as_me:$LINENO: result: yes" >&5
3678echo "${ECHO_T}yes" >&6
3679 elif test "$wxUSE_ODBC" = no; then
3680 echo "$as_me:$LINENO: result: no" >&5
3681echo "${ECHO_T}no" >&6
3682 elif test "$wxUSE_ODBC" = sys; then
3683 echo "$as_me:$LINENO: result: system version" >&5
3684echo "${ECHO_T}system version" >&6
3685 elif test "$wxUSE_ODBC" = builtin; then
3686 echo "$as_me:$LINENO: result: builtin version" >&5
3687echo "${ECHO_T}builtin version" >&6
3688 else
3689 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3690echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3691 { (exit 1); exit 1; }; }
3692 fi
3693
3694
3695 echo "$as_me:$LINENO: checking for --with-expat" >&5
3696echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3697 no_cache=0
3698
3699# Check whether --with-expat or --without-expat was given.
3700if test "${with_expat+set}" = set; then
3701 withval="$with_expat"
3702
3703 if test "$withval" = yes; then
3704 ac_cv_use_expat='wxUSE_EXPAT=yes'
3705 elif test "$withval" = no; then
3706 ac_cv_use_expat='wxUSE_EXPAT=no'
3707 elif test "$withval" = sys; then
3708 ac_cv_use_expat='wxUSE_EXPAT=sys'
3709 elif test "$withval" = builtin; then
3710 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3711 else
3712 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3713echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3714 { (exit 1); exit 1; }; }
3715 fi
3716
3717else
3718
3719 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3720 if test "x$LINE" != x ; then
3721 eval "DEFAULT_$LINE"
3722 else
3723 no_cache=1
3724 fi
3725
3726 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3727
3728fi;
3729
3730 eval "$ac_cv_use_expat"
3731 if test "$no_cache" != 1; then
3732 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3733 fi
3734
3735 if test "$wxUSE_EXPAT" = yes; then
3736 echo "$as_me:$LINENO: result: yes" >&5
3737echo "${ECHO_T}yes" >&6
3738 elif test "$wxUSE_EXPAT" = no; then
3739 echo "$as_me:$LINENO: result: no" >&5
3740echo "${ECHO_T}no" >&6
3741 elif test "$wxUSE_EXPAT" = sys; then
3742 echo "$as_me:$LINENO: result: system version" >&5
3743echo "${ECHO_T}system version" >&6
3744 elif test "$wxUSE_EXPAT" = builtin; then
3745 echo "$as_me:$LINENO: result: builtin version" >&5
3746echo "${ECHO_T}builtin version" >&6
3747 else
3748 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3749echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3750 { (exit 1); exit 1; }; }
3751 fi
3752
3753
3754
3755
3756 enablestring=
3757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3758echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3759 no_cache=0
3760 # Check whether --enable-shared or --disable-shared was given.
3761if test "${enable_shared+set}" = set; then
3762 enableval="$enable_shared"
3763
3764 if test "$enableval" = yes; then
3765 ac_cv_use_shared='wxUSE_SHARED=yes'
3766 else
3767 ac_cv_use_shared='wxUSE_SHARED=no'
3768 fi
3769
3770else
3771
3772 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3773 if test "x$LINE" != x ; then
3774 eval "DEFAULT_$LINE"
3775 else
3776 no_cache=1
3777 fi
3778
3779 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3780
3781fi;
3782
3783 eval "$ac_cv_use_shared"
3784 if test "$no_cache" != 1; then
3785 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3786 fi
3787
3788 if test "$wxUSE_SHARED" = yes; then
3789 echo "$as_me:$LINENO: result: yes" >&5
3790echo "${ECHO_T}yes" >&6
3791 else
3792 echo "$as_me:$LINENO: result: no" >&5
3793echo "${ECHO_T}no" >&6
3794 fi
3795
3796
3797 enablestring=
3798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3799echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3800 no_cache=0
3801 # Check whether --enable-optimise or --disable-optimise was given.
3802if test "${enable_optimise+set}" = set; then
3803 enableval="$enable_optimise"
3804
3805 if test "$enableval" = yes; then
3806 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3807 else
3808 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3809 fi
3810
3811else
3812
3813 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3814 if test "x$LINE" != x ; then
3815 eval "DEFAULT_$LINE"
3816 else
3817 no_cache=1
3818 fi
3819
3820 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3821
3822fi;
3823
3824 eval "$ac_cv_use_optimise"
3825 if test "$no_cache" != 1; then
3826 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3827 fi
3828
3829 if test "$wxUSE_OPTIMISE" = yes; then
3830 echo "$as_me:$LINENO: result: yes" >&5
3831echo "${ECHO_T}yes" >&6
3832 else
3833 echo "$as_me:$LINENO: result: no" >&5
3834echo "${ECHO_T}no" >&6
3835 fi
3836
3837
3838 enablestring=
3839 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3840echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3841 no_cache=0
3842 # Check whether --enable-debug or --disable-debug was given.
3843if test "${enable_debug+set}" = set; then
3844 enableval="$enable_debug"
3845
3846 if test "$enableval" = yes; then
3847 ac_cv_use_debug='wxUSE_DEBUG=yes'
3848 else
3849 ac_cv_use_debug='wxUSE_DEBUG=no'
3850 fi
3851
3852else
3853
3854 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3855 if test "x$LINE" != x ; then
3856 eval "DEFAULT_$LINE"
3857 else
3858 no_cache=1
3859 fi
3860
3861 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3862
3863fi;
3864
3865 eval "$ac_cv_use_debug"
3866 if test "$no_cache" != 1; then
3867 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3868 fi
3869
3870 if test "$wxUSE_DEBUG" = yes; then
3871 echo "$as_me:$LINENO: result: yes" >&5
3872echo "${ECHO_T}yes" >&6
3873 else
3874 echo "$as_me:$LINENO: result: no" >&5
3875echo "${ECHO_T}no" >&6
3876 fi
3877
3878
3879 enablestring=
3880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3881echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3882 no_cache=0
3883 # Check whether --enable-stl or --disable-stl was given.
3884if test "${enable_stl+set}" = set; then
3885 enableval="$enable_stl"
3886
3887 if test "$enableval" = yes; then
3888 ac_cv_use_stl='wxUSE_STL=yes'
3889 else
3890 ac_cv_use_stl='wxUSE_STL=no'
3891 fi
3892
3893else
3894
3895 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3896 if test "x$LINE" != x ; then
3897 eval "DEFAULT_$LINE"
3898 else
3899 no_cache=1
3900 fi
3901
3902 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3903
3904fi;
3905
3906 eval "$ac_cv_use_stl"
3907 if test "$no_cache" != 1; then
3908 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3909 fi
3910
3911 if test "$wxUSE_STL" = yes; then
3912 echo "$as_me:$LINENO: result: yes" >&5
3913echo "${ECHO_T}yes" >&6
3914 else
3915 echo "$as_me:$LINENO: result: no" >&5
3916echo "${ECHO_T}no" >&6
3917 fi
3918
3919if test "$USE_OS2" = "1"; then
69120ee4 3920 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3921
3922 enablestring=
3923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3924echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3925 no_cache=0
3926 # Check whether --enable-omf or --disable-omf was given.
3927if test "${enable_omf+set}" = set; then
3928 enableval="$enable_omf"
3929
3930 if test "$enableval" = yes; then
3931 ac_cv_use_omf='wxUSE_OMF=yes'
3932 else
3933 ac_cv_use_omf='wxUSE_OMF=no'
3934 fi
3935
3936else
3937
3938 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3939 if test "x$LINE" != x ; then
3940 eval "DEFAULT_$LINE"
3941 else
3942 no_cache=1
3943 fi
3944
3945 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3946
3947fi;
3948
3949 eval "$ac_cv_use_omf"
3950 if test "$no_cache" != 1; then
3951 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3952 fi
3953
3954 if test "$wxUSE_OMF" = yes; then
3955 echo "$as_me:$LINENO: result: yes" >&5
3956echo "${ECHO_T}yes" >&6
3957 else
3958 echo "$as_me:$LINENO: result: no" >&5
3959echo "${ECHO_T}no" >&6
3960 fi
3961
3962fi
3963
3964if test "$wxUSE_DEBUG" = "yes"; then
3965 DEFAULT_wxUSE_DEBUG_FLAG=yes
3966 DEFAULT_wxUSE_DEBUG_INFO=yes
3967 BUILD=debug
3968elif test "$wxUSE_DEBUG" = "no"; then
3969 DEFAULT_wxUSE_DEBUG_FLAG=no
3970 DEFAULT_wxUSE_DEBUG_INFO=no
3971 BUILD=release
3972fi
3973
3974
3975 enablestring=
3976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3977echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3978 no_cache=0
3979 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3980if test "${enable_debug_flag+set}" = set; then
3981 enableval="$enable_debug_flag"
3982
3983 if test "$enableval" = yes; then
3984 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3985 else
3986 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3987 fi
3988
3989else
3990
3991 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3992 if test "x$LINE" != x ; then
3993 eval "DEFAULT_$LINE"
3994 else
3995 no_cache=1
3996 fi
3997
3998 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3999
4000fi;
4001
4002 eval "$ac_cv_use_debug_flag"
4003 if test "$no_cache" != 1; then
4004 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
4005 fi
4006
4007 if test "$wxUSE_DEBUG_FLAG" = yes; then
4008 echo "$as_me:$LINENO: result: yes" >&5
4009echo "${ECHO_T}yes" >&6
4010 else
4011 echo "$as_me:$LINENO: result: no" >&5
4012echo "${ECHO_T}no" >&6
4013 fi
4014
4015
4016 enablestring=
4017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4018echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
4019 no_cache=0
4020 # Check whether --enable-debug_info or --disable-debug_info was given.
4021if test "${enable_debug_info+set}" = set; then
4022 enableval="$enable_debug_info"
4023
4024 if test "$enableval" = yes; then
4025 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4026 else
4027 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4028 fi
4029
4030else
4031
4032 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4033 if test "x$LINE" != x ; then
4034 eval "DEFAULT_$LINE"
4035 else
4036 no_cache=1
4037 fi
4038
4039 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4040
4041fi;
4042
4043 eval "$ac_cv_use_debug_info"
4044 if test "$no_cache" != 1; then
4045 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4046 fi
4047
4048 if test "$wxUSE_DEBUG_INFO" = yes; then
4049 echo "$as_me:$LINENO: result: yes" >&5
4050echo "${ECHO_T}yes" >&6
4051 else
4052 echo "$as_me:$LINENO: result: no" >&5
4053echo "${ECHO_T}no" >&6
4054 fi
4055
4056
4057 enablestring=
4058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4059echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4060 no_cache=0
4061 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4062if test "${enable_debug_gdb+set}" = set; then
4063 enableval="$enable_debug_gdb"
4064
4065 if test "$enableval" = yes; then
4066 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4067 else
4068 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4069 fi
4070
4071else
4072
4073 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4074 if test "x$LINE" != x ; then
4075 eval "DEFAULT_$LINE"
4076 else
4077 no_cache=1
4078 fi
4079
4080 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4081
4082fi;
4083
4084 eval "$ac_cv_use_debug_gdb"
4085 if test "$no_cache" != 1; then
4086 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4087 fi
4088
4089 if test "$wxUSE_DEBUG_GDB" = yes; then
4090 echo "$as_me:$LINENO: result: yes" >&5
4091echo "${ECHO_T}yes" >&6
4092 else
4093 echo "$as_me:$LINENO: result: no" >&5
4094echo "${ECHO_T}no" >&6
4095 fi
4096
4097
4098 enablestring=
4099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4100echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4101 no_cache=0
4102 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4103if test "${enable_debug_cntxt+set}" = set; then
4104 enableval="$enable_debug_cntxt"
4105
4106 if test "$enableval" = yes; then
4107 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4108 else
4109 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4110 fi
4111
4112else
4113
4114 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4115 if test "x$LINE" != x ; then
4116 eval "DEFAULT_$LINE"
4117 else
4118 no_cache=1
4119 fi
4120
4121 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4122
4123fi;
4124
4125 eval "$ac_cv_use_debug_cntxt"
4126 if test "$no_cache" != 1; then
4127 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4128 fi
4129
4130 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4131 echo "$as_me:$LINENO: result: yes" >&5
4132echo "${ECHO_T}yes" >&6
4133 else
4134 echo "$as_me:$LINENO: result: no" >&5
4135echo "${ECHO_T}no" >&6
4136 fi
4137
4138
4139 enablestring=
4140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4141echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4142 no_cache=0
4143 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4144if test "${enable_mem_tracing+set}" = set; then
4145 enableval="$enable_mem_tracing"
4146
4147 if test "$enableval" = yes; then
4148 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4149 else
4150 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4151 fi
4152
4153else
4154
4155 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4156 if test "x$LINE" != x ; then
4157 eval "DEFAULT_$LINE"
4158 else
4159 no_cache=1
4160 fi
4161
4162 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4163
4164fi;
4165
4166 eval "$ac_cv_use_mem_tracing"
4167 if test "$no_cache" != 1; then
4168 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4169 fi
4170
4171 if test "$wxUSE_MEM_TRACING" = yes; then
4172 echo "$as_me:$LINENO: result: yes" >&5
4173echo "${ECHO_T}yes" >&6
4174 else
4175 echo "$as_me:$LINENO: result: no" >&5
4176echo "${ECHO_T}no" >&6
4177 fi
4178
4179
4180 enablestring=
4181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4182echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4183 no_cache=0
4184 # Check whether --enable-profile or --disable-profile was given.
4185if test "${enable_profile+set}" = set; then
4186 enableval="$enable_profile"
4187
4188 if test "$enableval" = yes; then
4189 ac_cv_use_profile='wxUSE_PROFILE=yes'
4190 else
4191 ac_cv_use_profile='wxUSE_PROFILE=no'
4192 fi
4193
4194else
4195
4196 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4197 if test "x$LINE" != x ; then
4198 eval "DEFAULT_$LINE"
4199 else
4200 no_cache=1
4201 fi
4202
4203 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4204
4205fi;
4206
4207 eval "$ac_cv_use_profile"
4208 if test "$no_cache" != 1; then
4209 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4210 fi
4211
4212 if test "$wxUSE_PROFILE" = yes; then
4213 echo "$as_me:$LINENO: result: yes" >&5
4214echo "${ECHO_T}yes" >&6
4215 else
4216 echo "$as_me:$LINENO: result: no" >&5
4217echo "${ECHO_T}no" >&6
4218 fi
4219
4220
4221 enablestring=
4222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4223echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4224 no_cache=0
4225 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4226if test "${enable_no_rtti+set}" = set; then
4227 enableval="$enable_no_rtti"
4228
4229 if test "$enableval" = yes; then
4230 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4231 else
4232 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4233 fi
4234
4235else
4236
4237 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4238 if test "x$LINE" != x ; then
4239 eval "DEFAULT_$LINE"
4240 else
4241 no_cache=1
4242 fi
4243
4244 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4245
4246fi;
4247
4248 eval "$ac_cv_use_no_rtti"
4249 if test "$no_cache" != 1; then
4250 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4251 fi
4252
4253 if test "$wxUSE_NO_RTTI" = yes; then
4254 echo "$as_me:$LINENO: result: yes" >&5
4255echo "${ECHO_T}yes" >&6
4256 else
4257 echo "$as_me:$LINENO: result: no" >&5
4258echo "${ECHO_T}no" >&6
4259 fi
4260
4261
4262 enablestring=
4263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4264echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4265 no_cache=0
4266 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4267if test "${enable_no_exceptions+set}" = set; then
4268 enableval="$enable_no_exceptions"
4269
4270 if test "$enableval" = yes; then
4271 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4272 else
4273 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4274 fi
4275
4276else
4277
4278 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4279 if test "x$LINE" != x ; then
4280 eval "DEFAULT_$LINE"
4281 else
4282 no_cache=1
4283 fi
4284
4285 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4286
4287fi;
4288
4289 eval "$ac_cv_use_no_exceptions"
4290 if test "$no_cache" != 1; then
4291 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4292 fi
4293
4294 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4295 echo "$as_me:$LINENO: result: yes" >&5
4296echo "${ECHO_T}yes" >&6
4297 else
4298 echo "$as_me:$LINENO: result: no" >&5
4299echo "${ECHO_T}no" >&6
4300 fi
4301
4302
4303 enablestring=
4304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4305echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4306 no_cache=0
4307 # Check whether --enable-permissive or --disable-permissive was given.
4308if test "${enable_permissive+set}" = set; then
4309 enableval="$enable_permissive"
4310
4311 if test "$enableval" = yes; then
4312 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4313 else
4314 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4315 fi
4316
4317else
4318
4319 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4320 if test "x$LINE" != x ; then
4321 eval "DEFAULT_$LINE"
4322 else
4323 no_cache=1
4324 fi
4325
4326 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4327
4328fi;
4329
4330 eval "$ac_cv_use_permissive"
4331 if test "$no_cache" != 1; then
4332 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4333 fi
4334
4335 if test "$wxUSE_PERMISSIVE" = yes; then
4336 echo "$as_me:$LINENO: result: yes" >&5
4337echo "${ECHO_T}yes" >&6
4338 else
4339 echo "$as_me:$LINENO: result: no" >&5
4340echo "${ECHO_T}no" >&6
4341 fi
4342
4343
4344 enablestring=
4345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4346echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4347 no_cache=0
4348 # Check whether --enable-no_deps or --disable-no_deps was given.
4349if test "${enable_no_deps+set}" = set; then
4350 enableval="$enable_no_deps"
4351
4352 if test "$enableval" = yes; then
4353 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4354 else
4355 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4356 fi
4357
4358else
4359
4360 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4361 if test "x$LINE" != x ; then
4362 eval "DEFAULT_$LINE"
4363 else
4364 no_cache=1
4365 fi
4366
4367 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4368
4369fi;
4370
4371 eval "$ac_cv_use_no_deps"
4372 if test "$no_cache" != 1; then
4373 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4374 fi
4375
4376 if test "$wxUSE_NO_DEPS" = yes; then
4377 echo "$as_me:$LINENO: result: yes" >&5
4378echo "${ECHO_T}yes" >&6
4379 else
4380 echo "$as_me:$LINENO: result: no" >&5
4381echo "${ECHO_T}no" >&6
4382 fi
4383
4384
95768535 4385 enablestring=
7afc46ab
KO
4386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4387echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4388 no_cache=0
4389 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4390if test "${enable_universal_binary+set}" = set; then
4391 enableval="$enable_universal_binary"
4392
95768535 4393 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
7afc46ab
KO
4394
4395else
4396
4397 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4398 if test "x$LINE" != x ; then
4399 eval "DEFAULT_$LINE"
95768535 4400 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
7afc46ab
KO
4401 else
4402 no_cache=1
95768535 4403 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
7afc46ab
KO
4404 fi
4405
7afc46ab
KO
4406fi;
4407
95768535 4408 eval "$wx_cv_use_universal_binary"
7afc46ab 4409 if test "$no_cache" != 1; then
95768535 4410 echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
7afc46ab
KO
4411 fi
4412
95768535
MW
4413 echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4414echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
7afc46ab
KO
4415
4416
a848cd7e 4417
dee1a63f
MB
4418 enablestring=enable
4419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4420echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4421 no_cache=0
dee1a63f
MB
4422 # Check whether --enable-compat24 or --disable-compat24 was given.
4423if test "${enable_compat24+set}" = set; then
4424 enableval="$enable_compat24"
a848cd7e
SC
4425
4426 if test "$enableval" = yes; then
dee1a63f 4427 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4428 else
dee1a63f 4429 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4430 fi
4431
4432else
4433
dee1a63f 4434 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4435 if test "x$LINE" != x ; then
4436 eval "DEFAULT_$LINE"
4437 else
4438 no_cache=1
4439 fi
4440
dee1a63f 4441 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4442
4443fi;
4444
dee1a63f 4445 eval "$ac_cv_use_compat24"
a848cd7e 4446 if test "$no_cache" != 1; then
dee1a63f 4447 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4448 fi
4449
dee1a63f 4450 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4451 echo "$as_me:$LINENO: result: yes" >&5
4452echo "${ECHO_T}yes" >&6
4453 else
4454 echo "$as_me:$LINENO: result: no" >&5
4455echo "${ECHO_T}no" >&6
4456 fi
4457
4458
4459 enablestring=disable
dee1a63f
MB
4460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4461echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4462 no_cache=0
dee1a63f
MB
4463 # Check whether --enable-compat26 or --disable-compat26 was given.
4464if test "${enable_compat26+set}" = set; then
4465 enableval="$enable_compat26"
a848cd7e
SC
4466
4467 if test "$enableval" = yes; then
dee1a63f 4468 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4469 else
dee1a63f 4470 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4471 fi
4472
4473else
4474
dee1a63f 4475 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4476 if test "x$LINE" != x ; then
4477 eval "DEFAULT_$LINE"
4478 else
4479 no_cache=1
4480 fi
4481
dee1a63f 4482 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4483
4484fi;
4485
dee1a63f 4486 eval "$ac_cv_use_compat26"
a848cd7e 4487 if test "$no_cache" != 1; then
dee1a63f 4488 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4489 fi
4490
dee1a63f 4491 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4492 echo "$as_me:$LINENO: result: yes" >&5
4493echo "${ECHO_T}yes" >&6
4494 else
4495 echo "$as_me:$LINENO: result: no" >&5
4496echo "${ECHO_T}no" >&6
4497 fi
4498
4499
ffa0583f
RL
4500
4501 enablestring=
4502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4503echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4504 no_cache=0
4505 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4506if test "${enable_rpath+set}" = set; then
4507 enableval="$enable_rpath"
ffa0583f
RL
4508
4509 if test "$enableval" = yes; then
4510 ac_cv_use_rpath='wxUSE_RPATH=yes'
4511 else
4512 ac_cv_use_rpath='wxUSE_RPATH=no'
4513 fi
4514
4515else
4516
4517 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4518 if test "x$LINE" != x ; then
4519 eval "DEFAULT_$LINE"
4520 else
4521 no_cache=1
4522 fi
4523
4524 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4525
a848cd7e
SC
4526fi;
4527
ffa0583f
RL
4528 eval "$ac_cv_use_rpath"
4529 if test "$no_cache" != 1; then
4530 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4531 fi
4532
4533 if test "$wxUSE_RPATH" = yes; then
4534 echo "$as_me:$LINENO: result: yes" >&5
4535echo "${ECHO_T}yes" >&6
4536 else
4537 echo "$as_me:$LINENO: result: no" >&5
4538echo "${ECHO_T}no" >&6
4539 fi
4540
a848cd7e
SC
4541
4542
4543
4544
4545 enablestring=
4546 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4547echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4548 no_cache=0
4549 # Check whether --enable-intl or --disable-intl was given.
4550if test "${enable_intl+set}" = set; then
4551 enableval="$enable_intl"
4552
4553 if test "$enableval" = yes; then
4554 ac_cv_use_intl='wxUSE_INTL=yes'
4555 else
4556 ac_cv_use_intl='wxUSE_INTL=no'
4557 fi
4558
4559else
4560
4561 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4562 if test "x$LINE" != x ; then
4563 eval "DEFAULT_$LINE"
4564 else
4565 no_cache=1
4566 fi
4567
4568 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4569
4570fi;
4571
4572 eval "$ac_cv_use_intl"
4573 if test "$no_cache" != 1; then
4574 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4575 fi
4576
4577 if test "$wxUSE_INTL" = yes; then
4578 echo "$as_me:$LINENO: result: yes" >&5
4579echo "${ECHO_T}yes" >&6
4580 else
4581 echo "$as_me:$LINENO: result: no" >&5
4582echo "${ECHO_T}no" >&6
4583 fi
4584
4585
4586 enablestring=
4587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4588echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4589 no_cache=0
4590 # Check whether --enable-config or --disable-config was given.
4591if test "${enable_config+set}" = set; then
4592 enableval="$enable_config"
4593
4594 if test "$enableval" = yes; then
4595 ac_cv_use_config='wxUSE_CONFIG=yes'
4596 else
4597 ac_cv_use_config='wxUSE_CONFIG=no'
4598 fi
4599
4600else
4601
4602 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4603 if test "x$LINE" != x ; then
4604 eval "DEFAULT_$LINE"
4605 else
4606 no_cache=1
4607 fi
4608
4609 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4610
4611fi;
4612
4613 eval "$ac_cv_use_config"
4614 if test "$no_cache" != 1; then
4615 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4616 fi
4617
4618 if test "$wxUSE_CONFIG" = yes; then
4619 echo "$as_me:$LINENO: result: yes" >&5
4620echo "${ECHO_T}yes" >&6
4621 else
4622 echo "$as_me:$LINENO: result: no" >&5
4623echo "${ECHO_T}no" >&6
4624 fi
4625
4626
4627
4628 enablestring=
4629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4630echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4631 no_cache=0
4632 # Check whether --enable-protocols or --disable-protocols was given.
4633if test "${enable_protocols+set}" = set; then
4634 enableval="$enable_protocols"
4635
4636 if test "$enableval" = yes; then
4637 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4638 else
4639 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4640 fi
4641
4642else
4643
4644 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4645 if test "x$LINE" != x ; then
4646 eval "DEFAULT_$LINE"
4647 else
4648 no_cache=1
4649 fi
4650
4651 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4652
4653fi;
4654
4655 eval "$ac_cv_use_protocols"
4656 if test "$no_cache" != 1; then
4657 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4658 fi
4659
4660 if test "$wxUSE_PROTOCOL" = yes; then
4661 echo "$as_me:$LINENO: result: yes" >&5
4662echo "${ECHO_T}yes" >&6
4663 else
4664 echo "$as_me:$LINENO: result: no" >&5
4665echo "${ECHO_T}no" >&6
4666 fi
4667
4668
4669 enablestring=
4670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4671echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4672 no_cache=0
4673 # Check whether --enable-ftp or --disable-ftp was given.
4674if test "${enable_ftp+set}" = set; then
4675 enableval="$enable_ftp"
4676
4677 if test "$enableval" = yes; then
4678 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4679 else
4680 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4681 fi
4682
4683else
4684
4685 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4686 if test "x$LINE" != x ; then
4687 eval "DEFAULT_$LINE"
4688 else
4689 no_cache=1
4690 fi
4691
4692 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4693
4694fi;
4695
4696 eval "$ac_cv_use_ftp"
4697 if test "$no_cache" != 1; then
4698 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4699 fi
4700
4701 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4702 echo "$as_me:$LINENO: result: yes" >&5
4703echo "${ECHO_T}yes" >&6
4704 else
4705 echo "$as_me:$LINENO: result: no" >&5
4706echo "${ECHO_T}no" >&6
4707 fi
4708
4709
4710 enablestring=
4711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4712echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4713 no_cache=0
4714 # Check whether --enable-http or --disable-http was given.
4715if test "${enable_http+set}" = set; then
4716 enableval="$enable_http"
4717
4718 if test "$enableval" = yes; then
4719 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4720 else
4721 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4722 fi
4723
4724else
4725
4726 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4727 if test "x$LINE" != x ; then
4728 eval "DEFAULT_$LINE"
4729 else
4730 no_cache=1
4731 fi
4732
4733 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4734
4735fi;
4736
4737 eval "$ac_cv_use_http"
4738 if test "$no_cache" != 1; then
4739 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4740 fi
4741
4742 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4743 echo "$as_me:$LINENO: result: yes" >&5
4744echo "${ECHO_T}yes" >&6
4745 else
4746 echo "$as_me:$LINENO: result: no" >&5
4747echo "${ECHO_T}no" >&6
4748 fi
4749
4750
4751 enablestring=
4752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4753echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4754 no_cache=0
4755 # Check whether --enable-fileproto or --disable-fileproto was given.
4756if test "${enable_fileproto+set}" = set; then
4757 enableval="$enable_fileproto"
4758
4759 if test "$enableval" = yes; then
4760 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4761 else
4762 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4763 fi
4764
4765else
4766
4767 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4768 if test "x$LINE" != x ; then
4769 eval "DEFAULT_$LINE"
4770 else
4771 no_cache=1
4772 fi
4773
4774 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4775
4776fi;
4777
4778 eval "$ac_cv_use_fileproto"
4779 if test "$no_cache" != 1; then
4780 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4781 fi
4782
4783 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4784 echo "$as_me:$LINENO: result: yes" >&5
4785echo "${ECHO_T}yes" >&6
4786 else
4787 echo "$as_me:$LINENO: result: no" >&5
4788echo "${ECHO_T}no" >&6
4789 fi
4790
4791
4792 enablestring=
4793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4794echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4795 no_cache=0
4796 # Check whether --enable-sockets or --disable-sockets was given.
4797if test "${enable_sockets+set}" = set; then
4798 enableval="$enable_sockets"
4799
4800 if test "$enableval" = yes; then
4801 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4802 else
4803 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4804 fi
4805
4806else
4807
4808 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4809 if test "x$LINE" != x ; then
4810 eval "DEFAULT_$LINE"
4811 else
4812 no_cache=1
4813 fi
4814
4815 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4816
4817fi;
4818
4819 eval "$ac_cv_use_sockets"
4820 if test "$no_cache" != 1; then
4821 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4822 fi
4823
4824 if test "$wxUSE_SOCKETS" = yes; then
4825 echo "$as_me:$LINENO: result: yes" >&5
4826echo "${ECHO_T}yes" >&6
4827 else
4828 echo "$as_me:$LINENO: result: no" >&5
4829echo "${ECHO_T}no" >&6
4830 fi
4831
4832
4833 enablestring=
4834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4835echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4836 no_cache=0
4837 # Check whether --enable-ole or --disable-ole was given.
4838if test "${enable_ole+set}" = set; then
4839 enableval="$enable_ole"
4840
4841 if test "$enableval" = yes; then
4842 ac_cv_use_ole='wxUSE_OLE=yes'
4843 else
4844 ac_cv_use_ole='wxUSE_OLE=no'
4845 fi
4846
4847else
4848
4849 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4850 if test "x$LINE" != x ; then
4851 eval "DEFAULT_$LINE"
4852 else
4853 no_cache=1
4854 fi
4855
4856 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4857
4858fi;
4859
4860 eval "$ac_cv_use_ole"
4861 if test "$no_cache" != 1; then
4862 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4863 fi
4864
4865 if test "$wxUSE_OLE" = yes; then
4866 echo "$as_me:$LINENO: result: yes" >&5
4867echo "${ECHO_T}yes" >&6
4868 else
4869 echo "$as_me:$LINENO: result: no" >&5
4870echo "${ECHO_T}no" >&6
4871 fi
4872
4873
4874 enablestring=
4875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4876echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4877 no_cache=0
4878 # Check whether --enable-dataobj or --disable-dataobj was given.
4879if test "${enable_dataobj+set}" = set; then
4880 enableval="$enable_dataobj"
4881
4882 if test "$enableval" = yes; then
4883 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4884 else
4885 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4886 fi
4887
4888else
4889
4890 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4891 if test "x$LINE" != x ; then
4892 eval "DEFAULT_$LINE"
4893 else
4894 no_cache=1
4895 fi
4896
4897 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4898
4899fi;
4900
4901 eval "$ac_cv_use_dataobj"
4902 if test "$no_cache" != 1; then
4903 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4904 fi
4905
4906 if test "$wxUSE_DATAOBJ" = yes; then
4907 echo "$as_me:$LINENO: result: yes" >&5
4908echo "${ECHO_T}yes" >&6
4909 else
4910 echo "$as_me:$LINENO: result: no" >&5
4911echo "${ECHO_T}no" >&6
4912 fi
4913
4914
4915
4916 enablestring=
4917 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4918echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4919 no_cache=0
4920 # Check whether --enable-ipc or --disable-ipc was given.
4921if test "${enable_ipc+set}" = set; then
4922 enableval="$enable_ipc"
4923
4924 if test "$enableval" = yes; then
4925 ac_cv_use_ipc='wxUSE_IPC=yes'
4926 else
4927 ac_cv_use_ipc='wxUSE_IPC=no'
4928 fi
4929
4930else
4931
4932 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4933 if test "x$LINE" != x ; then
4934 eval "DEFAULT_$LINE"
4935 else
4936 no_cache=1
4937 fi
4938
4939 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4940
4941fi;
4942
4943 eval "$ac_cv_use_ipc"
4944 if test "$no_cache" != 1; then
4945 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4946 fi
4947
4948 if test "$wxUSE_IPC" = yes; then
4949 echo "$as_me:$LINENO: result: yes" >&5
4950echo "${ECHO_T}yes" >&6
4951 else
4952 echo "$as_me:$LINENO: result: no" >&5
4953echo "${ECHO_T}no" >&6
4954 fi
4955
4956
4957
4958 enablestring=
4959 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4960echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4961 no_cache=0
4962 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4963if test "${enable_apple_ieee+set}" = set; then
4964 enableval="$enable_apple_ieee"
4965
4966 if test "$enableval" = yes; then
4967 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4968 else
4969 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4970 fi
4971
4972else
4973
4974 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4975 if test "x$LINE" != x ; then
4976 eval "DEFAULT_$LINE"
4977 else
4978 no_cache=1
4979 fi
4980
4981 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4982
4983fi;
4984
4985 eval "$ac_cv_use_apple_ieee"
4986 if test "$no_cache" != 1; then
4987 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4988 fi
4989
4990 if test "$wxUSE_APPLE_IEEE" = yes; then
4991 echo "$as_me:$LINENO: result: yes" >&5
4992echo "${ECHO_T}yes" >&6
4993 else
4994 echo "$as_me:$LINENO: result: no" >&5
4995echo "${ECHO_T}no" >&6
4996 fi
4997
4998
81f90336
MW
4999 enablestring=
5000 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
5001echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
5002 no_cache=0
5003 # Check whether --enable-arcstream or --disable-arcstream was given.
5004if test "${enable_arcstream+set}" = set; then
5005 enableval="$enable_arcstream"
5006
5007 if test "$enableval" = yes; then
9e8e867f 5008 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 5009 else
9e8e867f 5010 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
5011 fi
5012
5013else
5014
9e8e867f 5015 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
5016 if test "x$LINE" != x ; then
5017 eval "DEFAULT_$LINE"
5018 else
5019 no_cache=1
5020 fi
5021
9e8e867f 5022 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
5023
5024fi;
5025
5026 eval "$ac_cv_use_arcstream"
5027 if test "$no_cache" != 1; then
5028 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5029 fi
5030
9e8e867f 5031 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
5032 echo "$as_me:$LINENO: result: yes" >&5
5033echo "${ECHO_T}yes" >&6
5034 else
5035 echo "$as_me:$LINENO: result: no" >&5
5036echo "${ECHO_T}no" >&6
5037 fi
5038
5039
a848cd7e 5040 enablestring=
36b6448c
VZ
5041 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5042echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 5043 no_cache=0
36b6448c
VZ
5044 # Check whether --enable-backtrace or --disable-backtrace was given.
5045if test "${enable_backtrace+set}" = set; then
5046 enableval="$enable_backtrace"
a848cd7e
SC
5047
5048 if test "$enableval" = yes; then
36b6448c 5049 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 5050 else
36b6448c 5051 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
5052 fi
5053
5054else
5055
36b6448c 5056 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
5057 if test "x$LINE" != x ; then
5058 eval "DEFAULT_$LINE"
5059 else
5060 no_cache=1
5061 fi
5062
36b6448c 5063 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
5064
5065fi;
5066
36b6448c 5067 eval "$ac_cv_use_backtrace"
a848cd7e 5068 if test "$no_cache" != 1; then
36b6448c 5069 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5070 fi
5071
36b6448c 5072 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
5073 echo "$as_me:$LINENO: result: yes" >&5
5074echo "${ECHO_T}yes" >&6
5075 else
5076 echo "$as_me:$LINENO: result: no" >&5
5077echo "${ECHO_T}no" >&6
5078 fi
5079
5080
eaff0f0d 5081 enablestring=
36b6448c
VZ
5082 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5083echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 5084 no_cache=0
36b6448c
VZ
5085 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5086if test "${enable_catch_segvs+set}" = set; then
5087 enableval="$enable_catch_segvs"
eaff0f0d
VZ
5088
5089 if test "$enableval" = yes; then
36b6448c 5090 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 5091 else
36b6448c 5092 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
5093 fi
5094
5095else
5096
36b6448c 5097 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
5098 if test "x$LINE" != x ; then
5099 eval "DEFAULT_$LINE"
5100 else
5101 no_cache=1
5102 fi
5103
36b6448c 5104 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
5105
5106fi;
5107
36b6448c 5108 eval "$ac_cv_use_catch_segvs"
eaff0f0d 5109 if test "$no_cache" != 1; then
36b6448c 5110 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
5111 fi
5112
36b6448c 5113 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
5114 echo "$as_me:$LINENO: result: yes" >&5
5115echo "${ECHO_T}yes" >&6
5116 else
5117 echo "$as_me:$LINENO: result: no" >&5
5118echo "${ECHO_T}no" >&6
5119 fi
5120
5121
a848cd7e
SC
5122 enablestring=
5123 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5124echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5125 no_cache=0
5126 # Check whether --enable-cmdline or --disable-cmdline was given.
5127if test "${enable_cmdline+set}" = set; then
5128 enableval="$enable_cmdline"
5129
5130 if test "$enableval" = yes; then
5131 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5132 else
5133 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5134 fi
5135
5136else
5137
5138 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5139 if test "x$LINE" != x ; then
5140 eval "DEFAULT_$LINE"
5141 else
5142 no_cache=1
5143 fi
5144
5145 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5146
5147fi;
5148
5149 eval "$ac_cv_use_cmdline"
5150 if test "$no_cache" != 1; then
5151 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5152 fi
5153
5154 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5155 echo "$as_me:$LINENO: result: yes" >&5
5156echo "${ECHO_T}yes" >&6
5157 else
5158 echo "$as_me:$LINENO: result: no" >&5
5159echo "${ECHO_T}no" >&6
5160 fi
5161
5162
5163 enablestring=
5164 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5165echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5166 no_cache=0
5167 # Check whether --enable-datetime or --disable-datetime was given.
5168if test "${enable_datetime+set}" = set; then
5169 enableval="$enable_datetime"
5170
5171 if test "$enableval" = yes; then
5172 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5173 else
5174 ac_cv_use_datetime='wxUSE_DATETIME=no'
5175 fi
5176
5177else
5178
5179 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5180 if test "x$LINE" != x ; then
5181 eval "DEFAULT_$LINE"
5182 else
5183 no_cache=1
5184 fi
5185
5186 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5187
5188fi;
5189
5190 eval "$ac_cv_use_datetime"
5191 if test "$no_cache" != 1; then
5192 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5193 fi
5194
5195 if test "$wxUSE_DATETIME" = yes; then
5196 echo "$as_me:$LINENO: result: yes" >&5
5197echo "${ECHO_T}yes" >&6
5198 else
5199 echo "$as_me:$LINENO: result: no" >&5
5200echo "${ECHO_T}no" >&6
5201 fi
5202
5203
36b6448c
VZ
5204 enablestring=
5205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5206echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5207 no_cache=0
5208 # Check whether --enable-debugreport or --disable-debugreport was given.
5209if test "${enable_debugreport+set}" = set; then
5210 enableval="$enable_debugreport"
5211
5212 if test "$enableval" = yes; then
5213 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5214 else
5215 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5216 fi
5217
5218else
5219
5220 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5221 if test "x$LINE" != x ; then
5222 eval "DEFAULT_$LINE"
5223 else
5224 no_cache=1
5225 fi
5226
5227 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5228
5229fi;
5230
5231 eval "$ac_cv_use_debugreport"
5232 if test "$no_cache" != 1; then
5233 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5234 fi
5235
5236 if test "$wxUSE_DEBUGREPORT" = yes; then
5237 echo "$as_me:$LINENO: result: yes" >&5
5238echo "${ECHO_T}yes" >&6
5239 else
5240 echo "$as_me:$LINENO: result: no" >&5
5241echo "${ECHO_T}no" >&6
5242 fi
5243
5244
a848cd7e
SC
5245 enablestring=
5246 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5247echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5248 no_cache=0
5249 # Check whether --enable-dialupman or --disable-dialupman was given.
5250if test "${enable_dialupman+set}" = set; then
5251 enableval="$enable_dialupman"
5252
5253 if test "$enableval" = yes; then
5254 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5255 else
5256 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5257 fi
5258
5259else
5260
5261 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5262 if test "x$LINE" != x ; then
5263 eval "DEFAULT_$LINE"
5264 else
5265 no_cache=1
5266 fi
5267
5268 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5269
5270fi;
5271
5272 eval "$ac_cv_use_dialupman"
5273 if test "$no_cache" != 1; then
5274 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5275 fi
5276
5277 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5278 echo "$as_me:$LINENO: result: yes" >&5
5279echo "${ECHO_T}yes" >&6
5280 else
5281 echo "$as_me:$LINENO: result: no" >&5
5282echo "${ECHO_T}no" >&6
5283 fi
5284
5285
5286 enablestring=
5287 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5288echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5289 no_cache=0
5290 # Check whether --enable-dynlib or --disable-dynlib was given.
5291if test "${enable_dynlib+set}" = set; then
5292 enableval="$enable_dynlib"
5293
5294 if test "$enableval" = yes; then
5295 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5296 else
5297 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5298 fi
5299
5300else
5301
5302 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5303 if test "x$LINE" != x ; then
5304 eval "DEFAULT_$LINE"
5305 else
5306 no_cache=1
5307 fi
5308
5309 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5310
5311fi;
5312
5313 eval "$ac_cv_use_dynlib"
5314 if test "$no_cache" != 1; then
5315 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5316 fi
5317
5318 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5319 echo "$as_me:$LINENO: result: yes" >&5
5320echo "${ECHO_T}yes" >&6
5321 else
5322 echo "$as_me:$LINENO: result: no" >&5
5323echo "${ECHO_T}no" >&6
5324 fi
5325
5326
5327 enablestring=
5328 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5329echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5330 no_cache=0
5331 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5332if test "${enable_dynamicloader+set}" = set; then
5333 enableval="$enable_dynamicloader"
5334
5335 if test "$enableval" = yes; then
5336 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5337 else
5338 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5339 fi
5340
5341else
5342
5343 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5344 if test "x$LINE" != x ; then
5345 eval "DEFAULT_$LINE"
5346 else
5347 no_cache=1
5348 fi
5349
5350 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5351
5352fi;
5353
5354 eval "$ac_cv_use_dynamicloader"
5355 if test "$no_cache" != 1; then
5356 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5357 fi
5358
5359 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5360 echo "$as_me:$LINENO: result: yes" >&5
5361echo "${ECHO_T}yes" >&6
5362 else
5363 echo "$as_me:$LINENO: result: no" >&5
5364echo "${ECHO_T}no" >&6
5365 fi
5366
5367
5368 enablestring=
5369 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5370echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5371 no_cache=0
5372 # Check whether --enable-exceptions or --disable-exceptions was given.
5373if test "${enable_exceptions+set}" = set; then
5374 enableval="$enable_exceptions"
5375
5376 if test "$enableval" = yes; then
5377 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5378 else
5379 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5380 fi
5381
5382else
5383
5384 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5385 if test "x$LINE" != x ; then
5386 eval "DEFAULT_$LINE"
5387 else
5388 no_cache=1
5389 fi
5390
5391 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5392
5393fi;
5394
5395 eval "$ac_cv_use_exceptions"
5396 if test "$no_cache" != 1; then
5397 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5398 fi
5399
5400 if test "$wxUSE_EXCEPTIONS" = yes; then
5401 echo "$as_me:$LINENO: result: yes" >&5
5402echo "${ECHO_T}yes" >&6
5403 else
5404 echo "$as_me:$LINENO: result: no" >&5
5405echo "${ECHO_T}no" >&6
5406 fi
5407
5408
5409 enablestring=
5410 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5411echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5412 no_cache=0
5413 # Check whether --enable-ffile or --disable-ffile was given.
5414if test "${enable_ffile+set}" = set; then
5415 enableval="$enable_ffile"
5416
5417 if test "$enableval" = yes; then
5418 ac_cv_use_ffile='wxUSE_FFILE=yes'
5419 else
5420 ac_cv_use_ffile='wxUSE_FFILE=no'
5421 fi
5422
5423else
5424
5425 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5426 if test "x$LINE" != x ; then
5427 eval "DEFAULT_$LINE"
5428 else
5429 no_cache=1
5430 fi
5431
5432 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5433
5434fi;
5435
5436 eval "$ac_cv_use_ffile"
5437 if test "$no_cache" != 1; then
5438 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5439 fi
5440
5441 if test "$wxUSE_FFILE" = yes; then
5442 echo "$as_me:$LINENO: result: yes" >&5
5443echo "${ECHO_T}yes" >&6
5444 else
5445 echo "$as_me:$LINENO: result: no" >&5
5446echo "${ECHO_T}no" >&6
5447 fi
5448
5449
5450 enablestring=
5451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5452echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5453 no_cache=0
5454 # Check whether --enable-file or --disable-file was given.
5455if test "${enable_file+set}" = set; then
5456 enableval="$enable_file"
5457
5458 if test "$enableval" = yes; then
5459 ac_cv_use_file='wxUSE_FILE=yes'
5460 else
5461 ac_cv_use_file='wxUSE_FILE=no'
5462 fi
5463
5464else
5465
5466 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5467 if test "x$LINE" != x ; then
5468 eval "DEFAULT_$LINE"
5469 else
5470 no_cache=1
5471 fi
5472
5473 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5474
5475fi;
5476
5477 eval "$ac_cv_use_file"
5478 if test "$no_cache" != 1; then
5479 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5480 fi
5481
5482 if test "$wxUSE_FILE" = yes; then
5483 echo "$as_me:$LINENO: result: yes" >&5
5484echo "${ECHO_T}yes" >&6
5485 else
5486 echo "$as_me:$LINENO: result: no" >&5
5487echo "${ECHO_T}no" >&6
5488 fi
5489
5490
5491 enablestring=
5492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5493echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5494 no_cache=0
5495 # Check whether --enable-filesystem or --disable-filesystem was given.
5496if test "${enable_filesystem+set}" = set; then
5497 enableval="$enable_filesystem"
5498
5499 if test "$enableval" = yes; then
5500 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5501 else
5502 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5503 fi
5504
5505else
5506
5507 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5508 if test "x$LINE" != x ; then
5509 eval "DEFAULT_$LINE"
5510 else
5511 no_cache=1
5512 fi
5513
5514 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5515
5516fi;
5517
5518 eval "$ac_cv_use_filesystem"
5519 if test "$no_cache" != 1; then
5520 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5521 fi
5522
5523 if test "$wxUSE_FILESYSTEM" = yes; then
5524 echo "$as_me:$LINENO: result: yes" >&5
5525echo "${ECHO_T}yes" >&6
5526 else
5527 echo "$as_me:$LINENO: result: no" >&5
5528echo "${ECHO_T}no" >&6
5529 fi
5530
5531
5532 enablestring=
5533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5534echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5535 no_cache=0
5536 # Check whether --enable-fontmap or --disable-fontmap was given.
5537if test "${enable_fontmap+set}" = set; then
5538 enableval="$enable_fontmap"
5539
5540 if test "$enableval" = yes; then
5541 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5542 else
5543 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5544 fi
5545
5546else
5547
5548 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5549 if test "x$LINE" != x ; then
5550 eval "DEFAULT_$LINE"
5551 else
5552 no_cache=1
5553 fi
5554
5555 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5556
5557fi;
5558
5559 eval "$ac_cv_use_fontmap"
5560 if test "$no_cache" != 1; then
5561 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5562 fi
5563
5564 if test "$wxUSE_FONTMAP" = yes; then
5565 echo "$as_me:$LINENO: result: yes" >&5
5566echo "${ECHO_T}yes" >&6
5567 else
5568 echo "$as_me:$LINENO: result: no" >&5
5569echo "${ECHO_T}no" >&6
5570 fi
5571
5572
5573 enablestring=
5574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5575echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5576 no_cache=0
5577 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5578if test "${enable_fs_inet+set}" = set; then
5579 enableval="$enable_fs_inet"
5580
5581 if test "$enableval" = yes; then
5582 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5583 else
5584 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5585 fi
5586
5587else
5588
5589 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5590 if test "x$LINE" != x ; then
5591 eval "DEFAULT_$LINE"
5592 else
5593 no_cache=1
5594 fi
5595
5596 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5597
5598fi;
5599
5600 eval "$ac_cv_use_fs_inet"
5601 if test "$no_cache" != 1; then
5602 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5603 fi
5604
5605 if test "$wxUSE_FS_INET" = yes; then
5606 echo "$as_me:$LINENO: result: yes" >&5
5607echo "${ECHO_T}yes" >&6
5608 else
5609 echo "$as_me:$LINENO: result: no" >&5
5610echo "${ECHO_T}no" >&6
5611 fi
5612
5613
5614 enablestring=
5615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5616echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5617 no_cache=0
5618 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5619if test "${enable_fs_zip+set}" = set; then
5620 enableval="$enable_fs_zip"
5621
5622 if test "$enableval" = yes; then
5623 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5624 else
5625 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5626 fi
5627
5628else
5629
5630 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5631 if test "x$LINE" != x ; then
5632 eval "DEFAULT_$LINE"
5633 else
5634 no_cache=1
5635 fi
5636
5637 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5638
5639fi;
5640
5641 eval "$ac_cv_use_fs_zip"
5642 if test "$no_cache" != 1; then
5643 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5644 fi
5645
5646 if test "$wxUSE_FS_ZIP" = yes; then
5647 echo "$as_me:$LINENO: result: yes" >&5
5648echo "${ECHO_T}yes" >&6
5649 else
5650 echo "$as_me:$LINENO: result: no" >&5
5651echo "${ECHO_T}no" >&6
5652 fi
5653
5654
5655 enablestring=
5656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5657echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5658 no_cache=0
5659 # Check whether --enable-geometry or --disable-geometry was given.
5660if test "${enable_geometry+set}" = set; then
5661 enableval="$enable_geometry"
5662
5663 if test "$enableval" = yes; then
5664 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5665 else
5666 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5667 fi
5668
5669else
5670
5671 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5672 if test "x$LINE" != x ; then
5673 eval "DEFAULT_$LINE"
5674 else
5675 no_cache=1
5676 fi
5677
5678 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5679
5680fi;
5681
5682 eval "$ac_cv_use_geometry"
5683 if test "$no_cache" != 1; then
5684 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5685 fi
5686
5687 if test "$wxUSE_GEOMETRY" = yes; then
5688 echo "$as_me:$LINENO: result: yes" >&5
5689echo "${ECHO_T}yes" >&6
5690 else
5691 echo "$as_me:$LINENO: result: no" >&5
5692echo "${ECHO_T}no" >&6
5693 fi
5694
5695
5696 enablestring=
5697 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5698echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5699 no_cache=0
5700 # Check whether --enable-log or --disable-log was given.
5701if test "${enable_log+set}" = set; then
5702 enableval="$enable_log"
5703
5704 if test "$enableval" = yes; then
5705 ac_cv_use_log='wxUSE_LOG=yes'
5706 else
5707 ac_cv_use_log='wxUSE_LOG=no'
5708 fi
5709
5710else
5711
5712 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5713 if test "x$LINE" != x ; then
5714 eval "DEFAULT_$LINE"
5715 else
5716 no_cache=1
5717 fi
5718
5719 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5720
5721fi;
5722
5723 eval "$ac_cv_use_log"
5724 if test "$no_cache" != 1; then
5725 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5726 fi
5727
5728 if test "$wxUSE_LOG" = yes; then
5729 echo "$as_me:$LINENO: result: yes" >&5
5730echo "${ECHO_T}yes" >&6
5731 else
5732 echo "$as_me:$LINENO: result: no" >&5
5733echo "${ECHO_T}no" >&6
5734 fi
5735
5736
5737 enablestring=
5738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5739echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5740 no_cache=0
5741 # Check whether --enable-longlong or --disable-longlong was given.
5742if test "${enable_longlong+set}" = set; then
5743 enableval="$enable_longlong"
5744
5745 if test "$enableval" = yes; then
5746 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5747 else
5748 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5749 fi
5750
5751else
5752
5753 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5754 if test "x$LINE" != x ; then
5755 eval "DEFAULT_$LINE"
5756 else
5757 no_cache=1
5758 fi
5759
5760 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5761
5762fi;
5763
5764 eval "$ac_cv_use_longlong"
5765 if test "$no_cache" != 1; then
5766 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5767 fi
5768
5769 if test "$wxUSE_LONGLONG" = yes; then
5770 echo "$as_me:$LINENO: result: yes" >&5
5771echo "${ECHO_T}yes" >&6
5772 else
5773 echo "$as_me:$LINENO: result: no" >&5
5774echo "${ECHO_T}no" >&6
5775 fi
5776
5777
5778 enablestring=
5779 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5780echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5781 no_cache=0
5782 # Check whether --enable-mimetype or --disable-mimetype was given.
5783if test "${enable_mimetype+set}" = set; then
5784 enableval="$enable_mimetype"
5785
5786 if test "$enableval" = yes; then
5787 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5788 else
5789 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5790 fi
5791
5792else
5793
5794 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5795 if test "x$LINE" != x ; then
5796 eval "DEFAULT_$LINE"
5797 else
5798 no_cache=1
5799 fi
5800
5801 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5802
5803fi;
5804
5805 eval "$ac_cv_use_mimetype"
5806 if test "$no_cache" != 1; then
5807 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5808 fi
5809
5810 if test "$wxUSE_MIMETYPE" = yes; then
5811 echo "$as_me:$LINENO: result: yes" >&5
5812echo "${ECHO_T}yes" >&6
5813 else
5814 echo "$as_me:$LINENO: result: no" >&5
5815echo "${ECHO_T}no" >&6
5816 fi
5817
5818
5819 enablestring=
5820 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5821echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5822 no_cache=0
5823 # Check whether --enable-mslu or --disable-mslu was given.
5824if test "${enable_mslu+set}" = set; then
5825 enableval="$enable_mslu"
5826
5827 if test "$enableval" = yes; then
5828 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5829 else
5830 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5831 fi
5832
5833else
5834
5835 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5836 if test "x$LINE" != x ; then
5837 eval "DEFAULT_$LINE"
5838 else
5839 no_cache=1
5840 fi
5841
5842 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5843
5844fi;
5845
5846 eval "$ac_cv_use_mslu"
5847 if test "$no_cache" != 1; then
5848 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5849 fi
5850
5851 if test "$wxUSE_UNICODE_MSLU" = yes; then
5852 echo "$as_me:$LINENO: result: yes" >&5
5853echo "${ECHO_T}yes" >&6
5854 else
5855 echo "$as_me:$LINENO: result: no" >&5
5856echo "${ECHO_T}no" >&6
5857 fi
5858
5859
5860 enablestring=
5861 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5862echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5863 no_cache=0
5864 # Check whether --enable-snglinst or --disable-snglinst was given.
5865if test "${enable_snglinst+set}" = set; then
5866 enableval="$enable_snglinst"
5867
5868 if test "$enableval" = yes; then
5869 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5870 else
5871 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5872 fi
5873
5874else
5875
5876 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5877 if test "x$LINE" != x ; then
5878 eval "DEFAULT_$LINE"
5879 else
5880 no_cache=1
5881 fi
5882
5883 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5884
5885fi;
5886
5887 eval "$ac_cv_use_snglinst"
5888 if test "$no_cache" != 1; then
5889 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5890 fi
5891
5892 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5893 echo "$as_me:$LINENO: result: yes" >&5
5894echo "${ECHO_T}yes" >&6
5895 else
5896 echo "$as_me:$LINENO: result: no" >&5
5897echo "${ECHO_T}no" >&6
5898 fi
5899
5900
5901 enablestring=
07158944
VZ
5902 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5903echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5904 no_cache=0
07158944
VZ
5905 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5906if test "${enable_std_iostreams+set}" = set; then
5907 enableval="$enable_std_iostreams"
a848cd7e
SC
5908
5909 if test "$enableval" = yes; then
07158944 5910 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5911 else
07158944 5912 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5913 fi
5914
5915else
5916
07158944 5917 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5918 if test "x$LINE" != x ; then
5919 eval "DEFAULT_$LINE"
5920 else
5921 no_cache=1
5922 fi
5923
07158944 5924 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5925
5926fi;
5927
07158944 5928 eval "$ac_cv_use_std_iostreams"
a848cd7e 5929 if test "$no_cache" != 1; then
07158944 5930 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5931 fi
5932
07158944 5933 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5934 echo "$as_me:$LINENO: result: yes" >&5
5935echo "${ECHO_T}yes" >&6
5936 else
5937 echo "$as_me:$LINENO: result: no" >&5
5938echo "${ECHO_T}no" >&6
5939 fi
5940
5941
59746b65
MW
5942 enablestring=
5943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5944echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5945 no_cache=0
5946 # Check whether --enable-std_string or --disable-std_string was given.
5947if test "${enable_std_string+set}" = set; then
5948 enableval="$enable_std_string"
5949
5950 if test "$enableval" = yes; then
5951 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5952 else
5953 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5954 fi
5955
5956else
5957
5958 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5959 if test "x$LINE" != x ; then
5960 eval "DEFAULT_$LINE"
5961 else
5962 no_cache=1
5963 fi
5964
5965 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5966
5967fi;
5968
5969 eval "$ac_cv_use_std_string"
5970 if test "$no_cache" != 1; then
5971 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5972 fi
5973
5974 if test "$wxUSE_STD_STRING" = yes; then
5975 echo "$as_me:$LINENO: result: yes" >&5
5976echo "${ECHO_T}yes" >&6
5977 else
5978 echo "$as_me:$LINENO: result: no" >&5
5979echo "${ECHO_T}no" >&6
5980 fi
5981
5982
a848cd7e 5983 enablestring=
07158944
VZ
5984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5985echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5986 no_cache=0
07158944
VZ
5987 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5988if test "${enable_stdpaths+set}" = set; then
5989 enableval="$enable_stdpaths"
a848cd7e
SC
5990
5991 if test "$enableval" = yes; then
07158944 5992 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5993 else
07158944 5994 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5995 fi
5996
5997else
5998
07158944 5999 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
6000 if test "x$LINE" != x ; then
6001 eval "DEFAULT_$LINE"
6002 else
6003 no_cache=1
6004 fi
6005
07158944 6006 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
6007
6008fi;
6009
07158944 6010 eval "$ac_cv_use_stdpaths"
a848cd7e 6011 if test "$no_cache" != 1; then
07158944 6012 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6013 fi
6014
07158944 6015 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
6016 echo "$as_me:$LINENO: result: yes" >&5
6017echo "${ECHO_T}yes" >&6
6018 else
6019 echo "$as_me:$LINENO: result: no" >&5
6020echo "${ECHO_T}no" >&6
6021 fi
6022
6023
6024 enablestring=
6025 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6026echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
6027 no_cache=0
6028 # Check whether --enable-stopwatch or --disable-stopwatch was given.
6029if test "${enable_stopwatch+set}" = set; then
6030 enableval="$enable_stopwatch"
6031
6032 if test "$enableval" = yes; then
6033 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6034 else
6035 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6036 fi
6037
6038else
6039
6040 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6041 if test "x$LINE" != x ; then
6042 eval "DEFAULT_$LINE"
6043 else
6044 no_cache=1
6045 fi
6046
6047 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6048
6049fi;
6050
6051 eval "$ac_cv_use_stopwatch"
6052 if test "$no_cache" != 1; then
6053 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6054 fi
6055
6056 if test "$wxUSE_STOPWATCH" = yes; then
6057 echo "$as_me:$LINENO: result: yes" >&5
6058echo "${ECHO_T}yes" >&6
6059 else
6060 echo "$as_me:$LINENO: result: no" >&5
6061echo "${ECHO_T}no" >&6
6062 fi
6063
6064
07158944
VZ
6065 enablestring=
6066 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6067echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6068 no_cache=0
6069 # Check whether --enable-streams or --disable-streams was given.
6070if test "${enable_streams+set}" = set; then
6071 enableval="$enable_streams"
6072
6073 if test "$enableval" = yes; then
6074 ac_cv_use_streams='wxUSE_STREAMS=yes'
6075 else
6076 ac_cv_use_streams='wxUSE_STREAMS=no'
6077 fi
6078
6079else
6080
6081 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6082 if test "x$LINE" != x ; then
6083 eval "DEFAULT_$LINE"
6084 else
6085 no_cache=1
6086 fi
6087
6088 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6089
6090fi;
6091
6092 eval "$ac_cv_use_streams"
6093 if test "$no_cache" != 1; then
6094 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6095 fi
6096
6097 if test "$wxUSE_STREAMS" = yes; then
6098 echo "$as_me:$LINENO: result: yes" >&5
6099echo "${ECHO_T}yes" >&6
6100 else
6101 echo "$as_me:$LINENO: result: no" >&5
6102echo "${ECHO_T}no" >&6
6103 fi
6104
6105
a848cd7e
SC
6106 enablestring=
6107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6108echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6109 no_cache=0
6110 # Check whether --enable-system_options or --disable-system_options was given.
6111if test "${enable_system_options+set}" = set; then
6112 enableval="$enable_system_options"
6113
6114 if test "$enableval" = yes; then
6115 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6116 else
6117 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6118 fi
6119
6120else
6121
6122 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6123 if test "x$LINE" != x ; then
6124 eval "DEFAULT_$LINE"
6125 else
6126 no_cache=1
6127 fi
6128
6129 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6130
6131fi;
6132
6133 eval "$ac_cv_use_system_options"
6134 if test "$no_cache" != 1; then
6135 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6136 fi
6137
6138 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6139 echo "$as_me:$LINENO: result: yes" >&5
6140echo "${ECHO_T}yes" >&6
6141 else
6142 echo "$as_me:$LINENO: result: no" >&5
6143echo "${ECHO_T}no" >&6
6144 fi
6145
6146
6147 enablestring=
6148 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6149echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6150 no_cache=0
6151 # Check whether --enable-textbuf or --disable-textbuf was given.
6152if test "${enable_textbuf+set}" = set; then
6153 enableval="$enable_textbuf"
6154
6155 if test "$enableval" = yes; then
6156 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6157 else
6158 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6159 fi
6160
6161else
6162
6163 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6164 if test "x$LINE" != x ; then
6165 eval "DEFAULT_$LINE"
6166 else
6167 no_cache=1
6168 fi
6169
6170 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6171
6172fi;
6173
6174 eval "$ac_cv_use_textbuf"
6175 if test "$no_cache" != 1; then
6176 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6177 fi
6178
6179 if test "$wxUSE_TEXTBUFFER" = yes; then
6180 echo "$as_me:$LINENO: result: yes" >&5
6181echo "${ECHO_T}yes" >&6
6182 else
6183 echo "$as_me:$LINENO: result: no" >&5
6184echo "${ECHO_T}no" >&6
6185 fi
6186
6187
6188 enablestring=
6189 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6190echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6191 no_cache=0
6192 # Check whether --enable-textfile or --disable-textfile was given.
6193if test "${enable_textfile+set}" = set; then
6194 enableval="$enable_textfile"
6195
6196 if test "$enableval" = yes; then
6197 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6198 else
6199 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6200 fi
6201
6202else
6203
6204 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6205 if test "x$LINE" != x ; then
6206 eval "DEFAULT_$LINE"
6207 else
6208 no_cache=1
6209 fi
6210
6211 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6212
6213fi;
6214
6215 eval "$ac_cv_use_textfile"
6216 if test "$no_cache" != 1; then
6217 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6218 fi
6219
6220 if test "$wxUSE_TEXTFILE" = yes; then
6221 echo "$as_me:$LINENO: result: yes" >&5
6222echo "${ECHO_T}yes" >&6
6223 else
6224 echo "$as_me:$LINENO: result: no" >&5
6225echo "${ECHO_T}no" >&6
6226 fi
6227
6228
6229 enablestring=
6230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6231echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6232 no_cache=0
6233 # Check whether --enable-timer or --disable-timer was given.
6234if test "${enable_timer+set}" = set; then
6235 enableval="$enable_timer"
6236
6237 if test "$enableval" = yes; then
6238 ac_cv_use_timer='wxUSE_TIMER=yes'
6239 else
6240 ac_cv_use_timer='wxUSE_TIMER=no'
6241 fi
6242
6243else
6244
6245 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6246 if test "x$LINE" != x ; then
6247 eval "DEFAULT_$LINE"
6248 else
6249 no_cache=1
6250 fi
6251
6252 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6253
6254fi;
6255
6256 eval "$ac_cv_use_timer"
6257 if test "$no_cache" != 1; then
6258 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6259 fi
6260
6261 if test "$wxUSE_TIMER" = yes; then
6262 echo "$as_me:$LINENO: result: yes" >&5
6263echo "${ECHO_T}yes" >&6
6264 else
6265 echo "$as_me:$LINENO: result: no" >&5
6266echo "${ECHO_T}no" >&6
6267 fi
6268
6269
6270 enablestring=
6271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6272echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6273 no_cache=0
6274 # Check whether --enable-unicode or --disable-unicode was given.
6275if test "${enable_unicode+set}" = set; then
6276 enableval="$enable_unicode"
6277
6278 if test "$enableval" = yes; then
6279 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6280 else
6281 ac_cv_use_unicode='wxUSE_UNICODE=no'
6282 fi
6283
6284else
6285
6286 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6287 if test "x$LINE" != x ; then
6288 eval "DEFAULT_$LINE"
6289 else
6290 no_cache=1
6291 fi
6292
6293 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6294
6295fi;
6296
6297 eval "$ac_cv_use_unicode"
6298 if test "$no_cache" != 1; then
6299 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6300 fi
6301
6302 if test "$wxUSE_UNICODE" = yes; then
6303 echo "$as_me:$LINENO: result: yes" >&5
6304echo "${ECHO_T}yes" >&6
6305 else
6306 echo "$as_me:$LINENO: result: no" >&5
6307echo "${ECHO_T}no" >&6
6308 fi
6309
6310
6311 enablestring=
6312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6313echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6314 no_cache=0
6315 # Check whether --enable-sound or --disable-sound was given.
6316if test "${enable_sound+set}" = set; then
6317 enableval="$enable_sound"
6318
6319 if test "$enableval" = yes; then
6320 ac_cv_use_sound='wxUSE_SOUND=yes'
6321 else
6322 ac_cv_use_sound='wxUSE_SOUND=no'
6323 fi
6324
6325else
6326
6327 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6328 if test "x$LINE" != x ; then
6329 eval "DEFAULT_$LINE"
6330 else
6331 no_cache=1
6332 fi
6333
6334 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6335
6336fi;
6337
6338 eval "$ac_cv_use_sound"
6339 if test "$no_cache" != 1; then
6340 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6341 fi
6342
6343 if test "$wxUSE_SOUND" = yes; then
6344 echo "$as_me:$LINENO: result: yes" >&5
6345echo "${ECHO_T}yes" >&6
6346 else
6347 echo "$as_me:$LINENO: result: no" >&5
6348echo "${ECHO_T}no" >&6
6349 fi
6350
6351
3b57de8b
RL
6352 enablestring=
6353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6354echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6355 no_cache=0
6356 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6357if test "${enable_mediactrl+set}" = set; then
6358 enableval="$enable_mediactrl"
6359
6360 if test "$enableval" = yes; then
6361 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6362 else
6363 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6364 fi
6365
6366else
6367
6368 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6369 if test "x$LINE" != x ; then
6370 eval "DEFAULT_$LINE"
6371 else
6372 no_cache=1
6373 fi
6374
6375 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6376
6377fi;
6378
6379 eval "$ac_cv_use_mediactrl"
6380 if test "$no_cache" != 1; then
6381 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6382 fi
6383
6384 if test "$wxUSE_MEDIACTRL" = yes; then
6385 echo "$as_me:$LINENO: result: yes" >&5
6386echo "${ECHO_T}yes" >&6
6387 else
6388 echo "$as_me:$LINENO: result: no" >&5
6389echo "${ECHO_T}no" >&6
6390 fi
6391
6392
f10e38c4
VZ
6393 enablestring=
6394 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6395echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6396 no_cache=0
6397 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6398if test "${enable_gstreamer8+set}" = set; then
6399 enableval="$enable_gstreamer8"
6400
6401 if test "$enableval" = yes; then
6402 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6403 else
6404 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6405 fi
6406
6407else
6408
6409 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6410 if test "x$LINE" != x ; then
6411 eval "DEFAULT_$LINE"
6412 else
6413 no_cache=1
6414 fi
6415
6416 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6417
6418fi;
6419
6420 eval "$ac_cv_use_gstreamer8"
6421 if test "$no_cache" != 1; then
6422 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6423 fi
6424
6425 if test "$wxUSE_GSTREAMER8" = yes; then
6426 echo "$as_me:$LINENO: result: yes" >&5
6427echo "${ECHO_T}yes" >&6
6428 else
6429 echo "$as_me:$LINENO: result: no" >&5
6430echo "${ECHO_T}no" >&6
6431 fi
6432
6433
a848cd7e 6434 enablestring=
8b6682b9
JS
6435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6436echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
a848cd7e 6437 no_cache=0
8b6682b9
JS
6438 # Check whether --enable-printfposparam or --disable-printfposparam was given.
6439if test "${enable_printfposparam+set}" = set; then
6440 enableval="$enable_printfposparam"
a848cd7e
SC
6441
6442 if test "$enableval" = yes; then
8b6682b9 6443 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 6444 else
8b6682b9 6445 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e
SC
6446 fi
6447
6448else
6449
8b6682b9 6450 LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
a848cd7e
SC
6451 if test "x$LINE" != x ; then
6452 eval "DEFAULT_$LINE"
6453 else
6454 no_cache=1
6455 fi
6456
8b6682b9 6457 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
a848cd7e
SC
6458
6459fi;
6460
8b6682b9 6461 eval "$ac_cv_use_printfposparam"
a848cd7e 6462 if test "$no_cache" != 1; then
8b6682b9 6463 echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6464 fi
6465
8b6682b9 6466 if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
a848cd7e
SC
6467 echo "$as_me:$LINENO: result: yes" >&5
6468echo "${ECHO_T}yes" >&6
6469 else
6470 echo "$as_me:$LINENO: result: no" >&5
6471echo "${ECHO_T}no" >&6
6472 fi
6473
6474
6475 enablestring=
6476 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6477echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6478 no_cache=0
6479 # Check whether --enable-zipstream or --disable-zipstream was given.
6480if test "${enable_zipstream+set}" = set; then
6481 enableval="$enable_zipstream"
6482
6483 if test "$enableval" = yes; then
6484 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6485 else
6486 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6487 fi
6488
6489else
6490
6491 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6492 if test "x$LINE" != x ; then
6493 eval "DEFAULT_$LINE"
6494 else
6495 no_cache=1
6496 fi
6497
6498 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6499
6500fi;
6501
6502 eval "$ac_cv_use_zipstream"
6503 if test "$no_cache" != 1; then
6504 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6505 fi
6506
6507 if test "$wxUSE_ZIPSTREAM" = yes; then
6508 echo "$as_me:$LINENO: result: yes" >&5
6509echo "${ECHO_T}yes" >&6
6510 else
6511 echo "$as_me:$LINENO: result: no" >&5
6512echo "${ECHO_T}no" >&6
6513 fi
6514
6515
a848cd7e
SC
6516
6517 enablestring=
6518 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6519echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6520 no_cache=0
6521 # Check whether --enable-url or --disable-url was given.
6522if test "${enable_url+set}" = set; then
6523 enableval="$enable_url"
6524
6525 if test "$enableval" = yes; then
6526 ac_cv_use_url='wxUSE_URL=yes'
6527 else
6528 ac_cv_use_url='wxUSE_URL=no'
6529 fi
6530
6531else
6532
6533 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6534 if test "x$LINE" != x ; then
6535 eval "DEFAULT_$LINE"
6536 else
6537 no_cache=1
6538 fi
6539
6540 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6541
6542fi;
6543
6544 eval "$ac_cv_use_url"
6545 if test "$no_cache" != 1; then
6546 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6547 fi
6548
6549 if test "$wxUSE_URL" = yes; then
6550 echo "$as_me:$LINENO: result: yes" >&5
6551echo "${ECHO_T}yes" >&6
6552 else
6553 echo "$as_me:$LINENO: result: no" >&5
6554echo "${ECHO_T}no" >&6
6555 fi
6556
6557
ca5c6ac3
VZ
6558 enablestring=
6559 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
6560echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6
6561 no_cache=0
6562 # Check whether --enable-variant or --disable-variant was given.
6563if test "${enable_variant+set}" = set; then
6564 enableval="$enable_variant"
6565
6566 if test "$enableval" = yes; then
6567 ac_cv_use_variant='wxUSE_VARIANT=yes'
6568 else
6569 ac_cv_use_variant='wxUSE_VARIANT=no'
6570 fi
6571
6572else
6573
6574 LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}`
6575 if test "x$LINE" != x ; then
6576 eval "DEFAULT_$LINE"
6577 else
6578 no_cache=1
6579 fi
6580
6581 ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT
6582
6583fi;
6584
6585 eval "$ac_cv_use_variant"
6586 if test "$no_cache" != 1; then
6587 echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp
6588 fi
6589
6590 if test "$wxUSE_VARIANT" = yes; then
6591 echo "$as_me:$LINENO: result: yes" >&5
6592echo "${ECHO_T}yes" >&6
6593 else
6594 echo "$as_me:$LINENO: result: no" >&5
6595echo "${ECHO_T}no" >&6
6596 fi
6597
6598
a848cd7e
SC
6599 enablestring=
6600 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6601echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6602 no_cache=0
6603 # Check whether --enable-protocol or --disable-protocol was given.
6604if test "${enable_protocol+set}" = set; then
6605 enableval="$enable_protocol"
6606
6607 if test "$enableval" = yes; then
6608 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6609 else
6610 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6611 fi
6612
6613else
6614
6615 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6616 if test "x$LINE" != x ; then
6617 eval "DEFAULT_$LINE"
6618 else
6619 no_cache=1
6620 fi
6621
6622 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6623
6624fi;
6625
6626 eval "$ac_cv_use_protocol"
6627 if test "$no_cache" != 1; then
6628 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6629 fi
6630
6631 if test "$wxUSE_PROTOCOL" = yes; then
6632 echo "$as_me:$LINENO: result: yes" >&5
6633echo "${ECHO_T}yes" >&6
6634 else
6635 echo "$as_me:$LINENO: result: no" >&5
6636echo "${ECHO_T}no" >&6
6637 fi
6638
6639
6640 enablestring=
6641 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6642echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6643 no_cache=0
6644 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6645if test "${enable_protocol_http+set}" = set; then
6646 enableval="$enable_protocol_http"
6647
6648 if test "$enableval" = yes; then
6649 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6650 else
6651 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6652 fi
6653
6654else
6655
6656 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6657 if test "x$LINE" != x ; then
6658 eval "DEFAULT_$LINE"
6659 else
6660 no_cache=1
6661 fi
6662
6663 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6664
6665fi;
6666
6667 eval "$ac_cv_use_protocol_http"
6668 if test "$no_cache" != 1; then
6669 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6670 fi
6671
6672 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6673 echo "$as_me:$LINENO: result: yes" >&5
6674echo "${ECHO_T}yes" >&6
6675 else
6676 echo "$as_me:$LINENO: result: no" >&5
6677echo "${ECHO_T}no" >&6
6678 fi
6679
6680
6681 enablestring=
6682 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6683echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6684 no_cache=0
6685 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6686if test "${enable_protocol_ftp+set}" = set; then
6687 enableval="$enable_protocol_ftp"
6688
6689 if test "$enableval" = yes; then
6690 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6691 else
6692 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6693 fi
6694
6695else
6696
6697 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6698 if test "x$LINE" != x ; then
6699 eval "DEFAULT_$LINE"
6700 else
6701 no_cache=1
6702 fi
6703
6704 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6705
6706fi;
6707
6708 eval "$ac_cv_use_protocol_ftp"
6709 if test "$no_cache" != 1; then
6710 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6711 fi
6712
6713 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6714 echo "$as_me:$LINENO: result: yes" >&5
6715echo "${ECHO_T}yes" >&6
6716 else
6717 echo "$as_me:$LINENO: result: no" >&5
6718echo "${ECHO_T}no" >&6
6719 fi
6720
6721
6722 enablestring=
6723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6724echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6725 no_cache=0
6726 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6727if test "${enable_protocol_file+set}" = set; then
6728 enableval="$enable_protocol_file"
6729
6730 if test "$enableval" = yes; then
6731 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6732 else
6733 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6734 fi
6735
6736else
6737
6738 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6739 if test "x$LINE" != x ; then
6740 eval "DEFAULT_$LINE"
6741 else
6742 no_cache=1
6743 fi
6744
6745 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6746
6747fi;
6748
6749 eval "$ac_cv_use_protocol_file"
6750 if test "$no_cache" != 1; then
6751 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6752 fi
6753
6754 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6755 echo "$as_me:$LINENO: result: yes" >&5
6756echo "${ECHO_T}yes" >&6
6757 else
6758 echo "$as_me:$LINENO: result: no" >&5
6759echo "${ECHO_T}no" >&6
6760 fi
6761
6762
6763
6764
6765
6766 enablestring=
6767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6768echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6769 no_cache=0
6770 # Check whether --enable-threads or --disable-threads was given.
6771if test "${enable_threads+set}" = set; then
6772 enableval="$enable_threads"
6773
6774 if test "$enableval" = yes; then
6775 ac_cv_use_threads='wxUSE_THREADS=yes'
6776 else
6777 ac_cv_use_threads='wxUSE_THREADS=no'
6778 fi
6779
6780else
6781
6782 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6783 if test "x$LINE" != x ; then
6784 eval "DEFAULT_$LINE"
6785 else
6786 no_cache=1
6787 fi
6788
6789 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6790
6791fi;
6792
6793 eval "$ac_cv_use_threads"
6794 if test "$no_cache" != 1; then
6795 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6796 fi
6797
6798 if test "$wxUSE_THREADS" = yes; then
6799 echo "$as_me:$LINENO: result: yes" >&5
6800echo "${ECHO_T}yes" >&6
6801 else
6802 echo "$as_me:$LINENO: result: no" >&5
6803echo "${ECHO_T}no" >&6
6804 fi
6805
6806
6807if test "$wxUSE_GUI" = "yes"; then
6808
6809
6810
6811 enablestring=
6812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6813echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6814 no_cache=0
6815 # Check whether --enable-docview or --disable-docview was given.
6816if test "${enable_docview+set}" = set; then
6817 enableval="$enable_docview"
6818
6819 if test "$enableval" = yes; then
6820 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6821 else
6822 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6823 fi
6824
6825else
6826
6827 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6828 if test "x$LINE" != x ; then
6829 eval "DEFAULT_$LINE"
6830 else
6831 no_cache=1
6832 fi
6833
6834 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6835
6836fi;
6837
6838 eval "$ac_cv_use_docview"
6839 if test "$no_cache" != 1; then
6840 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6841 fi
6842
6843 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6844 echo "$as_me:$LINENO: result: yes" >&5
6845echo "${ECHO_T}yes" >&6
6846 else
6847 echo "$as_me:$LINENO: result: no" >&5
6848echo "${ECHO_T}no" >&6
6849 fi
6850
6851
6852 enablestring=
6853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6854echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6855 no_cache=0
6856 # Check whether --enable-help or --disable-help was given.
6857if test "${enable_help+set}" = set; then
6858 enableval="$enable_help"
6859
6860 if test "$enableval" = yes; then
6861 ac_cv_use_help='wxUSE_HELP=yes'
6862 else
6863 ac_cv_use_help='wxUSE_HELP=no'
6864 fi
6865
6866else
6867
6868 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6869 if test "x$LINE" != x ; then
6870 eval "DEFAULT_$LINE"
6871 else
6872 no_cache=1
6873 fi
6874
6875 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6876
6877fi;
6878
6879 eval "$ac_cv_use_help"
6880 if test "$no_cache" != 1; then
6881 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6882 fi
6883
6884 if test "$wxUSE_HELP" = yes; then
6885 echo "$as_me:$LINENO: result: yes" >&5
6886echo "${ECHO_T}yes" >&6
6887 else
6888 echo "$as_me:$LINENO: result: no" >&5
6889echo "${ECHO_T}no" >&6
6890 fi
6891
6892
6893 enablestring=
6894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6895echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6896 no_cache=0
6897 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6898if test "${enable_mshtmlhelp+set}" = set; then
6899 enableval="$enable_mshtmlhelp"
6900
6901 if test "$enableval" = yes; then
6902 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6903 else
6904 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6905 fi
6906
6907else
6908
6909 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6910 if test "x$LINE" != x ; then
6911 eval "DEFAULT_$LINE"
6912 else
6913 no_cache=1
6914 fi
6915
6916 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6917
6918fi;
6919
6920 eval "$ac_cv_use_mshtmlhelp"
6921 if test "$no_cache" != 1; then
6922 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6923 fi
6924
6925 if test "$wxUSE_MS_HTML_HELP" = yes; then
6926 echo "$as_me:$LINENO: result: yes" >&5
6927echo "${ECHO_T}yes" >&6
6928 else
6929 echo "$as_me:$LINENO: result: no" >&5
6930echo "${ECHO_T}no" >&6
6931 fi
6932
6933
6934 enablestring=
6935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6936echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6937 no_cache=0
6938 # Check whether --enable-html or --disable-html was given.
6939if test "${enable_html+set}" = set; then
6940 enableval="$enable_html"
6941
6942 if test "$enableval" = yes; then
6943 ac_cv_use_html='wxUSE_HTML=yes'
6944 else
6945 ac_cv_use_html='wxUSE_HTML=no'
6946 fi
6947
6948else
6949
6950 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6951 if test "x$LINE" != x ; then
6952 eval "DEFAULT_$LINE"
6953 else
6954 no_cache=1
6955 fi
6956
6957 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6958
6959fi;
6960
6961 eval "$ac_cv_use_html"
6962 if test "$no_cache" != 1; then
6963 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6964 fi
6965
6966 if test "$wxUSE_HTML" = yes; then
6967 echo "$as_me:$LINENO: result: yes" >&5
6968echo "${ECHO_T}yes" >&6
6969 else
6970 echo "$as_me:$LINENO: result: no" >&5
6971echo "${ECHO_T}no" >&6
6972 fi
6973
6974
6975 enablestring=
6976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6977echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6978 no_cache=0
6979 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6980if test "${enable_htmlhelp+set}" = set; then
6981 enableval="$enable_htmlhelp"
6982
6983 if test "$enableval" = yes; then
6984 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6985 else
6986 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6987 fi
6988
6989else
6990
6991 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6992 if test "x$LINE" != x ; then
6993 eval "DEFAULT_$LINE"
6994 else
6995 no_cache=1
6996 fi
6997
6998 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6999
7000fi;
7001
7002 eval "$ac_cv_use_htmlhelp"
7003 if test "$no_cache" != 1; then
7004 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
7005 fi
7006
7007 if test "$wxUSE_WXHTML_HELP" = yes; then
7008 echo "$as_me:$LINENO: result: yes" >&5
7009echo "${ECHO_T}yes" >&6
7010 else
7011 echo "$as_me:$LINENO: result: no" >&5
7012echo "${ECHO_T}no" >&6
7013 fi
7014
7015
9a8f0513
VS
7016 enablestring=
7017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
7018echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
7019 no_cache=0
7020 # Check whether --enable-xrc or --disable-xrc was given.
7021if test "${enable_xrc+set}" = set; then
7022 enableval="$enable_xrc"
7023
7024 if test "$enableval" = yes; then
7025 ac_cv_use_xrc='wxUSE_XRC=yes'
7026 else
7027 ac_cv_use_xrc='wxUSE_XRC=no'
7028 fi
7029
7030else
7031
7032 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
7033 if test "x$LINE" != x ; then
7034 eval "DEFAULT_$LINE"
7035 else
7036 no_cache=1
7037 fi
7038
7039 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
7040
7041fi;
7042
7043 eval "$ac_cv_use_xrc"
7044 if test "$no_cache" != 1; then
7045 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
7046 fi
7047
7048 if test "$wxUSE_XRC" = yes; then
7049 echo "$as_me:$LINENO: result: yes" >&5
7050echo "${ECHO_T}yes" >&6
7051 else
7052 echo "$as_me:$LINENO: result: no" >&5
7053echo "${ECHO_T}no" >&6
7054 fi
7055
7056
3f60522a
JS
7057 enablestring=
7058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7059echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
7060 no_cache=0
7061 # Check whether --enable-aui or --disable-aui was given.
7062if test "${enable_aui+set}" = set; then
7063 enableval="$enable_aui"
7064
7065 if test "$enableval" = yes; then
7066 ac_cv_use_aui='wxUSE_AUI=yes'
7067 else
7068 ac_cv_use_aui='wxUSE_AUI=no'
7069 fi
7070
7071else
7072
7073 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7074 if test "x$LINE" != x ; then
7075 eval "DEFAULT_$LINE"
7076 else
7077 no_cache=1
7078 fi
7079
7080 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7081
7082fi;
7083
7084 eval "$ac_cv_use_aui"
7085 if test "$no_cache" != 1; then
7086 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7087 fi
7088
7089 if test "$wxUSE_AUI" = yes; then
7090 echo "$as_me:$LINENO: result: yes" >&5
7091echo "${ECHO_T}yes" >&6
7092 else
7093 echo "$as_me:$LINENO: result: no" >&5
7094echo "${ECHO_T}no" >&6
7095 fi
7096
7097
a848cd7e
SC
7098 enablestring=
7099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7100echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7101 no_cache=0
7102 # Check whether --enable-constraints or --disable-constraints was given.
7103if test "${enable_constraints+set}" = set; then
7104 enableval="$enable_constraints"
7105
7106 if test "$enableval" = yes; then
7107 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7108 else
7109 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7110 fi
7111
7112else
7113
7114 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7115 if test "x$LINE" != x ; then
7116 eval "DEFAULT_$LINE"
7117 else
7118 no_cache=1
7119 fi
7120
7121 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7122
7123fi;
7124
7125 eval "$ac_cv_use_constraints"
7126 if test "$no_cache" != 1; then
7127 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7128 fi
7129
7130 if test "$wxUSE_CONSTRAINTS" = yes; then
7131 echo "$as_me:$LINENO: result: yes" >&5
7132echo "${ECHO_T}yes" >&6
7133 else
7134 echo "$as_me:$LINENO: result: no" >&5
7135echo "${ECHO_T}no" >&6
7136 fi
7137
7138
7139 enablestring=
7140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7141echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7142 no_cache=0
7143 # Check whether --enable-printarch or --disable-printarch was given.
7144if test "${enable_printarch+set}" = set; then
7145 enableval="$enable_printarch"
7146
7147 if test "$enableval" = yes; then
7148 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7149 else
7150 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7151 fi
7152
7153else
7154
7155 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7156 if test "x$LINE" != x ; then
7157 eval "DEFAULT_$LINE"
7158 else
7159 no_cache=1
7160 fi
7161
7162 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7163
7164fi;
7165
7166 eval "$ac_cv_use_printarch"
7167 if test "$no_cache" != 1; then
7168 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7169 fi
7170
7171 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7172 echo "$as_me:$LINENO: result: yes" >&5
7173echo "${ECHO_T}yes" >&6
7174 else
7175 echo "$as_me:$LINENO: result: no" >&5
7176echo "${ECHO_T}no" >&6
7177 fi
7178
7179
7180 enablestring=
7181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7182echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7183 no_cache=0
7184 # Check whether --enable-mdi or --disable-mdi was given.
7185if test "${enable_mdi+set}" = set; then
7186 enableval="$enable_mdi"
7187
7188 if test "$enableval" = yes; then
8a7b1113 7189 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7190 else
8a7b1113 7191 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7192 fi
7193
7194else
7195
8a7b1113 7196 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7197 if test "x$LINE" != x ; then
7198 eval "DEFAULT_$LINE"
7199 else
7200 no_cache=1
7201 fi
7202
8a7b1113 7203 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7204
7205fi;
7206
7207 eval "$ac_cv_use_mdi"
7208 if test "$no_cache" != 1; then
7209 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7210 fi
7211
8a7b1113
VZ
7212 if test "$wxUSE_MDI" = yes; then
7213 echo "$as_me:$LINENO: result: yes" >&5
7214echo "${ECHO_T}yes" >&6
7215 else
7216 echo "$as_me:$LINENO: result: no" >&5
7217echo "${ECHO_T}no" >&6
7218 fi
7219
7220
7221 enablestring=
7222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7223echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7224 no_cache=0
7225 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7226if test "${enable_mdidoc+set}" = set; then
7227 enableval="$enable_mdidoc"
7228
7229 if test "$enableval" = yes; then
7230 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7231 else
7232 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7233 fi
7234
7235else
7236
7237 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7238 if test "x$LINE" != x ; then
7239 eval "DEFAULT_$LINE"
7240 else
7241 no_cache=1
7242 fi
7243
7244 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7245
7246fi;
7247
7248 eval "$ac_cv_use_mdidoc"
7249 if test "$no_cache" != 1; then
7250 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7251 fi
7252
a848cd7e
SC
7253 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7254 echo "$as_me:$LINENO: result: yes" >&5
7255echo "${ECHO_T}yes" >&6
7256 else
7257 echo "$as_me:$LINENO: result: no" >&5
7258echo "${ECHO_T}no" >&6
7259 fi
7260
7261
7262 enablestring=
7263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7264echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7265 no_cache=0
7266 # Check whether --enable-loggui or --disable-loggui was given.
7267if test "${enable_loggui+set}" = set; then
7268 enableval="$enable_loggui"
7269
7270 if test "$enableval" = yes; then
7271 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7272 else
7273 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7274 fi
7275
7276else
7277
7278 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7279 if test "x$LINE" != x ; then
7280 eval "DEFAULT_$LINE"
7281 else
7282 no_cache=1
7283 fi
7284
7285 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7286
7287fi;
7288
7289 eval "$ac_cv_use_loggui"
7290 if test "$no_cache" != 1; then
7291 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7292 fi
7293
7294 if test "$wxUSE_LOGGUI" = yes; then
7295 echo "$as_me:$LINENO: result: yes" >&5
7296echo "${ECHO_T}yes" >&6
7297 else
7298 echo "$as_me:$LINENO: result: no" >&5
7299echo "${ECHO_T}no" >&6
7300 fi
7301
7302
7303 enablestring=
7304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7305echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7306 no_cache=0
7307 # Check whether --enable-logwin or --disable-logwin was given.
7308if test "${enable_logwin+set}" = set; then
7309 enableval="$enable_logwin"
7310
7311 if test "$enableval" = yes; then
7312 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7313 else
7314 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7315 fi
7316
7317else
7318
7319 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7320 if test "x$LINE" != x ; then
7321 eval "DEFAULT_$LINE"
7322 else
7323 no_cache=1
7324 fi
7325
7326 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7327
7328fi;
7329
7330 eval "$ac_cv_use_logwin"
7331 if test "$no_cache" != 1; then
7332 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7333 fi
7334
7335 if test "$wxUSE_LOGWINDOW" = yes; then
7336 echo "$as_me:$LINENO: result: yes" >&5
7337echo "${ECHO_T}yes" >&6
7338 else
7339 echo "$as_me:$LINENO: result: no" >&5
7340echo "${ECHO_T}no" >&6
7341 fi
7342
7343
7344 enablestring=
7345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7346echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7347 no_cache=0
7348 # Check whether --enable-logdialog or --disable-logdialog was given.
7349if test "${enable_logdialog+set}" = set; then
7350 enableval="$enable_logdialog"
7351
7352 if test "$enableval" = yes; then
7353 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7354 else
7355 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7356 fi
7357
7358else
7359
7360 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7361 if test "x$LINE" != x ; then
7362 eval "DEFAULT_$LINE"
7363 else
7364 no_cache=1
7365 fi
7366
7367 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7368
7369fi;
7370
7371 eval "$ac_cv_use_logdialog"
7372 if test "$no_cache" != 1; then
7373 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7374 fi
7375
7376 if test "$wxUSE_LOGDIALOG" = yes; then
7377 echo "$as_me:$LINENO: result: yes" >&5
7378echo "${ECHO_T}yes" >&6
7379 else
7380 echo "$as_me:$LINENO: result: no" >&5
7381echo "${ECHO_T}no" >&6
7382 fi
7383
7384
646b6ec1
VS
7385 enablestring=
7386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7387echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7388 no_cache=0
7389 # Check whether --enable-webkit or --disable-webkit was given.
7390if test "${enable_webkit+set}" = set; then
7391 enableval="$enable_webkit"
7392
7393 if test "$enableval" = yes; then
7394 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7395 else
7396 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7397 fi
7398
7399else
7400
7401 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7402 if test "x$LINE" != x ; then
7403 eval "DEFAULT_$LINE"
7404 else
7405 no_cache=1
7406 fi
7407
7408 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7409
7410fi;
7411
7412 eval "$ac_cv_use_webkit"
7413 if test "$no_cache" != 1; then
7414 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7415 fi
7416
7417 if test "$wxUSE_WEBKIT" = yes; then
7418 echo "$as_me:$LINENO: result: yes" >&5
7419echo "${ECHO_T}yes" >&6
7420 else
7421 echo "$as_me:$LINENO: result: no" >&5
7422echo "${ECHO_T}no" >&6
7423 fi
7424
7425
91dea314
MW
7426 enablestring=
7427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7428echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7429 no_cache=0
7430 # Check whether --enable-html or --disable-html was given.
7431if test "${enable_html+set}" = set; then
7432 enableval="$enable_html"
7433
7434 if test "$enableval" = yes; then
7435 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7436 else
7437 ac_cv_use_html='wxUSE_RICHTEXT=no'
7438 fi
7439
7440else
7441
7442 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7443 if test "x$LINE" != x ; then
7444 eval "DEFAULT_$LINE"
7445 else
7446 no_cache=1
7447 fi
7448
7449 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7450
7451fi;
7452
7453 eval "$ac_cv_use_html"
7454 if test "$no_cache" != 1; then
7455 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7456 fi
7457
7458 if test "$wxUSE_RICHTEXT" = yes; then
7459 echo "$as_me:$LINENO: result: yes" >&5
7460echo "${ECHO_T}yes" >&6
7461 else
7462 echo "$as_me:$LINENO: result: no" >&5
7463echo "${ECHO_T}no" >&6
7464 fi
7465
7466
a848cd7e
SC
7467
7468 enablestring=
7469 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7470echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7471 no_cache=0
7472 # Check whether --enable-postscript or --disable-postscript was given.
7473if test "${enable_postscript+set}" = set; then
7474 enableval="$enable_postscript"
7475
7476 if test "$enableval" = yes; then
7477 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7478 else
7479 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7480 fi
7481
7482else
7483
7484 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7485 if test "x$LINE" != x ; then
7486 eval "DEFAULT_$LINE"
7487 else
7488 no_cache=1
7489 fi
7490
7491 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7492
7493fi;
7494
7495 eval "$ac_cv_use_postscript"
7496 if test "$no_cache" != 1; then
7497 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7498 fi
7499
7500 if test "$wxUSE_POSTSCRIPT" = yes; then
7501 echo "$as_me:$LINENO: result: yes" >&5
7502echo "${ECHO_T}yes" >&6
7503 else
7504 echo "$as_me:$LINENO: result: no" >&5
7505echo "${ECHO_T}no" >&6
7506 fi
7507
7508
7509
7510
7511
7512 enablestring=
7513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7514echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7515 no_cache=0
7516 # Check whether --enable-prologio or --disable-prologio was given.
7517if test "${enable_prologio+set}" = set; then
7518 enableval="$enable_prologio"
7519
7520 if test "$enableval" = yes; then
7521 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7522 else
7523 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7524 fi
7525
7526else
7527
7528 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7529 if test "x$LINE" != x ; then
7530 eval "DEFAULT_$LINE"
7531 else
7532 no_cache=1
7533 fi
7534
7535 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7536
7537fi;
7538
7539 eval "$ac_cv_use_prologio"
7540 if test "$no_cache" != 1; then
7541 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7542 fi
7543
7544 if test "$wxUSE_PROLOGIO" = yes; then
7545 echo "$as_me:$LINENO: result: yes" >&5
7546echo "${ECHO_T}yes" >&6
7547 else
7548 echo "$as_me:$LINENO: result: no" >&5
7549echo "${ECHO_T}no" >&6
7550 fi
7551
7552
7553 enablestring=
7554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7555echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7556 no_cache=0
7557 # Check whether --enable-resources or --disable-resources was given.
7558if test "${enable_resources+set}" = set; then
7559 enableval="$enable_resources"
7560
7561 if test "$enableval" = yes; then
7562 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7563 else
7564 ac_cv_use_resources='wxUSE_RESOURCES=no'
7565 fi
7566
7567else
7568
7569 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7570 if test "x$LINE" != x ; then
7571 eval "DEFAULT_$LINE"
7572 else
7573 no_cache=1
7574 fi
7575
7576 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7577
7578fi;
7579
7580 eval "$ac_cv_use_resources"
7581 if test "$no_cache" != 1; then
7582 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7583 fi
7584
7585 if test "$wxUSE_RESOURCES" = yes; then
7586 echo "$as_me:$LINENO: result: yes" >&5
7587echo "${ECHO_T}yes" >&6
7588 else
7589 echo "$as_me:$LINENO: result: no" >&5
7590echo "${ECHO_T}no" >&6
7591 fi
7592
7593
7594
7595
7596 enablestring=
7597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7598echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7599 no_cache=0
7600 # Check whether --enable-clipboard or --disable-clipboard was given.
7601if test "${enable_clipboard+set}" = set; then
7602 enableval="$enable_clipboard"
7603
7604 if test "$enableval" = yes; then
7605 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7606 else
7607 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7608 fi
7609
7610else
7611
7612 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7613 if test "x$LINE" != x ; then
7614 eval "DEFAULT_$LINE"
7615 else
7616 no_cache=1
7617 fi
7618
7619 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7620
7621fi;
7622
7623 eval "$ac_cv_use_clipboard"
7624 if test "$no_cache" != 1; then
7625 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7626 fi
7627
7628 if test "$wxUSE_CLIPBOARD" = yes; then
7629 echo "$as_me:$LINENO: result: yes" >&5
7630echo "${ECHO_T}yes" >&6
7631 else
7632 echo "$as_me:$LINENO: result: no" >&5
7633echo "${ECHO_T}no" >&6
7634 fi
7635
7636
7637 enablestring=
7638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7639echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7640 no_cache=0
7641 # Check whether --enable-dnd or --disable-dnd was given.
7642if test "${enable_dnd+set}" = set; then
7643 enableval="$enable_dnd"
7644
7645 if test "$enableval" = yes; then
7646 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7647 else
7648 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7649 fi
7650
7651else
7652
7653 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7654 if test "x$LINE" != x ; then
7655 eval "DEFAULT_$LINE"
7656 else
7657 no_cache=1
7658 fi
7659
7660 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7661
7662fi;
7663
7664 eval "$ac_cv_use_dnd"
7665 if test "$no_cache" != 1; then
7666 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7667 fi
7668
7669 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7670 echo "$as_me:$LINENO: result: yes" >&5
7671echo "${ECHO_T}yes" >&6
7672 else
7673 echo "$as_me:$LINENO: result: no" >&5
7674echo "${ECHO_T}no" >&6
7675 fi
7676
7677
7678 enablestring=
7679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7680echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7681 no_cache=0
7682 # Check whether --enable-metafile or --disable-metafile was given.
7683if test "${enable_metafile+set}" = set; then
7684 enableval="$enable_metafile"
7685
7686 if test "$enableval" = yes; then
7687 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7688 else
7689 ac_cv_use_metafile='wxUSE_METAFILE=no'
7690 fi
7691
7692else
7693
7694 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7695 if test "x$LINE" != x ; then
7696 eval "DEFAULT_$LINE"
7697 else
7698 no_cache=1
7699 fi
7700
7701 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7702
7703fi;
7704
7705 eval "$ac_cv_use_metafile"
7706 if test "$no_cache" != 1; then
7707 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7708 fi
7709
7710 if test "$wxUSE_METAFILE" = yes; then
7711 echo "$as_me:$LINENO: result: yes" >&5
7712echo "${ECHO_T}yes" >&6
7713 else
7714 echo "$as_me:$LINENO: result: no" >&5
7715echo "${ECHO_T}no" >&6
7716 fi
7717
7718
7719
7720
7721
7722 enablestring=
7723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7724echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7725 no_cache=0
7726 # Check whether --enable-controls or --disable-controls was given.
7727if test "${enable_controls+set}" = set; then
7728 enableval="$enable_controls"
7729
7730 if test "$enableval" = yes; then
7731 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7732 else
7733 ac_cv_use_controls='wxUSE_CONTROLS=no'
7734 fi
7735
7736else
7737
7738 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7739 if test "x$LINE" != x ; then
7740 eval "DEFAULT_$LINE"
7741 else
7742 no_cache=1
7743 fi
7744
7745 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7746
7747fi;
7748
7749 eval "$ac_cv_use_controls"
7750 if test "$no_cache" != 1; then
7751 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7752 fi
7753
7754 if test "$wxUSE_CONTROLS" = yes; then
7755 echo "$as_me:$LINENO: result: yes" >&5
7756echo "${ECHO_T}yes" >&6
7757 else
7758 echo "$as_me:$LINENO: result: no" >&5
7759echo "${ECHO_T}no" >&6
7760 fi
7761
7762
7763if test "$wxUSE_CONTROLS" = "yes"; then
7764 DEFAULT_wxUSE_ACCEL=yes
7765 DEFAULT_wxUSE_BMPBUTTON=yes
7766 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7767 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7768 DEFAULT_wxUSE_CARET=yes
7769 DEFAULT_wxUSE_COMBOBOX=yes
7770 DEFAULT_wxUSE_CHECKBOX=yes
7771 DEFAULT_wxUSE_CHECKLISTBOX=yes
7772 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7773 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684
VZ
7774 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7775 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7776 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684
VZ
7777 DEFAULT_wxUSE_DISPLAY=yes
7778 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7779 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7780 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7781 DEFAULT_wxUSE_GAUGE=yes
7782 DEFAULT_wxUSE_GRID=yes
6954625c 7783 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7784 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7785 DEFAULT_wxUSE_IMAGLIST=yes
7786 DEFAULT_wxUSE_LISTBOOK=yes
7787 DEFAULT_wxUSE_LISTBOX=yes
7788 DEFAULT_wxUSE_LISTCTRL=yes
7789 DEFAULT_wxUSE_NOTEBOOK=yes
7790 DEFAULT_wxUSE_RADIOBOX=yes
7791 DEFAULT_wxUSE_RADIOBTN=yes
7792 DEFAULT_wxUSE_SASH=yes
7793 DEFAULT_wxUSE_SCROLLBAR=yes
7794 DEFAULT_wxUSE_SLIDER=yes
7795 DEFAULT_wxUSE_SPINBTN=yes
7796 DEFAULT_wxUSE_SPINCTRL=yes
7797 DEFAULT_wxUSE_SPLITTER=yes
7798 DEFAULT_wxUSE_STATBMP=yes
7799 DEFAULT_wxUSE_STATBOX=yes
7800 DEFAULT_wxUSE_STATLINE=yes
7801 DEFAULT_wxUSE_STATUSBAR=yes
7802 DEFAULT_wxUSE_TAB_DIALOG=yes
7803 DEFAULT_wxUSE_TOGGLEBTN=yes
7804 DEFAULT_wxUSE_TOOLBAR=yes
7805 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
a848cd7e 7806 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7807 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7808 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7809 DEFAULT_wxUSE_TREECTRL=yes
7810 DEFAULT_wxUSE_POPUPWIN=yes
7811 DEFAULT_wxUSE_TIPWINDOW=yes
7812elif test "$wxUSE_CONTROLS" = "no"; then
7813 DEFAULT_wxUSE_ACCEL=no
7814 DEFAULT_wxUSE_BMPBUTTON=no
7815 DEFAULT_wxUSE_BUTTON=no
7816 DEFAULT_wxUSE_CALCTRL=no
7817 DEFAULT_wxUSE_CARET=no
7818 DEFAULT_wxUSE_COMBOBOX=no
7819 DEFAULT_wxUSE_CHECKBOX=no
7820 DEFAULT_wxUSE_CHECKLISTBOX=no
7821 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7822 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
7823 DEFAULT_wxUSE_COLOURPICKERCTRL=no
7824 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 7825 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684
VZ
7826 DEFAULT_wxUSE_DISPLAY=no
7827 DEFAULT_wxUSE_DIRPICKERCTRL=no
7828 DEFAULT_wxUSE_FILEPICKERCTRL=no
7829 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
7830 DEFAULT_wxUSE_GAUGE=no
7831 DEFAULT_wxUSE_GRID=no
6954625c 7832 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7833 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7834 DEFAULT_wxUSE_IMAGLIST=no
7835 DEFAULT_wxUSE_LISTBOOK=no
7836 DEFAULT_wxUSE_LISTBOX=no
7837 DEFAULT_wxUSE_LISTCTRL=no
7838 DEFAULT_wxUSE_NOTEBOOK=no
7839 DEFAULT_wxUSE_RADIOBOX=no
7840 DEFAULT_wxUSE_RADIOBTN=no
7841 DEFAULT_wxUSE_SASH=no
7842 DEFAULT_wxUSE_SCROLLBAR=no
7843 DEFAULT_wxUSE_SLIDER=no
7844 DEFAULT_wxUSE_SPINBTN=no
7845 DEFAULT_wxUSE_SPINCTRL=no
7846 DEFAULT_wxUSE_SPLITTER=no
7847 DEFAULT_wxUSE_STATBMP=no
7848 DEFAULT_wxUSE_STATBOX=no
7849 DEFAULT_wxUSE_STATLINE=no
7850 DEFAULT_wxUSE_STATUSBAR=no
7851 DEFAULT_wxUSE_TAB_DIALOG=no
7852 DEFAULT_wxUSE_TOGGLEBTN=no
7853 DEFAULT_wxUSE_TOOLBAR=no
7854 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
a848cd7e 7855 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7856 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7857 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7858 DEFAULT_wxUSE_TREECTRL=no
7859 DEFAULT_wxUSE_POPUPWIN=no
7860 DEFAULT_wxUSE_TIPWINDOW=no
7861fi
7862
a848cd7e
SC
7863
7864 enablestring=
7865 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7866echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7867 no_cache=0
7868 # Check whether --enable-accel or --disable-accel was given.
7869if test "${enable_accel+set}" = set; then
7870 enableval="$enable_accel"
7871
7872 if test "$enableval" = yes; then
7873 ac_cv_use_accel='wxUSE_ACCEL=yes'
7874 else
7875 ac_cv_use_accel='wxUSE_ACCEL=no'
7876 fi
7877
7878else
7879
7880 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7881 if test "x$LINE" != x ; then
7882 eval "DEFAULT_$LINE"
7883 else
7884 no_cache=1
7885 fi
7886
7887 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7888
7889fi;
7890
7891 eval "$ac_cv_use_accel"
7892 if test "$no_cache" != 1; then
7893 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7894 fi
7895
7896 if test "$wxUSE_ACCEL" = yes; then
7897 echo "$as_me:$LINENO: result: yes" >&5
7898echo "${ECHO_T}yes" >&6
7899 else
7900 echo "$as_me:$LINENO: result: no" >&5
7901echo "${ECHO_T}no" >&6
7902 fi
7903
7904
7905 enablestring=
7906 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7907echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7908 no_cache=0
7909 # Check whether --enable-button or --disable-button was given.
7910if test "${enable_button+set}" = set; then
7911 enableval="$enable_button"
7912
7913 if test "$enableval" = yes; then
7914 ac_cv_use_button='wxUSE_BUTTON=yes'
7915 else
7916 ac_cv_use_button='wxUSE_BUTTON=no'
7917 fi
7918
7919else
7920
7921 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7922 if test "x$LINE" != x ; then
7923 eval "DEFAULT_$LINE"
7924 else
7925 no_cache=1
7926 fi
7927
7928 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7929
7930fi;
7931
7932 eval "$ac_cv_use_button"
7933 if test "$no_cache" != 1; then
7934 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7935 fi
7936
7937 if test "$wxUSE_BUTTON" = yes; then
7938 echo "$as_me:$LINENO: result: yes" >&5
7939echo "${ECHO_T}yes" >&6
7940 else
7941 echo "$as_me:$LINENO: result: no" >&5
7942echo "${ECHO_T}no" >&6
7943 fi
7944
7945
7946 enablestring=
7947 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7948echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7949 no_cache=0
7950 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7951if test "${enable_bmpbutton+set}" = set; then
7952 enableval="$enable_bmpbutton"
7953
7954 if test "$enableval" = yes; then
7955 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7956 else
7957 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7958 fi
7959
7960else
7961
7962 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7963 if test "x$LINE" != x ; then
7964 eval "DEFAULT_$LINE"
7965 else
7966 no_cache=1
7967 fi
7968
7969 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7970
7971fi;
7972
7973 eval "$ac_cv_use_bmpbutton"
7974 if test "$no_cache" != 1; then
7975 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7976 fi
7977
7978 if test "$wxUSE_BMPBUTTON" = yes; then
7979 echo "$as_me:$LINENO: result: yes" >&5
7980echo "${ECHO_T}yes" >&6
7981 else
7982 echo "$as_me:$LINENO: result: no" >&5
7983echo "${ECHO_T}no" >&6
7984 fi
7985
7986
95a46303
RR
7987 enablestring=
7988 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
7989echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6
7990 no_cache=0
7991 # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given.
7992if test "${enable_bmpcombobox+set}" = set; then
7993 enableval="$enable_bmpcombobox"
7994
7995 if test "$enableval" = yes; then
7996 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
7997 else
7998 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
7999 fi
8000
8001else
8002
8003 LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}`
8004 if test "x$LINE" != x ; then
8005 eval "DEFAULT_$LINE"
8006 else
8007 no_cache=1
8008 fi
8009
8010 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
8011
8012fi;
8013
8014 eval "$ac_cv_use_bmpcombobox"
8015 if test "$no_cache" != 1; then
8016 echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
8017 fi
8018
8019 if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
8020 echo "$as_me:$LINENO: result: yes" >&5
8021echo "${ECHO_T}yes" >&6
8022 else
8023 echo "$as_me:$LINENO: result: no" >&5
8024echo "${ECHO_T}no" >&6
8025 fi
8026
8027
a848cd7e
SC
8028 enablestring=
8029 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
8030echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
8031 no_cache=0
8032 # Check whether --enable-calendar or --disable-calendar was given.
8033if test "${enable_calendar+set}" = set; then
8034 enableval="$enable_calendar"
8035
8036 if test "$enableval" = yes; then
8037 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
8038 else
8039 ac_cv_use_calendar='wxUSE_CALCTRL=no'
8040 fi
8041
8042else
8043
8044 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
8045 if test "x$LINE" != x ; then
8046 eval "DEFAULT_$LINE"
8047 else
8048 no_cache=1
8049 fi
8050
8051 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
8052
8053fi;
8054
8055 eval "$ac_cv_use_calendar"
8056 if test "$no_cache" != 1; then
8057 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
8058 fi
8059
8060 if test "$wxUSE_CALCTRL" = yes; then
8061 echo "$as_me:$LINENO: result: yes" >&5
8062echo "${ECHO_T}yes" >&6
8063 else
8064 echo "$as_me:$LINENO: result: no" >&5
8065echo "${ECHO_T}no" >&6
8066 fi
8067
8068
8069 enablestring=
8070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
8071echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
8072 no_cache=0
8073 # Check whether --enable-caret or --disable-caret was given.
8074if test "${enable_caret+set}" = set; then
8075 enableval="$enable_caret"
8076
8077 if test "$enableval" = yes; then
8078 ac_cv_use_caret='wxUSE_CARET=yes'
8079 else
8080 ac_cv_use_caret='wxUSE_CARET=no'
8081 fi
8082
8083else
8084
8085 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
8086 if test "x$LINE" != x ; then
8087 eval "DEFAULT_$LINE"
8088 else
8089 no_cache=1
8090 fi
8091
8092 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
8093
8094fi;
8095
8096 eval "$ac_cv_use_caret"
8097 if test "$no_cache" != 1; then
8098 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
8099 fi
8100
8101 if test "$wxUSE_CARET" = yes; then
8102 echo "$as_me:$LINENO: result: yes" >&5
8103echo "${ECHO_T}yes" >&6
8104 else
8105 echo "$as_me:$LINENO: result: no" >&5
8106echo "${ECHO_T}no" >&6
8107 fi
8108
8109
8110 enablestring=
8111 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
8112echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
8113 no_cache=0
8114 # Check whether --enable-checkbox or --disable-checkbox was given.
8115if test "${enable_checkbox+set}" = set; then
8116 enableval="$enable_checkbox"
8117
8118 if test "$enableval" = yes; then
8119 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8120 else
8121 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8122 fi
8123
8124else
8125
8126 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8127 if test "x$LINE" != x ; then
8128 eval "DEFAULT_$LINE"
8129 else
8130 no_cache=1
8131 fi
8132
8133 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8134
8135fi;
8136
8137 eval "$ac_cv_use_checkbox"
8138 if test "$no_cache" != 1; then
8139 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8140 fi
8141
8142 if test "$wxUSE_CHECKBOX" = yes; then
8143 echo "$as_me:$LINENO: result: yes" >&5
8144echo "${ECHO_T}yes" >&6
8145 else
8146 echo "$as_me:$LINENO: result: no" >&5
8147echo "${ECHO_T}no" >&6
8148 fi
8149
8150
8151 enablestring=
8152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8153echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8154 no_cache=0
8155 # Check whether --enable-checklst or --disable-checklst was given.
8156if test "${enable_checklst+set}" = set; then
8157 enableval="$enable_checklst"
8158
8159 if test "$enableval" = yes; then
8160 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8161 else
8162 ac_cv_use_checklst='wxUSE_CHECKLST=no'
8163 fi
8164
8165else
8166
8167 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8168 if test "x$LINE" != x ; then
8169 eval "DEFAULT_$LINE"
8170 else
8171 no_cache=1
8172 fi
8173
8174 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8175
8176fi;
8177
8178 eval "$ac_cv_use_checklst"
8179 if test "$no_cache" != 1; then
8180 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8181 fi
8182
8183 if test "$wxUSE_CHECKLST" = yes; then
8184 echo "$as_me:$LINENO: result: yes" >&5
8185echo "${ECHO_T}yes" >&6
8186 else
8187 echo "$as_me:$LINENO: result: no" >&5
8188echo "${ECHO_T}no" >&6
8189 fi
8190
8191
8192 enablestring=
8193 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8194echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8195 no_cache=0
8196 # Check whether --enable-choice or --disable-choice was given.
8197if test "${enable_choice+set}" = set; then
8198 enableval="$enable_choice"
8199
8200 if test "$enableval" = yes; then
8201 ac_cv_use_choice='wxUSE_CHOICE=yes'
8202 else
8203 ac_cv_use_choice='wxUSE_CHOICE=no'
8204 fi
8205
8206else
8207
8208 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8209 if test "x$LINE" != x ; then
8210 eval "DEFAULT_$LINE"
8211 else
8212 no_cache=1
8213 fi
8214
8215 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8216
8217fi;
8218
8219 eval "$ac_cv_use_choice"
8220 if test "$no_cache" != 1; then
8221 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8222 fi
8223
8224 if test "$wxUSE_CHOICE" = yes; then
8225 echo "$as_me:$LINENO: result: yes" >&5
8226echo "${ECHO_T}yes" >&6
8227 else
8228 echo "$as_me:$LINENO: result: no" >&5
8229echo "${ECHO_T}no" >&6
8230 fi
8231
8232
92bbdbcd
WS
8233 enablestring=
8234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8235echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8236 no_cache=0
8237 # Check whether --enable-choicebook or --disable-choicebook was given.
8238if test "${enable_choicebook+set}" = set; then
8239 enableval="$enable_choicebook"
8240
8241 if test "$enableval" = yes; then
8242 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8243 else
8244 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8245 fi
8246
8247else
8248
8249 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8250 if test "x$LINE" != x ; then
8251 eval "DEFAULT_$LINE"
8252 else
8253 no_cache=1
8254 fi
8255
8256 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8257
8258fi;
8259
8260 eval "$ac_cv_use_choicebook"
8261 if test "$no_cache" != 1; then
8262 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8263 fi
8264
8265 if test "$wxUSE_CHOICEBOOK" = yes; then
8266 echo "$as_me:$LINENO: result: yes" >&5
8267echo "${ECHO_T}yes" >&6
8268 else
8269 echo "$as_me:$LINENO: result: no" >&5
8270echo "${ECHO_T}no" >&6
8271 fi
8272
8273
e9263684
VZ
8274 enablestring=
8275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8276echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8277 no_cache=0
8278 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8279if test "${enable_colourpicker+set}" = set; then
8280 enableval="$enable_colourpicker"
8281
8282 if test "$enableval" = yes; then
8283 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8284 else
8285 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8286 fi
8287
8288else
8289
8290 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8291 if test "x$LINE" != x ; then
8292 eval "DEFAULT_$LINE"
8293 else
8294 no_cache=1
8295 fi
8296
8297 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8298
8299fi;
8300
8301 eval "$ac_cv_use_colourpicker"
8302 if test "$no_cache" != 1; then
8303 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8304 fi
8305
8306 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8307 echo "$as_me:$LINENO: result: yes" >&5
8308echo "${ECHO_T}yes" >&6
8309 else
8310 echo "$as_me:$LINENO: result: no" >&5
8311echo "${ECHO_T}no" >&6
8312 fi
8313
8314
a848cd7e
SC
8315 enablestring=
8316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8317echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8318 no_cache=0
8319 # Check whether --enable-combobox or --disable-combobox was given.
8320if test "${enable_combobox+set}" = set; then
8321 enableval="$enable_combobox"
8322
8323 if test "$enableval" = yes; then
8324 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8325 else
8326 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8327 fi
8328
8329else
8330
8331 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8332 if test "x$LINE" != x ; then
8333 eval "DEFAULT_$LINE"
8334 else
8335 no_cache=1
8336 fi
8337
8338 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8339
8340fi;
8341
8342 eval "$ac_cv_use_combobox"
8343 if test "$no_cache" != 1; then
8344 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8345 fi
8346
8347 if test "$wxUSE_COMBOBOX" = yes; then
8348 echo "$as_me:$LINENO: result: yes" >&5
8349echo "${ECHO_T}yes" >&6
8350 else
8351 echo "$as_me:$LINENO: result: no" >&5
8352echo "${ECHO_T}no" >&6
8353 fi
8354
8355
642bcba9 8356 enablestring=
a57d600f
VZ
8357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8358echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8359 no_cache=0
a57d600f
VZ
8360 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8361if test "${enable_comboctrl+set}" = set; then
8362 enableval="$enable_comboctrl"
642bcba9
VZ
8363
8364 if test "$enableval" = yes; then
a57d600f 8365 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8366 else
a57d600f 8367 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8368 fi
8369
8370else
8371
a57d600f 8372 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8373 if test "x$LINE" != x ; then
8374 eval "DEFAULT_$LINE"
8375 else
8376 no_cache=1
8377 fi
8378
a57d600f 8379 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8380
8381fi;
8382
a57d600f 8383 eval "$ac_cv_use_comboctrl"
642bcba9 8384 if test "$no_cache" != 1; then
a57d600f 8385 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8386 fi
8387
a57d600f 8388 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8389 echo "$as_me:$LINENO: result: yes" >&5
8390echo "${ECHO_T}yes" >&6
8391 else
8392 echo "$as_me:$LINENO: result: no" >&5
8393echo "${ECHO_T}no" >&6
8394 fi
8395
8396
da98e9be
VZ
8397 enablestring=
8398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8399echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8400 no_cache=0
8401 # Check whether --enable-datepick or --disable-datepick was given.
8402if test "${enable_datepick+set}" = set; then
8403 enableval="$enable_datepick"
8404
8405 if test "$enableval" = yes; then
8406 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8407 else
8408 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8409 fi
8410
8411else
8412
8413 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8414 if test "x$LINE" != x ; then
8415 eval "DEFAULT_$LINE"
8416 else
8417 no_cache=1
8418 fi
8419
8420 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8421
8422fi;
8423
8424 eval "$ac_cv_use_datepick"
8425 if test "$no_cache" != 1; then
8426 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8427 fi
8428
8429 if test "$wxUSE_DATEPICKCTRL" = yes; then
8430 echo "$as_me:$LINENO: result: yes" >&5
8431echo "${ECHO_T}yes" >&6
8432 else
8433 echo "$as_me:$LINENO: result: no" >&5
8434echo "${ECHO_T}no" >&6
8435 fi
8436
8437
e9263684
VZ
8438 enablestring=
8439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8440echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8441 no_cache=0
8442 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8443if test "${enable_dirpicker+set}" = set; then
8444 enableval="$enable_dirpicker"
8445
8446 if test "$enableval" = yes; then
8447 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8448 else
8449 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8450 fi
8451
8452else
8453
8454 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8455 if test "x$LINE" != x ; then
8456 eval "DEFAULT_$LINE"
8457 else
8458 no_cache=1
8459 fi
8460
8461 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8462
8463fi;
8464
8465 eval "$ac_cv_use_dirpicker"
8466 if test "$no_cache" != 1; then
8467 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8468 fi
8469
8470 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8471 echo "$as_me:$LINENO: result: yes" >&5
8472echo "${ECHO_T}yes" >&6
8473 else
8474 echo "$as_me:$LINENO: result: no" >&5
8475echo "${ECHO_T}no" >&6
8476 fi
8477
8478
a848cd7e
SC
8479 enablestring=
8480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8481echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8482 no_cache=0
8483 # Check whether --enable-display or --disable-display was given.
8484if test "${enable_display+set}" = set; then
8485 enableval="$enable_display"
8486
8487 if test "$enableval" = yes; then
8488 ac_cv_use_display='wxUSE_DISPLAY=yes'
8489 else
8490 ac_cv_use_display='wxUSE_DISPLAY=no'
8491 fi
8492
8493else
8494
8495 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8496 if test "x$LINE" != x ; then
8497 eval "DEFAULT_$LINE"
8498 else
8499 no_cache=1
8500 fi
8501
8502 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8503
8504fi;
8505
8506 eval "$ac_cv_use_display"
8507 if test "$no_cache" != 1; then
8508 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8509 fi
8510
8511 if test "$wxUSE_DISPLAY" = yes; then
8512 echo "$as_me:$LINENO: result: yes" >&5
8513echo "${ECHO_T}yes" >&6
8514 else
8515 echo "$as_me:$LINENO: result: no" >&5
8516echo "${ECHO_T}no" >&6
8517 fi
8518
8519
e9263684
VZ
8520 enablestring=
8521 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8522echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8523 no_cache=0
8524 # Check whether --enable-filepicker or --disable-filepicker was given.
8525if test "${enable_filepicker+set}" = set; then
8526 enableval="$enable_filepicker"
8527
8528 if test "$enableval" = yes; then
8529 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8530 else
8531 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8532 fi
8533
8534else
8535
8536 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8537 if test "x$LINE" != x ; then
8538 eval "DEFAULT_$LINE"
8539 else
8540 no_cache=1
8541 fi
8542
8543 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8544
8545fi;
8546
8547 eval "$ac_cv_use_filepicker"
8548 if test "$no_cache" != 1; then
8549 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8550 fi
8551
8552 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8553 echo "$as_me:$LINENO: result: yes" >&5
8554echo "${ECHO_T}yes" >&6
8555 else
8556 echo "$as_me:$LINENO: result: no" >&5
8557echo "${ECHO_T}no" >&6
8558 fi
8559
8560
8561 enablestring=
8562 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8563echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8564 no_cache=0
8565 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8566if test "${enable_fontpicker+set}" = set; then
8567 enableval="$enable_fontpicker"
8568
8569 if test "$enableval" = yes; then
8570 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8571 else
8572 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8573 fi
8574
8575else
8576
8577 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8578 if test "x$LINE" != x ; then
8579 eval "DEFAULT_$LINE"
8580 else
8581 no_cache=1
8582 fi
8583
8584 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8585
8586fi;
8587
8588 eval "$ac_cv_use_fontpicker"
8589 if test "$no_cache" != 1; then
8590 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8591 fi
8592
8593 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8594 echo "$as_me:$LINENO: result: yes" >&5
8595echo "${ECHO_T}yes" >&6
8596 else
8597 echo "$as_me:$LINENO: result: no" >&5
8598echo "${ECHO_T}no" >&6
8599 fi
8600
8601
a848cd7e
SC
8602 enablestring=
8603 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8604echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8605 no_cache=0
8606 # Check whether --enable-gauge or --disable-gauge was given.
8607if test "${enable_gauge+set}" = set; then
8608 enableval="$enable_gauge"
8609
8610 if test "$enableval" = yes; then
8611 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8612 else
8613 ac_cv_use_gauge='wxUSE_GAUGE=no'
8614 fi
8615
8616else
8617
8618 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8619 if test "x$LINE" != x ; then
8620 eval "DEFAULT_$LINE"
8621 else
8622 no_cache=1
8623 fi
8624
8625 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8626
8627fi;
8628
8629 eval "$ac_cv_use_gauge"
8630 if test "$no_cache" != 1; then
8631 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8632 fi
8633
8634 if test "$wxUSE_GAUGE" = yes; then
8635 echo "$as_me:$LINENO: result: yes" >&5
8636echo "${ECHO_T}yes" >&6
8637 else
8638 echo "$as_me:$LINENO: result: no" >&5
8639echo "${ECHO_T}no" >&6
8640 fi
8641
8642
8643 enablestring=
8644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8645echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8646 no_cache=0
8647 # Check whether --enable-grid or --disable-grid was given.
8648if test "${enable_grid+set}" = set; then
8649 enableval="$enable_grid"
8650
8651 if test "$enableval" = yes; then
8652 ac_cv_use_grid='wxUSE_GRID=yes'
8653 else
8654 ac_cv_use_grid='wxUSE_GRID=no'
8655 fi
8656
8657else
8658
8659 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8660 if test "x$LINE" != x ; then
8661 eval "DEFAULT_$LINE"
8662 else
8663 no_cache=1
8664 fi
8665
8666 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8667
8668fi;
8669
8670 eval "$ac_cv_use_grid"
8671 if test "$no_cache" != 1; then
8672 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8673 fi
8674
8675 if test "$wxUSE_GRID" = yes; then
8676 echo "$as_me:$LINENO: result: yes" >&5
8677echo "${ECHO_T}yes" >&6
8678 else
8679 echo "$as_me:$LINENO: result: no" >&5
8680echo "${ECHO_T}no" >&6
8681 fi
8682
8683
20e34ecc
RR
8684 enablestring=
8685 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8686echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8687 no_cache=0
8688 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8689if test "${enable_dataviewctrl+set}" = set; then
8690 enableval="$enable_dataviewctrl"
8691
8692 if test "$enableval" = yes; then
8693 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8694 else
8695 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8696 fi
8697
8698else
8699
8700 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8701 if test "x$LINE" != x ; then
8702 eval "DEFAULT_$LINE"
8703 else
8704 no_cache=1
8705 fi
8706
8707 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8708
8709fi;
8710
8711 eval "$ac_cv_use_dataviewctrl"
8712 if test "$no_cache" != 1; then
8713 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8714 fi
8715
8716 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8717 echo "$as_me:$LINENO: result: yes" >&5
8718echo "${ECHO_T}yes" >&6
8719 else
8720 echo "$as_me:$LINENO: result: no" >&5
8721echo "${ECHO_T}no" >&6
8722 fi
8723
8724
6954625c
VZ
8725 enablestring=
8726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8727echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8728 no_cache=0
8729 # Check whether --enable-hyperlink or --disable-hyperlink was given.
8730if test "${enable_hyperlink+set}" = set; then
8731 enableval="$enable_hyperlink"
8732
8733 if test "$enableval" = yes; then
8734 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8735 else
8736 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8737 fi
8738
8739else
8740
8741 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8742 if test "x$LINE" != x ; then
8743 eval "DEFAULT_$LINE"
8744 else
8745 no_cache=1
8746 fi
8747
8748 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8749
8750fi;
8751
8752 eval "$ac_cv_use_hyperlink"
8753 if test "$no_cache" != 1; then
8754 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8755 fi
8756
8757 if test "$wxUSE_HYPERLINKCTRL" = yes; then
8758 echo "$as_me:$LINENO: result: yes" >&5
8759echo "${ECHO_T}yes" >&6
8760 else
8761 echo "$as_me:$LINENO: result: no" >&5
8762echo "${ECHO_T}no" >&6
8763 fi
8764
8765
a848cd7e
SC
8766 enablestring=
8767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8768echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8769 no_cache=0
8770 # Check whether --enable-imaglist or --disable-imaglist was given.
8771if test "${enable_imaglist+set}" = set; then
8772 enableval="$enable_imaglist"
8773
8774 if test "$enableval" = yes; then
8775 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8776 else
8777 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8778 fi
8779
8780else
8781
8782 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8783 if test "x$LINE" != x ; then
8784 eval "DEFAULT_$LINE"
8785 else
8786 no_cache=1
8787 fi
8788
8789 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8790
8791fi;
8792
8793 eval "$ac_cv_use_imaglist"
8794 if test "$no_cache" != 1; then
8795 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8796 fi
8797
8798 if test "$wxUSE_IMAGLIST" = yes; then
8799 echo "$as_me:$LINENO: result: yes" >&5
8800echo "${ECHO_T}yes" >&6
8801 else
8802 echo "$as_me:$LINENO: result: no" >&5
8803echo "${ECHO_T}no" >&6
8804 fi
8805
8806
8807 enablestring=
8808 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8809echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8810 no_cache=0
8811 # Check whether --enable-listbook or --disable-listbook was given.
8812if test "${enable_listbook+set}" = set; then
8813 enableval="$enable_listbook"
8814
8815 if test "$enableval" = yes; then
8816 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8817 else
8818 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8819 fi
8820
8821else
8822
8823 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8824 if test "x$LINE" != x ; then
8825 eval "DEFAULT_$LINE"
8826 else
8827 no_cache=1
8828 fi
8829
8830 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8831
8832fi;
8833
8834 eval "$ac_cv_use_listbook"
8835 if test "$no_cache" != 1; then
8836 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8837 fi
8838
8839 if test "$wxUSE_LISTBOOK" = yes; then
8840 echo "$as_me:$LINENO: result: yes" >&5
8841echo "${ECHO_T}yes" >&6
8842 else
8843 echo "$as_me:$LINENO: result: no" >&5
8844echo "${ECHO_T}no" >&6
8845 fi
8846
8847
8848 enablestring=
8849 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8850echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8851 no_cache=0
8852 # Check whether --enable-listbox or --disable-listbox was given.
8853if test "${enable_listbox+set}" = set; then
8854 enableval="$enable_listbox"
8855
8856 if test "$enableval" = yes; then
8857 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8858 else
8859 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8860 fi
8861
8862else
8863
8864 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8865 if test "x$LINE" != x ; then
8866 eval "DEFAULT_$LINE"
8867 else
8868 no_cache=1
8869 fi
8870
8871 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8872
8873fi;
8874
8875 eval "$ac_cv_use_listbox"
8876 if test "$no_cache" != 1; then
8877 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8878 fi
8879
8880 if test "$wxUSE_LISTBOX" = yes; then
8881 echo "$as_me:$LINENO: result: yes" >&5
8882echo "${ECHO_T}yes" >&6
8883 else
8884 echo "$as_me:$LINENO: result: no" >&5
8885echo "${ECHO_T}no" >&6
8886 fi
8887
8888
8889 enablestring=
8890 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8891echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8892 no_cache=0
8893 # Check whether --enable-listctrl or --disable-listctrl was given.
8894if test "${enable_listctrl+set}" = set; then
8895 enableval="$enable_listctrl"
8896
8897 if test "$enableval" = yes; then
8898 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8899 else
8900 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8901 fi
8902
8903else
8904
8905 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8906 if test "x$LINE" != x ; then
8907 eval "DEFAULT_$LINE"
8908 else
8909 no_cache=1
8910 fi
8911
8912 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8913
8914fi;
8915
8916 eval "$ac_cv_use_listctrl"
8917 if test "$no_cache" != 1; then
8918 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8919 fi
8920
8921 if test "$wxUSE_LISTCTRL" = yes; then
8922 echo "$as_me:$LINENO: result: yes" >&5
8923echo "${ECHO_T}yes" >&6
8924 else
8925 echo "$as_me:$LINENO: result: no" >&5
8926echo "${ECHO_T}no" >&6
8927 fi
8928
8929
8930 enablestring=
8931 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8932echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8933 no_cache=0
8934 # Check whether --enable-notebook or --disable-notebook was given.
8935if test "${enable_notebook+set}" = set; then
8936 enableval="$enable_notebook"
8937
8938 if test "$enableval" = yes; then
8939 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8940 else
8941 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8942 fi
8943
8944else
8945
8946 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8947 if test "x$LINE" != x ; then
8948 eval "DEFAULT_$LINE"
8949 else
8950 no_cache=1
8951 fi
8952
8953 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8954
8955fi;
8956
8957 eval "$ac_cv_use_notebook"
8958 if test "$no_cache" != 1; then
8959 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8960 fi
8961
8962 if test "$wxUSE_NOTEBOOK" = yes; then
8963 echo "$as_me:$LINENO: result: yes" >&5
8964echo "${ECHO_T}yes" >&6
8965 else
8966 echo "$as_me:$LINENO: result: no" >&5
8967echo "${ECHO_T}no" >&6
8968 fi
8969
8970
642bcba9 8971 enablestring=
a57d600f
VZ
8972 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
8973echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 8974 no_cache=0
a57d600f
VZ
8975 # Check whether --enable-odcombobox or --disable-odcombobox was given.
8976if test "${enable_odcombobox+set}" = set; then
8977 enableval="$enable_odcombobox"
642bcba9
VZ
8978
8979 if test "$enableval" = yes; then
a57d600f 8980 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 8981 else
a57d600f 8982 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
8983 fi
8984
8985else
8986
a57d600f 8987 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
8988 if test "x$LINE" != x ; then
8989 eval "DEFAULT_$LINE"
8990 else
8991 no_cache=1
8992 fi
8993
a57d600f 8994 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
8995
8996fi;
8997
a57d600f 8998 eval "$ac_cv_use_odcombobox"
642bcba9 8999 if test "$no_cache" != 1; then
a57d600f 9000 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
9001 fi
9002
a57d600f 9003 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
9004 echo "$as_me:$LINENO: result: yes" >&5
9005echo "${ECHO_T}yes" >&6
9006 else
9007 echo "$as_me:$LINENO: result: no" >&5
9008echo "${ECHO_T}no" >&6
9009 fi
9010
9011
a848cd7e
SC
9012 enablestring=
9013 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
9014echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
9015 no_cache=0
9016 # Check whether --enable-radiobox or --disable-radiobox was given.
9017if test "${enable_radiobox+set}" = set; then
9018 enableval="$enable_radiobox"
9019
9020 if test "$enableval" = yes; then
9021 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
9022 else
9023 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
9024 fi
9025
9026else
9027
9028 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
9029 if test "x$LINE" != x ; then
9030 eval "DEFAULT_$LINE"
9031 else
9032 no_cache=1
9033 fi
9034
9035 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
9036
9037fi;
9038
9039 eval "$ac_cv_use_radiobox"
9040 if test "$no_cache" != 1; then
9041 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
9042 fi
9043
9044 if test "$wxUSE_RADIOBOX" = yes; then
9045 echo "$as_me:$LINENO: result: yes" >&5
9046echo "${ECHO_T}yes" >&6
9047 else
9048 echo "$as_me:$LINENO: result: no" >&5
9049echo "${ECHO_T}no" >&6
9050 fi
9051
9052
9053 enablestring=
9054 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
9055echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
9056 no_cache=0
9057 # Check whether --enable-radiobtn or --disable-radiobtn was given.
9058if test "${enable_radiobtn+set}" = set; then
9059 enableval="$enable_radiobtn"
9060
9061 if test "$enableval" = yes; then
9062 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
9063 else
9064 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
9065 fi
9066
9067else
9068
9069 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
9070 if test "x$LINE" != x ; then
9071 eval "DEFAULT_$LINE"
9072 else
9073 no_cache=1
9074 fi
9075
9076 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
9077
9078fi;
9079
9080 eval "$ac_cv_use_radiobtn"
9081 if test "$no_cache" != 1; then
9082 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
9083 fi
9084
9085 if test "$wxUSE_RADIOBTN" = yes; then
9086 echo "$as_me:$LINENO: result: yes" >&5
9087echo "${ECHO_T}yes" >&6
9088 else
9089 echo "$as_me:$LINENO: result: no" >&5
9090echo "${ECHO_T}no" >&6
9091 fi
9092
9093
9094 enablestring=
9095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
9096echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
9097 no_cache=0
9098 # Check whether --enable-sash or --disable-sash was given.
9099if test "${enable_sash+set}" = set; then
9100 enableval="$enable_sash"
9101
9102 if test "$enableval" = yes; then
9103 ac_cv_use_sash='wxUSE_SASH=yes'
9104 else
9105 ac_cv_use_sash='wxUSE_SASH=no'
9106 fi
9107
9108else
9109
9110 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
9111 if test "x$LINE" != x ; then
9112 eval "DEFAULT_$LINE"
9113 else
9114 no_cache=1
9115 fi
9116
9117 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9118
9119fi;
9120
9121 eval "$ac_cv_use_sash"
9122 if test "$no_cache" != 1; then
9123 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9124 fi
9125
9126 if test "$wxUSE_SASH" = yes; then
9127 echo "$as_me:$LINENO: result: yes" >&5
9128echo "${ECHO_T}yes" >&6
9129 else
9130 echo "$as_me:$LINENO: result: no" >&5
9131echo "${ECHO_T}no" >&6
9132 fi
9133
9134
9135 enablestring=
9136 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9137echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9138 no_cache=0
9139 # Check whether --enable-scrollbar or --disable-scrollbar was given.
9140if test "${enable_scrollbar+set}" = set; then
9141 enableval="$enable_scrollbar"
9142
9143 if test "$enableval" = yes; then
9144 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9145 else
9146 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9147 fi
9148
9149else
9150
9151 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9152 if test "x$LINE" != x ; then
9153 eval "DEFAULT_$LINE"
9154 else
9155 no_cache=1
9156 fi
9157
9158 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9159
9160fi;
9161
9162 eval "$ac_cv_use_scrollbar"
9163 if test "$no_cache" != 1; then
9164 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9165 fi
9166
9167 if test "$wxUSE_SCROLLBAR" = yes; then
9168 echo "$as_me:$LINENO: result: yes" >&5
9169echo "${ECHO_T}yes" >&6
9170 else
9171 echo "$as_me:$LINENO: result: no" >&5
9172echo "${ECHO_T}no" >&6
9173 fi
9174
9175
9176 enablestring=
9177 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9178echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9179 no_cache=0
9180 # Check whether --enable-slider or --disable-slider was given.
9181if test "${enable_slider+set}" = set; then
9182 enableval="$enable_slider"
9183
9184 if test "$enableval" = yes; then
9185 ac_cv_use_slider='wxUSE_SLIDER=yes'
9186 else
9187 ac_cv_use_slider='wxUSE_SLIDER=no'
9188 fi
9189
9190else
9191
9192 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9193 if test "x$LINE" != x ; then
9194 eval "DEFAULT_$LINE"
9195 else
9196 no_cache=1
9197 fi
9198
9199 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9200
9201fi;
9202
9203 eval "$ac_cv_use_slider"
9204 if test "$no_cache" != 1; then
9205 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9206 fi
9207
9208 if test "$wxUSE_SLIDER" = yes; then
9209 echo "$as_me:$LINENO: result: yes" >&5
9210echo "${ECHO_T}yes" >&6
9211 else
9212 echo "$as_me:$LINENO: result: no" >&5
9213echo "${ECHO_T}no" >&6
9214 fi
9215
9216
9217 enablestring=
9218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9219echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9220 no_cache=0
9221 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9222if test "${enable_spinbtn+set}" = set; then
9223 enableval="$enable_spinbtn"
9224
9225 if test "$enableval" = yes; then
9226 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9227 else
9228 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9229 fi
9230
9231else
9232
9233 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9234 if test "x$LINE" != x ; then
9235 eval "DEFAULT_$LINE"
9236 else
9237 no_cache=1
9238 fi
9239
9240 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9241
9242fi;
9243
9244 eval "$ac_cv_use_spinbtn"
9245 if test "$no_cache" != 1; then
9246 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9247 fi
9248
9249 if test "$wxUSE_SPINBTN" = yes; then
9250 echo "$as_me:$LINENO: result: yes" >&5
9251echo "${ECHO_T}yes" >&6
9252 else
9253 echo "$as_me:$LINENO: result: no" >&5
9254echo "${ECHO_T}no" >&6
9255 fi
9256
9257
9258 enablestring=
9259 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9260echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9261 no_cache=0
9262 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9263if test "${enable_spinctrl+set}" = set; then
9264 enableval="$enable_spinctrl"
9265
9266 if test "$enableval" = yes; then
9267 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9268 else
9269 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9270 fi
9271
9272else
9273
9274 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9275 if test "x$LINE" != x ; then
9276 eval "DEFAULT_$LINE"
9277 else
9278 no_cache=1
9279 fi
9280
9281 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9282
9283fi;
9284
9285 eval "$ac_cv_use_spinctrl"
9286 if test "$no_cache" != 1; then
9287 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9288 fi
9289
9290 if test "$wxUSE_SPINCTRL" = yes; then
9291 echo "$as_me:$LINENO: result: yes" >&5
9292echo "${ECHO_T}yes" >&6
9293 else
9294 echo "$as_me:$LINENO: result: no" >&5
9295echo "${ECHO_T}no" >&6
9296 fi
9297
9298
9299 enablestring=
9300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9301echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9302 no_cache=0
9303 # Check whether --enable-splitter or --disable-splitter was given.
9304if test "${enable_splitter+set}" = set; then
9305 enableval="$enable_splitter"
9306
9307 if test "$enableval" = yes; then
9308 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9309 else
9310 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9311 fi
9312
9313else
9314
9315 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9316 if test "x$LINE" != x ; then
9317 eval "DEFAULT_$LINE"
9318 else
9319 no_cache=1
9320 fi
9321
9322 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9323
9324fi;
9325
9326 eval "$ac_cv_use_splitter"
9327 if test "$no_cache" != 1; then
9328 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9329 fi
9330
9331 if test "$wxUSE_SPLITTER" = yes; then
9332 echo "$as_me:$LINENO: result: yes" >&5
9333echo "${ECHO_T}yes" >&6
9334 else
9335 echo "$as_me:$LINENO: result: no" >&5
9336echo "${ECHO_T}no" >&6
9337 fi
9338
9339
9340 enablestring=
9341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9342echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9343 no_cache=0
9344 # Check whether --enable-statbmp or --disable-statbmp was given.
9345if test "${enable_statbmp+set}" = set; then
9346 enableval="$enable_statbmp"
9347
9348 if test "$enableval" = yes; then
9349 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9350 else
9351 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9352 fi
9353
9354else
9355
9356 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9357 if test "x$LINE" != x ; then
9358 eval "DEFAULT_$LINE"
9359 else
9360 no_cache=1
9361 fi
9362
9363 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9364
9365fi;
9366
9367 eval "$ac_cv_use_statbmp"
9368 if test "$no_cache" != 1; then
9369 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9370 fi
9371
9372 if test "$wxUSE_STATBMP" = yes; then
9373 echo "$as_me:$LINENO: result: yes" >&5
9374echo "${ECHO_T}yes" >&6
9375 else
9376 echo "$as_me:$LINENO: result: no" >&5
9377echo "${ECHO_T}no" >&6
9378 fi
9379
9380
9381 enablestring=
9382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9383echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9384 no_cache=0
9385 # Check whether --enable-statbox or --disable-statbox was given.
9386if test "${enable_statbox+set}" = set; then
9387 enableval="$enable_statbox"
9388
9389 if test "$enableval" = yes; then
9390 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9391 else
9392 ac_cv_use_statbox='wxUSE_STATBOX=no'
9393 fi
9394
9395else
9396
9397 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9398 if test "x$LINE" != x ; then
9399 eval "DEFAULT_$LINE"
9400 else
9401 no_cache=1
9402 fi
9403
9404 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9405
9406fi;
9407
9408 eval "$ac_cv_use_statbox"
9409 if test "$no_cache" != 1; then
9410 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9411 fi
9412
9413 if test "$wxUSE_STATBOX" = yes; then
9414 echo "$as_me:$LINENO: result: yes" >&5
9415echo "${ECHO_T}yes" >&6
9416 else
9417 echo "$as_me:$LINENO: result: no" >&5
9418echo "${ECHO_T}no" >&6
9419 fi
9420
9421
9422 enablestring=
9423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9424echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9425 no_cache=0
9426 # Check whether --enable-statline or --disable-statline was given.
9427if test "${enable_statline+set}" = set; then
9428 enableval="$enable_statline"
9429
9430 if test "$enableval" = yes; then
9431 ac_cv_use_statline='wxUSE_STATLINE=yes'
9432 else
9433 ac_cv_use_statline='wxUSE_STATLINE=no'
9434 fi
9435
9436else
9437
9438 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9439 if test "x$LINE" != x ; then
9440 eval "DEFAULT_$LINE"
9441 else
9442 no_cache=1
9443 fi
9444
9445 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9446
9447fi;
9448
9449 eval "$ac_cv_use_statline"
9450 if test "$no_cache" != 1; then
9451 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9452 fi
9453
9454 if test "$wxUSE_STATLINE" = yes; then
9455 echo "$as_me:$LINENO: result: yes" >&5
9456echo "${ECHO_T}yes" >&6
9457 else
9458 echo "$as_me:$LINENO: result: no" >&5
9459echo "${ECHO_T}no" >&6
9460 fi
9461
9462
9463 enablestring=
9464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9465echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9466 no_cache=0
9467 # Check whether --enable-stattext or --disable-stattext was given.
9468if test "${enable_stattext+set}" = set; then
9469 enableval="$enable_stattext"
9470
9471 if test "$enableval" = yes; then
9472 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9473 else
9474 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9475 fi
9476
9477else
9478
9479 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9480 if test "x$LINE" != x ; then
9481 eval "DEFAULT_$LINE"
9482 else
9483 no_cache=1
9484 fi
9485
9486 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9487
9488fi;
9489
9490 eval "$ac_cv_use_stattext"
9491 if test "$no_cache" != 1; then
9492 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9493 fi
9494
9495 if test "$wxUSE_STATTEXT" = yes; then
9496 echo "$as_me:$LINENO: result: yes" >&5
9497echo "${ECHO_T}yes" >&6
9498 else
9499 echo "$as_me:$LINENO: result: no" >&5
9500echo "${ECHO_T}no" >&6
9501 fi
9502
9503
9504 enablestring=
9505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9506echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9507 no_cache=0
9508 # Check whether --enable-statusbar or --disable-statusbar was given.
9509if test "${enable_statusbar+set}" = set; then
9510 enableval="$enable_statusbar"
9511
9512 if test "$enableval" = yes; then
9513 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9514 else
9515 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9516 fi
9517
9518else
9519
9520 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9521 if test "x$LINE" != x ; then
9522 eval "DEFAULT_$LINE"
9523 else
9524 no_cache=1
9525 fi
9526
9527 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9528
9529fi;
9530
9531 eval "$ac_cv_use_statusbar"
9532 if test "$no_cache" != 1; then
9533 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9534 fi
9535
9536 if test "$wxUSE_STATUSBAR" = yes; then
9537 echo "$as_me:$LINENO: result: yes" >&5
9538echo "${ECHO_T}yes" >&6
9539 else
9540 echo "$as_me:$LINENO: result: no" >&5
9541echo "${ECHO_T}no" >&6
9542 fi
9543
9544
9545 enablestring=
9546 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9547echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9548 no_cache=0
9549 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9550if test "${enable_tabdialog+set}" = set; then
9551 enableval="$enable_tabdialog"
9552
9553 if test "$enableval" = yes; then
f10e38c4 9554 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9555 else
f10e38c4 9556 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9557 fi
9558
9559else
9560
f10e38c4 9561 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9562 if test "x$LINE" != x ; then
9563 eval "DEFAULT_$LINE"
9564 else
9565 no_cache=1
9566 fi
9567
f10e38c4 9568 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9569
9570fi;
9571
9572 eval "$ac_cv_use_tabdialog"
9573 if test "$no_cache" != 1; then
9574 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9575 fi
9576
f10e38c4 9577 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9578 echo "$as_me:$LINENO: result: yes" >&5
9579echo "${ECHO_T}yes" >&6
9580 else
9581 echo "$as_me:$LINENO: result: no" >&5
9582echo "${ECHO_T}no" >&6
9583 fi
9584
9585
9586 enablestring=
9587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9588echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9589 no_cache=0
9590 # Check whether --enable-textctrl or --disable-textctrl was given.
9591if test "${enable_textctrl+set}" = set; then
9592 enableval="$enable_textctrl"
9593
9594 if test "$enableval" = yes; then
9595 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9596 else
9597 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9598 fi
9599
9600else
9601
9602 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9603 if test "x$LINE" != x ; then
9604 eval "DEFAULT_$LINE"
9605 else
9606 no_cache=1
9607 fi
9608
9609 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9610
9611fi;
9612
9613 eval "$ac_cv_use_textctrl"
9614 if test "$no_cache" != 1; then
9615 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9616 fi
9617
9618 if test "$wxUSE_TEXTCTRL" = yes; then
9619 echo "$as_me:$LINENO: result: yes" >&5
9620echo "${ECHO_T}yes" >&6
9621 else
9622 echo "$as_me:$LINENO: result: no" >&5
9623echo "${ECHO_T}no" >&6
9624 fi
9625
9626
9627 enablestring=
9628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9629echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9630 no_cache=0
9631 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9632if test "${enable_togglebtn+set}" = set; then
9633 enableval="$enable_togglebtn"
9634
9635 if test "$enableval" = yes; then
9636 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9637 else
9638 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9639 fi
9640
9641else
9642
9643 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9644 if test "x$LINE" != x ; then
9645 eval "DEFAULT_$LINE"
9646 else
9647 no_cache=1
9648 fi
9649
9650 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9651
9652fi;
9653
9654 eval "$ac_cv_use_togglebtn"
9655 if test "$no_cache" != 1; then
9656 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9657 fi
9658
9659 if test "$wxUSE_TOGGLEBTN" = yes; then
9660 echo "$as_me:$LINENO: result: yes" >&5
9661echo "${ECHO_T}yes" >&6
9662 else
9663 echo "$as_me:$LINENO: result: no" >&5
9664echo "${ECHO_T}no" >&6
9665 fi
9666
9667
9668 enablestring=
9669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9670echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9671 no_cache=0
9672 # Check whether --enable-toolbar or --disable-toolbar was given.
9673if test "${enable_toolbar+set}" = set; then
9674 enableval="$enable_toolbar"
9675
9676 if test "$enableval" = yes; then
9677 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9678 else
9679 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9680 fi
9681
9682else
9683
9684 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9685 if test "x$LINE" != x ; then
9686 eval "DEFAULT_$LINE"
9687 else
9688 no_cache=1
9689 fi
9690
9691 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9692
9693fi;
9694
9695 eval "$ac_cv_use_toolbar"
9696 if test "$no_cache" != 1; then
9697 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9698 fi
9699
9700 if test "$wxUSE_TOOLBAR" = yes; then
9701 echo "$as_me:$LINENO: result: yes" >&5
9702echo "${ECHO_T}yes" >&6
9703 else
9704 echo "$as_me:$LINENO: result: no" >&5
9705echo "${ECHO_T}no" >&6
9706 fi
9707
9708
9709 enablestring=
9710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9711echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9712 no_cache=0
9713 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9714if test "${enable_tbarnative+set}" = set; then
9715 enableval="$enable_tbarnative"
9716
9717 if test "$enableval" = yes; then
9718 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9719 else
9720 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9721 fi
9722
9723else
9724
9725 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9726 if test "x$LINE" != x ; then
9727 eval "DEFAULT_$LINE"
9728 else
9729 no_cache=1
9730 fi
9731
9732 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9733
9734fi;
9735
9736 eval "$ac_cv_use_tbarnative"
9737 if test "$no_cache" != 1; then
9738 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9739 fi
9740
9741 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9742 echo "$as_me:$LINENO: result: yes" >&5
9743echo "${ECHO_T}yes" >&6
9744 else
9745 echo "$as_me:$LINENO: result: no" >&5
9746echo "${ECHO_T}no" >&6
9747 fi
9748
9749
0093c2fc
VZ
9750 enablestring=
9751 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9752echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9753 no_cache=0
9754 # Check whether --enable-treebook or --disable-treebook was given.
9755if test "${enable_treebook+set}" = set; then
9756 enableval="$enable_treebook"
9757
9758 if test "$enableval" = yes; then
9759 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9760 else
9761 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9762 fi
9763
9764else
9765
9766 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9767 if test "x$LINE" != x ; then
9768 eval "DEFAULT_$LINE"
9769 else
9770 no_cache=1
9771 fi
9772
9773 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9774
9775fi;
9776
9777 eval "$ac_cv_use_treebook"
9778 if test "$no_cache" != 1; then
9779 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9780 fi
9781
9782 if test "$wxUSE_TREEBOOK" = yes; then
9783 echo "$as_me:$LINENO: result: yes" >&5
9784echo "${ECHO_T}yes" >&6
9785 else
9786 echo "$as_me:$LINENO: result: no" >&5
9787echo "${ECHO_T}no" >&6
9788 fi
9789
9790
5ec3bc43
JS
9791 enablestring=
9792 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9793echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9794 no_cache=0
9795 # Check whether --enable-toolbook or --disable-toolbook was given.
9796if test "${enable_toolbook+set}" = set; then
9797 enableval="$enable_toolbook"
9798
9799 if test "$enableval" = yes; then
9800 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9801 else
9802 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9803 fi
9804
9805else
9806
9807 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9808 if test "x$LINE" != x ; then
9809 eval "DEFAULT_$LINE"
9810 else
9811 no_cache=1
9812 fi
9813
9814 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9815
9816fi;
9817
9818 eval "$ac_cv_use_toolbook"
9819 if test "$no_cache" != 1; then
9820 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9821 fi
9822
9823 if test "$wxUSE_TOOLBOOK" = yes; then
9824 echo "$as_me:$LINENO: result: yes" >&5
9825echo "${ECHO_T}yes" >&6
9826 else
9827 echo "$as_me:$LINENO: result: no" >&5
9828echo "${ECHO_T}no" >&6
9829 fi
9830
9831
a848cd7e
SC
9832 enablestring=
9833 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9834echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9835 no_cache=0
9836 # Check whether --enable-treectrl or --disable-treectrl was given.
9837if test "${enable_treectrl+set}" = set; then
9838 enableval="$enable_treectrl"
9839
9840 if test "$enableval" = yes; then
9841 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9842 else
9843 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9844 fi
9845
9846else
9847
9848 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9849 if test "x$LINE" != x ; then
9850 eval "DEFAULT_$LINE"
9851 else
9852 no_cache=1
9853 fi
9854
9855 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9856
9857fi;
9858
9859 eval "$ac_cv_use_treectrl"
9860 if test "$no_cache" != 1; then
9861 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9862 fi
9863
9864 if test "$wxUSE_TREECTRL" = yes; then
9865 echo "$as_me:$LINENO: result: yes" >&5
9866echo "${ECHO_T}yes" >&6
9867 else
9868 echo "$as_me:$LINENO: result: no" >&5
9869echo "${ECHO_T}no" >&6
9870 fi
9871
9872
9873 enablestring=
9874 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9875echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9876 no_cache=0
9877 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9878if test "${enable_tipwindow+set}" = set; then
9879 enableval="$enable_tipwindow"
9880
9881 if test "$enableval" = yes; then
9882 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9883 else
9884 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9885 fi
9886
9887else
9888
9889 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9890 if test "x$LINE" != x ; then
9891 eval "DEFAULT_$LINE"
9892 else
9893 no_cache=1
9894 fi
9895
9896 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9897
9898fi;
9899
9900 eval "$ac_cv_use_tipwindow"
9901 if test "$no_cache" != 1; then
9902 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9903 fi
9904
9905 if test "$wxUSE_TIPWINDOW" = yes; then
9906 echo "$as_me:$LINENO: result: yes" >&5
9907echo "${ECHO_T}yes" >&6
9908 else
9909 echo "$as_me:$LINENO: result: no" >&5
9910echo "${ECHO_T}no" >&6
9911 fi
9912
9913
9914 enablestring=
9915 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9916echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9917 no_cache=0
9918 # Check whether --enable-popupwin or --disable-popupwin was given.
9919if test "${enable_popupwin+set}" = set; then
9920 enableval="$enable_popupwin"
9921
9922 if test "$enableval" = yes; then
9923 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9924 else
9925 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9926 fi
9927
9928else
9929
9930 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9931 if test "x$LINE" != x ; then
9932 eval "DEFAULT_$LINE"
9933 else
9934 no_cache=1
9935 fi
9936
9937 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9938
9939fi;
9940
9941 eval "$ac_cv_use_popupwin"
9942 if test "$no_cache" != 1; then
9943 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9944 fi
9945
9946 if test "$wxUSE_POPUPWIN" = yes; then
9947 echo "$as_me:$LINENO: result: yes" >&5
9948echo "${ECHO_T}yes" >&6
9949 else
9950 echo "$as_me:$LINENO: result: no" >&5
9951echo "${ECHO_T}no" >&6
9952 fi
9953
9954
9955
9956
9957 enablestring=
9958 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9959echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9960 no_cache=0
9961 # Check whether --enable-commondlg or --disable-commondlg was given.
9962if test "${enable_commondlg+set}" = set; then
9963 enableval="$enable_commondlg"
9964
9965 if test "$enableval" = yes; then
9966 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9967 else
9968 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9969 fi
9970
9971else
9972
9973 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9974 if test "x$LINE" != x ; then
9975 eval "DEFAULT_$LINE"
9976 else
9977 no_cache=1
9978 fi
9979
9980 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9981
9982fi;
9983
9984 eval "$ac_cv_use_commondlg"
9985 if test "$no_cache" != 1; then
9986 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9987 fi
9988
9989 if test "$wxUSE_COMMONDLGS" = yes; then
9990 echo "$as_me:$LINENO: result: yes" >&5
9991echo "${ECHO_T}yes" >&6
9992 else
9993 echo "$as_me:$LINENO: result: no" >&5
9994echo "${ECHO_T}no" >&6
9995 fi
9996
9997
9998 enablestring=
9999 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
10000echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
10001 no_cache=0
10002 # Check whether --enable-choicedlg or --disable-choicedlg was given.
10003if test "${enable_choicedlg+set}" = set; then
10004 enableval="$enable_choicedlg"
10005
10006 if test "$enableval" = yes; then
10007 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
10008 else
10009 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
10010 fi
10011
10012else
10013
10014 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
10015 if test "x$LINE" != x ; then
10016 eval "DEFAULT_$LINE"
10017 else
10018 no_cache=1
10019 fi
10020
10021 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
10022
10023fi;
10024
10025 eval "$ac_cv_use_choicedlg"
10026 if test "$no_cache" != 1; then
10027 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
10028 fi
10029
10030 if test "$wxUSE_CHOICEDLG" = yes; then
10031 echo "$as_me:$LINENO: result: yes" >&5
10032echo "${ECHO_T}yes" >&6
10033 else
10034 echo "$as_me:$LINENO: result: no" >&5
10035echo "${ECHO_T}no" >&6
10036 fi
10037
10038
10039 enablestring=
10040 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
10041echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
10042 no_cache=0
10043 # Check whether --enable-coldlg or --disable-coldlg was given.
10044if test "${enable_coldlg+set}" = set; then
10045 enableval="$enable_coldlg"
10046
10047 if test "$enableval" = yes; then
10048 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
10049 else
10050 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
10051 fi
10052
10053else
10054
10055 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
10056 if test "x$LINE" != x ; then
10057 eval "DEFAULT_$LINE"
10058 else
10059 no_cache=1
10060 fi
10061
10062 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
10063
10064fi;
10065
10066 eval "$ac_cv_use_coldlg"
10067 if test "$no_cache" != 1; then
10068 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
10069 fi
10070
10071 if test "$wxUSE_COLOURDLG" = yes; then
10072 echo "$as_me:$LINENO: result: yes" >&5
10073echo "${ECHO_T}yes" >&6
10074 else
10075 echo "$as_me:$LINENO: result: no" >&5
10076echo "${ECHO_T}no" >&6
10077 fi
10078
10079
10080 enablestring=
10081 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10082echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
10083 no_cache=0
10084 # Check whether --enable-filedlg or --disable-filedlg was given.
10085if test "${enable_filedlg+set}" = set; then
10086 enableval="$enable_filedlg"
10087
10088 if test "$enableval" = yes; then
10089 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
10090 else
10091 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
10092 fi
10093
10094else
10095
10096 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10097 if test "x$LINE" != x ; then
10098 eval "DEFAULT_$LINE"
10099 else
10100 no_cache=1
10101 fi
10102
10103 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10104
10105fi;
10106
10107 eval "$ac_cv_use_filedlg"
10108 if test "$no_cache" != 1; then
10109 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10110 fi
10111
10112 if test "$wxUSE_FILEDLG" = yes; then
10113 echo "$as_me:$LINENO: result: yes" >&5
10114echo "${ECHO_T}yes" >&6
10115 else
10116 echo "$as_me:$LINENO: result: no" >&5
10117echo "${ECHO_T}no" >&6
10118 fi
10119
10120
10121 enablestring=
10122 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10123echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10124 no_cache=0
10125 # Check whether --enable-finddlg or --disable-finddlg was given.
10126if test "${enable_finddlg+set}" = set; then
10127 enableval="$enable_finddlg"
10128
10129 if test "$enableval" = yes; then
10130 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10131 else
10132 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10133 fi
10134
10135else
10136
10137 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10138 if test "x$LINE" != x ; then
10139 eval "DEFAULT_$LINE"
10140 else
10141 no_cache=1
10142 fi
10143
10144 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10145
10146fi;
10147
10148 eval "$ac_cv_use_finddlg"
10149 if test "$no_cache" != 1; then
10150 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10151 fi
10152
10153 if test "$wxUSE_FINDREPLDLG" = yes; then
10154 echo "$as_me:$LINENO: result: yes" >&5
10155echo "${ECHO_T}yes" >&6
10156 else
10157 echo "$as_me:$LINENO: result: no" >&5
10158echo "${ECHO_T}no" >&6
10159 fi
10160
10161
10162 enablestring=
10163 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10164echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10165 no_cache=0
10166 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10167if test "${enable_fontdlg+set}" = set; then
10168 enableval="$enable_fontdlg"
10169
10170 if test "$enableval" = yes; then
10171 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10172 else
10173 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10174 fi
10175
10176else
10177
10178 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10179 if test "x$LINE" != x ; then
10180 eval "DEFAULT_$LINE"
10181 else
10182 no_cache=1
10183 fi
10184
10185 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10186
10187fi;
10188
10189 eval "$ac_cv_use_fontdlg"
10190 if test "$no_cache" != 1; then
10191 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10192 fi
10193
10194 if test "$wxUSE_FONTDLG" = yes; then
10195 echo "$as_me:$LINENO: result: yes" >&5
10196echo "${ECHO_T}yes" >&6
10197 else
10198 echo "$as_me:$LINENO: result: no" >&5
10199echo "${ECHO_T}no" >&6
10200 fi
10201
10202
10203 enablestring=
10204 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10205echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10206 no_cache=0
10207 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10208if test "${enable_dirdlg+set}" = set; then
10209 enableval="$enable_dirdlg"
10210
10211 if test "$enableval" = yes; then
10212 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10213 else
10214 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10215 fi
10216
10217else
10218
10219 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10220 if test "x$LINE" != x ; then
10221 eval "DEFAULT_$LINE"
10222 else
10223 no_cache=1
10224 fi
10225
10226 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10227
10228fi;
10229
10230 eval "$ac_cv_use_dirdlg"
10231 if test "$no_cache" != 1; then
10232 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10233 fi
10234
10235 if test "$wxUSE_DIRDLG" = yes; then
10236 echo "$as_me:$LINENO: result: yes" >&5
10237echo "${ECHO_T}yes" >&6
10238 else
10239 echo "$as_me:$LINENO: result: no" >&5
10240echo "${ECHO_T}no" >&6
10241 fi
10242
10243
10244 enablestring=
10245 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10246echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10247 no_cache=0
10248 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10249if test "${enable_msgdlg+set}" = set; then
10250 enableval="$enable_msgdlg"
10251
10252 if test "$enableval" = yes; then
10253 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10254 else
10255 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10256 fi
10257
10258else
10259
10260 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10261 if test "x$LINE" != x ; then
10262 eval "DEFAULT_$LINE"
10263 else
10264 no_cache=1
10265 fi
10266
10267 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10268
10269fi;
10270
10271 eval "$ac_cv_use_msgdlg"
10272 if test "$no_cache" != 1; then
10273 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10274 fi
10275
10276 if test "$wxUSE_MSGDLG" = yes; then
10277 echo "$as_me:$LINENO: result: yes" >&5
10278echo "${ECHO_T}yes" >&6
10279 else
10280 echo "$as_me:$LINENO: result: no" >&5
10281echo "${ECHO_T}no" >&6
10282 fi
10283
10284
10285 enablestring=
10286 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10287echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10288 no_cache=0
10289 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10290if test "${enable_numberdlg+set}" = set; then
10291 enableval="$enable_numberdlg"
10292
10293 if test "$enableval" = yes; then
10294 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10295 else
10296 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10297 fi
10298
10299else
10300
10301 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10302 if test "x$LINE" != x ; then
10303 eval "DEFAULT_$LINE"
10304 else
10305 no_cache=1
10306 fi
10307
10308 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10309
10310fi;
10311
10312 eval "$ac_cv_use_numberdlg"
10313 if test "$no_cache" != 1; then
10314 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10315 fi
10316
10317 if test "$wxUSE_NUMBERDLG" = yes; then
10318 echo "$as_me:$LINENO: result: yes" >&5
10319echo "${ECHO_T}yes" >&6
10320 else
10321 echo "$as_me:$LINENO: result: no" >&5
10322echo "${ECHO_T}no" >&6
10323 fi
10324
10325
10326 enablestring=
10327 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10328echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10329 no_cache=0
10330 # Check whether --enable-splash or --disable-splash was given.
10331if test "${enable_splash+set}" = set; then
10332 enableval="$enable_splash"
10333
10334 if test "$enableval" = yes; then
10335 ac_cv_use_splash='wxUSE_SPLASH=yes'
10336 else
10337 ac_cv_use_splash='wxUSE_SPLASH=no'
10338 fi
10339
10340else
10341
10342 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10343 if test "x$LINE" != x ; then
10344 eval "DEFAULT_$LINE"
10345 else
10346 no_cache=1
10347 fi
10348
10349 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10350
10351fi;
10352
10353 eval "$ac_cv_use_splash"
10354 if test "$no_cache" != 1; then
10355 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10356 fi
10357
10358 if test "$wxUSE_SPLASH" = yes; then
10359 echo "$as_me:$LINENO: result: yes" >&5
10360echo "${ECHO_T}yes" >&6
10361 else
10362 echo "$as_me:$LINENO: result: no" >&5
10363echo "${ECHO_T}no" >&6
10364 fi
10365
10366
10367 enablestring=
10368 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10369echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10370 no_cache=0
10371 # Check whether --enable-textdlg or --disable-textdlg was given.
10372if test "${enable_textdlg+set}" = set; then
10373 enableval="$enable_textdlg"
10374
10375 if test "$enableval" = yes; then
10376 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10377 else
10378 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10379 fi
10380
10381else
10382
10383 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10384 if test "x$LINE" != x ; then
10385 eval "DEFAULT_$LINE"
10386 else
10387 no_cache=1
10388 fi
10389
10390 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10391
10392fi;
10393
10394 eval "$ac_cv_use_textdlg"
10395 if test "$no_cache" != 1; then
10396 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10397 fi
10398
10399 if test "$wxUSE_TEXTDLG" = yes; then
10400 echo "$as_me:$LINENO: result: yes" >&5
10401echo "${ECHO_T}yes" >&6
10402 else
10403 echo "$as_me:$LINENO: result: no" >&5
10404echo "${ECHO_T}no" >&6
10405 fi
10406
10407
10408 enablestring=
10409 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10410echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10411 no_cache=0
10412 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10413if test "${enable_tipdlg+set}" = set; then
10414 enableval="$enable_tipdlg"
10415
10416 if test "$enableval" = yes; then
10417 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10418 else
10419 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10420 fi
10421
10422else
10423
10424 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10425 if test "x$LINE" != x ; then
10426 eval "DEFAULT_$LINE"
10427 else
10428 no_cache=1
10429 fi
10430
10431 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10432
10433fi;
10434
10435 eval "$ac_cv_use_tipdlg"
10436 if test "$no_cache" != 1; then
10437 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10438 fi
10439
10440 if test "$wxUSE_STARTUP_TIPS" = yes; then
10441 echo "$as_me:$LINENO: result: yes" >&5
10442echo "${ECHO_T}yes" >&6
10443 else
10444 echo "$as_me:$LINENO: result: no" >&5
10445echo "${ECHO_T}no" >&6
10446 fi
10447
10448
10449 enablestring=
10450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10451echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10452 no_cache=0
10453 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10454if test "${enable_progressdlg+set}" = set; then
10455 enableval="$enable_progressdlg"
10456
10457 if test "$enableval" = yes; then
10458 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10459 else
10460 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10461 fi
10462
10463else
10464
10465 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10466 if test "x$LINE" != x ; then
10467 eval "DEFAULT_$LINE"
10468 else
10469 no_cache=1
10470 fi
10471
10472 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10473
10474fi;
10475
10476 eval "$ac_cv_use_progressdlg"
10477 if test "$no_cache" != 1; then
10478 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10479 fi
10480
10481 if test "$wxUSE_PROGRESSDLG" = yes; then
10482 echo "$as_me:$LINENO: result: yes" >&5
10483echo "${ECHO_T}yes" >&6
10484 else
10485 echo "$as_me:$LINENO: result: no" >&5
10486echo "${ECHO_T}no" >&6
10487 fi
10488
10489
10490 enablestring=
10491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10492echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10493 no_cache=0
10494 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10495if test "${enable_wizarddlg+set}" = set; then
10496 enableval="$enable_wizarddlg"
10497
10498 if test "$enableval" = yes; then
10499 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10500 else
10501 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10502 fi
10503
10504else
10505
10506 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10507 if test "x$LINE" != x ; then
10508 eval "DEFAULT_$LINE"
10509 else
10510 no_cache=1
10511 fi
10512
10513 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10514
10515fi;
10516
10517 eval "$ac_cv_use_wizarddlg"
10518 if test "$no_cache" != 1; then
10519 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10520 fi
10521
10522 if test "$wxUSE_WIZARDDLG" = yes; then
10523 echo "$as_me:$LINENO: result: yes" >&5
10524echo "${ECHO_T}yes" >&6
10525 else
10526 echo "$as_me:$LINENO: result: no" >&5
10527echo "${ECHO_T}no" >&6
10528 fi
10529
10530
10531
10532
10533 enablestring=
10534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10535echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10536 no_cache=0
10537 # Check whether --enable-menus or --disable-menus was given.
10538if test "${enable_menus+set}" = set; then
10539 enableval="$enable_menus"
10540
10541 if test "$enableval" = yes; then
10542 ac_cv_use_menus='wxUSE_MENUS=yes'
10543 else
10544 ac_cv_use_menus='wxUSE_MENUS=no'
10545 fi
10546
10547else
10548
10549 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10550 if test "x$LINE" != x ; then
10551 eval "DEFAULT_$LINE"
10552 else
10553 no_cache=1
10554 fi
10555
10556 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10557
10558fi;
10559
10560 eval "$ac_cv_use_menus"
10561 if test "$no_cache" != 1; then
10562 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10563 fi
10564
10565 if test "$wxUSE_MENUS" = yes; then
10566 echo "$as_me:$LINENO: result: yes" >&5
10567echo "${ECHO_T}yes" >&6
10568 else
10569 echo "$as_me:$LINENO: result: no" >&5
10570echo "${ECHO_T}no" >&6
10571 fi
10572
10573
10574 enablestring=
10575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10576echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10577 no_cache=0
10578 # Check whether --enable-miniframe or --disable-miniframe was given.
10579if test "${enable_miniframe+set}" = set; then
10580 enableval="$enable_miniframe"
10581
10582 if test "$enableval" = yes; then
10583 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10584 else
10585 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10586 fi
10587
10588else
10589
10590 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10591 if test "x$LINE" != x ; then
10592 eval "DEFAULT_$LINE"
10593 else
10594 no_cache=1
10595 fi
10596
10597 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10598
10599fi;
10600
10601 eval "$ac_cv_use_miniframe"
10602 if test "$no_cache" != 1; then
10603 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10604 fi
10605
10606 if test "$wxUSE_MINIFRAME" = yes; then
10607 echo "$as_me:$LINENO: result: yes" >&5
10608echo "${ECHO_T}yes" >&6
10609 else
10610 echo "$as_me:$LINENO: result: no" >&5
10611echo "${ECHO_T}no" >&6
10612 fi
10613
10614
10615 enablestring=
10616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10617echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10618 no_cache=0
10619 # Check whether --enable-tooltips or --disable-tooltips was given.
10620if test "${enable_tooltips+set}" = set; then
10621 enableval="$enable_tooltips"
10622
10623 if test "$enableval" = yes; then
10624 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10625 else
10626 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10627 fi
10628
10629else
10630
10631 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10632 if test "x$LINE" != x ; then
10633 eval "DEFAULT_$LINE"
10634 else
10635 no_cache=1
10636 fi
10637
10638 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10639
10640fi;
10641
10642 eval "$ac_cv_use_tooltips"
10643 if test "$no_cache" != 1; then
10644 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10645 fi
10646
10647 if test "$wxUSE_TOOLTIPS" = yes; then
10648 echo "$as_me:$LINENO: result: yes" >&5
10649echo "${ECHO_T}yes" >&6
10650 else
10651 echo "$as_me:$LINENO: result: no" >&5
10652echo "${ECHO_T}no" >&6
10653 fi
10654
10655
10656 enablestring=
10657 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10658echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10659 no_cache=0
10660 # Check whether --enable-splines or --disable-splines was given.
10661if test "${enable_splines+set}" = set; then
10662 enableval="$enable_splines"
10663
10664 if test "$enableval" = yes; then
10665 ac_cv_use_splines='wxUSE_SPLINES=yes'
10666 else
10667 ac_cv_use_splines='wxUSE_SPLINES=no'
10668 fi
10669
10670else
10671
10672 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10673 if test "x$LINE" != x ; then
10674 eval "DEFAULT_$LINE"
10675 else
10676 no_cache=1
10677 fi
10678
10679 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10680
10681fi;
10682
10683 eval "$ac_cv_use_splines"
10684 if test "$no_cache" != 1; then
10685 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10686 fi
10687
10688 if test "$wxUSE_SPLINES" = yes; then
10689 echo "$as_me:$LINENO: result: yes" >&5
10690echo "${ECHO_T}yes" >&6
10691 else
10692 echo "$as_me:$LINENO: result: no" >&5
10693echo "${ECHO_T}no" >&6
10694 fi
10695
10696
fbe2ca43
SN
10697 enablestring=
10698 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10699echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10700 no_cache=0
10701 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10702if test "${enable_mousewheel+set}" = set; then
10703 enableval="$enable_mousewheel"
10704
10705 if test "$enableval" = yes; then
10706 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10707 else
10708 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10709 fi
10710
10711else
10712
10713 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10714 if test "x$LINE" != x ; then
10715 eval "DEFAULT_$LINE"
10716 else
10717 no_cache=1
10718 fi
10719
10720 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10721
10722fi;
10723
10724 eval "$ac_cv_use_mousewheel"
10725 if test "$no_cache" != 1; then
10726 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10727 fi
10728
10729 if test "$wxUSE_MOUSEWHEEL" = yes; then
10730 echo "$as_me:$LINENO: result: yes" >&5
10731echo "${ECHO_T}yes" >&6
10732 else
10733 echo "$as_me:$LINENO: result: no" >&5
10734echo "${ECHO_T}no" >&6
10735 fi
10736
10737
a848cd7e
SC
10738 enablestring=
10739 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10740echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10741 no_cache=0
10742 # Check whether --enable-validators or --disable-validators was given.
10743if test "${enable_validators+set}" = set; then
10744 enableval="$enable_validators"
10745
10746 if test "$enableval" = yes; then
10747 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10748 else
10749 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10750 fi
10751
10752else
10753
10754 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10755 if test "x$LINE" != x ; then
10756 eval "DEFAULT_$LINE"
10757 else
10758 no_cache=1
10759 fi
10760
10761 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10762
10763fi;
10764
10765 eval "$ac_cv_use_validators"
10766 if test "$no_cache" != 1; then
10767 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10768 fi
10769
10770 if test "$wxUSE_VALIDATORS" = yes; then
10771 echo "$as_me:$LINENO: result: yes" >&5
10772echo "${ECHO_T}yes" >&6
10773 else
10774 echo "$as_me:$LINENO: result: no" >&5
10775echo "${ECHO_T}no" >&6
10776 fi
10777
10778
10779 enablestring=
10780 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10781echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10782 no_cache=0
10783 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10784if test "${enable_busyinfo+set}" = set; then
10785 enableval="$enable_busyinfo"
10786
10787 if test "$enableval" = yes; then
10788 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10789 else
10790 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10791 fi
10792
10793else
10794
10795 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10796 if test "x$LINE" != x ; then
10797 eval "DEFAULT_$LINE"
10798 else
10799 no_cache=1
10800 fi
10801
10802 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10803
10804fi;
10805
10806 eval "$ac_cv_use_busyinfo"
10807 if test "$no_cache" != 1; then
10808 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10809 fi
10810
10811 if test "$wxUSE_BUSYINFO" = yes; then
10812 echo "$as_me:$LINENO: result: yes" >&5
10813echo "${ECHO_T}yes" >&6
10814 else
10815 echo "$as_me:$LINENO: result: no" >&5
10816echo "${ECHO_T}no" >&6
10817 fi
10818
10819
10820 enablestring=
10821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10822echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10823 no_cache=0
10824 # Check whether --enable-joystick or --disable-joystick was given.
10825if test "${enable_joystick+set}" = set; then
10826 enableval="$enable_joystick"
10827
10828 if test "$enableval" = yes; then
10829 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10830 else
10831 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10832 fi
10833
10834else
10835
10836 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10837 if test "x$LINE" != x ; then
10838 eval "DEFAULT_$LINE"
10839 else
10840 no_cache=1
10841 fi
10842
10843 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10844
10845fi;
10846
10847 eval "$ac_cv_use_joystick"
10848 if test "$no_cache" != 1; then
10849 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10850 fi
10851
10852 if test "$wxUSE_JOYSTICK" = yes; then
10853 echo "$as_me:$LINENO: result: yes" >&5
10854echo "${ECHO_T}yes" >&6
10855 else
10856 echo "$as_me:$LINENO: result: no" >&5
10857echo "${ECHO_T}no" >&6
10858 fi
10859
10860
10861 enablestring=
10862 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10863echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10864 no_cache=0
10865 # Check whether --enable-metafile or --disable-metafile was given.
10866if test "${enable_metafile+set}" = set; then
10867 enableval="$enable_metafile"
10868
10869 if test "$enableval" = yes; then
10870 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10871 else
10872 ac_cv_use_metafile='wxUSE_METAFILE=no'
10873 fi
10874
10875else
10876
10877 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10878 if test "x$LINE" != x ; then
10879 eval "DEFAULT_$LINE"
10880 else
10881 no_cache=1
10882 fi
10883
10884 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10885
10886fi;
10887
10888 eval "$ac_cv_use_metafile"
10889 if test "$no_cache" != 1; then
10890 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10891 fi
10892
10893 if test "$wxUSE_METAFILE" = yes; then
10894 echo "$as_me:$LINENO: result: yes" >&5
10895echo "${ECHO_T}yes" >&6
10896 else
10897 echo "$as_me:$LINENO: result: no" >&5
10898echo "${ECHO_T}no" >&6
10899 fi
10900
10901
10902 enablestring=
10903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10904echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10905 no_cache=0
10906 # Check whether --enable-dragimage or --disable-dragimage was given.
10907if test "${enable_dragimage+set}" = set; then
10908 enableval="$enable_dragimage"
10909
10910 if test "$enableval" = yes; then
10911 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10912 else
10913 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10914 fi
10915
10916else
10917
10918 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10919 if test "x$LINE" != x ; then
10920 eval "DEFAULT_$LINE"
10921 else
10922 no_cache=1
10923 fi
10924
10925 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10926
10927fi;
10928
10929 eval "$ac_cv_use_dragimage"
10930 if test "$no_cache" != 1; then
10931 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10932 fi
10933
10934 if test "$wxUSE_DRAGIMAGE" = yes; then
10935 echo "$as_me:$LINENO: result: yes" >&5
10936echo "${ECHO_T}yes" >&6
10937 else
10938 echo "$as_me:$LINENO: result: no" >&5
10939echo "${ECHO_T}no" >&6
10940 fi
10941
10942
10943 enablestring=
10944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10945echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10946 no_cache=0
10947 # Check whether --enable-accessibility or --disable-accessibility was given.
10948if test "${enable_accessibility+set}" = set; then
10949 enableval="$enable_accessibility"
10950
10951 if test "$enableval" = yes; then
10952 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10953 else
10954 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10955 fi
10956
10957else
10958
10959 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10960 if test "x$LINE" != x ; then
10961 eval "DEFAULT_$LINE"
10962 else
10963 no_cache=1
10964 fi
10965
10966 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10967
10968fi;
10969
10970 eval "$ac_cv_use_accessibility"
10971 if test "$no_cache" != 1; then
10972 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10973 fi
10974
10975 if test "$wxUSE_ACCESSIBILITY" = yes; then
10976 echo "$as_me:$LINENO: result: yes" >&5
10977echo "${ECHO_T}yes" >&6
10978 else
10979 echo "$as_me:$LINENO: result: no" >&5
10980echo "${ECHO_T}no" >&6
10981 fi
10982
10983
38b4a946
VZ
10984if test "$wxUSE_MSW" = "1"; then
10985
10986 enablestring=
10987 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10988echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10989 no_cache=0
10990 # Check whether --enable-dccache or --disable-dccache was given.
10991if test "${enable_dccache+set}" = set; then
10992 enableval="$enable_dccache"
10993
10994 if test "$enableval" = yes; then
10995 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10996 else
10997 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10998 fi
10999
11000else
11001
11002 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
11003 if test "x$LINE" != x ; then
11004 eval "DEFAULT_$LINE"
11005 else
11006 no_cache=1
11007 fi
11008
11009 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
11010
11011fi;
11012
11013 eval "$ac_cv_use_dccache"
11014 if test "$no_cache" != 1; then
11015 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
11016 fi
11017
11018 if test "$wxUSE_DC_CACHEING" = yes; then
11019 echo "$as_me:$LINENO: result: yes" >&5
11020echo "${ECHO_T}yes" >&6
11021 else
11022 echo "$as_me:$LINENO: result: no" >&5
11023echo "${ECHO_T}no" >&6
11024 fi
11025
11026fi
11027
a848cd7e
SC
11028
11029
11030 enablestring=
11031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
11032echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
11033 no_cache=0
11034 # Check whether --enable-palette or --disable-palette was given.
11035if test "${enable_palette+set}" = set; then
11036 enableval="$enable_palette"
11037
11038 if test "$enableval" = yes; then
11039 ac_cv_use_palette='wxUSE_PALETTE=yes'
11040 else
11041 ac_cv_use_palette='wxUSE_PALETTE=no'
11042 fi
11043
11044else
11045
11046 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
11047 if test "x$LINE" != x ; then
11048 eval "DEFAULT_$LINE"
11049 else
11050 no_cache=1
11051 fi
11052
11053 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
11054
11055fi;
11056
11057 eval "$ac_cv_use_palette"
11058 if test "$no_cache" != 1; then
11059 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
11060 fi
11061
11062 if test "$wxUSE_PALETTE" = yes; then
11063 echo "$as_me:$LINENO: result: yes" >&5
11064echo "${ECHO_T}yes" >&6
11065 else
11066 echo "$as_me:$LINENO: result: no" >&5
11067echo "${ECHO_T}no" >&6
11068 fi
11069
11070
11071 enablestring=
11072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
11073echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
11074 no_cache=0
11075 # Check whether --enable-image or --disable-image was given.
11076if test "${enable_image+set}" = set; then
11077 enableval="$enable_image"
11078
11079 if test "$enableval" = yes; then
11080 ac_cv_use_image='wxUSE_IMAGE=yes'
11081 else
11082 ac_cv_use_image='wxUSE_IMAGE=no'
11083 fi
11084
11085else
11086
11087 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11088 if test "x$LINE" != x ; then
11089 eval "DEFAULT_$LINE"
11090 else
11091 no_cache=1
11092 fi
11093
11094 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11095
11096fi;
11097
11098 eval "$ac_cv_use_image"
11099 if test "$no_cache" != 1; then
11100 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11101 fi
11102
11103 if test "$wxUSE_IMAGE" = yes; then
11104 echo "$as_me:$LINENO: result: yes" >&5
11105echo "${ECHO_T}yes" >&6
11106 else
11107 echo "$as_me:$LINENO: result: no" >&5
11108echo "${ECHO_T}no" >&6
11109 fi
11110
11111
11112 enablestring=
11113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11114echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11115 no_cache=0
11116 # Check whether --enable-gif or --disable-gif was given.
11117if test "${enable_gif+set}" = set; then
11118 enableval="$enable_gif"
11119
11120 if test "$enableval" = yes; then
11121 ac_cv_use_gif='wxUSE_GIF=yes'
11122 else
11123 ac_cv_use_gif='wxUSE_GIF=no'
11124 fi
11125
11126else
11127
11128 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11129 if test "x$LINE" != x ; then
11130 eval "DEFAULT_$LINE"
11131 else
11132 no_cache=1
11133 fi
11134
11135 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11136
11137fi;
11138
11139 eval "$ac_cv_use_gif"
11140 if test "$no_cache" != 1; then
11141 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11142 fi
11143
11144 if test "$wxUSE_GIF" = yes; then
11145 echo "$as_me:$LINENO: result: yes" >&5
11146echo "${ECHO_T}yes" >&6
11147 else
11148 echo "$as_me:$LINENO: result: no" >&5
11149echo "${ECHO_T}no" >&6
11150 fi
11151
11152
11153 enablestring=
11154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11155echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11156 no_cache=0
11157 # Check whether --enable-pcx or --disable-pcx was given.
11158if test "${enable_pcx+set}" = set; then
11159 enableval="$enable_pcx"
11160
11161 if test "$enableval" = yes; then
11162 ac_cv_use_pcx='wxUSE_PCX=yes'
11163 else
11164 ac_cv_use_pcx='wxUSE_PCX=no'
11165 fi
11166
11167else
11168
11169 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11170 if test "x$LINE" != x ; then
11171 eval "DEFAULT_$LINE"
11172 else
11173 no_cache=1
11174 fi
11175
11176 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11177
11178fi;
11179
11180 eval "$ac_cv_use_pcx"
11181 if test "$no_cache" != 1; then
11182 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11183 fi
11184
11185 if test "$wxUSE_PCX" = yes; then
11186 echo "$as_me:$LINENO: result: yes" >&5
11187echo "${ECHO_T}yes" >&6
11188 else
11189 echo "$as_me:$LINENO: result: no" >&5
11190echo "${ECHO_T}no" >&6
11191 fi
11192
11193
11194 enablestring=
11195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11196echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11197 no_cache=0
11198 # Check whether --enable-iff or --disable-iff was given.
11199if test "${enable_iff+set}" = set; then
11200 enableval="$enable_iff"
11201
11202 if test "$enableval" = yes; then
11203 ac_cv_use_iff='wxUSE_IFF=yes'
11204 else
11205 ac_cv_use_iff='wxUSE_IFF=no'
11206 fi
11207
11208else
11209
11210 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11211 if test "x$LINE" != x ; then
11212 eval "DEFAULT_$LINE"
11213 else
11214 no_cache=1
11215 fi
11216
11217 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11218
11219fi;
11220
11221 eval "$ac_cv_use_iff"
11222 if test "$no_cache" != 1; then
11223 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11224 fi
11225
11226 if test "$wxUSE_IFF" = yes; then
11227 echo "$as_me:$LINENO: result: yes" >&5
11228echo "${ECHO_T}yes" >&6
11229 else
11230 echo "$as_me:$LINENO: result: no" >&5
11231echo "${ECHO_T}no" >&6
11232 fi
11233
11234
11235 enablestring=
11236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11237echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11238 no_cache=0
11239 # Check whether --enable-pnm or --disable-pnm was given.
11240if test "${enable_pnm+set}" = set; then
11241 enableval="$enable_pnm"
11242
11243 if test "$enableval" = yes; then
11244 ac_cv_use_pnm='wxUSE_PNM=yes'
11245 else
11246 ac_cv_use_pnm='wxUSE_PNM=no'
11247 fi
11248
11249else
11250
11251 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11252 if test "x$LINE" != x ; then
11253 eval "DEFAULT_$LINE"
11254 else
11255 no_cache=1
11256 fi
11257
11258 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11259
11260fi;
11261
11262 eval "$ac_cv_use_pnm"
11263 if test "$no_cache" != 1; then
11264 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11265 fi
11266
11267 if test "$wxUSE_PNM" = yes; then
11268 echo "$as_me:$LINENO: result: yes" >&5
11269echo "${ECHO_T}yes" >&6
11270 else
11271 echo "$as_me:$LINENO: result: no" >&5
11272echo "${ECHO_T}no" >&6
11273 fi
11274
11275
11276 enablestring=
11277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11278echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11279 no_cache=0
11280 # Check whether --enable-xpm or --disable-xpm was given.
11281if test "${enable_xpm+set}" = set; then
11282 enableval="$enable_xpm"
11283
11284 if test "$enableval" = yes; then
11285 ac_cv_use_xpm='wxUSE_XPM=yes'
11286 else
11287 ac_cv_use_xpm='wxUSE_XPM=no'
11288 fi
11289
11290else
11291
11292 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11293 if test "x$LINE" != x ; then
11294 eval "DEFAULT_$LINE"
11295 else
11296 no_cache=1
11297 fi
11298
11299 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11300
11301fi;
11302
11303 eval "$ac_cv_use_xpm"
11304 if test "$no_cache" != 1; then
11305 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11306 fi
11307
11308 if test "$wxUSE_XPM" = yes; then
11309 echo "$as_me:$LINENO: result: yes" >&5
11310echo "${ECHO_T}yes" >&6
11311 else
11312 echo "$as_me:$LINENO: result: no" >&5
11313echo "${ECHO_T}no" >&6
11314 fi
11315
11316
11317 enablestring=
11318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11319echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11320 no_cache=0
11321 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11322if test "${enable_ico_cur+set}" = set; then
11323 enableval="$enable_ico_cur"
11324
11325 if test "$enableval" = yes; then
11326 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11327 else
11328 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11329 fi
11330
11331else
11332
11333 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11334 if test "x$LINE" != x ; then
11335 eval "DEFAULT_$LINE"
11336 else
11337 no_cache=1
11338 fi
11339
11340 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11341
11342fi;
11343
11344 eval "$ac_cv_use_ico_cur"
11345 if test "$no_cache" != 1; then
11346 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11347 fi
11348
11349 if test "$wxUSE_ICO_CUR" = yes; then
11350 echo "$as_me:$LINENO: result: yes" >&5
11351echo "${ECHO_T}yes" >&6
11352 else
11353 echo "$as_me:$LINENO: result: no" >&5
11354echo "${ECHO_T}no" >&6
11355 fi
11356
11357
11358fi
11359
11360
11361
ceec2216
RL
11362# Check whether --with-flavour or --without-flavour was given.
11363if test "${with_flavour+set}" = set; then
11364 withval="$with_flavour"
11365 WX_FLAVOUR="$withval"
11366fi;
11367
11368
11369
a848cd7e
SC
11370 enablestring=
11371 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11372echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11373 no_cache=0
11374 # Check whether --enable-official_build or --disable-official_build was given.
11375if test "${enable_official_build+set}" = set; then
11376 enableval="$enable_official_build"
11377
11378 if test "$enableval" = yes; then
11379 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11380 else
11381 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11382 fi
11383
11384else
11385
11386 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11387 if test "x$LINE" != x ; then
11388 eval "DEFAULT_$LINE"
11389 else
11390 no_cache=1
11391 fi
11392
11393 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11394
11395fi;
11396
11397 eval "$ac_cv_use_official_build"
11398 if test "$no_cache" != 1; then
11399 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11400 fi
11401
11402 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11403 echo "$as_me:$LINENO: result: yes" >&5
11404echo "${ECHO_T}yes" >&6
11405 else
11406 echo "$as_me:$LINENO: result: no" >&5
11407echo "${ECHO_T}no" >&6
11408 fi
11409
11410# Check whether --enable-vendor or --disable-vendor was given.
11411if test "${enable_vendor+set}" = set; then
11412 enableval="$enable_vendor"
11413 VENDOR="$enableval"
11414fi;
11415if test "x$VENDOR" = "x"; then
11416 VENDOR="custom"
11417fi
11418
a848cd7e
SC
11419
11420
11421
11422 echo "saving argument cache $wx_arg_cache_file"
11423 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11424
11425
11426
11427echo "$as_me:$LINENO: checking for toolkit" >&5
11428echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11429
11430# In Wine, we need to default to MSW, not GTK or MOTIF
11431if test "$wxUSE_WINE" = "yes"; then
11432 DEFAULT_DEFAULT_wxUSE_GTK=0
11433 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11434 DEFAULT_DEFAULT_wxUSE_MSW=1
11435 wxUSE_SHARED=no
11436fi
11437
f597b41c 11438
a848cd7e
SC
11439if test "$wxUSE_GUI" = "yes"; then
11440
11441 if test "$USE_BEOS" = 1; then
11442 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11443echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11444 { (exit 1); exit 1; }; }
11445 fi
11446
11447 if test "$TOOLKIT_GIVEN" = 1; then
11448 for toolkit in `echo $ALL_TOOLKITS`; do
11449 var=wxUSE_$toolkit
11450 eval "value=\$${var}"
f34ca037
MW
11451 if test "x$value" = "xno"; then
11452 eval "$var=0"
11453 elif test "x$value" != "x"; then
11454 eval "$var=1"
11455 fi
11456
11457 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11458 eval "wx${toolkit}_VERSION=$value"
11459 fi
a848cd7e
SC
11460 done
11461 else
11462 for toolkit in `echo $ALL_TOOLKITS`; do
11463 if test "$has_toolkit_in_cache" != 1; then
11464 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11465 else
11466 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11467
11468 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11469 if test "x$version" != "x"; then
11470 eval "wx${toolkit}_VERSION=$version"
11471 fi
a848cd7e
SC
11472 fi
11473 eval "wxUSE_$toolkit=\$${var}"
11474 done
11475 fi
11476
11477 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
b3c86150 11478 + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
a848cd7e
SC
11479 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11480
11481 case "${host}" in
11482 *-pc-os2_emx | *-pc-os2-emx )
11483 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11484 esac
11485
11486 case "$NUM_TOOLKITS" in
11487 1)
11488 ;;
11489 0)
11490 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11491echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11492 { (exit 1); exit 1; }; }
11493 ;;
11494 *)
11495 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11496echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11497 { (exit 1); exit 1; }; }
11498 esac
11499
f34ca037
MW
11500 # to be removed when --disable-gtk2 isn't needed
11501 if test "x$wxUSE_GTK2" = "xyes"; then
11502 wxGTK_VERSION=2
11503 elif test "x$wxUSE_GTK2" = "xno"; then
11504 wxGTK_VERSION=1
11505 fi
11506
a848cd7e
SC
11507 for toolkit in `echo $ALL_TOOLKITS`; do
11508 var=wxUSE_$toolkit
11509 eval "value=\$${var}"
11510 if test "x$value" != x; then
11511 cache_var=CACHE_$toolkit
11512 eval "cache=\$${cache_var}"
11513 if test "$cache" = 1; then
11514 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11515 eval "version=\$wx${toolkit}_VERSION"
11516 if test "x$version" != "x"; then
11517 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11518 fi
a848cd7e
SC
11519 fi
11520 if test "$value" = 1; then
11521 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11522 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11523echo "${ECHO_T}$toolkit_echo" >&6
11524 fi
11525 fi
11526 done
11527else
11528 if test "x$host_alias" != "x"; then
11529 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11530echo "${ECHO_T}base ($host_alias hosted) only" >&6
11531 else
11532 echo "$as_me:$LINENO: result: base only" >&5
11533echo "${ECHO_T}base only" >&6
11534 fi
11535fi
11536
11537wants_win32=0
11538doesnt_want_win32=0
11539case "${host}" in
11540 *-*-cygwin*)
11541 if test "$wxUSE_MSW" = 1 ; then
11542 wants_win32=1
7275146d 11543 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11544 else
11545 doesnt_want_win32=1
11546 fi
11547 ;;
11548 *-*-mingw*)
11549 wants_win32=1
11550 ;;
11551esac
11552
11553if test "$wxUSE_WINE" = "yes"; then
11554 wants_win32=1
11555 CC=winegcc
11556 CXX=wineg++
a848cd7e
SC
11557 LDFLAGS_GUI="-mwindows"
11558fi
11559
11560if test "$wants_win32" = 1 ; then
11561 USE_UNIX=0
11562 USE_WIN32=1
11563 cat >>confdefs.h <<\_ACEOF
11564#define __WIN32__ 1
11565_ACEOF
11566
11567 cat >>confdefs.h <<\_ACEOF
11568#define __WIN95__ 1
11569_ACEOF
11570
11571 cat >>confdefs.h <<\_ACEOF
11572#define __WINDOWS__ 1
11573_ACEOF
11574
11575 cat >>confdefs.h <<\_ACEOF
11576#define __GNUWIN32__ 1
11577_ACEOF
11578
11579 cat >>confdefs.h <<\_ACEOF
11580#define STRICT 1
11581_ACEOF
11582
11583 cat >>confdefs.h <<\_ACEOF
11584#define WINVER 0x0400
11585_ACEOF
11586
11587fi
11588if test "$doesnt_want_win32" = 1 ; then
11589 USE_UNIX=1
11590 USE_WIN32=0
11591fi
11592
11593if test "$USE_UNIX" = 1 ; then
11594 wxUSE_UNIX=yes
11595 cat >>confdefs.h <<\_ACEOF
11596#define __UNIX__ 1
11597_ACEOF
11598
11599fi
11600
11601
11602cat >confcache <<\_ACEOF
11603# This file is a shell script that caches the results of configure
11604# tests run on this system so they can be shared between configure
11605# scripts and configure runs, see configure's option --config-cache.
11606# It is not useful on other systems. If it contains results you don't
11607# want to keep, you may remove or edit it.
11608#
11609# config.status only pays attention to the cache file if you give it
11610# the --recheck option to rerun configure.
11611#
11612# `ac_cv_env_foo' variables (set or unset) will be overridden when
11613# loading this file, other *unset* `ac_cv_foo' will be assigned the
11614# following values.
11615
11616_ACEOF
11617
11618# The following way of writing the cache mishandles newlines in values,
11619# but we know of no workaround that is simple, portable, and efficient.
11620# So, don't put newlines in cache variables' values.
11621# Ultrix sh set writes to stderr and can't be redirected directly,
11622# and sets the high bit in the cache file unless we assign to the vars.
11623{
11624 (set) 2>&1 |
11625 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11626 *ac_space=\ *)
11627 # `set' does not quote correctly, so add quotes (double-quote
11628 # substitution turns \\\\ into \\, and sed turns \\ into \).
11629 sed -n \
ac1cb8d3
VS
11630 "s/'/'\\\\''/g;
11631 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11632 ;;
11633 *)
11634 # `set' quotes correctly as required by POSIX, so do not add quotes.
11635 sed -n \
ac1cb8d3 11636 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11637 ;;
11638 esac;
11639} |
11640 sed '
11641 t clear
11642 : clear
11643 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11644 t end
11645 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11646 : end' >>confcache
11647if diff $cache_file confcache >/dev/null 2>&1; then :; else
11648 if test -w $cache_file; then
11649 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11650 cat confcache >$cache_file
11651 else
11652 echo "not updating unwritable cache $cache_file"
11653 fi
11654fi
11655rm -f confcache
11656
a848cd7e 11657CFLAGS=${CFLAGS:=}
6dcfc289
DE
11658
11659
3006edc0 11660
6dcfc289 11661 ac_ext=c
a848cd7e
SC
11662ac_cpp='$CPP $CPPFLAGS'
11663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11665ac_compiler_gnu=$ac_cv_c_compiler_gnu
11666if test -n "$ac_tool_prefix"; then
11667 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11668set dummy ${ac_tool_prefix}gcc; ac_word=$2
11669echo "$as_me:$LINENO: checking for $ac_word" >&5
11670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11671if test "${ac_cv_prog_CC+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11673else
11674 if test -n "$CC"; then
11675 ac_cv_prog_CC="$CC" # Let the user override the test.
11676else
11677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11678for as_dir in $PATH
11679do
11680 IFS=$as_save_IFS
11681 test -z "$as_dir" && as_dir=.
11682 for ac_exec_ext in '' $ac_executable_extensions; do
11683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11684 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11686 break 2
11687 fi
11688done
11689done
11690
11691fi
11692fi
11693CC=$ac_cv_prog_CC
11694if test -n "$CC"; then
11695 echo "$as_me:$LINENO: result: $CC" >&5
11696echo "${ECHO_T}$CC" >&6
11697else
11698 echo "$as_me:$LINENO: result: no" >&5
11699echo "${ECHO_T}no" >&6
11700fi
11701
11702fi
11703if test -z "$ac_cv_prog_CC"; then
11704 ac_ct_CC=$CC
11705 # Extract the first word of "gcc", so it can be a program name with args.
11706set dummy gcc; ac_word=$2
11707echo "$as_me:$LINENO: checking for $ac_word" >&5
11708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11709if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11711else
11712 if test -n "$ac_ct_CC"; then
11713 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11714else
11715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716for as_dir in $PATH
11717do
11718 IFS=$as_save_IFS
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11722 ac_cv_prog_ac_ct_CC="gcc"
11723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 break 2
11725 fi
11726done
11727done
11728
11729fi
11730fi
11731ac_ct_CC=$ac_cv_prog_ac_ct_CC
11732if test -n "$ac_ct_CC"; then
11733 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11734echo "${ECHO_T}$ac_ct_CC" >&6
11735else
11736 echo "$as_me:$LINENO: result: no" >&5
11737echo "${ECHO_T}no" >&6
11738fi
11739
11740 CC=$ac_ct_CC
11741else
11742 CC="$ac_cv_prog_CC"
11743fi
11744
11745if test -z "$CC"; then
11746 if test -n "$ac_tool_prefix"; then
11747 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11748set dummy ${ac_tool_prefix}cc; ac_word=$2
11749echo "$as_me:$LINENO: checking for $ac_word" >&5
11750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11751if test "${ac_cv_prog_CC+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11753else
11754 if test -n "$CC"; then
11755 ac_cv_prog_CC="$CC" # Let the user override the test.
11756else
11757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758for as_dir in $PATH
11759do
11760 IFS=$as_save_IFS
11761 test -z "$as_dir" && as_dir=.
11762 for ac_exec_ext in '' $ac_executable_extensions; do
11763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11764 ac_cv_prog_CC="${ac_tool_prefix}cc"
11765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11766 break 2
11767 fi
11768done
11769done
11770
11771fi
11772fi
11773CC=$ac_cv_prog_CC
11774if test -n "$CC"; then
11775 echo "$as_me:$LINENO: result: $CC" >&5
11776echo "${ECHO_T}$CC" >&6
11777else
11778 echo "$as_me:$LINENO: result: no" >&5
11779echo "${ECHO_T}no" >&6
11780fi
11781
11782fi
11783if test -z "$ac_cv_prog_CC"; then
11784 ac_ct_CC=$CC
11785 # Extract the first word of "cc", so it can be a program name with args.
11786set dummy cc; ac_word=$2
11787echo "$as_me:$LINENO: checking for $ac_word" >&5
11788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11789if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11791else
11792 if test -n "$ac_ct_CC"; then
11793 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11794else
11795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11796for as_dir in $PATH
11797do
11798 IFS=$as_save_IFS
11799 test -z "$as_dir" && as_dir=.
11800 for ac_exec_ext in '' $ac_executable_extensions; do
11801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11802 ac_cv_prog_ac_ct_CC="cc"
11803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11804 break 2
11805 fi
11806done
11807done
11808
11809fi
11810fi
11811ac_ct_CC=$ac_cv_prog_ac_ct_CC
11812if test -n "$ac_ct_CC"; then
11813 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11814echo "${ECHO_T}$ac_ct_CC" >&6
11815else
11816 echo "$as_me:$LINENO: result: no" >&5
11817echo "${ECHO_T}no" >&6
11818fi
11819
11820 CC=$ac_ct_CC
11821else
11822 CC="$ac_cv_prog_CC"
11823fi
11824
11825fi
11826if test -z "$CC"; then
11827 # Extract the first word of "cc", so it can be a program name with args.
11828set dummy cc; ac_word=$2
11829echo "$as_me:$LINENO: checking for $ac_word" >&5
11830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11831if test "${ac_cv_prog_CC+set}" = set; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11833else
11834 if test -n "$CC"; then
11835 ac_cv_prog_CC="$CC" # Let the user override the test.
11836else
11837 ac_prog_rejected=no
11838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839for as_dir in $PATH
11840do
11841 IFS=$as_save_IFS
11842 test -z "$as_dir" && as_dir=.
11843 for ac_exec_ext in '' $ac_executable_extensions; do
11844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11845 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11846 ac_prog_rejected=yes
11847 continue
11848 fi
11849 ac_cv_prog_CC="cc"
11850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11851 break 2
11852 fi
11853done
11854done
11855
11856if test $ac_prog_rejected = yes; then
11857 # We found a bogon in the path, so make sure we never use it.
11858 set dummy $ac_cv_prog_CC
11859 shift
11860 if test $# != 0; then
11861 # We chose a different compiler from the bogus one.
11862 # However, it has the same basename, so the bogon will be chosen
11863 # first if we set CC to just the basename; use the full file name.
11864 shift
11865 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11866 fi
11867fi
11868fi
11869fi
11870CC=$ac_cv_prog_CC
11871if test -n "$CC"; then
11872 echo "$as_me:$LINENO: result: $CC" >&5
11873echo "${ECHO_T}$CC" >&6
11874else
11875 echo "$as_me:$LINENO: result: no" >&5
11876echo "${ECHO_T}no" >&6
11877fi
11878
11879fi
11880if test -z "$CC"; then
11881 if test -n "$ac_tool_prefix"; then
11882 for ac_prog in cl
11883 do
11884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11885set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11886echo "$as_me:$LINENO: checking for $ac_word" >&5
11887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11888if test "${ac_cv_prog_CC+set}" = set; then
11889 echo $ECHO_N "(cached) $ECHO_C" >&6
11890else
11891 if test -n "$CC"; then
11892 ac_cv_prog_CC="$CC" # Let the user override the test.
11893else
11894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895for as_dir in $PATH
11896do
11897 IFS=$as_save_IFS
11898 test -z "$as_dir" && as_dir=.
11899 for ac_exec_ext in '' $ac_executable_extensions; do
11900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11901 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11903 break 2
11904 fi
11905done
11906done
11907
11908fi
11909fi
11910CC=$ac_cv_prog_CC
11911if test -n "$CC"; then
11912 echo "$as_me:$LINENO: result: $CC" >&5
11913echo "${ECHO_T}$CC" >&6
11914else
11915 echo "$as_me:$LINENO: result: no" >&5
11916echo "${ECHO_T}no" >&6
11917fi
11918
11919 test -n "$CC" && break
11920 done
11921fi
11922if test -z "$CC"; then
11923 ac_ct_CC=$CC
11924 for ac_prog in cl
11925do
11926 # Extract the first word of "$ac_prog", so it can be a program name with args.
11927set dummy $ac_prog; ac_word=$2
11928echo "$as_me:$LINENO: checking for $ac_word" >&5
11929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11930if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11932else
11933 if test -n "$ac_ct_CC"; then
11934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11935else
11936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937for as_dir in $PATH
11938do
11939 IFS=$as_save_IFS
11940 test -z "$as_dir" && as_dir=.
11941 for ac_exec_ext in '' $ac_executable_extensions; do
11942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11943 ac_cv_prog_ac_ct_CC="$ac_prog"
11944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11945 break 2
11946 fi
11947done
11948done
11949
11950fi
11951fi
11952ac_ct_CC=$ac_cv_prog_ac_ct_CC
11953if test -n "$ac_ct_CC"; then
11954 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11955echo "${ECHO_T}$ac_ct_CC" >&6
11956else
11957 echo "$as_me:$LINENO: result: no" >&5
11958echo "${ECHO_T}no" >&6
11959fi
11960
11961 test -n "$ac_ct_CC" && break
11962done
11963
11964 CC=$ac_ct_CC
11965fi
11966
11967fi
11968
11969
11970test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11971See \`config.log' for more details." >&5
11972echo "$as_me: error: no acceptable C compiler found in \$PATH
11973See \`config.log' for more details." >&2;}
11974 { (exit 1); exit 1; }; }
11975
11976# Provide some information about the compiler.
11977echo "$as_me:$LINENO:" \
11978 "checking for C compiler version" >&5
11979ac_compiler=`set X $ac_compile; echo $2`
11980{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11981 (eval $ac_compiler --version </dev/null >&5) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }
11985{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11986 (eval $ac_compiler -v </dev/null >&5) 2>&5
11987 ac_status=$?
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }
11990{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11991 (eval $ac_compiler -V </dev/null >&5) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }
11995
11996cat >conftest.$ac_ext <<_ACEOF
11997/* confdefs.h. */
11998_ACEOF
11999cat confdefs.h >>conftest.$ac_ext
12000cat >>conftest.$ac_ext <<_ACEOF
12001/* end confdefs.h. */
12002
12003int
12004main ()
12005{
12006
12007 ;
12008 return 0;
12009}
12010_ACEOF
12011ac_clean_files_save=$ac_clean_files
12012ac_clean_files="$ac_clean_files a.out a.exe b.out"
12013# Try to create an executable without -o first, disregard a.out.
12014# It will help us diagnose broken compilers, and finding out an intuition
12015# of exeext.
ac1cb8d3
VS
12016echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12017echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
12018ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12019if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12020 (eval $ac_link_default) 2>&5
12021 ac_status=$?
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; then
12024 # Find the output, starting from the most likely. This scheme is
12025# not robust to junk in `.', hence go to wildcards (a.*) only as a last
12026# resort.
12027
12028# Be careful to initialize this variable, since it used to be cached.
12029# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12030ac_cv_exeext=
12031# b.out is created by i960 compilers.
12032for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12033do
12034 test -f "$ac_file" || continue
12035 case $ac_file in
12036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 12037 ;;
a848cd7e 12038 conftest.$ac_ext )
ac1cb8d3
VS
12039 # This is the source file.
12040 ;;
a848cd7e 12041 [ab].out )
ac1cb8d3
VS
12042 # We found the default executable, but exeext='' is most
12043 # certainly right.
12044 break;;
a848cd7e 12045 *.* )
ac1cb8d3
VS
12046 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12047 # FIXME: I believe we export ac_cv_exeext for Libtool,
12048 # but it would be cool to find out if it's true. Does anybody
12049 # maintain Libtool? --akim.
12050 export ac_cv_exeext
12051 break;;
a848cd7e 12052 * )
ac1cb8d3 12053 break;;
a848cd7e
SC
12054 esac
12055done
12056else
12057 echo "$as_me: failed program was:" >&5
12058sed 's/^/| /' conftest.$ac_ext >&5
12059
12060{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
12061See \`config.log' for more details." >&5
12062echo "$as_me: error: C compiler cannot create executables
12063See \`config.log' for more details." >&2;}
12064 { (exit 77); exit 77; }; }
12065fi
12066
12067ac_exeext=$ac_cv_exeext
12068echo "$as_me:$LINENO: result: $ac_file" >&5
12069echo "${ECHO_T}$ac_file" >&6
12070
12071# Check the compiler produces executables we can run. If not, either
12072# the compiler is broken, or we cross compile.
12073echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12074echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12075# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12076# If not cross compiling, check that we can run a simple program.
12077if test "$cross_compiling" != yes; then
12078 if { ac_try='./$ac_file'
12079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5
12081 ac_status=$?
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; }; then
12084 cross_compiling=no
12085 else
12086 if test "$cross_compiling" = maybe; then
12087 cross_compiling=yes
12088 else
12089 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12090If you meant to cross compile, use \`--host'.
12091See \`config.log' for more details." >&5
12092echo "$as_me: error: cannot run C compiled programs.
12093If you meant to cross compile, use \`--host'.
12094See \`config.log' for more details." >&2;}
12095 { (exit 1); exit 1; }; }
12096 fi
12097 fi
12098fi
12099echo "$as_me:$LINENO: result: yes" >&5
12100echo "${ECHO_T}yes" >&6
12101
12102rm -f a.out a.exe conftest$ac_cv_exeext b.out
12103ac_clean_files=$ac_clean_files_save
12104# Check the compiler produces executables we can run. If not, either
12105# the compiler is broken, or we cross compile.
12106echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12107echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12108echo "$as_me:$LINENO: result: $cross_compiling" >&5
12109echo "${ECHO_T}$cross_compiling" >&6
12110
12111echo "$as_me:$LINENO: checking for suffix of executables" >&5
12112echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114 (eval $ac_link) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; then
12118 # If both `conftest.exe' and `conftest' are `present' (well, observable)
12119# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
12120# work properly (i.e., refer to `conftest.exe'), while it won't with
12121# `rm'.
12122for ac_file in conftest.exe conftest conftest.*; do
12123 test -f "$ac_file" || continue
12124 case $ac_file in
12125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12126 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
12127 export ac_cv_exeext
12128 break;;
a848cd7e
SC
12129 * ) break;;
12130 esac
12131done
12132else
12133 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12134See \`config.log' for more details." >&5
12135echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12136See \`config.log' for more details." >&2;}
12137 { (exit 1); exit 1; }; }
12138fi
12139
12140rm -f conftest$ac_cv_exeext
12141echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12142echo "${ECHO_T}$ac_cv_exeext" >&6
12143
12144rm -f conftest.$ac_ext
12145EXEEXT=$ac_cv_exeext
12146ac_exeext=$EXEEXT
12147echo "$as_me:$LINENO: checking for suffix of object files" >&5
12148echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12149if test "${ac_cv_objext+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12151else
12152 cat >conftest.$ac_ext <<_ACEOF
12153/* confdefs.h. */
12154_ACEOF
12155cat confdefs.h >>conftest.$ac_ext
12156cat >>conftest.$ac_ext <<_ACEOF
12157/* end confdefs.h. */
12158
12159int
12160main ()
12161{
12162
12163 ;
12164 return 0;
12165}
12166_ACEOF
12167rm -f conftest.o conftest.obj
12168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12169 (eval $ac_compile) 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; then
12173 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12174 case $ac_file in
12175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12176 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12177 break;;
12178 esac
12179done
12180else
12181 echo "$as_me: failed program was:" >&5
12182sed 's/^/| /' conftest.$ac_ext >&5
12183
12184{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12185See \`config.log' for more details." >&5
12186echo "$as_me: error: cannot compute suffix of object files: cannot compile
12187See \`config.log' for more details." >&2;}
12188 { (exit 1); exit 1; }; }
12189fi
12190
12191rm -f conftest.$ac_cv_objext conftest.$ac_ext
12192fi
12193echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12194echo "${ECHO_T}$ac_cv_objext" >&6
12195OBJEXT=$ac_cv_objext
12196ac_objext=$OBJEXT
12197echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12198echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12199if test "${ac_cv_c_compiler_gnu+set}" = set; then
12200 echo $ECHO_N "(cached) $ECHO_C" >&6
12201else
12202 cat >conftest.$ac_ext <<_ACEOF
12203/* confdefs.h. */
12204_ACEOF
12205cat confdefs.h >>conftest.$ac_ext
12206cat >>conftest.$ac_ext <<_ACEOF
12207/* end confdefs.h. */
12208
12209int
12210main ()
12211{
12212#ifndef __GNUC__
12213 choke me
12214#endif
12215
12216 ;
12217 return 0;
12218}
12219_ACEOF
12220rm -f conftest.$ac_objext
12221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12222 (eval $ac_compile) 2>conftest.er1
a848cd7e 12223 ac_status=$?
ac1cb8d3
VS
12224 grep -v '^ *+' conftest.er1 >conftest.err
12225 rm -f conftest.er1
12226 cat conftest.err >&5
a848cd7e
SC
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); } &&
ca5c6ac3 12229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; } &&
12235 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12238 ac_status=$?
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; }; then
12241 ac_compiler_gnu=yes
12242else
12243 echo "$as_me: failed program was:" >&5
12244sed 's/^/| /' conftest.$ac_ext >&5
12245
12246ac_compiler_gnu=no
12247fi
ac1cb8d3 12248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12249ac_cv_c_compiler_gnu=$ac_compiler_gnu
12250
12251fi
12252echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12253echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12254GCC=`test $ac_compiler_gnu = yes && echo yes`
12255ac_test_CFLAGS=${CFLAGS+set}
12256ac_save_CFLAGS=$CFLAGS
15291213 12257CFLAGS="-g"
a848cd7e
SC
12258echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12259echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12260if test "${ac_cv_prog_cc_g+set}" = set; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12262else
12263 cat >conftest.$ac_ext <<_ACEOF
12264/* confdefs.h. */
12265_ACEOF
12266cat confdefs.h >>conftest.$ac_ext
12267cat >>conftest.$ac_ext <<_ACEOF
12268/* end confdefs.h. */
12269
12270int
12271main ()
12272{
12273
12274 ;
12275 return 0;
12276}
12277_ACEOF
12278rm -f conftest.$ac_objext
12279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12280 (eval $ac_compile) 2>conftest.er1
a848cd7e 12281 ac_status=$?
ac1cb8d3
VS
12282 grep -v '^ *+' conftest.er1 >conftest.err
12283 rm -f conftest.er1
12284 cat conftest.err >&5
a848cd7e
SC
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } &&
ca5c6ac3 12287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289 (eval $ac_try) 2>&5
12290 ac_status=$?
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; } &&
12293 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
12299 ac_cv_prog_cc_g=yes
12300else
12301 echo "$as_me: failed program was:" >&5
12302sed 's/^/| /' conftest.$ac_ext >&5
12303
12304ac_cv_prog_cc_g=no
12305fi
ac1cb8d3 12306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12307fi
12308echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12309echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12310if test "$ac_test_CFLAGS" = set; then
12311 CFLAGS=$ac_save_CFLAGS
12312elif test $ac_cv_prog_cc_g = yes; then
12313 if test "$GCC" = yes; then
12314 CFLAGS="-g -O2"
12315 else
12316 CFLAGS="-g"
12317 fi
12318else
12319 if test "$GCC" = yes; then
12320 CFLAGS="-O2"
12321 else
12322 CFLAGS=
12323 fi
12324fi
12325echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12326echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12327if test "${ac_cv_prog_cc_stdc+set}" = set; then
12328 echo $ECHO_N "(cached) $ECHO_C" >&6
12329else
12330 ac_cv_prog_cc_stdc=no
12331ac_save_CC=$CC
12332cat >conftest.$ac_ext <<_ACEOF
12333/* confdefs.h. */
12334_ACEOF
12335cat confdefs.h >>conftest.$ac_ext
12336cat >>conftest.$ac_ext <<_ACEOF
12337/* end confdefs.h. */
12338#include <stdarg.h>
12339#include <stdio.h>
12340#include <sys/types.h>
12341#include <sys/stat.h>
12342/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12343struct buf { int x; };
12344FILE * (*rcsopen) (struct buf *, struct stat *, int);
12345static char *e (p, i)
12346 char **p;
12347 int i;
12348{
12349 return p[i];
12350}
12351static char *f (char * (*g) (char **, int), char **p, ...)
12352{
12353 char *s;
12354 va_list v;
12355 va_start (v,p);
12356 s = g (p, va_arg (v,int));
12357 va_end (v);
12358 return s;
12359}
ac1cb8d3
VS
12360
12361/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12362 function prototypes and stuff, but not '\xHH' hex character constants.
12363 These don't provoke an error unfortunately, instead are silently treated
12364 as 'x'. The following induces an error, until -std1 is added to get
12365 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12366 array size at least. It's necessary to write '\x00'==0 to get something
12367 that's true only with -std1. */
12368int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12369
a848cd7e
SC
12370int test (int i, double x);
12371struct s1 {int (*f) (int a);};
12372struct s2 {int (*f) (double a);};
12373int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12374int argc;
12375char **argv;
12376int
12377main ()
12378{
12379return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12380 ;
12381 return 0;
12382}
12383_ACEOF
12384# Don't try gcc -ansi; that turns off useful extensions and
12385# breaks some systems' header files.
12386# AIX -qlanglvl=ansi
12387# Ultrix and OSF/1 -std1
12388# HP-UX 10.20 and later -Ae
12389# HP-UX older versions -Aa -D_HPUX_SOURCE
12390# SVR4 -Xc -D__EXTENSIONS__
12391for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12392do
12393 CC="$ac_save_CC $ac_arg"
12394 rm -f conftest.$ac_objext
12395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12396 (eval $ac_compile) 2>conftest.er1
a848cd7e 12397 ac_status=$?
ac1cb8d3
VS
12398 grep -v '^ *+' conftest.er1 >conftest.err
12399 rm -f conftest.er1
12400 cat conftest.err >&5
a848cd7e
SC
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); } &&
ca5c6ac3 12403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405 (eval $ac_try) 2>&5
12406 ac_status=$?
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }; } &&
12409 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12412 ac_status=$?
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; }; then
12415 ac_cv_prog_cc_stdc=$ac_arg
12416break
12417else
12418 echo "$as_me: failed program was:" >&5
12419sed 's/^/| /' conftest.$ac_ext >&5
12420
12421fi
ac1cb8d3 12422rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
12423done
12424rm -f conftest.$ac_ext conftest.$ac_objext
12425CC=$ac_save_CC
12426
12427fi
12428
12429case "x$ac_cv_prog_cc_stdc" in
12430 x|xno)
12431 echo "$as_me:$LINENO: result: none needed" >&5
12432echo "${ECHO_T}none needed" >&6 ;;
12433 *)
12434 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12435echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12436 CC="$CC $ac_cv_prog_cc_stdc" ;;
12437esac
12438
12439# Some people use a C++ compiler to compile C. Since we use `exit',
12440# in C++ we need to declare it. In case someone uses the same compiler
12441# for both compiling C and C++ we need to have the C++ compiler decide
12442# the declaration of exit, since it's the most demanding environment.
12443cat >conftest.$ac_ext <<_ACEOF
12444#ifndef __cplusplus
12445 choke me
12446#endif
12447_ACEOF
12448rm -f conftest.$ac_objext
12449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12450 (eval $ac_compile) 2>conftest.er1
a848cd7e 12451 ac_status=$?
ac1cb8d3
VS
12452 grep -v '^ *+' conftest.er1 >conftest.err
12453 rm -f conftest.er1
12454 cat conftest.err >&5
a848cd7e
SC
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } &&
ca5c6ac3 12457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459 (eval $ac_try) 2>&5
12460 ac_status=$?
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; } &&
12463 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12466 ac_status=$?
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12469 for ac_declaration in \
ac1cb8d3 12470 '' \
a848cd7e
SC
12471 'extern "C" void std::exit (int) throw (); using std::exit;' \
12472 'extern "C" void std::exit (int); using std::exit;' \
12473 'extern "C" void exit (int) throw ();' \
12474 'extern "C" void exit (int);' \
12475 'void exit (int);'
12476do
12477 cat >conftest.$ac_ext <<_ACEOF
12478/* confdefs.h. */
12479_ACEOF
12480cat confdefs.h >>conftest.$ac_ext
12481cat >>conftest.$ac_ext <<_ACEOF
12482/* end confdefs.h. */
de59c161 12483$ac_declaration
ac1cb8d3 12484#include <stdlib.h>
a848cd7e
SC
12485int
12486main ()
12487{
12488exit (42);
12489 ;
12490 return 0;
12491}
12492_ACEOF
12493rm -f conftest.$ac_objext
12494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12495 (eval $ac_compile) 2>conftest.er1
a848cd7e 12496 ac_status=$?
ac1cb8d3
VS
12497 grep -v '^ *+' conftest.er1 >conftest.err
12498 rm -f conftest.er1
12499 cat conftest.err >&5
a848cd7e
SC
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } &&
ca5c6ac3 12502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12505 ac_status=$?
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; } &&
12508 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 :
12515else
12516 echo "$as_me: failed program was:" >&5
12517sed 's/^/| /' conftest.$ac_ext >&5
12518
12519continue
12520fi
ac1cb8d3 12521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12522 cat >conftest.$ac_ext <<_ACEOF
12523/* confdefs.h. */
12524_ACEOF
12525cat confdefs.h >>conftest.$ac_ext
12526cat >>conftest.$ac_ext <<_ACEOF
12527/* end confdefs.h. */
12528$ac_declaration
12529int
12530main ()
12531{
12532exit (42);
12533 ;
12534 return 0;
12535}
12536_ACEOF
12537rm -f conftest.$ac_objext
12538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12539 (eval $ac_compile) 2>conftest.er1
a848cd7e 12540 ac_status=$?
ac1cb8d3
VS
12541 grep -v '^ *+' conftest.er1 >conftest.err
12542 rm -f conftest.er1
12543 cat conftest.err >&5
a848cd7e
SC
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
ca5c6ac3 12546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; } &&
12552 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; }; then
12558 break
12559else
12560 echo "$as_me: failed program was:" >&5
12561sed 's/^/| /' conftest.$ac_ext >&5
12562
12563fi
ac1cb8d3 12564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12565done
12566rm -f conftest*
12567if test -n "$ac_declaration"; then
12568 echo '#ifdef __cplusplus' >>confdefs.h
12569 echo $ac_declaration >>confdefs.h
12570 echo '#endif' >>confdefs.h
12571fi
12572
12573else
12574 echo "$as_me: failed program was:" >&5
12575sed 's/^/| /' conftest.$ac_ext >&5
12576
12577fi
ac1cb8d3 12578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12579ac_ext=c
12580ac_cpp='$CPP $CPPFLAGS'
12581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12583ac_compiler_gnu=$ac_cv_c_compiler_gnu
12584
ab0ad5f1
VZ
12585
12586
12587 ac_ext=c
12588ac_cpp='$CPP $CPPFLAGS'
12589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12591ac_compiler_gnu=$ac_cv_c_compiler_gnu
12592
12593 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12594echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12595if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12596 echo $ECHO_N "(cached) $ECHO_C" >&6
12597else
12598 cat >conftest.$ac_ext <<_ACEOF
12599/* confdefs.h. */
12600_ACEOF
12601cat confdefs.h >>conftest.$ac_ext
12602cat >>conftest.$ac_ext <<_ACEOF
12603/* end confdefs.h. */
12604
12605int
12606main ()
12607{
12608
12609 #ifndef __INTEL_COMPILER
12610 choke me
12611 #endif
12612
12613 ;
12614 return 0;
12615}
12616_ACEOF
12617rm -f conftest.$ac_objext
12618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12619 (eval $ac_compile) 2>conftest.er1
12620 ac_status=$?
12621 grep -v '^ *+' conftest.er1 >conftest.err
12622 rm -f conftest.er1
12623 cat conftest.err >&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } &&
ca5c6ac3 12626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12629 ac_status=$?
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; } &&
12632 { ac_try='test -s conftest.$ac_objext'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; }; then
12638 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12639else
12640 echo "$as_me: failed program was:" >&5
12641sed 's/^/| /' conftest.$ac_ext >&5
12642
12643bakefile_cv_c_compiler___INTEL_COMPILER=no
12644
12645fi
12646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12647
12648
12649fi
12650echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12651echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12652 ac_ext=c
12653ac_cpp='$CPP $CPPFLAGS'
12654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12656ac_compiler_gnu=$ac_cv_c_compiler_gnu
12657
12658 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12659 :; INTELCC=yes
12660 else
12661 :;
12662 fi
12663
12664
12665 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12666 if test "xCC" = "xC"; then
12667 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12668echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12669if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12670 echo $ECHO_N "(cached) $ECHO_C" >&6
12671else
12672 cat >conftest.$ac_ext <<_ACEOF
12673/* confdefs.h. */
12674_ACEOF
12675cat confdefs.h >>conftest.$ac_ext
12676cat >>conftest.$ac_ext <<_ACEOF
12677/* end confdefs.h. */
12678
12679int
12680main ()
12681{
12682
12683 ;
12684 return 0;
12685}
12686_ACEOF
12687rm -f conftest.$ac_objext conftest.$ac_ext.o
12688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12689 (eval $ac_compile) 2>&5
12690 ac_status=$?
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); }; then
12693 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12694 case $ac_file in
12695 conftest.$ac_ext.o)
0093c2fc 12696 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12697 ;;
12698 *)
12699 ;;
12700 esac
12701done
12702else
12703 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12704See \`config.log' for more details." >&5
12705echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12706See \`config.log' for more details." >&2;}
12707 { (exit 1); exit 1; }; }
12708
12709fi
12710
12711rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12712
12713fi
0093c2fc
VZ
12714echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12715echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12716if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12717 if test "c" = "c"; then
0093c2fc 12718 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12719 fi
12720 if test "c" = "cxx"; then
0093c2fc 12721 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12722 fi
12723fi
12724
0093c2fc 12725 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12726 unset ac_cv_prog_cc_g
12727 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12728ac_save_CFLAGS=$CFLAGS
15291213 12729CFLAGS="-g"
480ccd21
DE
12730echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12731echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12732if test "${ac_cv_prog_cc_g+set}" = set; then
12733 echo $ECHO_N "(cached) $ECHO_C" >&6
12734else
12735 cat >conftest.$ac_ext <<_ACEOF
12736/* confdefs.h. */
12737_ACEOF
12738cat confdefs.h >>conftest.$ac_ext
12739cat >>conftest.$ac_ext <<_ACEOF
12740/* end confdefs.h. */
12741
12742int
12743main ()
12744{
12745
12746 ;
12747 return 0;
12748}
12749_ACEOF
12750rm -f conftest.$ac_objext
12751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12752 (eval $ac_compile) 2>conftest.er1
12753 ac_status=$?
12754 grep -v '^ *+' conftest.er1 >conftest.err
12755 rm -f conftest.er1
12756 cat conftest.err >&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } &&
ca5c6ac3 12759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; } &&
12765 { ac_try='test -s conftest.$ac_objext'
12766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767 (eval $ac_try) 2>&5
12768 ac_status=$?
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; }; then
12771 ac_cv_prog_cc_g=yes
12772else
12773 echo "$as_me: failed program was:" >&5
12774sed 's/^/| /' conftest.$ac_ext >&5
12775
12776ac_cv_prog_cc_g=no
12777fi
12778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12779fi
12780echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12781echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12782if test "$ac_test_CFLAGS" = set; then
12783 CFLAGS=$ac_save_CFLAGS
12784elif test $ac_cv_prog_cc_g = yes; then
12785 if test "$GCC" = yes; then
12786 CFLAGS="-g -O2"
12787 else
12788 CFLAGS="-g"
12789 fi
12790else
12791 if test "$GCC" = yes; then
12792 CFLAGS="-O2"
12793 else
12794 CFLAGS=
12795 fi
12796fi
3006edc0 12797 fi
ab0ad5f1 12798 fi
3006edc0
VZ
12799
12800 case `uname -s` in
12801 AIX*)
12802 ac_ext=c
12803ac_cpp='$CPP $CPPFLAGS'
12804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12806ac_compiler_gnu=$ac_cv_c_compiler_gnu
12807
12808echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12809echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12810if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12811 echo $ECHO_N "(cached) $ECHO_C" >&6
12812else
12813 cat >conftest.$ac_ext <<_ACEOF
12814/* confdefs.h. */
12815_ACEOF
12816cat confdefs.h >>conftest.$ac_ext
12817cat >>conftest.$ac_ext <<_ACEOF
12818/* end confdefs.h. */
12819
12820int
12821main ()
12822{
12823#ifndef __xlC__
12824 choke me
12825#endif
12826
12827 ;
12828 return 0;
12829}
12830_ACEOF
12831rm -f conftest.$ac_objext
12832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12833 (eval $ac_compile) 2>conftest.er1
12834 ac_status=$?
12835 grep -v '^ *+' conftest.er1 >conftest.err
12836 rm -f conftest.er1
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } &&
ca5c6ac3 12840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12842 (eval $ac_try) 2>&5
12843 ac_status=$?
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); }; } &&
12846 { ac_try='test -s conftest.$ac_objext'
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; }; then
0093c2fc 12852 bakefile_compiler_xlc=yes
3006edc0
VZ
12853else
12854 echo "$as_me: failed program was:" >&5
12855sed 's/^/| /' conftest.$ac_ext >&5
12856
0093c2fc 12857bakefile_compiler_xlc=no
3006edc0
VZ
12858fi
12859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12860 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12861
12862fi
0093c2fc
VZ
12863echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12864echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12865
0093c2fc 12866XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12867ac_ext=c
12868ac_cpp='$CPP $CPPFLAGS'
12869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12871ac_compiler_gnu=$ac_cv_c_compiler_gnu
12872
12873
12874 ;;
12875
12876 Darwin)
12877 ac_ext=c
95986553
DE
12878ac_cpp='$CPP $CPPFLAGS'
12879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12881ac_compiler_gnu=$ac_cv_c_compiler_gnu
12882
12883echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12884echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12885if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12886 echo $ECHO_N "(cached) $ECHO_C" >&6
12887else
12888 cat >conftest.$ac_ext <<_ACEOF
12889/* confdefs.h. */
12890_ACEOF
12891cat confdefs.h >>conftest.$ac_ext
12892cat >>conftest.$ac_ext <<_ACEOF
12893/* end confdefs.h. */
12894
12895int
12896main ()
12897{
12898#ifndef __MWERKS__
12899 choke me
12900#endif
12901
12902 ;
12903 return 0;
12904}
12905_ACEOF
12906rm -f conftest.$ac_objext
12907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12908 (eval $ac_compile) 2>conftest.er1
12909 ac_status=$?
12910 grep -v '^ *+' conftest.er1 >conftest.err
12911 rm -f conftest.er1
12912 cat conftest.err >&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); } &&
ca5c6ac3 12915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; } &&
12921 { ac_try='test -s conftest.$ac_objext'
12922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923 (eval $ac_try) 2>&5
12924 ac_status=$?
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; }; then
12927 bakefile_compiler_mwerks=yes
12928else
12929 echo "$as_me: failed program was:" >&5
12930sed 's/^/| /' conftest.$ac_ext >&5
12931
12932bakefile_compiler_mwerks=no
12933fi
12934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12935 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12936
12937fi
12938echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12939echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12940
0e6fa1d9 12941MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12942ac_ext=c
12943ac_cpp='$CPP $CPPFLAGS'
12944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12946ac_compiler_gnu=$ac_cv_c_compiler_gnu
12947
12948
3006edc0 12949 ac_ext=c
9273ffba
DE
12950ac_cpp='$CPP $CPPFLAGS'
12951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12953ac_compiler_gnu=$ac_cv_c_compiler_gnu
12954
12955echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12956echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12957if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12958 echo $ECHO_N "(cached) $ECHO_C" >&6
12959else
12960 cat >conftest.$ac_ext <<_ACEOF
12961/* confdefs.h. */
12962_ACEOF
12963cat confdefs.h >>conftest.$ac_ext
12964cat >>conftest.$ac_ext <<_ACEOF
12965/* end confdefs.h. */
12966
12967int
12968main ()
12969{
12970#ifndef __xlC__
12971 choke me
12972#endif
12973
12974 ;
12975 return 0;
12976}
12977_ACEOF
12978rm -f conftest.$ac_objext
12979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12980 (eval $ac_compile) 2>conftest.er1
12981 ac_status=$?
12982 grep -v '^ *+' conftest.er1 >conftest.err
12983 rm -f conftest.er1
12984 cat conftest.err >&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); } &&
ca5c6ac3 12987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12989 (eval $ac_try) 2>&5
12990 ac_status=$?
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }; } &&
12993 { ac_try='test -s conftest.$ac_objext'
12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12996 ac_status=$?
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; }; then
0093c2fc 12999 bakefile_compiler_xlc=yes
9273ffba
DE
13000else
13001 echo "$as_me: failed program was:" >&5
13002sed 's/^/| /' conftest.$ac_ext >&5
13003
0093c2fc 13004bakefile_compiler_xlc=no
9273ffba
DE
13005fi
13006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13007 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13008
13009fi
0093c2fc
VZ
13010echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13011echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 13012
0093c2fc 13013XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
13014ac_ext=c
13015ac_cpp='$CPP $CPPFLAGS'
13016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13018ac_compiler_gnu=$ac_cv_c_compiler_gnu
13019
13020
3006edc0
VZ
13021 ;;
13022
13023 IRIX*)
a848cd7e 13024
6dcfc289 13025
0ad5d837
VZ
13026 ac_ext=c
13027ac_cpp='$CPP $CPPFLAGS'
13028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13030ac_compiler_gnu=$ac_cv_c_compiler_gnu
13031
13032 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
13033echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
13034if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
13035 echo $ECHO_N "(cached) $ECHO_C" >&6
13036else
13037 cat >conftest.$ac_ext <<_ACEOF
13038/* confdefs.h. */
13039_ACEOF
13040cat confdefs.h >>conftest.$ac_ext
13041cat >>conftest.$ac_ext <<_ACEOF
13042/* end confdefs.h. */
13043
13044int
13045main ()
13046{
13047
13048 #ifndef _SGI_COMPILER_VERSION
13049 choke me
13050 #endif
13051
13052 ;
13053 return 0;
13054}
13055_ACEOF
13056rm -f conftest.$ac_objext
13057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13058 (eval $ac_compile) 2>conftest.er1
13059 ac_status=$?
13060 grep -v '^ *+' conftest.er1 >conftest.err
13061 rm -f conftest.er1
13062 cat conftest.err >&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); } &&
ca5c6ac3 13065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13068 ac_status=$?
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; } &&
13071 { ac_try='test -s conftest.$ac_objext'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13074 ac_status=$?
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; }; then
13077 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13078else
13079 echo "$as_me: failed program was:" >&5
13080sed 's/^/| /' conftest.$ac_ext >&5
13081
13082bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
13083
13084fi
13085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13086
13087
13088fi
13089echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13090echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13091 ac_ext=c
13092ac_cpp='$CPP $CPPFLAGS'
13093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13095ac_compiler_gnu=$ac_cv_c_compiler_gnu
13096
13097 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13098 :; SGICC=yes
13099 else
13100 :;
13101 fi
13102
13103
3006edc0
VZ
13104 ;;
13105
0093c2fc 13106 HP-UX*)
3006edc0
VZ
13107
13108
13109 ac_ext=c
13110ac_cpp='$CPP $CPPFLAGS'
13111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13113ac_compiler_gnu=$ac_cv_c_compiler_gnu
13114
0093c2fc
VZ
13115 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13116echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13117if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13119else
13120 cat >conftest.$ac_ext <<_ACEOF
13121/* confdefs.h. */
13122_ACEOF
13123cat confdefs.h >>conftest.$ac_ext
13124cat >>conftest.$ac_ext <<_ACEOF
13125/* end confdefs.h. */
13126
13127int
13128main ()
13129{
13130
0093c2fc 13131 #ifndef __HP_cc
3006edc0
VZ
13132 choke me
13133 #endif
13134
13135 ;
13136 return 0;
13137}
13138_ACEOF
13139rm -f conftest.$ac_objext
13140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13141 (eval $ac_compile) 2>conftest.er1
13142 ac_status=$?
13143 grep -v '^ *+' conftest.er1 >conftest.err
13144 rm -f conftest.er1
13145 cat conftest.err >&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); } &&
ca5c6ac3 13148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150 (eval $ac_try) 2>&5
13151 ac_status=$?
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; } &&
13154 { ac_try='test -s conftest.$ac_objext'
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13157 ac_status=$?
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
0093c2fc 13160 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13161else
13162 echo "$as_me: failed program was:" >&5
13163sed 's/^/| /' conftest.$ac_ext >&5
13164
0093c2fc 13165bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13166
13167fi
13168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13169
13170
13171fi
0093c2fc
VZ
13172echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13173echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13174 ac_ext=c
13175ac_cpp='$CPP $CPPFLAGS'
13176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13178ac_compiler_gnu=$ac_cv_c_compiler_gnu
13179
0093c2fc
VZ
13180 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13181 :; HPCC=yes
a1aa0349
VZ
13182 else
13183 :;
13184 fi
13185
13186
13187 ;;
13188
0093c2fc 13189 OSF1)
a1aa0349
VZ
13190
13191
13192 ac_ext=c
13193ac_cpp='$CPP $CPPFLAGS'
13194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13196ac_compiler_gnu=$ac_cv_c_compiler_gnu
13197
0093c2fc
VZ
13198 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13199echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13200if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13201 echo $ECHO_N "(cached) $ECHO_C" >&6
13202else
13203 cat >conftest.$ac_ext <<_ACEOF
13204/* confdefs.h. */
13205_ACEOF
13206cat confdefs.h >>conftest.$ac_ext
13207cat >>conftest.$ac_ext <<_ACEOF
13208/* end confdefs.h. */
13209
13210int
13211main ()
13212{
13213
0093c2fc 13214 #ifndef __DECC
a1aa0349
VZ
13215 choke me
13216 #endif
13217
13218 ;
13219 return 0;
13220}
13221_ACEOF
13222rm -f conftest.$ac_objext
13223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13224 (eval $ac_compile) 2>conftest.er1
13225 ac_status=$?
13226 grep -v '^ *+' conftest.er1 >conftest.err
13227 rm -f conftest.er1
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } &&
ca5c6ac3 13231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233 (eval $ac_try) 2>&5
13234 ac_status=$?
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; } &&
13237 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
0093c2fc 13243 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13244else
13245 echo "$as_me: failed program was:" >&5
13246sed 's/^/| /' conftest.$ac_ext >&5
13247
0093c2fc 13248bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13249
13250fi
13251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13252
13253
13254fi
0093c2fc
VZ
13255echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13256echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13257 ac_ext=c
13258ac_cpp='$CPP $CPPFLAGS'
13259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13261ac_compiler_gnu=$ac_cv_c_compiler_gnu
13262
0093c2fc
VZ
13263 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13264 :; COMPAQCC=yes
13265 else
13266 :;
13267 fi
13268
13269
13270 ;;
13271
13272 SunOS)
13273
13274
13275 ac_ext=c
13276ac_cpp='$CPP $CPPFLAGS'
13277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13279ac_compiler_gnu=$ac_cv_c_compiler_gnu
13280
13281 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13282echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13283if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13284 echo $ECHO_N "(cached) $ECHO_C" >&6
13285else
13286 cat >conftest.$ac_ext <<_ACEOF
13287/* confdefs.h. */
13288_ACEOF
13289cat confdefs.h >>conftest.$ac_ext
13290cat >>conftest.$ac_ext <<_ACEOF
13291/* end confdefs.h. */
13292
13293int
13294main ()
13295{
13296
13297 #ifndef __SUNPRO_C
13298 choke me
13299 #endif
13300
13301 ;
13302 return 0;
13303}
13304_ACEOF
13305rm -f conftest.$ac_objext
13306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13307 (eval $ac_compile) 2>conftest.er1
13308 ac_status=$?
13309 grep -v '^ *+' conftest.er1 >conftest.err
13310 rm -f conftest.er1
13311 cat conftest.err >&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } &&
ca5c6ac3 13314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
13315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316 (eval $ac_try) 2>&5
13317 ac_status=$?
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }; } &&
13320 { ac_try='test -s conftest.$ac_objext'
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13323 ac_status=$?
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; }; then
13326 bakefile_cv_c_compiler___SUNPRO_C=yes
13327else
13328 echo "$as_me: failed program was:" >&5
13329sed 's/^/| /' conftest.$ac_ext >&5
13330
13331bakefile_cv_c_compiler___SUNPRO_C=no
13332
13333fi
13334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13335
13336
13337fi
13338echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13339echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13340 ac_ext=c
13341ac_cpp='$CPP $CPPFLAGS'
13342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13344ac_compiler_gnu=$ac_cv_c_compiler_gnu
13345
13346 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13347 :; SUNCC=yes
3006edc0
VZ
13348 else
13349 :;
13350 fi
13351
13352
13353 ;;
13354 esac
ab0ad5f1 13355 fi
a9e5b1f0
MW
13356
13357
3006edc0 13358
a848cd7e
SC
13359ac_ext=c
13360ac_cpp='$CPP $CPPFLAGS'
13361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13363ac_compiler_gnu=$ac_cv_c_compiler_gnu
13364echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13365echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13366# On Suns, sometimes $CPP names a directory.
13367if test -n "$CPP" && test -d "$CPP"; then
13368 CPP=
13369fi
13370if test -z "$CPP"; then
13371 if test "${ac_cv_prog_CPP+set}" = set; then
13372 echo $ECHO_N "(cached) $ECHO_C" >&6
13373else
13374 # Double quotes because CPP needs to be expanded
13375 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13376 do
13377 ac_preproc_ok=false
13378for ac_c_preproc_warn_flag in '' yes
13379do
13380 # Use a header file that comes with gcc, so configuring glibc
13381 # with a fresh cross-compiler works.
13382 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13383 # <limits.h> exists even on freestanding compilers.
13384 # On the NeXT, cc -E runs the code through the compiler's parser,
13385 # not just through cpp. "Syntax error" is here to catch this case.
13386 cat >conftest.$ac_ext <<_ACEOF
13387/* confdefs.h. */
13388_ACEOF
13389cat confdefs.h >>conftest.$ac_ext
13390cat >>conftest.$ac_ext <<_ACEOF
13391/* end confdefs.h. */
13392#ifdef __STDC__
13393# include <limits.h>
13394#else
13395# include <assert.h>
13396#endif
ac1cb8d3 13397 Syntax error
a848cd7e
SC
13398_ACEOF
13399if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13401 ac_status=$?
13402 grep -v '^ *+' conftest.er1 >conftest.err
13403 rm -f conftest.er1
13404 cat conftest.err >&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); } >/dev/null; then
13407 if test -s conftest.err; then
13408 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13410 else
13411 ac_cpp_err=
13412 fi
13413else
13414 ac_cpp_err=yes
13415fi
13416if test -z "$ac_cpp_err"; then
13417 :
13418else
13419 echo "$as_me: failed program was:" >&5
13420sed 's/^/| /' conftest.$ac_ext >&5
13421
13422 # Broken: fails on valid input.
13423continue
13424fi
13425rm -f conftest.err conftest.$ac_ext
13426
13427 # OK, works on sane cases. Now check whether non-existent headers
13428 # can be detected and how.
13429 cat >conftest.$ac_ext <<_ACEOF
13430/* confdefs.h. */
13431_ACEOF
13432cat confdefs.h >>conftest.$ac_ext
13433cat >>conftest.$ac_ext <<_ACEOF
13434/* end confdefs.h. */
13435#include <ac_nonexistent.h>
13436_ACEOF
13437if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13439 ac_status=$?
13440 grep -v '^ *+' conftest.er1 >conftest.err
13441 rm -f conftest.er1
13442 cat conftest.err >&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } >/dev/null; then
13445 if test -s conftest.err; then
13446 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13448 else
13449 ac_cpp_err=
13450 fi
13451else
13452 ac_cpp_err=yes
13453fi
13454if test -z "$ac_cpp_err"; then
13455 # Broken: success on invalid input.
13456continue
13457else
13458 echo "$as_me: failed program was:" >&5
13459sed 's/^/| /' conftest.$ac_ext >&5
13460
13461 # Passes both tests.
13462ac_preproc_ok=:
13463break
13464fi
13465rm -f conftest.err conftest.$ac_ext
13466
13467done
13468# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13469rm -f conftest.err conftest.$ac_ext
13470if $ac_preproc_ok; then
13471 break
13472fi
13473
13474 done
13475 ac_cv_prog_CPP=$CPP
13476
13477fi
13478 CPP=$ac_cv_prog_CPP
13479else
13480 ac_cv_prog_CPP=$CPP
13481fi
13482echo "$as_me:$LINENO: result: $CPP" >&5
13483echo "${ECHO_T}$CPP" >&6
13484ac_preproc_ok=false
13485for ac_c_preproc_warn_flag in '' yes
13486do
13487 # Use a header file that comes with gcc, so configuring glibc
13488 # with a fresh cross-compiler works.
13489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13490 # <limits.h> exists even on freestanding compilers.
13491 # On the NeXT, cc -E runs the code through the compiler's parser,
13492 # not just through cpp. "Syntax error" is here to catch this case.
13493 cat >conftest.$ac_ext <<_ACEOF
13494/* confdefs.h. */
13495_ACEOF
13496cat confdefs.h >>conftest.$ac_ext
13497cat >>conftest.$ac_ext <<_ACEOF
13498/* end confdefs.h. */
13499#ifdef __STDC__
13500# include <limits.h>
13501#else
13502# include <assert.h>
13503#endif
ac1cb8d3 13504 Syntax error
a848cd7e
SC
13505_ACEOF
13506if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13508 ac_status=$?
13509 grep -v '^ *+' conftest.er1 >conftest.err
13510 rm -f conftest.er1
13511 cat conftest.err >&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } >/dev/null; then
13514 if test -s conftest.err; then
13515 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13517 else
13518 ac_cpp_err=
13519 fi
13520else
13521 ac_cpp_err=yes
13522fi
13523if test -z "$ac_cpp_err"; then
13524 :
13525else
13526 echo "$as_me: failed program was:" >&5
13527sed 's/^/| /' conftest.$ac_ext >&5
13528
13529 # Broken: fails on valid input.
13530continue
13531fi
13532rm -f conftest.err conftest.$ac_ext
13533
13534 # OK, works on sane cases. Now check whether non-existent headers
13535 # can be detected and how.
13536 cat >conftest.$ac_ext <<_ACEOF
13537/* confdefs.h. */
13538_ACEOF
13539cat confdefs.h >>conftest.$ac_ext
13540cat >>conftest.$ac_ext <<_ACEOF
13541/* end confdefs.h. */
13542#include <ac_nonexistent.h>
13543_ACEOF
13544if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13546 ac_status=$?
13547 grep -v '^ *+' conftest.er1 >conftest.err
13548 rm -f conftest.er1
13549 cat conftest.err >&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); } >/dev/null; then
13552 if test -s conftest.err; then
13553 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13555 else
13556 ac_cpp_err=
13557 fi
13558else
13559 ac_cpp_err=yes
13560fi
13561if test -z "$ac_cpp_err"; then
13562 # Broken: success on invalid input.
13563continue
13564else
13565 echo "$as_me: failed program was:" >&5
13566sed 's/^/| /' conftest.$ac_ext >&5
13567
13568 # Passes both tests.
13569ac_preproc_ok=:
13570break
13571fi
13572rm -f conftest.err conftest.$ac_ext
13573
13574done
13575# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13576rm -f conftest.err conftest.$ac_ext
13577if $ac_preproc_ok; then
13578 :
13579else
13580 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13581See \`config.log' for more details." >&5
13582echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13583See \`config.log' for more details." >&2;}
13584 { (exit 1); exit 1; }; }
13585fi
13586
13587ac_ext=c
13588ac_cpp='$CPP $CPPFLAGS'
13589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13591ac_compiler_gnu=$ac_cv_c_compiler_gnu
13592
13593
13594echo "$as_me:$LINENO: checking for egrep" >&5
13595echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13596if test "${ac_cv_prog_egrep+set}" = set; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
13598else
13599 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13600 then ac_cv_prog_egrep='grep -E'
13601 else ac_cv_prog_egrep='egrep'
13602 fi
13603fi
13604echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13605echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13606 EGREP=$ac_cv_prog_egrep
13607
13608
13609if test $ac_cv_c_compiler_gnu = yes; then
13610 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13611echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13612if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13614else
13615 ac_pattern="Autoconf.*'x'"
13616 cat >conftest.$ac_ext <<_ACEOF
13617/* confdefs.h. */
13618_ACEOF
13619cat confdefs.h >>conftest.$ac_ext
13620cat >>conftest.$ac_ext <<_ACEOF
13621/* end confdefs.h. */
13622#include <sgtty.h>
13623Autoconf TIOCGETP
13624_ACEOF
13625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13626 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13627 ac_cv_prog_gcc_traditional=yes
13628else
13629 ac_cv_prog_gcc_traditional=no
13630fi
13631rm -f conftest*
13632
13633
13634 if test $ac_cv_prog_gcc_traditional = no; then
13635 cat >conftest.$ac_ext <<_ACEOF
13636/* confdefs.h. */
13637_ACEOF
13638cat confdefs.h >>conftest.$ac_ext
13639cat >>conftest.$ac_ext <<_ACEOF
13640/* end confdefs.h. */
13641#include <termio.h>
13642Autoconf TCGETA
13643_ACEOF
13644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13645 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13646 ac_cv_prog_gcc_traditional=yes
13647fi
13648rm -f conftest*
13649
13650 fi
13651fi
13652echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13653echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13654 if test $ac_cv_prog_gcc_traditional = yes; then
13655 CC="$CC -traditional"
13656 fi
13657fi
13658
13659
a848cd7e
SC
13660ac_ext=cc
13661ac_cpp='$CXXCPP $CPPFLAGS'
13662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13665
13666
13667CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13668
13669
3006edc0 13670
6dcfc289 13671 ac_ext=cc
a848cd7e
SC
13672ac_cpp='$CXXCPP $CPPFLAGS'
13673ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13674ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13675ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13676if test -n "$ac_tool_prefix"; then
13677 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13678 do
13679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13680set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13681echo "$as_me:$LINENO: checking for $ac_word" >&5
13682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13683if test "${ac_cv_prog_CXX+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13685else
13686 if test -n "$CXX"; then
13687 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13688else
13689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13690for as_dir in $PATH
13691do
13692 IFS=$as_save_IFS
13693 test -z "$as_dir" && as_dir=.
13694 for ac_exec_ext in '' $ac_executable_extensions; do
13695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13696 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13698 break 2
13699 fi
13700done
13701done
13702
13703fi
13704fi
13705CXX=$ac_cv_prog_CXX
13706if test -n "$CXX"; then
13707 echo "$as_me:$LINENO: result: $CXX" >&5
13708echo "${ECHO_T}$CXX" >&6
13709else
13710 echo "$as_me:$LINENO: result: no" >&5
13711echo "${ECHO_T}no" >&6
13712fi
13713
13714 test -n "$CXX" && break
13715 done
13716fi
13717if test -z "$CXX"; then
13718 ac_ct_CXX=$CXX
13719 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13720do
13721 # Extract the first word of "$ac_prog", so it can be a program name with args.
13722set dummy $ac_prog; ac_word=$2
13723echo "$as_me:$LINENO: checking for $ac_word" >&5
13724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13725if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13726 echo $ECHO_N "(cached) $ECHO_C" >&6
13727else
13728 if test -n "$ac_ct_CXX"; then
13729 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13730else
13731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13732for as_dir in $PATH
13733do
13734 IFS=$as_save_IFS
13735 test -z "$as_dir" && as_dir=.
13736 for ac_exec_ext in '' $ac_executable_extensions; do
13737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13738 ac_cv_prog_ac_ct_CXX="$ac_prog"
13739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13740 break 2
13741 fi
13742done
13743done
13744
13745fi
13746fi
13747ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13748if test -n "$ac_ct_CXX"; then
13749 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13750echo "${ECHO_T}$ac_ct_CXX" >&6
13751else
13752 echo "$as_me:$LINENO: result: no" >&5
13753echo "${ECHO_T}no" >&6
13754fi
13755
13756 test -n "$ac_ct_CXX" && break
13757done
13758test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13759
13760 CXX=$ac_ct_CXX
13761fi
13762
13763
13764# Provide some information about the compiler.
13765echo "$as_me:$LINENO:" \
13766 "checking for C++ compiler version" >&5
13767ac_compiler=`set X $ac_compile; echo $2`
13768{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13769 (eval $ac_compiler --version </dev/null >&5) 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }
13773{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13774 (eval $ac_compiler -v </dev/null >&5) 2>&5
13775 ac_status=$?
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }
13778{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13779 (eval $ac_compiler -V </dev/null >&5) 2>&5
13780 ac_status=$?
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }
13783
13784echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13785echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13786if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13787 echo $ECHO_N "(cached) $ECHO_C" >&6
13788else
13789 cat >conftest.$ac_ext <<_ACEOF
13790/* confdefs.h. */
13791_ACEOF
13792cat confdefs.h >>conftest.$ac_ext
13793cat >>conftest.$ac_ext <<_ACEOF
13794/* end confdefs.h. */
13795
13796int
13797main ()
13798{
13799#ifndef __GNUC__
13800 choke me
13801#endif
13802
13803 ;
13804 return 0;
13805}
13806_ACEOF
13807rm -f conftest.$ac_objext
13808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13809 (eval $ac_compile) 2>conftest.er1
a848cd7e 13810 ac_status=$?
ac1cb8d3
VS
13811 grep -v '^ *+' conftest.er1 >conftest.err
13812 rm -f conftest.er1
13813 cat conftest.err >&5
a848cd7e
SC
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); } &&
ca5c6ac3 13816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; } &&
13822 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
13828 ac_compiler_gnu=yes
13829else
13830 echo "$as_me: failed program was:" >&5
13831sed 's/^/| /' conftest.$ac_ext >&5
13832
13833ac_compiler_gnu=no
13834fi
ac1cb8d3 13835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13836ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13837
13838fi
13839echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13840echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13841GXX=`test $ac_compiler_gnu = yes && echo yes`
13842ac_test_CXXFLAGS=${CXXFLAGS+set}
13843ac_save_CXXFLAGS=$CXXFLAGS
13844CXXFLAGS="-g"
13845echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13846echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13847if test "${ac_cv_prog_cxx_g+set}" = set; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13849else
13850 cat >conftest.$ac_ext <<_ACEOF
13851/* confdefs.h. */
13852_ACEOF
13853cat confdefs.h >>conftest.$ac_ext
13854cat >>conftest.$ac_ext <<_ACEOF
13855/* end confdefs.h. */
13856
13857int
13858main ()
13859{
13860
13861 ;
13862 return 0;
13863}
13864_ACEOF
13865rm -f conftest.$ac_objext
13866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13867 (eval $ac_compile) 2>conftest.er1
a848cd7e 13868 ac_status=$?
ac1cb8d3
VS
13869 grep -v '^ *+' conftest.er1 >conftest.err
13870 rm -f conftest.er1
13871 cat conftest.err >&5
a848cd7e
SC
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } &&
ca5c6ac3 13874 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13877 ac_status=$?
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; } &&
13880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13883 ac_status=$?
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; }; then
13886 ac_cv_prog_cxx_g=yes
13887else
13888 echo "$as_me: failed program was:" >&5
13889sed 's/^/| /' conftest.$ac_ext >&5
13890
13891ac_cv_prog_cxx_g=no
13892fi
ac1cb8d3 13893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13894fi
13895echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13896echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13897if test "$ac_test_CXXFLAGS" = set; then
13898 CXXFLAGS=$ac_save_CXXFLAGS
13899elif test $ac_cv_prog_cxx_g = yes; then
13900 if test "$GXX" = yes; then
15291213 13901 CXXFLAGS="-g -O2"
a848cd7e 13902 else
15291213 13903 CXXFLAGS="-g"
a848cd7e
SC
13904 fi
13905else
13906 if test "$GXX" = yes; then
13907 CXXFLAGS="-O2"
13908 else
13909 CXXFLAGS=
13910 fi
13911fi
13912for ac_declaration in \
ac1cb8d3 13913 '' \
a848cd7e
SC
13914 'extern "C" void std::exit (int) throw (); using std::exit;' \
13915 'extern "C" void std::exit (int); using std::exit;' \
13916 'extern "C" void exit (int) throw ();' \
13917 'extern "C" void exit (int);' \
13918 'void exit (int);'
13919do
13920 cat >conftest.$ac_ext <<_ACEOF
13921/* confdefs.h. */
13922_ACEOF
13923cat confdefs.h >>conftest.$ac_ext
13924cat >>conftest.$ac_ext <<_ACEOF
13925/* end confdefs.h. */
de59c161 13926$ac_declaration
ac1cb8d3 13927#include <stdlib.h>
a848cd7e
SC
13928int
13929main ()
13930{
13931exit (42);
13932 ;
13933 return 0;
13934}
13935_ACEOF
13936rm -f conftest.$ac_objext
13937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13938 (eval $ac_compile) 2>conftest.er1
a848cd7e 13939 ac_status=$?
ac1cb8d3
VS
13940 grep -v '^ *+' conftest.er1 >conftest.err
13941 rm -f conftest.er1
13942 cat conftest.err >&5
a848cd7e
SC
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } &&
ca5c6ac3 13945 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947 (eval $ac_try) 2>&5
13948 ac_status=$?
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); }; } &&
13951 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953 (eval $ac_try) 2>&5
13954 ac_status=$?
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; }; then
13957 :
13958else
13959 echo "$as_me: failed program was:" >&5
13960sed 's/^/| /' conftest.$ac_ext >&5
13961
13962continue
13963fi
ac1cb8d3 13964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13965 cat >conftest.$ac_ext <<_ACEOF
13966/* confdefs.h. */
13967_ACEOF
13968cat confdefs.h >>conftest.$ac_ext
13969cat >>conftest.$ac_ext <<_ACEOF
13970/* end confdefs.h. */
13971$ac_declaration
13972int
13973main ()
13974{
13975exit (42);
13976 ;
13977 return 0;
13978}
13979_ACEOF
13980rm -f conftest.$ac_objext
13981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13982 (eval $ac_compile) 2>conftest.er1
a848cd7e 13983 ac_status=$?
ac1cb8d3
VS
13984 grep -v '^ *+' conftest.er1 >conftest.err
13985 rm -f conftest.er1
13986 cat conftest.err >&5
a848cd7e
SC
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } &&
ca5c6ac3 13989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; } &&
13995 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13997 (eval $ac_try) 2>&5
13998 ac_status=$?
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); }; }; then
14001 break
14002else
14003 echo "$as_me: failed program was:" >&5
14004sed 's/^/| /' conftest.$ac_ext >&5
14005
14006fi
ac1cb8d3 14007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14008done
14009rm -f conftest*
14010if test -n "$ac_declaration"; then
14011 echo '#ifdef __cplusplus' >>confdefs.h
14012 echo $ac_declaration >>confdefs.h
14013 echo '#endif' >>confdefs.h
14014fi
14015
14016ac_ext=cc
14017ac_cpp='$CXXCPP $CPPFLAGS'
14018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14021
ab0ad5f1
VZ
14022
14023
14024 ac_ext=cc
14025ac_cpp='$CXXCPP $CPPFLAGS'
14026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14029
14030 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
14031echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
14032if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14034else
14035 cat >conftest.$ac_ext <<_ACEOF
14036/* confdefs.h. */
14037_ACEOF
14038cat confdefs.h >>conftest.$ac_ext
14039cat >>conftest.$ac_ext <<_ACEOF
14040/* end confdefs.h. */
14041
14042int
14043main ()
14044{
14045
14046 #ifndef __INTEL_COMPILER
14047 choke me
14048 #endif
14049
14050 ;
14051 return 0;
14052}
14053_ACEOF
14054rm -f conftest.$ac_objext
14055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14056 (eval $ac_compile) 2>conftest.er1
14057 ac_status=$?
14058 grep -v '^ *+' conftest.er1 >conftest.err
14059 rm -f conftest.er1
14060 cat conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } &&
ca5c6ac3 14063 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
14064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14065 (eval $ac_try) 2>&5
14066 ac_status=$?
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; } &&
14069 { ac_try='test -s conftest.$ac_objext'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14072 ac_status=$?
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; }; then
14075 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14076else
14077 echo "$as_me: failed program was:" >&5
14078sed 's/^/| /' conftest.$ac_ext >&5
14079
14080bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14081
14082fi
14083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14084
14085
14086fi
14087echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14088echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
14089 ac_ext=cc
14090ac_cpp='$CXXCPP $CPPFLAGS'
14091ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14092ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14093ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14094
14095 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
14096 :; INTELCXX=yes
14097 else
14098 :;
14099 fi
14100
14101
3006edc0
VZ
14102 if test "x$GCXX" != "xyes"; then
14103 if test "xCXX" = "xC"; then
14104 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 14105echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 14106if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
14107 echo $ECHO_N "(cached) $ECHO_C" >&6
14108else
14109 cat >conftest.$ac_ext <<_ACEOF
14110/* confdefs.h. */
14111_ACEOF
14112cat confdefs.h >>conftest.$ac_ext
14113cat >>conftest.$ac_ext <<_ACEOF
14114/* end confdefs.h. */
14115
14116int
14117main ()
14118{
14119
14120 ;
14121 return 0;
14122}
14123_ACEOF
14124rm -f conftest.$ac_objext conftest.$ac_ext.o
14125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14126 (eval $ac_compile) 2>&5
14127 ac_status=$?
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; then
14130 for ac_file in `(ls conftest.* 2>/dev/null)`; do
14131 case $ac_file in
14132 conftest.$ac_ext.o)
0093c2fc 14133 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
14134 ;;
14135 *)
14136 ;;
14137 esac
14138done
14139else
14140 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14141See \`config.log' for more details." >&5
14142echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14143See \`config.log' for more details." >&2;}
14144 { (exit 1); exit 1; }; }
14145
14146fi
14147
14148rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14149
14150fi
0093c2fc
VZ
14151echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14152echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14153if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 14154 if test "cxx" = "c"; then
0093c2fc 14155 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
14156 fi
14157 if test "cxx" = "cxx"; then
0093c2fc 14158 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
14159 fi
14160fi
14161
0093c2fc 14162 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14163 unset ac_cv_prog_cc_g
14164 ac_test_CFLAGS=${CFLAGS+set}
14165ac_save_CFLAGS=$CFLAGS
15291213 14166CFLAGS="-g"
3006edc0
VZ
14167echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14168echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14169if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
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
14189 (eval $ac_compile) 2>conftest.er1
14190 ac_status=$?
14191 grep -v '^ *+' conftest.er1 >conftest.err
14192 rm -f conftest.er1
14193 cat conftest.err >&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } &&
ca5c6ac3 14196 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
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'
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
3006edc0 14208 ac_cv_prog_cc_g=yes
480ccd21
DE
14209else
14210 echo "$as_me: failed program was:" >&5
14211sed 's/^/| /' conftest.$ac_ext >&5
14212
3006edc0 14213ac_cv_prog_cc_g=no
480ccd21
DE
14214fi
14215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14216fi
3006edc0
VZ
14217echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14218echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14219if test "$ac_test_CFLAGS" = set; then
14220 CFLAGS=$ac_save_CFLAGS
14221elif test $ac_cv_prog_cc_g = yes; then
14222 if test "$GCC" = yes; then
14223 CFLAGS="-g -O2"
480ccd21 14224 else
3006edc0 14225 CFLAGS="-g"
480ccd21
DE
14226 fi
14227else
3006edc0
VZ
14228 if test "$GCC" = yes; then
14229 CFLAGS="-O2"
480ccd21 14230 else
3006edc0 14231 CFLAGS=
480ccd21
DE
14232 fi
14233fi
3006edc0 14234 fi
ab0ad5f1 14235 fi
3006edc0
VZ
14236
14237 case `uname -s` in
14238 AIX*)
14239 ac_ext=cc
14240ac_cpp='$CXXCPP $CPPFLAGS'
14241ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14242ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14243ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14244
14245echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14246echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14247if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14249else
14250 cat >conftest.$ac_ext <<_ACEOF
14251/* confdefs.h. */
14252_ACEOF
14253cat confdefs.h >>conftest.$ac_ext
14254cat >>conftest.$ac_ext <<_ACEOF
14255/* end confdefs.h. */
14256
14257int
14258main ()
14259{
14260#ifndef __xlC__
14261 choke me
14262#endif
14263
14264 ;
14265 return 0;
14266}
14267_ACEOF
14268rm -f conftest.$ac_objext
14269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14270 (eval $ac_compile) 2>conftest.er1
14271 ac_status=$?
14272 grep -v '^ *+' conftest.er1 >conftest.err
14273 rm -f conftest.er1
14274 cat conftest.err >&5
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); } &&
ca5c6ac3 14277 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279 (eval $ac_try) 2>&5
14280 ac_status=$?
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; } &&
14283 { ac_try='test -s conftest.$ac_objext'
14284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285 (eval $ac_try) 2>&5
14286 ac_status=$?
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; }; then
0093c2fc 14289 bakefile_compiler_xlc=yes
3006edc0
VZ
14290else
14291 echo "$as_me: failed program was:" >&5
14292sed 's/^/| /' conftest.$ac_ext >&5
14293
0093c2fc 14294bakefile_compiler_xlc=no
3006edc0
VZ
14295fi
14296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14297 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14298
14299fi
0093c2fc
VZ
14300echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14301echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14302
0093c2fc 14303XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
14304ac_ext=cc
14305ac_cpp='$CXXCPP $CPPFLAGS'
14306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14309
14310
14311 ;;
14312
14313 Darwin)
14314 ac_ext=cc
95986553
DE
14315ac_cpp='$CXXCPP $CPPFLAGS'
14316ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14317ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14318ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14319
14320echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14321echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14322if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14323 echo $ECHO_N "(cached) $ECHO_C" >&6
14324else
14325 cat >conftest.$ac_ext <<_ACEOF
14326/* confdefs.h. */
14327_ACEOF
14328cat confdefs.h >>conftest.$ac_ext
14329cat >>conftest.$ac_ext <<_ACEOF
14330/* end confdefs.h. */
14331
14332int
14333main ()
14334{
14335#ifndef __MWERKS__
14336 choke me
14337#endif
14338
14339 ;
14340 return 0;
14341}
14342_ACEOF
14343rm -f conftest.$ac_objext
14344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14345 (eval $ac_compile) 2>conftest.er1
14346 ac_status=$?
14347 grep -v '^ *+' conftest.er1 >conftest.err
14348 rm -f conftest.er1
14349 cat conftest.err >&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); } &&
ca5c6ac3 14352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
14353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354 (eval $ac_try) 2>&5
14355 ac_status=$?
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; } &&
14358 { ac_try='test -s conftest.$ac_objext'
14359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14360 (eval $ac_try) 2>&5
14361 ac_status=$?
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); }; }; then
14364 bakefile_compiler_mwerks=yes
14365else
14366 echo "$as_me: failed program was:" >&5
14367sed 's/^/| /' conftest.$ac_ext >&5
14368
14369bakefile_compiler_mwerks=no
14370fi
14371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14372 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14373
14374fi
14375echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14376echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14377
0e6fa1d9 14378MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
14379ac_ext=cc
14380ac_cpp='$CXXCPP $CPPFLAGS'
14381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14384
14385
3006edc0 14386 ac_ext=cc
9273ffba
DE
14387ac_cpp='$CXXCPP $CPPFLAGS'
14388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14391
14392echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14393echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14394if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14396else
14397 cat >conftest.$ac_ext <<_ACEOF
14398/* confdefs.h. */
14399_ACEOF
14400cat confdefs.h >>conftest.$ac_ext
14401cat >>conftest.$ac_ext <<_ACEOF
14402/* end confdefs.h. */
14403
14404int
14405main ()
14406{
14407#ifndef __xlC__
14408 choke me
14409#endif
14410
14411 ;
14412 return 0;
14413}
14414_ACEOF
14415rm -f conftest.$ac_objext
14416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14417 (eval $ac_compile) 2>conftest.er1
14418 ac_status=$?
14419 grep -v '^ *+' conftest.er1 >conftest.err
14420 rm -f conftest.er1
14421 cat conftest.err >&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } &&
ca5c6ac3 14424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
14425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426 (eval $ac_try) 2>&5
14427 ac_status=$?
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; } &&
14430 { ac_try='test -s conftest.$ac_objext'
14431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432 (eval $ac_try) 2>&5
14433 ac_status=$?
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; }; then
0093c2fc 14436 bakefile_compiler_xlc=yes
9273ffba
DE
14437else
14438 echo "$as_me: failed program was:" >&5
14439sed 's/^/| /' conftest.$ac_ext >&5
14440
0093c2fc 14441bakefile_compiler_xlc=no
9273ffba
DE
14442fi
14443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14444 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14445
14446fi
0093c2fc
VZ
14447echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14448echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14449
0093c2fc 14450XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14451ac_ext=cc
14452ac_cpp='$CXXCPP $CPPFLAGS'
14453ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14454ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14455ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14456
14457
3006edc0
VZ
14458 ;;
14459
14460 IRIX*)
95986553 14461
6dcfc289 14462
0ad5d837
VZ
14463 ac_ext=cc
14464ac_cpp='$CXXCPP $CPPFLAGS'
14465ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14466ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14467ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14468
14469 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14470echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14471if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14472 echo $ECHO_N "(cached) $ECHO_C" >&6
14473else
14474 cat >conftest.$ac_ext <<_ACEOF
14475/* confdefs.h. */
14476_ACEOF
14477cat confdefs.h >>conftest.$ac_ext
14478cat >>conftest.$ac_ext <<_ACEOF
14479/* end confdefs.h. */
14480
14481int
14482main ()
14483{
14484
14485 #ifndef _SGI_COMPILER_VERSION
14486 choke me
14487 #endif
14488
14489 ;
14490 return 0;
14491}
14492_ACEOF
14493rm -f conftest.$ac_objext
14494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14495 (eval $ac_compile) 2>conftest.er1
14496 ac_status=$?
14497 grep -v '^ *+' conftest.er1 >conftest.err
14498 rm -f conftest.er1
14499 cat conftest.err >&5
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); } &&
ca5c6ac3 14502 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
14503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14504 (eval $ac_try) 2>&5
14505 ac_status=$?
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); }; } &&
14508 { ac_try='test -s conftest.$ac_objext'
14509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14510 (eval $ac_try) 2>&5
14511 ac_status=$?
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); }; }; then
14514 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14515else
14516 echo "$as_me: failed program was:" >&5
14517sed 's/^/| /' conftest.$ac_ext >&5
14518
14519bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14520
14521fi
14522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14523
14524
14525fi
14526echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14527echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14528 ac_ext=cc
14529ac_cpp='$CXXCPP $CPPFLAGS'
14530ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14531ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14532ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14533
14534 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14535 :; SGICXX=yes
14536 else
14537 :;
14538 fi
14539
14540
3006edc0
VZ
14541 ;;
14542
0093c2fc 14543 HP-UX*)
3006edc0
VZ
14544
14545
14546 ac_ext=cc
14547ac_cpp='$CXXCPP $CPPFLAGS'
14548ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14549ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14550ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14551
0093c2fc
VZ
14552 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14553echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14554if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14555 echo $ECHO_N "(cached) $ECHO_C" >&6
14556else
14557 cat >conftest.$ac_ext <<_ACEOF
14558/* confdefs.h. */
14559_ACEOF
14560cat confdefs.h >>conftest.$ac_ext
14561cat >>conftest.$ac_ext <<_ACEOF
14562/* end confdefs.h. */
14563
14564int
14565main ()
14566{
14567
0093c2fc 14568 #ifndef __HP_aCC
3006edc0
VZ
14569 choke me
14570 #endif
14571
14572 ;
14573 return 0;
14574}
14575_ACEOF
14576rm -f conftest.$ac_objext
14577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14578 (eval $ac_compile) 2>conftest.er1
14579 ac_status=$?
14580 grep -v '^ *+' conftest.er1 >conftest.err
14581 rm -f conftest.er1
14582 cat conftest.err >&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } &&
ca5c6ac3 14585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587 (eval $ac_try) 2>&5
14588 ac_status=$?
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); }; } &&
14591 { ac_try='test -s conftest.$ac_objext'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14594 ac_status=$?
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; }; then
0093c2fc 14597 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14598else
14599 echo "$as_me: failed program was:" >&5
14600sed 's/^/| /' conftest.$ac_ext >&5
14601
0093c2fc 14602bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14603
14604fi
14605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14606
14607
14608fi
0093c2fc
VZ
14609echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14610echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14611 ac_ext=cc
14612ac_cpp='$CXXCPP $CPPFLAGS'
14613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14616
0093c2fc
VZ
14617 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14618 :; HPCXX=yes
a1aa0349
VZ
14619 else
14620 :;
14621 fi
14622
14623
14624 ;;
14625
0093c2fc 14626 OSF1)
a1aa0349
VZ
14627
14628
14629 ac_ext=cc
14630ac_cpp='$CXXCPP $CPPFLAGS'
14631ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14632ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14633ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14634
0093c2fc
VZ
14635 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14636echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14637if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14639else
14640 cat >conftest.$ac_ext <<_ACEOF
14641/* confdefs.h. */
14642_ACEOF
14643cat confdefs.h >>conftest.$ac_ext
14644cat >>conftest.$ac_ext <<_ACEOF
14645/* end confdefs.h. */
14646
14647int
14648main ()
14649{
14650
0093c2fc 14651 #ifndef __DECCXX
a1aa0349
VZ
14652 choke me
14653 #endif
14654
14655 ;
14656 return 0;
14657}
14658_ACEOF
14659rm -f conftest.$ac_objext
14660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14661 (eval $ac_compile) 2>conftest.er1
14662 ac_status=$?
14663 grep -v '^ *+' conftest.er1 >conftest.err
14664 rm -f conftest.er1
14665 cat conftest.err >&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); } &&
ca5c6ac3 14668 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14671 ac_status=$?
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; } &&
14674 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
0093c2fc 14680 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14681else
14682 echo "$as_me: failed program was:" >&5
14683sed 's/^/| /' conftest.$ac_ext >&5
14684
0093c2fc 14685bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14686
14687fi
14688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14689
14690
14691fi
0093c2fc
VZ
14692echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14693echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14694 ac_ext=cc
14695ac_cpp='$CXXCPP $CPPFLAGS'
14696ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14697ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14698ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14699
0093c2fc
VZ
14700 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14701 :; COMPAQCXX=yes
14702 else
14703 :;
14704 fi
14705
14706
14707 ;;
14708
14709 SunOS)
14710
14711
14712 ac_ext=cc
14713ac_cpp='$CXXCPP $CPPFLAGS'
14714ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14715ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14716ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14717
14718 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14719echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14720if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14721 echo $ECHO_N "(cached) $ECHO_C" >&6
14722else
14723 cat >conftest.$ac_ext <<_ACEOF
14724/* confdefs.h. */
14725_ACEOF
14726cat confdefs.h >>conftest.$ac_ext
14727cat >>conftest.$ac_ext <<_ACEOF
14728/* end confdefs.h. */
14729
14730int
14731main ()
14732{
14733
14734 #ifndef __SUNPRO_CC
14735 choke me
14736 #endif
14737
14738 ;
14739 return 0;
14740}
14741_ACEOF
14742rm -f conftest.$ac_objext
14743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14744 (eval $ac_compile) 2>conftest.er1
14745 ac_status=$?
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
ca5c6ac3 14751 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14754 ac_status=$?
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; } &&
14757 { ac_try='test -s conftest.$ac_objext'
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14760 ac_status=$?
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; }; then
14763 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14764else
14765 echo "$as_me: failed program was:" >&5
14766sed 's/^/| /' conftest.$ac_ext >&5
14767
14768bakefile_cv_cxx_compiler___SUNPRO_CC=no
14769
14770fi
14771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14772
14773
14774fi
14775echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14776echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14777 ac_ext=cc
14778ac_cpp='$CXXCPP $CPPFLAGS'
14779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14782
14783 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14784 :; SUNCXX=yes
3006edc0
VZ
14785 else
14786 :;
ab0ad5f1 14787 fi
a9e5b1f0
MW
14788
14789
3006edc0
VZ
14790 ;;
14791 esac
14792 fi
14793
14794
14795
a848cd7e
SC
14796if test -n "$ac_tool_prefix"; then
14797 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14798set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14799echo "$as_me:$LINENO: checking for $ac_word" >&5
14800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14801if test "${ac_cv_prog_RANLIB+set}" = set; then
14802 echo $ECHO_N "(cached) $ECHO_C" >&6
14803else
14804 if test -n "$RANLIB"; then
14805 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14806else
14807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14808for as_dir in $PATH
14809do
14810 IFS=$as_save_IFS
14811 test -z "$as_dir" && as_dir=.
14812 for ac_exec_ext in '' $ac_executable_extensions; do
14813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14814 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14816 break 2
14817 fi
14818done
14819done
14820
14821fi
14822fi
14823RANLIB=$ac_cv_prog_RANLIB
14824if test -n "$RANLIB"; then
14825 echo "$as_me:$LINENO: result: $RANLIB" >&5
14826echo "${ECHO_T}$RANLIB" >&6
14827else
14828 echo "$as_me:$LINENO: result: no" >&5
14829echo "${ECHO_T}no" >&6
14830fi
14831
14832fi
14833if test -z "$ac_cv_prog_RANLIB"; then
14834 ac_ct_RANLIB=$RANLIB
14835 # Extract the first word of "ranlib", so it can be a program name with args.
14836set dummy ranlib; ac_word=$2
14837echo "$as_me:$LINENO: checking for $ac_word" >&5
14838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14839if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14841else
14842 if test -n "$ac_ct_RANLIB"; then
14843 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14844else
14845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14846for as_dir in $PATH
14847do
14848 IFS=$as_save_IFS
14849 test -z "$as_dir" && as_dir=.
14850 for ac_exec_ext in '' $ac_executable_extensions; do
14851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14852 ac_cv_prog_ac_ct_RANLIB="ranlib"
14853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14854 break 2
14855 fi
14856done
14857done
14858
14859 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14860fi
14861fi
14862ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14863if test -n "$ac_ct_RANLIB"; then
14864 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14865echo "${ECHO_T}$ac_ct_RANLIB" >&6
14866else
14867 echo "$as_me:$LINENO: result: no" >&5
14868echo "${ECHO_T}no" >&6
14869fi
14870
14871 RANLIB=$ac_ct_RANLIB
14872else
14873 RANLIB="$ac_cv_prog_RANLIB"
14874fi
14875
14876
8c80d384
DE
14877if test -n "$ac_tool_prefix"; then
14878 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14879set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14880echo "$as_me:$LINENO: checking for $ac_word" >&5
14881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14882if test "${ac_cv_prog_AR+set}" = set; then
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14884else
14885 if test -n "$AR"; then
14886 ac_cv_prog_AR="$AR" # Let the user override the test.
14887else
14888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14889for as_dir in $PATH
14890do
14891 IFS=$as_save_IFS
14892 test -z "$as_dir" && as_dir=.
14893 for ac_exec_ext in '' $ac_executable_extensions; do
14894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14895 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14897 break 2
14898 fi
14899done
14900done
14901
14902fi
14903fi
14904AR=$ac_cv_prog_AR
14905if test -n "$AR"; then
14906 echo "$as_me:$LINENO: result: $AR" >&5
14907echo "${ECHO_T}$AR" >&6
14908else
14909 echo "$as_me:$LINENO: result: no" >&5
14910echo "${ECHO_T}no" >&6
14911fi
14912
8c80d384
DE
14913fi
14914if test -z "$ac_cv_prog_AR"; then
14915 ac_ct_AR=$AR
14916 # Extract the first word of "ar", so it can be a program name with args.
14917set dummy ar; ac_word=$2
14918echo "$as_me:$LINENO: checking for $ac_word" >&5
14919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14920if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14922else
14923 if test -n "$ac_ct_AR"; then
14924 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14925else
14926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14927for as_dir in $PATH
14928do
14929 IFS=$as_save_IFS
14930 test -z "$as_dir" && as_dir=.
14931 for ac_exec_ext in '' $ac_executable_extensions; do
14932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14933 ac_cv_prog_ac_ct_AR="ar"
14934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14935 break 2
14936 fi
14937done
14938done
14939
14940fi
14941fi
14942ac_ct_AR=$ac_cv_prog_ac_ct_AR
14943if test -n "$ac_ct_AR"; then
14944 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14945echo "${ECHO_T}$ac_ct_AR" >&6
14946else
14947 echo "$as_me:$LINENO: result: no" >&5
14948echo "${ECHO_T}no" >&6
14949fi
14950
14951 AR=$ac_ct_AR
14952else
14953 AR="$ac_cv_prog_AR"
14954fi
14955
a848cd7e 14956if test "x$AR" = "x" ; then
77ffb593
JS
14957 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14958echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14959 { (exit 1); exit 1; }; }
14960fi
14961
14962# Find a good install program. We prefer a C program (faster),
14963# so one script is as good as another. But avoid the broken or
14964# incompatible versions:
14965# SysV /etc/install, /usr/sbin/install
14966# SunOS /usr/etc/install
14967# IRIX /sbin/install
14968# AIX /bin/install
14969# AmigaOS /C/install, which installs bootblocks on floppy discs
14970# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14971# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14972# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14973# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14974# ./install, which can be erroneously created by make from ./install.sh.
14975echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14976echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14977if test -z "$INSTALL"; then
14978if test "${ac_cv_path_install+set}" = set; then
14979 echo $ECHO_N "(cached) $ECHO_C" >&6
14980else
14981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14982for as_dir in $PATH
14983do
14984 IFS=$as_save_IFS
14985 test -z "$as_dir" && as_dir=.
14986 # Account for people who put trailing slashes in PATH elements.
14987case $as_dir/ in
14988 ./ | .// | /cC/* | \
14989 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14990 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14991 /usr/ucb/* ) ;;
14992 *)
14993 # OSF1 and SCO ODT 3.0 have their own names for install.
14994 # Don't use installbsd from OSF since it installs stuff as root
14995 # by default.
14996 for ac_prog in ginstall scoinst install; do
14997 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14998 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14999 if test $ac_prog = install &&
15000 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15001 # AIX install. It has an incompatible calling convention.
15002 :
15003 elif test $ac_prog = install &&
15004 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15005 # program-specific install script used by HP pwplus--don't use.
15006 :
15007 else
15008 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15009 break 3
15010 fi
15011 fi
a848cd7e
SC
15012 done
15013 done
15014 ;;
15015esac
15016done
15017
15018
15019fi
15020 if test "${ac_cv_path_install+set}" = set; then
15021 INSTALL=$ac_cv_path_install
15022 else
15023 # As a last resort, use the slow shell script. We don't cache a
15024 # path for INSTALL within a source directory, because that will
15025 # break other packages using the cache if that directory is
15026 # removed, or if the path is relative.
15027 INSTALL=$ac_install_sh
15028 fi
15029fi
15030echo "$as_me:$LINENO: result: $INSTALL" >&5
15031echo "${ECHO_T}$INSTALL" >&6
15032
15033# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15034# It thinks the first close brace ends the variable substitution.
15035test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15036
15037test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15038
15039test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15040
15041
15042case ${INSTALL} in
15043 /* ) # Absolute
15044 ;;
15045 ?:* ) # Drive letter, considered as absolute.
15046 ;;
15047 *)
15048 INSTALL=`pwd`/${INSTALL} ;;
15049esac
15050
a848cd7e
SC
15051
15052case "${host}" in
15053
cfda0ea8 15054 *-*-darwin* )
a848cd7e
SC
15055 INSTALL_PROGRAM="cp -fp"
15056 INSTALL_DATA="cp -fp"
15057 ;;
15058 *)
15059 ;;
15060esac
15061
8c80d384
DE
15062if test -n "$ac_tool_prefix"; then
15063 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15064set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
15065echo "$as_me:$LINENO: checking for $ac_word" >&5
15066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15067if test "${ac_cv_prog_STRIP+set}" = set; then
15068 echo $ECHO_N "(cached) $ECHO_C" >&6
15069else
15070 if test -n "$STRIP"; then
15071 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15072else
15073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15074for as_dir in $PATH
15075do
15076 IFS=$as_save_IFS
15077 test -z "$as_dir" && as_dir=.
15078 for ac_exec_ext in '' $ac_executable_extensions; do
15079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15080 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
15081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15082 break 2
15083 fi
15084done
15085done
15086
a848cd7e
SC
15087fi
15088fi
15089STRIP=$ac_cv_prog_STRIP
15090if test -n "$STRIP"; then
15091 echo "$as_me:$LINENO: result: $STRIP" >&5
15092echo "${ECHO_T}$STRIP" >&6
15093else
15094 echo "$as_me:$LINENO: result: no" >&5
15095echo "${ECHO_T}no" >&6
15096fi
15097
8c80d384
DE
15098fi
15099if test -z "$ac_cv_prog_STRIP"; then
15100 ac_ct_STRIP=$STRIP
15101 # Extract the first word of "strip", so it can be a program name with args.
15102set dummy strip; ac_word=$2
15103echo "$as_me:$LINENO: checking for $ac_word" >&5
15104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15105if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15107else
15108 if test -n "$ac_ct_STRIP"; then
15109 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15110else
15111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15112for as_dir in $PATH
15113do
15114 IFS=$as_save_IFS
15115 test -z "$as_dir" && as_dir=.
15116 for ac_exec_ext in '' $ac_executable_extensions; do
15117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15118 ac_cv_prog_ac_ct_STRIP="strip"
15119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15120 break 2
15121 fi
15122done
15123done
15124
15125 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15126fi
15127fi
15128ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15129if test -n "$ac_ct_STRIP"; then
15130 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15131echo "${ECHO_T}$ac_ct_STRIP" >&6
15132else
15133 echo "$as_me:$LINENO: result: no" >&5
15134echo "${ECHO_T}no" >&6
15135fi
15136
15137 STRIP=$ac_ct_STRIP
15138else
15139 STRIP="$ac_cv_prog_STRIP"
15140fi
15141
15142
15143if test "$wxUSE_WINE" = "yes"; then
15144 if test -n "$ac_tool_prefix"; then
15145 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15146set dummy ${ac_tool_prefix}wrc; ac_word=$2
15147echo "$as_me:$LINENO: checking for $ac_word" >&5
15148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15149if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15151else
8ced02f6
DE
15152 if test -n "$WINDRES"; then
15153 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15154else
15155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15156for as_dir in $PATH
15157do
15158 IFS=$as_save_IFS
15159 test -z "$as_dir" && as_dir=.
15160 for ac_exec_ext in '' $ac_executable_extensions; do
15161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15162 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15164 break 2
15165 fi
15166done
15167done
15168
15169fi
15170fi
8ced02f6
DE
15171WINDRES=$ac_cv_prog_WINDRES
15172if test -n "$WINDRES"; then
15173 echo "$as_me:$LINENO: result: $WINDRES" >&5
15174echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15175else
15176 echo "$as_me:$LINENO: result: no" >&5
15177echo "${ECHO_T}no" >&6
15178fi
15179
15180fi
8ced02f6
DE
15181if test -z "$ac_cv_prog_WINDRES"; then
15182 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15183 # Extract the first word of "wrc", so it can be a program name with args.
15184set dummy wrc; ac_word=$2
15185echo "$as_me:$LINENO: checking for $ac_word" >&5
15186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15187if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15188 echo $ECHO_N "(cached) $ECHO_C" >&6
15189else
8ced02f6
DE
15190 if test -n "$ac_ct_WINDRES"; then
15191 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15192else
15193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15194for as_dir in $PATH
15195do
15196 IFS=$as_save_IFS
15197 test -z "$as_dir" && as_dir=.
15198 for ac_exec_ext in '' $ac_executable_extensions; do
15199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15200 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15202 break 2
15203 fi
15204done
15205done
15206
15207fi
15208fi
8ced02f6
DE
15209ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15210if test -n "$ac_ct_WINDRES"; then
15211 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15212echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15213else
15214 echo "$as_me:$LINENO: result: no" >&5
15215echo "${ECHO_T}no" >&6
15216fi
15217
8ced02f6 15218 WINDRES=$ac_ct_WINDRES
8c80d384 15219else
8ced02f6 15220 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15221fi
15222
004ee6da 15223 RESCOMP="$WINDRES"
8c80d384
DE
15224else
15225 case "${host}" in
15226 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15227 if test -n "$ac_tool_prefix"; then
15228 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15229set dummy ${ac_tool_prefix}windres; ac_word=$2
15230echo "$as_me:$LINENO: checking for $ac_word" >&5
15231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15232if test "${ac_cv_prog_WINDRES+set}" = set; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15234else
15235 if test -n "$WINDRES"; then
15236 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15237else
15238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15239for as_dir in $PATH
15240do
15241 IFS=$as_save_IFS
15242 test -z "$as_dir" && as_dir=.
15243 for ac_exec_ext in '' $ac_executable_extensions; do
15244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15245 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15247 break 2
15248 fi
15249done
15250done
15251
15252fi
15253fi
15254WINDRES=$ac_cv_prog_WINDRES
15255if test -n "$WINDRES"; then
15256 echo "$as_me:$LINENO: result: $WINDRES" >&5
15257echo "${ECHO_T}$WINDRES" >&6
15258else
15259 echo "$as_me:$LINENO: result: no" >&5
15260echo "${ECHO_T}no" >&6
15261fi
15262
15263fi
15264if test -z "$ac_cv_prog_WINDRES"; then
15265 ac_ct_WINDRES=$WINDRES
15266 # Extract the first word of "windres", so it can be a program name with args.
15267set dummy windres; ac_word=$2
15268echo "$as_me:$LINENO: checking for $ac_word" >&5
15269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15270if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15271 echo $ECHO_N "(cached) $ECHO_C" >&6
15272else
15273 if test -n "$ac_ct_WINDRES"; then
15274 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15275else
15276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15277for as_dir in $PATH
15278do
15279 IFS=$as_save_IFS
15280 test -z "$as_dir" && as_dir=.
15281 for ac_exec_ext in '' $ac_executable_extensions; do
15282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15283 ac_cv_prog_ac_ct_WINDRES="windres"
15284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15285 break 2
15286 fi
15287done
15288done
15289
15290fi
15291fi
15292ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15293if test -n "$ac_ct_WINDRES"; then
15294 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15295echo "${ECHO_T}$ac_ct_WINDRES" >&6
15296else
15297 echo "$as_me:$LINENO: result: no" >&5
15298echo "${ECHO_T}no" >&6
15299fi
15300
15301 WINDRES=$ac_ct_WINDRES
15302else
15303 WINDRES="$ac_cv_prog_WINDRES"
15304fi
15305
15306 RESCOMP="$WINDRES"
15307 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15308 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15309set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15310echo "$as_me:$LINENO: checking for $ac_word" >&5
15311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15312if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15313 echo $ECHO_N "(cached) $ECHO_C" >&6
15314else
15315 if test -n "$DLLTOOL"; then
15316 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15317else
15318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15319for as_dir in $PATH
15320do
15321 IFS=$as_save_IFS
15322 test -z "$as_dir" && as_dir=.
15323 for ac_exec_ext in '' $ac_executable_extensions; do
15324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15325 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15327 break 2
15328 fi
15329done
15330done
15331
15332fi
15333fi
15334DLLTOOL=$ac_cv_prog_DLLTOOL
15335if test -n "$DLLTOOL"; then
15336 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15337echo "${ECHO_T}$DLLTOOL" >&6
15338else
15339 echo "$as_me:$LINENO: result: no" >&5
15340echo "${ECHO_T}no" >&6
15341fi
15342
15343fi
15344if test -z "$ac_cv_prog_DLLTOOL"; then
15345 ac_ct_DLLTOOL=$DLLTOOL
15346 # Extract the first word of "dlltool", so it can be a program name with args.
15347set dummy dlltool; ac_word=$2
15348echo "$as_me:$LINENO: checking for $ac_word" >&5
15349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15350if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15351 echo $ECHO_N "(cached) $ECHO_C" >&6
15352else
15353 if test -n "$ac_ct_DLLTOOL"; then
15354 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15355else
15356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15357for as_dir in $PATH
15358do
15359 IFS=$as_save_IFS
15360 test -z "$as_dir" && as_dir=.
15361 for ac_exec_ext in '' $ac_executable_extensions; do
15362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15363 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15365 break 2
15366 fi
15367done
15368done
15369
15370fi
15371fi
15372ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15373if test -n "$ac_ct_DLLTOOL"; then
15374 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15375echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15376else
15377 echo "$as_me:$LINENO: result: no" >&5
15378echo "${ECHO_T}no" >&6
15379fi
15380
15381 DLLTOOL=$ac_ct_DLLTOOL
15382else
15383 DLLTOOL="$ac_cv_prog_DLLTOOL"
15384fi
15385
15386 ;;
15387 esac
15388fi
a848cd7e
SC
15389
15390echo "$as_me:$LINENO: checking if make is GNU make" >&5
15391echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15392if test "${wx_cv_prog_makeisgnu+set}" = set; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15394else
15395
15396 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15397 egrep -s GNU > /dev/null); then
15398 wx_cv_prog_makeisgnu="yes"
15399 else
15400 wx_cv_prog_makeisgnu="no"
15401 fi
15402
15403fi
15404echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15405echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15406
15407if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15408 IF_GNU_MAKE=""
15409else
15410 IF_GNU_MAKE="#"
15411fi
15412
15413
15414
15415if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15416echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15417echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15418if test "${wx_cv_prog_makevpath+set}" = set; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
15420else
15421
15422cat - << EOF > confMake
15423check : file
15424 cp \$? \$@
15425 cp \$? final_file
15426EOF
15427
15428if test ! -d sub ; then
15429 mkdir sub
15430fi
15431echo dummy > sub/file
15432${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15433RESULT=$?
15434rm -f sub/file check final_file confMake
15435rmdir sub
15436if test "$RESULT" = 0; then
15437 wx_cv_prog_makevpath="yes"
15438else
15439 wx_cv_prog_makevpath="no"
15440fi
15441
15442fi
15443echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15444echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15445
15446if test "x$wx_cv_prog_makevpath" != "xyes"; then
15447{ { echo "$as_me:$LINENO: error:
15448You need a make-utility that is able to use the variable
15449VPATH correctly.
15450If your version of make does not support VPATH correctly,
15451please install GNU-make (possibly as gmake), and start
15452configure with the following command:
15453export MAKE=gmake; ./configure for sh-type shells
15454setenv MAKE gmake; ./configure for csh-type shells
15455Also please do remember to use gmake in this case every time
15456you are trying to compile.
15457" >&5
15458echo "$as_me: error:
15459You need a make-utility that is able to use the variable
15460VPATH correctly.
15461If your version of make does not support VPATH correctly,
15462please install GNU-make (possibly as gmake), and start
15463configure with the following command:
15464export MAKE=gmake; ./configure for sh-type shells
15465setenv MAKE gmake; ./configure for csh-type shells
15466Also please do remember to use gmake in this case every time
15467you are trying to compile.
15468" >&2;}
15469 { (exit 1); exit 1; }; }
15470fi fi
15471echo "$as_me:$LINENO: checking whether ln -s works" >&5
15472echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15473LN_S=$as_ln_s
15474if test "$LN_S" = "ln -s"; then
15475 echo "$as_me:$LINENO: result: yes" >&5
15476echo "${ECHO_T}yes" >&6
15477else
15478 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15479echo "${ECHO_T}no, using $LN_S" >&6
15480fi
15481
15482
bcaab0f9 15483
a848cd7e 15484
2113bc77 15485if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15486 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15487fi
15488
4d7ec9f1
DE
15489case "${host}" in
15490 powerpc-*-darwin* )
15491 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15492echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15493 cat >conftest.$ac_ext <<_ACEOF
15494/* confdefs.h. */
15495_ACEOF
15496cat confdefs.h >>conftest.$ac_ext
15497cat >>conftest.$ac_ext <<_ACEOF
15498/* end confdefs.h. */
15499
15500int
15501main ()
15502{
15503#ifndef __POWERPC__
15504 choke me for lack of PowerPC
15505#endif
15506
15507 ;
15508 return 0;
15509}
15510_ACEOF
15511rm -f conftest.$ac_objext
15512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15513 (eval $ac_compile) 2>conftest.er1
15514 ac_status=$?
15515 grep -v '^ *+' conftest.er1 >conftest.err
15516 rm -f conftest.er1
15517 cat conftest.err >&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } &&
ca5c6ac3 15520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522 (eval $ac_try) 2>&5
15523 ac_status=$?
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; } &&
15526 { ac_try='test -s conftest.$ac_objext'
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; }; then
15532 echo "$as_me:$LINENO: result: yes" >&5
15533echo "${ECHO_T}yes" >&6
15534else
15535 echo "$as_me: failed program was:" >&5
15536sed 's/^/| /' conftest.$ac_ext >&5
15537
15538echo "$as_me:$LINENO: result: no" >&5
15539echo "${ECHO_T}no" >&6
15540 cat >>confdefs.h <<\_ACEOF
15541#define __POWERPC__ 1
15542_ACEOF
15543
15544
15545fi
15546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15547 ;;
15548esac
15549
15550case "${host}" in
15551 *-*-darwin* )
4d7ec9f1
DE
15552 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15553echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15554 cat >conftest.$ac_ext <<_ACEOF
15555/* confdefs.h. */
15556_ACEOF
15557cat confdefs.h >>conftest.$ac_ext
15558cat >>conftest.$ac_ext <<_ACEOF
15559/* end confdefs.h. */
15560#include <CoreFoundation/CFBase.h>
15561
15562int
15563main ()
15564{
15565
15566 ;
15567 return 0;
15568}
15569_ACEOF
15570rm -f conftest.$ac_objext
15571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15572 (eval $ac_compile) 2>conftest.er1
15573 ac_status=$?
15574 grep -v '^ *+' conftest.er1 >conftest.err
15575 rm -f conftest.er1
15576 cat conftest.err >&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); } &&
ca5c6ac3 15579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15581 (eval $ac_try) 2>&5
15582 ac_status=$?
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; } &&
15585 { ac_try='test -s conftest.$ac_objext'
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; }; then
15591 echo "$as_me:$LINENO: result: yes" >&5
15592echo "${ECHO_T}yes" >&6
15593else
15594 echo "$as_me: failed program was:" >&5
15595sed 's/^/| /' conftest.$ac_ext >&5
15596
15597echo "$as_me:$LINENO: result: no" >&5
15598echo "${ECHO_T}no" >&6
15599 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15600echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15601 cat >conftest.$ac_ext <<_ACEOF
15602/* confdefs.h. */
15603_ACEOF
15604cat confdefs.h >>conftest.$ac_ext
15605cat >>conftest.$ac_ext <<_ACEOF
15606/* end confdefs.h. */
15607#define __CF_USE_FRAMEWORK_INCLUDES__
15608#include <CoreFoundation/CFBase.h>
15609
15610int
15611main ()
15612{
15613
15614 ;
15615 return 0;
15616}
15617_ACEOF
15618rm -f conftest.$ac_objext
15619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15620 (eval $ac_compile) 2>conftest.er1
15621 ac_status=$?
15622 grep -v '^ *+' conftest.er1 >conftest.err
15623 rm -f conftest.er1
15624 cat conftest.err >&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } &&
ca5c6ac3 15627 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629 (eval $ac_try) 2>&5
15630 ac_status=$?
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; } &&
15633 { ac_try='test -s conftest.$ac_objext'
15634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15635 (eval $ac_try) 2>&5
15636 ac_status=$?
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); }; }; then
15639 echo "$as_me:$LINENO: result: yes" >&5
15640echo "${ECHO_T}yes" >&6
c92ad099 15641 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15642else
15643 echo "$as_me: failed program was:" >&5
15644sed 's/^/| /' conftest.$ac_ext >&5
15645
15646{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15647See \`config.log' for more details." >&5
15648echo "$as_me: error: no. CoreFoundation not available.
15649See \`config.log' for more details." >&2;}
15650 { (exit 1); exit 1; }; }
15651
15652fi
15653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15654
15655
15656fi
15657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15658 ;;
15659esac
15660
a848cd7e
SC
15661case "${host}" in
15662 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15663 ac_ext=c
15664ac_cpp='$CPP $CPPFLAGS'
15665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15667ac_compiler_gnu=$ac_cv_c_compiler_gnu
15668
15669 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15670 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15671echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15672if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15673 echo $ECHO_N "(cached) $ECHO_C" >&6
15674else
15675 ac_check_lib_save_LIBS=$LIBS
15676LIBS="-lcExt $LIBS"
15677cat >conftest.$ac_ext <<_ACEOF
15678/* confdefs.h. */
15679_ACEOF
15680cat confdefs.h >>conftest.$ac_ext
15681cat >>conftest.$ac_ext <<_ACEOF
15682/* end confdefs.h. */
15683
15684/* Override any gcc2 internal prototype to avoid an error. */
15685#ifdef __cplusplus
15686extern "C"
15687#endif
15688/* We use char because int might match the return type of a gcc2
15689 builtin and then its argument prototype would still apply. */
15690char drand48 ();
15691int
15692main ()
15693{
15694drand48 ();
15695 ;
15696 return 0;
15697}
15698_ACEOF
15699rm -f conftest.$ac_objext conftest$ac_exeext
15700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15701 (eval $ac_link) 2>conftest.er1
a848cd7e 15702 ac_status=$?
ac1cb8d3
VS
15703 grep -v '^ *+' conftest.er1 >conftest.err
15704 rm -f conftest.er1
15705 cat conftest.err >&5
a848cd7e
SC
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } &&
ca5c6ac3 15708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710 (eval $ac_try) 2>&5
15711 ac_status=$?
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; } &&
15714 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15716 (eval $ac_try) 2>&5
15717 ac_status=$?
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); }; }; then
15720 ac_cv_lib_cExt_drand48=yes
15721else
15722 echo "$as_me: failed program was:" >&5
15723sed 's/^/| /' conftest.$ac_ext >&5
15724
15725ac_cv_lib_cExt_drand48=no
15726fi
ac1cb8d3
VS
15727rm -f conftest.err conftest.$ac_objext \
15728 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15729LIBS=$ac_check_lib_save_LIBS
15730fi
15731echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15732echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15733if test $ac_cv_lib_cExt_drand48 = yes; then
15734 LIBS="$LIBS -lcExt"
15735fi
15736
15737 else
15738 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15739 fi
69120ee4
VZ
15740 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15741echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15742if test "${wx_cv_gccversion+set}" = set; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15744else
15745
391a765e
VS
15746 if test "$cross_compiling" = yes; then
15747 wx_cv_gccversion="EMX2"
15748
15749else
15750 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15751/* confdefs.h. */
15752_ACEOF
15753cat confdefs.h >>conftest.$ac_ext
15754cat >>conftest.$ac_ext <<_ACEOF
15755/* end confdefs.h. */
15756
391a765e 15757 #include <stdio.h>
a848cd7e 15758
391a765e
VS
15759 int main()
15760 {
15761 FILE *f=fopen("conftestval", "w");
15762 if (!f) exit(1);
15763 fprintf(f,
a848cd7e 15764 #if (__GNUC__ < 3)
391a765e
VS
15765 "EMX2"
15766 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15767 "EMX3"
15768 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15769 "Innotek5"
15770 #else
15771 "Innotek6"
a848cd7e 15772 #endif
5039a2df 15773 );
391a765e
VS
15774 exit(0);
15775 }
a848cd7e 15776
a848cd7e 15777_ACEOF
391a765e
VS
15778rm -f conftest$ac_exeext
15779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15780 (eval $ac_link) 2>&5
ac1cb8d3
VS
15781 ac_status=$?
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785 (eval $ac_try) 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; }; then
391a765e 15789 wx_cv_gccversion=`cat conftestval`
a848cd7e 15790else
391a765e
VS
15791 echo "$as_me: program exited with status $ac_status" >&5
15792echo "$as_me: failed program was:" >&5
a848cd7e
SC
15793sed 's/^/| /' conftest.$ac_ext >&5
15794
391a765e
VS
15795( exit $ac_status )
15796wx_cv_gccversion="EMX2"
a848cd7e 15797fi
391a765e 15798rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15799fi
a848cd7e
SC
15800
15801fi
15802echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15803echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
15804 ac_ext=cc
15805ac_cpp='$CXXCPP $CPPFLAGS'
15806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15809
391a765e 15810 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15811 LIBS="$LIBS -lstdcpp"
15812 LDFLAGS="$LDFLAGS -Zsysv-signals"
15813 else
391a765e 15814 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15815 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15816 LDFLAGS="$LDFLAGS -Zsysv-signals"
15817 else
15818 LIBS="$LIBS -lstdc++"
15819 fi
15820 fi
94acd38e
DE
15821 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15822 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15823echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15824 wxUSE_OMF=yes
2da0c077 15825 enable_omf=yes
a848cd7e
SC
15826 fi
15827 ;;
15828 *)
15829
95986553 15830 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15831echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15832if test "${ac_cv_string_strcasecmp+set}" = set; then
15833 echo $ECHO_N "(cached) $ECHO_C" >&6
15834else
15835
15836 cat >conftest.$ac_ext <<_ACEOF
15837/* confdefs.h. */
15838_ACEOF
15839cat confdefs.h >>conftest.$ac_ext
15840cat >>conftest.$ac_ext <<_ACEOF
15841/* end confdefs.h. */
15842
15843 #include <string.h>
15844
15845int
15846main ()
15847{
15848
15849 strcasecmp("foo", "bar");
15850
15851 ;
15852 return 0;
15853}
15854_ACEOF
15855rm -f conftest.$ac_objext conftest$ac_exeext
15856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15857 (eval $ac_link) 2>conftest.er1
a848cd7e 15858 ac_status=$?
ac1cb8d3
VS
15859 grep -v '^ *+' conftest.er1 >conftest.err
15860 rm -f conftest.er1
15861 cat conftest.err >&5
a848cd7e
SC
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } &&
ca5c6ac3 15864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866 (eval $ac_try) 2>&5
15867 ac_status=$?
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }; } &&
15870 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872 (eval $ac_try) 2>&5
15873 ac_status=$?
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); }; }; then
15876 ac_cv_string_strcasecmp=yes
15877else
15878 echo "$as_me: failed program was:" >&5
15879sed 's/^/| /' conftest.$ac_ext >&5
15880
15881ac_cv_string_strcasecmp=no
15882
15883fi
ac1cb8d3
VS
15884rm -f conftest.err conftest.$ac_objext \
15885 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15886
15887fi
15888echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15889echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15890
15891 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15892 cat >>confdefs.h <<\_ACEOF
15893#define HAVE_STRCASECMP_IN_STRING_H 1
15894_ACEOF
15895
15896 else
15897 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15898echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15899if test "${ac_cv_strings_strcasecmp+set}" = set; then
15900 echo $ECHO_N "(cached) $ECHO_C" >&6
15901else
15902
15903 cat >conftest.$ac_ext <<_ACEOF
15904/* confdefs.h. */
15905_ACEOF
15906cat confdefs.h >>conftest.$ac_ext
15907cat >>conftest.$ac_ext <<_ACEOF
15908/* end confdefs.h. */
15909
15910 #include <strings.h>
15911
15912int
15913main ()
15914{
15915
15916 strcasecmp("foo", "bar");
15917
15918 ;
15919 return 0;
15920}
15921_ACEOF
15922rm -f conftest.$ac_objext conftest$ac_exeext
15923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15924 (eval $ac_link) 2>conftest.er1
a848cd7e 15925 ac_status=$?
ac1cb8d3
VS
15926 grep -v '^ *+' conftest.er1 >conftest.err
15927 rm -f conftest.er1
15928 cat conftest.err >&5
a848cd7e
SC
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); } &&
ca5c6ac3 15931 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15933 (eval $ac_try) 2>&5
15934 ac_status=$?
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); }; } &&
15937 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15939 (eval $ac_try) 2>&5
15940 ac_status=$?
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); }; }; then
15943 ac_cv_strings_strcasecmp=yes
15944else
15945 echo "$as_me: failed program was:" >&5
15946sed 's/^/| /' conftest.$ac_ext >&5
15947
15948ac_cv_strings_strcasecmp=no
15949
15950fi
ac1cb8d3
VS
15951rm -f conftest.err conftest.$ac_objext \
15952 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15953
15954fi
15955echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15956echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15957
0c3c69fc 15958 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15959 cat >>confdefs.h <<\_ACEOF
15960#define HAVE_STRCASECMP_IN_STRINGS_H 1
15961_ACEOF
15962
15963 else
15964 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15965echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15966 { (exit 1); exit 1; }; }
15967 fi
15968 fi
15969
a848cd7e
SC
15970 ;;
15971esac
15972
15973
5d7b7554
VZ
15974ac_ext=cc
15975ac_cpp='$CXXCPP $CPPFLAGS'
15976ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15977ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15978ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15979echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15980echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15981if test -z "$CXXCPP"; then
15982 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15984else
15985 # Double quotes because CXXCPP needs to be expanded
15986 for CXXCPP in "$CXX -E" "/lib/cpp"
15987 do
15988 ac_preproc_ok=false
15989for ac_cxx_preproc_warn_flag in '' yes
15990do
15991 # Use a header file that comes with gcc, so configuring glibc
15992 # with a fresh cross-compiler works.
15993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15994 # <limits.h> exists even on freestanding compilers.
15995 # On the NeXT, cc -E runs the code through the compiler's parser,
15996 # not just through cpp. "Syntax error" is here to catch this case.
15997 cat >conftest.$ac_ext <<_ACEOF
15998/* confdefs.h. */
15999_ACEOF
16000cat confdefs.h >>conftest.$ac_ext
16001cat >>conftest.$ac_ext <<_ACEOF
16002/* end confdefs.h. */
16003#ifdef __STDC__
16004# include <limits.h>
16005#else
16006# include <assert.h>
16007#endif
16008 Syntax error
16009_ACEOF
16010if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16012 ac_status=$?
16013 grep -v '^ *+' conftest.er1 >conftest.err
16014 rm -f conftest.er1
16015 cat conftest.err >&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } >/dev/null; then
16018 if test -s conftest.err; then
16019 ac_cpp_err=$ac_cxx_preproc_warn_flag
16020 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16021 else
16022 ac_cpp_err=
16023 fi
16024else
16025 ac_cpp_err=yes
16026fi
16027if test -z "$ac_cpp_err"; then
16028 :
16029else
16030 echo "$as_me: failed program was:" >&5
16031sed 's/^/| /' conftest.$ac_ext >&5
16032
16033 # Broken: fails on valid input.
16034continue
16035fi
16036rm -f conftest.err conftest.$ac_ext
16037
16038 # OK, works on sane cases. Now check whether non-existent headers
16039 # can be detected and how.
16040 cat >conftest.$ac_ext <<_ACEOF
16041/* confdefs.h. */
16042_ACEOF
16043cat confdefs.h >>conftest.$ac_ext
16044cat >>conftest.$ac_ext <<_ACEOF
16045/* end confdefs.h. */
16046#include <ac_nonexistent.h>
16047_ACEOF
16048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16050 ac_status=$?
16051 grep -v '^ *+' conftest.er1 >conftest.err
16052 rm -f conftest.er1
16053 cat conftest.err >&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); } >/dev/null; then
16056 if test -s conftest.err; then
16057 ac_cpp_err=$ac_cxx_preproc_warn_flag
16058 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16059 else
16060 ac_cpp_err=
16061 fi
16062else
16063 ac_cpp_err=yes
16064fi
16065if test -z "$ac_cpp_err"; then
16066 # Broken: success on invalid input.
16067continue
16068else
16069 echo "$as_me: failed program was:" >&5
16070sed 's/^/| /' conftest.$ac_ext >&5
16071
16072 # Passes both tests.
16073ac_preproc_ok=:
16074break
16075fi
16076rm -f conftest.err conftest.$ac_ext
16077
16078done
16079# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16080rm -f conftest.err conftest.$ac_ext
16081if $ac_preproc_ok; then
16082 break
16083fi
16084
16085 done
16086 ac_cv_prog_CXXCPP=$CXXCPP
16087
16088fi
16089 CXXCPP=$ac_cv_prog_CXXCPP
16090else
16091 ac_cv_prog_CXXCPP=$CXXCPP
16092fi
16093echo "$as_me:$LINENO: result: $CXXCPP" >&5
16094echo "${ECHO_T}$CXXCPP" >&6
16095ac_preproc_ok=false
16096for ac_cxx_preproc_warn_flag in '' yes
16097do
16098 # Use a header file that comes with gcc, so configuring glibc
16099 # with a fresh cross-compiler works.
16100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16101 # <limits.h> exists even on freestanding compilers.
16102 # On the NeXT, cc -E runs the code through the compiler's parser,
16103 # not just through cpp. "Syntax error" is here to catch this case.
16104 cat >conftest.$ac_ext <<_ACEOF
16105/* confdefs.h. */
16106_ACEOF
16107cat confdefs.h >>conftest.$ac_ext
16108cat >>conftest.$ac_ext <<_ACEOF
16109/* end confdefs.h. */
16110#ifdef __STDC__
16111# include <limits.h>
16112#else
16113# include <assert.h>
16114#endif
16115 Syntax error
16116_ACEOF
16117if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16119 ac_status=$?
16120 grep -v '^ *+' conftest.er1 >conftest.err
16121 rm -f conftest.er1
16122 cat conftest.err >&5
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); } >/dev/null; then
16125 if test -s conftest.err; then
16126 ac_cpp_err=$ac_cxx_preproc_warn_flag
16127 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16128 else
16129 ac_cpp_err=
16130 fi
16131else
16132 ac_cpp_err=yes
16133fi
16134if test -z "$ac_cpp_err"; then
16135 :
16136else
16137 echo "$as_me: failed program was:" >&5
16138sed 's/^/| /' conftest.$ac_ext >&5
16139
16140 # Broken: fails on valid input.
16141continue
16142fi
16143rm -f conftest.err conftest.$ac_ext
16144
16145 # OK, works on sane cases. Now check whether non-existent headers
16146 # can be detected and how.
16147 cat >conftest.$ac_ext <<_ACEOF
16148/* confdefs.h. */
16149_ACEOF
16150cat confdefs.h >>conftest.$ac_ext
16151cat >>conftest.$ac_ext <<_ACEOF
16152/* end confdefs.h. */
16153#include <ac_nonexistent.h>
16154_ACEOF
16155if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16157 ac_status=$?
16158 grep -v '^ *+' conftest.er1 >conftest.err
16159 rm -f conftest.er1
16160 cat conftest.err >&5
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } >/dev/null; then
16163 if test -s conftest.err; then
16164 ac_cpp_err=$ac_cxx_preproc_warn_flag
16165 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16166 else
16167 ac_cpp_err=
16168 fi
16169else
16170 ac_cpp_err=yes
16171fi
16172if test -z "$ac_cpp_err"; then
16173 # Broken: success on invalid input.
16174continue
16175else
16176 echo "$as_me: failed program was:" >&5
16177sed 's/^/| /' conftest.$ac_ext >&5
16178
16179 # Passes both tests.
16180ac_preproc_ok=:
16181break
16182fi
16183rm -f conftest.err conftest.$ac_ext
16184
16185done
16186# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16187rm -f conftest.err conftest.$ac_ext
16188if $ac_preproc_ok; then
16189 :
16190else
16191 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16192See \`config.log' for more details." >&5
16193echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16194See \`config.log' for more details." >&2;}
16195 { (exit 1); exit 1; }; }
16196fi
16197
16198ac_ext=cc
16199ac_cpp='$CXXCPP $CPPFLAGS'
16200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16203
16204
a848cd7e
SC
16205echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16206echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16207if test "${ac_cv_header_stdc+set}" = set; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16209else
16210 cat >conftest.$ac_ext <<_ACEOF
16211/* confdefs.h. */
16212_ACEOF
16213cat confdefs.h >>conftest.$ac_ext
16214cat >>conftest.$ac_ext <<_ACEOF
16215/* end confdefs.h. */
16216#include <stdlib.h>
16217#include <stdarg.h>
16218#include <string.h>
16219#include <float.h>
16220
16221int
16222main ()
16223{
16224
16225 ;
16226 return 0;
16227}
16228_ACEOF
16229rm -f conftest.$ac_objext
16230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16231 (eval $ac_compile) 2>conftest.er1
a848cd7e 16232 ac_status=$?
ac1cb8d3
VS
16233 grep -v '^ *+' conftest.er1 >conftest.err
16234 rm -f conftest.er1
16235 cat conftest.err >&5
a848cd7e
SC
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); } &&
ca5c6ac3 16238 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16240 (eval $ac_try) 2>&5
16241 ac_status=$?
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); }; } &&
16244 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16246 (eval $ac_try) 2>&5
16247 ac_status=$?
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; }; then
16250 ac_cv_header_stdc=yes
16251else
16252 echo "$as_me: failed program was:" >&5
16253sed 's/^/| /' conftest.$ac_ext >&5
16254
16255ac_cv_header_stdc=no
16256fi
ac1cb8d3 16257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16258
16259if test $ac_cv_header_stdc = yes; then
16260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16261 cat >conftest.$ac_ext <<_ACEOF
16262/* confdefs.h. */
16263_ACEOF
16264cat confdefs.h >>conftest.$ac_ext
16265cat >>conftest.$ac_ext <<_ACEOF
16266/* end confdefs.h. */
16267#include <string.h>
16268
16269_ACEOF
16270if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16271 $EGREP "memchr" >/dev/null 2>&1; then
16272 :
16273else
16274 ac_cv_header_stdc=no
16275fi
16276rm -f conftest*
16277
16278fi
16279
16280if test $ac_cv_header_stdc = yes; then
16281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16282 cat >conftest.$ac_ext <<_ACEOF
16283/* confdefs.h. */
16284_ACEOF
16285cat confdefs.h >>conftest.$ac_ext
16286cat >>conftest.$ac_ext <<_ACEOF
16287/* end confdefs.h. */
16288#include <stdlib.h>
16289
16290_ACEOF
16291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16292 $EGREP "free" >/dev/null 2>&1; then
16293 :
16294else
16295 ac_cv_header_stdc=no
16296fi
16297rm -f conftest*
16298
16299fi
16300
16301if test $ac_cv_header_stdc = yes; then
16302 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16303 if test "$cross_compiling" = yes; then
16304 :
16305else
16306 cat >conftest.$ac_ext <<_ACEOF
16307/* confdefs.h. */
16308_ACEOF
16309cat confdefs.h >>conftest.$ac_ext
16310cat >>conftest.$ac_ext <<_ACEOF
16311/* end confdefs.h. */
16312#include <ctype.h>
16313#if ((' ' & 0x0FF) == 0x020)
16314# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16315# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16316#else
16317# define ISLOWER(c) \
ac1cb8d3
VS
16318 (('a' <= (c) && (c) <= 'i') \
16319 || ('j' <= (c) && (c) <= 'r') \
16320 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16321# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16322#endif
16323
16324#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16325int
16326main ()
16327{
16328 int i;
16329 for (i = 0; i < 256; i++)
16330 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16331 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16332 exit(2);
16333 exit (0);
16334}
16335_ACEOF
16336rm -f conftest$ac_exeext
16337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16338 (eval $ac_link) 2>&5
16339 ac_status=$?
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343 (eval $ac_try) 2>&5
16344 ac_status=$?
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); }; }; then
16347 :
16348else
16349 echo "$as_me: program exited with status $ac_status" >&5
16350echo "$as_me: failed program was:" >&5
16351sed 's/^/| /' conftest.$ac_ext >&5
16352
16353( exit $ac_status )
16354ac_cv_header_stdc=no
16355fi
ac1cb8d3 16356rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16357fi
16358fi
16359fi
16360echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16361echo "${ECHO_T}$ac_cv_header_stdc" >&6
16362if test $ac_cv_header_stdc = yes; then
16363
16364cat >>confdefs.h <<\_ACEOF
16365#define STDC_HEADERS 1
16366_ACEOF
16367
16368fi
16369
16370# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16381 inttypes.h stdint.h unistd.h
a848cd7e
SC
16382do
16383as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16384echo "$as_me:$LINENO: checking for $ac_header" >&5
16385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16386if eval "test \"\${$as_ac_Header+set}\" = set"; then
16387 echo $ECHO_N "(cached) $ECHO_C" >&6
16388else
16389 cat >conftest.$ac_ext <<_ACEOF
16390/* confdefs.h. */
16391_ACEOF
16392cat confdefs.h >>conftest.$ac_ext
16393cat >>conftest.$ac_ext <<_ACEOF
16394/* end confdefs.h. */
16395$ac_includes_default
16396
16397#include <$ac_header>
16398_ACEOF
16399rm -f conftest.$ac_objext
16400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16401 (eval $ac_compile) 2>conftest.er1
a848cd7e 16402 ac_status=$?
ac1cb8d3
VS
16403 grep -v '^ *+' conftest.er1 >conftest.err
16404 rm -f conftest.er1
16405 cat conftest.err >&5
a848cd7e
SC
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); } &&
ca5c6ac3 16408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16410 (eval $ac_try) 2>&5
16411 ac_status=$?
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); }; } &&
16414 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16416 (eval $ac_try) 2>&5
16417 ac_status=$?
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); }; }; then
16420 eval "$as_ac_Header=yes"
16421else
16422 echo "$as_me: failed program was:" >&5
16423sed 's/^/| /' conftest.$ac_ext >&5
16424
16425eval "$as_ac_Header=no"
16426fi
ac1cb8d3 16427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16428fi
16429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16430echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16431if test `eval echo '${'$as_ac_Header'}'` = yes; then
16432 cat >>confdefs.h <<_ACEOF
16433#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16434_ACEOF
16435
16436fi
16437
16438done
16439
16440
16441
16442for ac_header in stdlib.h
16443do
16444as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16445if eval "test \"\${$as_ac_Header+set}\" = set"; then
16446 echo "$as_me:$LINENO: checking for $ac_header" >&5
16447echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16448if eval "test \"\${$as_ac_Header+set}\" = set"; then
16449 echo $ECHO_N "(cached) $ECHO_C" >&6
16450fi
16451echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16452echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16453else
16454 # Is the header compilable?
16455echo "$as_me:$LINENO: checking $ac_header usability" >&5
16456echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16457cat >conftest.$ac_ext <<_ACEOF
16458/* confdefs.h. */
16459_ACEOF
16460cat confdefs.h >>conftest.$ac_ext
16461cat >>conftest.$ac_ext <<_ACEOF
16462/* end confdefs.h. */
16463$ac_includes_default
16464#include <$ac_header>
16465_ACEOF
16466rm -f conftest.$ac_objext
16467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16468 (eval $ac_compile) 2>conftest.er1
a848cd7e 16469 ac_status=$?
ac1cb8d3
VS
16470 grep -v '^ *+' conftest.er1 >conftest.err
16471 rm -f conftest.er1
16472 cat conftest.err >&5
a848cd7e
SC
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); } &&
ca5c6ac3 16475 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477 (eval $ac_try) 2>&5
16478 ac_status=$?
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; } &&
16481 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
16487 ac_header_compiler=yes
16488else
16489 echo "$as_me: failed program was:" >&5
16490sed 's/^/| /' conftest.$ac_ext >&5
16491
16492ac_header_compiler=no
16493fi
ac1cb8d3 16494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16495echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16496echo "${ECHO_T}$ac_header_compiler" >&6
16497
16498# Is the header present?
16499echo "$as_me:$LINENO: checking $ac_header presence" >&5
16500echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16501cat >conftest.$ac_ext <<_ACEOF
16502/* confdefs.h. */
16503_ACEOF
16504cat confdefs.h >>conftest.$ac_ext
16505cat >>conftest.$ac_ext <<_ACEOF
16506/* end confdefs.h. */
16507#include <$ac_header>
16508_ACEOF
16509if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16511 ac_status=$?
16512 grep -v '^ *+' conftest.er1 >conftest.err
16513 rm -f conftest.er1
16514 cat conftest.err >&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); } >/dev/null; then
16517 if test -s conftest.err; then
5d7b7554
VZ
16518 ac_cpp_err=$ac_cxx_preproc_warn_flag
16519 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16520 else
16521 ac_cpp_err=
16522 fi
16523else
16524 ac_cpp_err=yes
16525fi
16526if test -z "$ac_cpp_err"; then
16527 ac_header_preproc=yes
16528else
16529 echo "$as_me: failed program was:" >&5
16530sed 's/^/| /' conftest.$ac_ext >&5
16531
16532 ac_header_preproc=no
16533fi
16534rm -f conftest.err conftest.$ac_ext
16535echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16536echo "${ECHO_T}$ac_header_preproc" >&6
16537
16538# So? What about this header?
5d7b7554 16539case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16540 yes:no: )
a848cd7e
SC
16541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16542echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16544echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16545 ac_header_preproc=yes
a848cd7e 16546 ;;
ac1cb8d3 16547 no:yes:* )
a848cd7e
SC
16548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16549echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16551echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16553echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16555echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16557echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16559echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16560 (
16561 cat <<\_ASBOX
ac1cb8d3
VS
16562## ----------------------------------------- ##
16563## Report this to wx-dev@lists.wxwidgets.org ##
16564## ----------------------------------------- ##
a848cd7e
SC
16565_ASBOX
16566 ) |
16567 sed "s/^/$as_me: WARNING: /" >&2
16568 ;;
16569esac
16570echo "$as_me:$LINENO: checking for $ac_header" >&5
16571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16572if eval "test \"\${$as_ac_Header+set}\" = set"; then
16573 echo $ECHO_N "(cached) $ECHO_C" >&6
16574else
ac1cb8d3 16575 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16576fi
16577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16579
16580fi
16581if test `eval echo '${'$as_ac_Header'}'` = yes; then
16582 cat >>confdefs.h <<_ACEOF
16583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16584_ACEOF
16585
16586fi
16587
16588done
16589
16590
16591for ac_header in malloc.h
16592do
16593as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16594if eval "test \"\${$as_ac_Header+set}\" = set"; then
16595 echo "$as_me:$LINENO: checking for $ac_header" >&5
16596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16597if eval "test \"\${$as_ac_Header+set}\" = set"; then
16598 echo $ECHO_N "(cached) $ECHO_C" >&6
16599fi
16600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16602else
16603 # Is the header compilable?
16604echo "$as_me:$LINENO: checking $ac_header usability" >&5
16605echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16606cat >conftest.$ac_ext <<_ACEOF
16607/* confdefs.h. */
16608_ACEOF
16609cat confdefs.h >>conftest.$ac_ext
16610cat >>conftest.$ac_ext <<_ACEOF
16611/* end confdefs.h. */
16612$ac_includes_default
16613#include <$ac_header>
16614_ACEOF
16615rm -f conftest.$ac_objext
16616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16617 (eval $ac_compile) 2>conftest.er1
a848cd7e 16618 ac_status=$?
ac1cb8d3
VS
16619 grep -v '^ *+' conftest.er1 >conftest.err
16620 rm -f conftest.er1
16621 cat conftest.err >&5
a848cd7e
SC
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } &&
ca5c6ac3 16624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626 (eval $ac_try) 2>&5
16627 ac_status=$?
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; } &&
16630 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16632 (eval $ac_try) 2>&5
16633 ac_status=$?
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); }; }; then
16636 ac_header_compiler=yes
16637else
16638 echo "$as_me: failed program was:" >&5
16639sed 's/^/| /' conftest.$ac_ext >&5
16640
16641ac_header_compiler=no
16642fi
ac1cb8d3 16643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16644echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16645echo "${ECHO_T}$ac_header_compiler" >&6
16646
16647# Is the header present?
16648echo "$as_me:$LINENO: checking $ac_header presence" >&5
16649echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16650cat >conftest.$ac_ext <<_ACEOF
16651/* confdefs.h. */
16652_ACEOF
16653cat confdefs.h >>conftest.$ac_ext
16654cat >>conftest.$ac_ext <<_ACEOF
16655/* end confdefs.h. */
16656#include <$ac_header>
16657_ACEOF
16658if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16660 ac_status=$?
16661 grep -v '^ *+' conftest.er1 >conftest.err
16662 rm -f conftest.er1
16663 cat conftest.err >&5
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); } >/dev/null; then
16666 if test -s conftest.err; then
5d7b7554
VZ
16667 ac_cpp_err=$ac_cxx_preproc_warn_flag
16668 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16669 else
16670 ac_cpp_err=
16671 fi
16672else
16673 ac_cpp_err=yes
16674fi
16675if test -z "$ac_cpp_err"; then
16676 ac_header_preproc=yes
16677else
16678 echo "$as_me: failed program was:" >&5
16679sed 's/^/| /' conftest.$ac_ext >&5
16680
16681 ac_header_preproc=no
16682fi
16683rm -f conftest.err conftest.$ac_ext
16684echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16685echo "${ECHO_T}$ac_header_preproc" >&6
16686
16687# So? What about this header?
5d7b7554 16688case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16689 yes:no: )
a848cd7e
SC
16690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16691echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16693echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16694 ac_header_preproc=yes
a848cd7e 16695 ;;
ac1cb8d3 16696 no:yes:* )
a848cd7e
SC
16697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16698echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16700echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16702echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16704echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16706echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16708echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16709 (
16710 cat <<\_ASBOX
ac1cb8d3
VS
16711## ----------------------------------------- ##
16712## Report this to wx-dev@lists.wxwidgets.org ##
16713## ----------------------------------------- ##
a848cd7e
SC
16714_ASBOX
16715 ) |
16716 sed "s/^/$as_me: WARNING: /" >&2
16717 ;;
16718esac
16719echo "$as_me:$LINENO: checking for $ac_header" >&5
16720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16721if eval "test \"\${$as_ac_Header+set}\" = set"; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16723else
ac1cb8d3 16724 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16725fi
16726echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16727echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16728
16729fi
16730if test `eval echo '${'$as_ac_Header'}'` = yes; then
16731 cat >>confdefs.h <<_ACEOF
16732#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16733_ACEOF
16734
16735fi
16736
16737done
16738
16739
16740for ac_header in unistd.h
16741do
16742as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16743if eval "test \"\${$as_ac_Header+set}\" = set"; then
16744 echo "$as_me:$LINENO: checking for $ac_header" >&5
16745echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16746if eval "test \"\${$as_ac_Header+set}\" = set"; then
16747 echo $ECHO_N "(cached) $ECHO_C" >&6
16748fi
16749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16750echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16751else
16752 # Is the header compilable?
16753echo "$as_me:$LINENO: checking $ac_header usability" >&5
16754echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16755cat >conftest.$ac_ext <<_ACEOF
16756/* confdefs.h. */
16757_ACEOF
16758cat confdefs.h >>conftest.$ac_ext
16759cat >>conftest.$ac_ext <<_ACEOF
16760/* end confdefs.h. */
16761$ac_includes_default
16762#include <$ac_header>
16763_ACEOF
16764rm -f conftest.$ac_objext
16765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16766 (eval $ac_compile) 2>conftest.er1
a848cd7e 16767 ac_status=$?
ac1cb8d3
VS
16768 grep -v '^ *+' conftest.er1 >conftest.err
16769 rm -f conftest.er1
16770 cat conftest.err >&5
a848cd7e
SC
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); } &&
ca5c6ac3 16773 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775 (eval $ac_try) 2>&5
16776 ac_status=$?
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; } &&
16779 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781 (eval $ac_try) 2>&5
16782 ac_status=$?
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; }; then
16785 ac_header_compiler=yes
16786else
16787 echo "$as_me: failed program was:" >&5
16788sed 's/^/| /' conftest.$ac_ext >&5
16789
16790ac_header_compiler=no
16791fi
ac1cb8d3 16792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16793echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16794echo "${ECHO_T}$ac_header_compiler" >&6
16795
16796# Is the header present?
16797echo "$as_me:$LINENO: checking $ac_header presence" >&5
16798echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16799cat >conftest.$ac_ext <<_ACEOF
16800/* confdefs.h. */
16801_ACEOF
16802cat confdefs.h >>conftest.$ac_ext
16803cat >>conftest.$ac_ext <<_ACEOF
16804/* end confdefs.h. */
16805#include <$ac_header>
16806_ACEOF
16807if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16809 ac_status=$?
16810 grep -v '^ *+' conftest.er1 >conftest.err
16811 rm -f conftest.er1
16812 cat conftest.err >&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } >/dev/null; then
16815 if test -s conftest.err; then
5d7b7554
VZ
16816 ac_cpp_err=$ac_cxx_preproc_warn_flag
16817 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16818 else
16819 ac_cpp_err=
16820 fi
16821else
16822 ac_cpp_err=yes
16823fi
16824if test -z "$ac_cpp_err"; then
16825 ac_header_preproc=yes
16826else
16827 echo "$as_me: failed program was:" >&5
16828sed 's/^/| /' conftest.$ac_ext >&5
16829
16830 ac_header_preproc=no
16831fi
16832rm -f conftest.err conftest.$ac_ext
16833echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16834echo "${ECHO_T}$ac_header_preproc" >&6
16835
16836# So? What about this header?
5d7b7554 16837case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16838 yes:no: )
a848cd7e
SC
16839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16840echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16842echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16843 ac_header_preproc=yes
a848cd7e 16844 ;;
ac1cb8d3 16845 no:yes:* )
a848cd7e
SC
16846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16847echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16849echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16851echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16853echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16855echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16857echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16858 (
16859 cat <<\_ASBOX
ac1cb8d3
VS
16860## ----------------------------------------- ##
16861## Report this to wx-dev@lists.wxwidgets.org ##
16862## ----------------------------------------- ##
a848cd7e
SC
16863_ASBOX
16864 ) |
16865 sed "s/^/$as_me: WARNING: /" >&2
16866 ;;
16867esac
16868echo "$as_me:$LINENO: checking for $ac_header" >&5
16869echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16870if eval "test \"\${$as_ac_Header+set}\" = set"; then
16871 echo $ECHO_N "(cached) $ECHO_C" >&6
16872else
ac1cb8d3 16873 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16874fi
16875echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16876echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16877
16878fi
16879if test `eval echo '${'$as_ac_Header'}'` = yes; then
16880 cat >>confdefs.h <<_ACEOF
16881#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16882_ACEOF
16883
16884fi
16885
16886done
16887
16888
16889for ac_header in wchar.h
16890do
16891as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16892if eval "test \"\${$as_ac_Header+set}\" = set"; then
16893 echo "$as_me:$LINENO: checking for $ac_header" >&5
16894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16895if eval "test \"\${$as_ac_Header+set}\" = set"; then
16896 echo $ECHO_N "(cached) $ECHO_C" >&6
16897fi
16898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16899echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16900else
16901 # Is the header compilable?
16902echo "$as_me:$LINENO: checking $ac_header usability" >&5
16903echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16904cat >conftest.$ac_ext <<_ACEOF
16905/* confdefs.h. */
16906_ACEOF
16907cat confdefs.h >>conftest.$ac_ext
16908cat >>conftest.$ac_ext <<_ACEOF
16909/* end confdefs.h. */
16910$ac_includes_default
16911#include <$ac_header>
16912_ACEOF
16913rm -f conftest.$ac_objext
16914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16915 (eval $ac_compile) 2>conftest.er1
a848cd7e 16916 ac_status=$?
ac1cb8d3
VS
16917 grep -v '^ *+' conftest.er1 >conftest.err
16918 rm -f conftest.er1
16919 cat conftest.err >&5
a848cd7e
SC
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); } &&
ca5c6ac3 16922 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924 (eval $ac_try) 2>&5
16925 ac_status=$?
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; } &&
16928 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16930 (eval $ac_try) 2>&5
16931 ac_status=$?
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; }; then
16934 ac_header_compiler=yes
16935else
16936 echo "$as_me: failed program was:" >&5
16937sed 's/^/| /' conftest.$ac_ext >&5
16938
16939ac_header_compiler=no
16940fi
ac1cb8d3 16941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16942echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16943echo "${ECHO_T}$ac_header_compiler" >&6
16944
16945# Is the header present?
16946echo "$as_me:$LINENO: checking $ac_header presence" >&5
16947echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16948cat >conftest.$ac_ext <<_ACEOF
16949/* confdefs.h. */
16950_ACEOF
16951cat confdefs.h >>conftest.$ac_ext
16952cat >>conftest.$ac_ext <<_ACEOF
16953/* end confdefs.h. */
16954#include <$ac_header>
16955_ACEOF
16956if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16958 ac_status=$?
16959 grep -v '^ *+' conftest.er1 >conftest.err
16960 rm -f conftest.er1
16961 cat conftest.err >&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } >/dev/null; then
16964 if test -s conftest.err; then
5d7b7554
VZ
16965 ac_cpp_err=$ac_cxx_preproc_warn_flag
16966 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16967 else
16968 ac_cpp_err=
16969 fi
16970else
16971 ac_cpp_err=yes
16972fi
16973if test -z "$ac_cpp_err"; then
16974 ac_header_preproc=yes
16975else
16976 echo "$as_me: failed program was:" >&5
16977sed 's/^/| /' conftest.$ac_ext >&5
16978
16979 ac_header_preproc=no
16980fi
16981rm -f conftest.err conftest.$ac_ext
16982echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16983echo "${ECHO_T}$ac_header_preproc" >&6
16984
16985# So? What about this header?
5d7b7554 16986case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16987 yes:no: )
a848cd7e
SC
16988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16989echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16991echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16992 ac_header_preproc=yes
a848cd7e 16993 ;;
ac1cb8d3 16994 no:yes:* )
a848cd7e
SC
16995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16996echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16998echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17000echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17002echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17004echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17006echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17007 (
17008 cat <<\_ASBOX
ac1cb8d3
VS
17009## ----------------------------------------- ##
17010## Report this to wx-dev@lists.wxwidgets.org ##
17011## ----------------------------------------- ##
a848cd7e
SC
17012_ASBOX
17013 ) |
17014 sed "s/^/$as_me: WARNING: /" >&2
17015 ;;
17016esac
17017echo "$as_me:$LINENO: checking for $ac_header" >&5
17018echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17019if eval "test \"\${$as_ac_Header+set}\" = set"; then
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
17021else
ac1cb8d3 17022 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17023fi
17024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17025echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17026
17027fi
17028if test `eval echo '${'$as_ac_Header'}'` = yes; then
17029 cat >>confdefs.h <<_ACEOF
17030#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17031_ACEOF
17032
17033fi
17034
17035done
17036
17037
17038if test "$ac_cv_header_wchar_h" != "yes"; then
17039
17040for ac_header in wcstr.h
17041do
17042as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17043if eval "test \"\${$as_ac_Header+set}\" = set"; then
17044 echo "$as_me:$LINENO: checking for $ac_header" >&5
17045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17046if eval "test \"\${$as_ac_Header+set}\" = set"; then
17047 echo $ECHO_N "(cached) $ECHO_C" >&6
17048fi
17049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17050echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17051else
17052 # Is the header compilable?
17053echo "$as_me:$LINENO: checking $ac_header usability" >&5
17054echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17055cat >conftest.$ac_ext <<_ACEOF
17056/* confdefs.h. */
17057_ACEOF
17058cat confdefs.h >>conftest.$ac_ext
17059cat >>conftest.$ac_ext <<_ACEOF
17060/* end confdefs.h. */
17061$ac_includes_default
17062#include <$ac_header>
17063_ACEOF
17064rm -f conftest.$ac_objext
17065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17066 (eval $ac_compile) 2>conftest.er1
a848cd7e 17067 ac_status=$?
ac1cb8d3
VS
17068 grep -v '^ *+' conftest.er1 >conftest.err
17069 rm -f conftest.er1
17070 cat conftest.err >&5
a848cd7e
SC
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); } &&
ca5c6ac3 17073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; } &&
17079 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; }; then
17085 ac_header_compiler=yes
17086else
17087 echo "$as_me: failed program was:" >&5
17088sed 's/^/| /' conftest.$ac_ext >&5
17089
17090ac_header_compiler=no
17091fi
ac1cb8d3 17092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17093echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17094echo "${ECHO_T}$ac_header_compiler" >&6
17095
17096# Is the header present?
17097echo "$as_me:$LINENO: checking $ac_header presence" >&5
17098echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17099cat >conftest.$ac_ext <<_ACEOF
17100/* confdefs.h. */
17101_ACEOF
17102cat confdefs.h >>conftest.$ac_ext
17103cat >>conftest.$ac_ext <<_ACEOF
17104/* end confdefs.h. */
17105#include <$ac_header>
17106_ACEOF
17107if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17109 ac_status=$?
17110 grep -v '^ *+' conftest.er1 >conftest.err
17111 rm -f conftest.er1
17112 cat conftest.err >&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); } >/dev/null; then
17115 if test -s conftest.err; then
5d7b7554
VZ
17116 ac_cpp_err=$ac_cxx_preproc_warn_flag
17117 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17118 else
17119 ac_cpp_err=
17120 fi
17121else
17122 ac_cpp_err=yes
17123fi
17124if test -z "$ac_cpp_err"; then
17125 ac_header_preproc=yes
17126else
17127 echo "$as_me: failed program was:" >&5
17128sed 's/^/| /' conftest.$ac_ext >&5
17129
17130 ac_header_preproc=no
17131fi
17132rm -f conftest.err conftest.$ac_ext
17133echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17134echo "${ECHO_T}$ac_header_preproc" >&6
17135
17136# So? What about this header?
5d7b7554 17137case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17138 yes:no: )
a848cd7e
SC
17139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17140echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17142echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17143 ac_header_preproc=yes
a848cd7e 17144 ;;
ac1cb8d3 17145 no:yes:* )
a848cd7e
SC
17146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17147echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17149echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17151echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17153echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17155echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17157echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17158 (
17159 cat <<\_ASBOX
ac1cb8d3
VS
17160## ----------------------------------------- ##
17161## Report this to wx-dev@lists.wxwidgets.org ##
17162## ----------------------------------------- ##
a848cd7e
SC
17163_ASBOX
17164 ) |
17165 sed "s/^/$as_me: WARNING: /" >&2
17166 ;;
17167esac
17168echo "$as_me:$LINENO: checking for $ac_header" >&5
17169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17170if eval "test \"\${$as_ac_Header+set}\" = set"; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17172else
ac1cb8d3 17173 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17174fi
17175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17176echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17177
17178fi
17179if test `eval echo '${'$as_ac_Header'}'` = yes; then
17180 cat >>confdefs.h <<_ACEOF
17181#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17182_ACEOF
17183
17184fi
17185
17186done
17187
17188fi
17189
17190
17191for ac_header in fnmatch.h
17192do
17193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17194if eval "test \"\${$as_ac_Header+set}\" = set"; then
17195 echo "$as_me:$LINENO: checking for $ac_header" >&5
17196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17197if eval "test \"\${$as_ac_Header+set}\" = set"; then
17198 echo $ECHO_N "(cached) $ECHO_C" >&6
17199fi
17200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17201echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17202else
17203 # Is the header compilable?
17204echo "$as_me:$LINENO: checking $ac_header usability" >&5
17205echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17206cat >conftest.$ac_ext <<_ACEOF
17207/* confdefs.h. */
17208_ACEOF
17209cat confdefs.h >>conftest.$ac_ext
17210cat >>conftest.$ac_ext <<_ACEOF
17211/* end confdefs.h. */
17212$ac_includes_default
17213#include <$ac_header>
17214_ACEOF
17215rm -f conftest.$ac_objext
17216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17217 (eval $ac_compile) 2>conftest.er1
a848cd7e 17218 ac_status=$?
ac1cb8d3
VS
17219 grep -v '^ *+' conftest.er1 >conftest.err
17220 rm -f conftest.er1
17221 cat conftest.err >&5
a848cd7e
SC
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); } &&
ca5c6ac3 17224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226 (eval $ac_try) 2>&5
17227 ac_status=$?
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); }; } &&
17230 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232 (eval $ac_try) 2>&5
17233 ac_status=$?
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; }; then
17236 ac_header_compiler=yes
17237else
17238 echo "$as_me: failed program was:" >&5
17239sed 's/^/| /' conftest.$ac_ext >&5
17240
17241ac_header_compiler=no
17242fi
ac1cb8d3 17243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17244echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17245echo "${ECHO_T}$ac_header_compiler" >&6
17246
17247# Is the header present?
17248echo "$as_me:$LINENO: checking $ac_header presence" >&5
17249echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17250cat >conftest.$ac_ext <<_ACEOF
17251/* confdefs.h. */
17252_ACEOF
17253cat confdefs.h >>conftest.$ac_ext
17254cat >>conftest.$ac_ext <<_ACEOF
17255/* end confdefs.h. */
17256#include <$ac_header>
17257_ACEOF
17258if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17260 ac_status=$?
17261 grep -v '^ *+' conftest.er1 >conftest.err
17262 rm -f conftest.er1
17263 cat conftest.err >&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } >/dev/null; then
17266 if test -s conftest.err; then
5d7b7554
VZ
17267 ac_cpp_err=$ac_cxx_preproc_warn_flag
17268 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17269 else
17270 ac_cpp_err=
17271 fi
17272else
17273 ac_cpp_err=yes
17274fi
17275if test -z "$ac_cpp_err"; then
17276 ac_header_preproc=yes
17277else
17278 echo "$as_me: failed program was:" >&5
17279sed 's/^/| /' conftest.$ac_ext >&5
17280
17281 ac_header_preproc=no
17282fi
17283rm -f conftest.err conftest.$ac_ext
17284echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17285echo "${ECHO_T}$ac_header_preproc" >&6
17286
17287# So? What about this header?
5d7b7554 17288case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17289 yes:no: )
a848cd7e
SC
17290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17291echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17293echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17294 ac_header_preproc=yes
a848cd7e 17295 ;;
ac1cb8d3 17296 no:yes:* )
a848cd7e
SC
17297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17298echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17300echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17302echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17304echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17306echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17308echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17309 (
17310 cat <<\_ASBOX
ac1cb8d3
VS
17311## ----------------------------------------- ##
17312## Report this to wx-dev@lists.wxwidgets.org ##
17313## ----------------------------------------- ##
a848cd7e
SC
17314_ASBOX
17315 ) |
17316 sed "s/^/$as_me: WARNING: /" >&2
17317 ;;
17318esac
17319echo "$as_me:$LINENO: checking for $ac_header" >&5
17320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17321if eval "test \"\${$as_ac_Header+set}\" = set"; then
17322 echo $ECHO_N "(cached) $ECHO_C" >&6
17323else
ac1cb8d3 17324 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17325fi
17326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17327echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17328
17329fi
17330if test `eval echo '${'$as_ac_Header'}'` = yes; then
17331 cat >>confdefs.h <<_ACEOF
17332#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17333_ACEOF
17334
17335fi
17336
17337done
17338
17339
a848cd7e
SC
17340
17341for ac_header in langinfo.h
17342do
17343as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17344if eval "test \"\${$as_ac_Header+set}\" = set"; then
17345 echo "$as_me:$LINENO: checking for $ac_header" >&5
17346echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17347if eval "test \"\${$as_ac_Header+set}\" = set"; then
17348 echo $ECHO_N "(cached) $ECHO_C" >&6
17349fi
17350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17351echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17352else
17353 # Is the header compilable?
17354echo "$as_me:$LINENO: checking $ac_header usability" >&5
17355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17356cat >conftest.$ac_ext <<_ACEOF
17357/* confdefs.h. */
17358_ACEOF
17359cat confdefs.h >>conftest.$ac_ext
17360cat >>conftest.$ac_ext <<_ACEOF
17361/* end confdefs.h. */
17362$ac_includes_default
17363#include <$ac_header>
17364_ACEOF
17365rm -f conftest.$ac_objext
17366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17367 (eval $ac_compile) 2>conftest.er1
a848cd7e 17368 ac_status=$?
ac1cb8d3
VS
17369 grep -v '^ *+' conftest.er1 >conftest.err
17370 rm -f conftest.er1
17371 cat conftest.err >&5
a848cd7e
SC
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); } &&
ca5c6ac3 17374 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376 (eval $ac_try) 2>&5
17377 ac_status=$?
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; } &&
17380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17382 (eval $ac_try) 2>&5
17383 ac_status=$?
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; }; then
17386 ac_header_compiler=yes
17387else
17388 echo "$as_me: failed program was:" >&5
17389sed 's/^/| /' conftest.$ac_ext >&5
17390
17391ac_header_compiler=no
17392fi
ac1cb8d3 17393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17394echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17395echo "${ECHO_T}$ac_header_compiler" >&6
17396
17397# Is the header present?
17398echo "$as_me:$LINENO: checking $ac_header presence" >&5
17399echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17400cat >conftest.$ac_ext <<_ACEOF
17401/* confdefs.h. */
17402_ACEOF
17403cat confdefs.h >>conftest.$ac_ext
17404cat >>conftest.$ac_ext <<_ACEOF
17405/* end confdefs.h. */
17406#include <$ac_header>
17407_ACEOF
17408if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17410 ac_status=$?
17411 grep -v '^ *+' conftest.er1 >conftest.err
17412 rm -f conftest.er1
17413 cat conftest.err >&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } >/dev/null; then
17416 if test -s conftest.err; then
5d7b7554
VZ
17417 ac_cpp_err=$ac_cxx_preproc_warn_flag
17418 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17419 else
17420 ac_cpp_err=
17421 fi
17422else
17423 ac_cpp_err=yes
17424fi
17425if test -z "$ac_cpp_err"; then
17426 ac_header_preproc=yes
17427else
17428 echo "$as_me: failed program was:" >&5
17429sed 's/^/| /' conftest.$ac_ext >&5
17430
17431 ac_header_preproc=no
17432fi
17433rm -f conftest.err conftest.$ac_ext
17434echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17435echo "${ECHO_T}$ac_header_preproc" >&6
17436
17437# So? What about this header?
5d7b7554 17438case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17439 yes:no: )
a848cd7e
SC
17440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17441echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17443echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17444 ac_header_preproc=yes
a848cd7e 17445 ;;
ac1cb8d3 17446 no:yes:* )
a848cd7e
SC
17447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17448echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17450echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17452echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17454echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17456echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17458echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17459 (
17460 cat <<\_ASBOX
ac1cb8d3
VS
17461## ----------------------------------------- ##
17462## Report this to wx-dev@lists.wxwidgets.org ##
17463## ----------------------------------------- ##
a848cd7e
SC
17464_ASBOX
17465 ) |
17466 sed "s/^/$as_me: WARNING: /" >&2
17467 ;;
17468esac
17469echo "$as_me:$LINENO: checking for $ac_header" >&5
17470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17471if eval "test \"\${$as_ac_Header+set}\" = set"; then
17472 echo $ECHO_N "(cached) $ECHO_C" >&6
17473else
ac1cb8d3 17474 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17475fi
17476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17477echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17478
17479fi
17480if test `eval echo '${'$as_ac_Header'}'` = yes; then
17481 cat >>confdefs.h <<_ACEOF
17482#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17483_ACEOF
17484
17485fi
17486
17487done
17488
17489
17490case "${host}" in
17491 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17492 if test $ac_cv_header_langinfo_h = "yes" \
17493 -a \( "$wx_cv_gccversion" = "EMX2" \
17494 -o "$wx_cv_gccversion" = "EMX3" \
17495 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17496 LIBS="$LIBS -lintl"
17497 fi
17498 ;;
17499esac
17500
bc023abb
MW
17501if test "$USE_UNIX" = 1 ; then
17502
17503for ac_header in sys/select.h
17504do
17505as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17506if eval "test \"\${$as_ac_Header+set}\" = set"; then
17507 echo "$as_me:$LINENO: checking for $ac_header" >&5
17508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17509if eval "test \"\${$as_ac_Header+set}\" = set"; then
17510 echo $ECHO_N "(cached) $ECHO_C" >&6
17511fi
17512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17513echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17514else
17515 # Is the header compilable?
17516echo "$as_me:$LINENO: checking $ac_header usability" >&5
17517echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17518cat >conftest.$ac_ext <<_ACEOF
17519/* confdefs.h. */
17520_ACEOF
17521cat confdefs.h >>conftest.$ac_ext
17522cat >>conftest.$ac_ext <<_ACEOF
17523/* end confdefs.h. */
17524$ac_includes_default
17525#include <$ac_header>
17526_ACEOF
17527rm -f conftest.$ac_objext
17528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17529 (eval $ac_compile) 2>conftest.er1
17530 ac_status=$?
17531 grep -v '^ *+' conftest.er1 >conftest.err
17532 rm -f conftest.er1
17533 cat conftest.err >&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } &&
ca5c6ac3 17536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
bc023abb
MW
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; } &&
17542 { ac_try='test -s conftest.$ac_objext'
17543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544 (eval $ac_try) 2>&5
17545 ac_status=$?
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; }; then
17548 ac_header_compiler=yes
17549else
17550 echo "$as_me: failed program was:" >&5
17551sed 's/^/| /' conftest.$ac_ext >&5
17552
17553ac_header_compiler=no
17554fi
17555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17556echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17557echo "${ECHO_T}$ac_header_compiler" >&6
17558
17559# Is the header present?
17560echo "$as_me:$LINENO: checking $ac_header presence" >&5
17561echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17562cat >conftest.$ac_ext <<_ACEOF
17563/* confdefs.h. */
17564_ACEOF
17565cat confdefs.h >>conftest.$ac_ext
17566cat >>conftest.$ac_ext <<_ACEOF
17567/* end confdefs.h. */
17568#include <$ac_header>
17569_ACEOF
17570if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17572 ac_status=$?
17573 grep -v '^ *+' conftest.er1 >conftest.err
17574 rm -f conftest.er1
17575 cat conftest.err >&5
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); } >/dev/null; then
17578 if test -s conftest.err; then
17579 ac_cpp_err=$ac_cxx_preproc_warn_flag
17580 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17581 else
17582 ac_cpp_err=
17583 fi
17584else
17585 ac_cpp_err=yes
17586fi
17587if test -z "$ac_cpp_err"; then
17588 ac_header_preproc=yes
17589else
17590 echo "$as_me: failed program was:" >&5
17591sed 's/^/| /' conftest.$ac_ext >&5
17592
17593 ac_header_preproc=no
17594fi
17595rm -f conftest.err conftest.$ac_ext
17596echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17597echo "${ECHO_T}$ac_header_preproc" >&6
17598
17599# So? What about this header?
17600case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17601 yes:no: )
17602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17603echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17605echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17606 ac_header_preproc=yes
17607 ;;
17608 no:yes:* )
17609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17610echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17612echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17614echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17616echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17618echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17620echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17621 (
17622 cat <<\_ASBOX
17623## ----------------------------------------- ##
17624## Report this to wx-dev@lists.wxwidgets.org ##
17625## ----------------------------------------- ##
17626_ASBOX
17627 ) |
17628 sed "s/^/$as_me: WARNING: /" >&2
17629 ;;
17630esac
17631echo "$as_me:$LINENO: checking for $ac_header" >&5
17632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17633if eval "test \"\${$as_ac_Header+set}\" = set"; then
17634 echo $ECHO_N "(cached) $ECHO_C" >&6
17635else
17636 eval "$as_ac_Header=\$ac_header_preproc"
17637fi
17638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17640
17641fi
17642if test `eval echo '${'$as_ac_Header'}'` = yes; then
17643 cat >>confdefs.h <<_ACEOF
17644#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17645_ACEOF
17646
17647fi
17648
17649done
17650
17651fi
17652
a848cd7e
SC
17653
17654echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17655echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17656if test "${ac_cv_c_const+set}" = set; then
17657 echo $ECHO_N "(cached) $ECHO_C" >&6
17658else
17659 cat >conftest.$ac_ext <<_ACEOF
17660/* confdefs.h. */
17661_ACEOF
17662cat confdefs.h >>conftest.$ac_ext
17663cat >>conftest.$ac_ext <<_ACEOF
17664/* end confdefs.h. */
17665
17666int
17667main ()
17668{
17669/* FIXME: Include the comments suggested by Paul. */
17670#ifndef __cplusplus
17671 /* Ultrix mips cc rejects this. */
17672 typedef int charset[2];
17673 const charset x;
17674 /* SunOS 4.1.1 cc rejects this. */
17675 char const *const *ccp;
17676 char **p;
17677 /* NEC SVR4.0.2 mips cc rejects this. */
17678 struct point {int x, y;};
17679 static struct point const zero = {0,0};
17680 /* AIX XL C 1.02.0.0 rejects this.
17681 It does not let you subtract one const X* pointer from another in
17682 an arm of an if-expression whose if-part is not a constant
17683 expression */
17684 const char *g = "string";
17685 ccp = &g + (g ? g-g : 0);
17686 /* HPUX 7.0 cc rejects these. */
17687 ++ccp;
17688 p = (char**) ccp;
17689 ccp = (char const *const *) p;
17690 { /* SCO 3.2v4 cc rejects this. */
17691 char *t;
17692 char const *s = 0 ? (char *) 0 : (char const *) 0;
17693
17694 *t++ = 0;
17695 }
17696 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17697 int x[] = {25, 17};
17698 const int *foo = &x[0];
17699 ++foo;
17700 }
17701 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17702 typedef const int *iptr;
17703 iptr p = 0;
17704 ++p;
17705 }
17706 { /* AIX XL C 1.02.0.0 rejects this saying
17707 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17708 struct s { int j; const int *ap[3]; };
17709 struct s *b; b->j = 5;
17710 }
17711 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17712 const int foo = 10;
17713 }
17714#endif
17715
17716 ;
17717 return 0;
17718}
17719_ACEOF
17720rm -f conftest.$ac_objext
17721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17722 (eval $ac_compile) 2>conftest.er1
a848cd7e 17723 ac_status=$?
ac1cb8d3
VS
17724 grep -v '^ *+' conftest.er1 >conftest.err
17725 rm -f conftest.er1
17726 cat conftest.err >&5
a848cd7e
SC
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); } &&
ca5c6ac3 17729 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17731 (eval $ac_try) 2>&5
17732 ac_status=$?
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; } &&
17735 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17737 (eval $ac_try) 2>&5
17738 ac_status=$?
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); }; }; then
17741 ac_cv_c_const=yes
17742else
17743 echo "$as_me: failed program was:" >&5
17744sed 's/^/| /' conftest.$ac_ext >&5
17745
17746ac_cv_c_const=no
17747fi
ac1cb8d3 17748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17749fi
17750echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17751echo "${ECHO_T}$ac_cv_c_const" >&6
17752if test $ac_cv_c_const = no; then
17753
17754cat >>confdefs.h <<\_ACEOF
17755#define const
17756_ACEOF
17757
17758fi
17759
17760echo "$as_me:$LINENO: checking for inline" >&5
17761echo $ECHO_N "checking for inline... $ECHO_C" >&6
17762if test "${ac_cv_c_inline+set}" = set; then
17763 echo $ECHO_N "(cached) $ECHO_C" >&6
17764else
17765 ac_cv_c_inline=no
17766for ac_kw in inline __inline__ __inline; do
17767 cat >conftest.$ac_ext <<_ACEOF
17768/* confdefs.h. */
17769_ACEOF
17770cat confdefs.h >>conftest.$ac_ext
17771cat >>conftest.$ac_ext <<_ACEOF
17772/* end confdefs.h. */
17773#ifndef __cplusplus
17774typedef int foo_t;
17775static $ac_kw foo_t static_foo () {return 0; }
17776$ac_kw foo_t foo () {return 0; }
17777#endif
17778
17779_ACEOF
17780rm -f conftest.$ac_objext
17781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17782 (eval $ac_compile) 2>conftest.er1
a848cd7e 17783 ac_status=$?
ac1cb8d3
VS
17784 grep -v '^ *+' conftest.er1 >conftest.err
17785 rm -f conftest.er1
17786 cat conftest.err >&5
a848cd7e
SC
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); } &&
ca5c6ac3 17789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791 (eval $ac_try) 2>&5
17792 ac_status=$?
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); }; } &&
17795 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17797 (eval $ac_try) 2>&5
17798 ac_status=$?
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); }; }; then
17801 ac_cv_c_inline=$ac_kw; break
17802else
17803 echo "$as_me: failed program was:" >&5
17804sed 's/^/| /' conftest.$ac_ext >&5
17805
17806fi
ac1cb8d3 17807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17808done
17809
17810fi
17811echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17812echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17813
17814
a848cd7e
SC
17815case $ac_cv_c_inline in
17816 inline | yes) ;;
ac1cb8d3
VS
17817 *)
17818 case $ac_cv_c_inline in
17819 no) ac_val=;;
17820 *) ac_val=$ac_cv_c_inline;;
17821 esac
17822 cat >>confdefs.h <<_ACEOF
17823#ifndef __cplusplus
17824#define inline $ac_val
17825#endif
de59c161 17826_ACEOF
ac1cb8d3 17827 ;;
a848cd7e
SC
17828esac
17829
17830
17831echo "$as_me:$LINENO: checking for char" >&5
17832echo $ECHO_N "checking for char... $ECHO_C" >&6
17833if test "${ac_cv_type_char+set}" = set; then
17834 echo $ECHO_N "(cached) $ECHO_C" >&6
17835else
17836 cat >conftest.$ac_ext <<_ACEOF
17837/* confdefs.h. */
17838_ACEOF
17839cat confdefs.h >>conftest.$ac_ext
17840cat >>conftest.$ac_ext <<_ACEOF
17841/* end confdefs.h. */
17842$ac_includes_default
17843int
17844main ()
17845{
17846if ((char *) 0)
17847 return 0;
17848if (sizeof (char))
17849 return 0;
17850 ;
17851 return 0;
17852}
17853_ACEOF
17854rm -f conftest.$ac_objext
17855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17856 (eval $ac_compile) 2>conftest.er1
a848cd7e 17857 ac_status=$?
ac1cb8d3
VS
17858 grep -v '^ *+' conftest.er1 >conftest.err
17859 rm -f conftest.er1
17860 cat conftest.err >&5
a848cd7e
SC
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); } &&
ca5c6ac3 17863 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865 (eval $ac_try) 2>&5
17866 ac_status=$?
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; } &&
17869 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 ac_cv_type_char=yes
17876else
17877 echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
17880ac_cv_type_char=no
17881fi
ac1cb8d3 17882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17883fi
17884echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17885echo "${ECHO_T}$ac_cv_type_char" >&6
17886
17887echo "$as_me:$LINENO: checking size of char" >&5
17888echo $ECHO_N "checking size of char... $ECHO_C" >&6
17889if test "${ac_cv_sizeof_char+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17891else
17892 if test "$ac_cv_type_char" = yes; then
17893 # The cast to unsigned long works around a bug in the HP C Compiler
17894 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17895 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17896 # This bug is HP SR number 8606223364.
17897 if test "$cross_compiling" = yes; then
17898 # Depending upon the size, compute the lo and hi bounds.
17899cat >conftest.$ac_ext <<_ACEOF
17900/* confdefs.h. */
17901_ACEOF
17902cat confdefs.h >>conftest.$ac_ext
17903cat >>conftest.$ac_ext <<_ACEOF
17904/* end confdefs.h. */
17905$ac_includes_default
17906int
17907main ()
17908{
17909static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17910test_array [0] = 0
17911
17912 ;
17913 return 0;
17914}
17915_ACEOF
17916rm -f conftest.$ac_objext
17917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17918 (eval $ac_compile) 2>conftest.er1
a848cd7e 17919 ac_status=$?
ac1cb8d3
VS
17920 grep -v '^ *+' conftest.er1 >conftest.err
17921 rm -f conftest.er1
17922 cat conftest.err >&5
a848cd7e
SC
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); } &&
ca5c6ac3 17925 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17927 (eval $ac_try) 2>&5
17928 ac_status=$?
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); }; } &&
17931 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17933 (eval $ac_try) 2>&5
17934 ac_status=$?
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); }; }; then
17937 ac_lo=0 ac_mid=0
17938 while :; do
17939 cat >conftest.$ac_ext <<_ACEOF
17940/* confdefs.h. */
17941_ACEOF
17942cat confdefs.h >>conftest.$ac_ext
17943cat >>conftest.$ac_ext <<_ACEOF
17944/* end confdefs.h. */
17945$ac_includes_default
17946int
17947main ()
17948{
17949static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17950test_array [0] = 0
17951
17952 ;
17953 return 0;
17954}
17955_ACEOF
17956rm -f conftest.$ac_objext
17957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17958 (eval $ac_compile) 2>conftest.er1
a848cd7e 17959 ac_status=$?
ac1cb8d3
VS
17960 grep -v '^ *+' conftest.er1 >conftest.err
17961 rm -f conftest.er1
17962 cat conftest.err >&5
a848cd7e
SC
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); } &&
ca5c6ac3 17965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967 (eval $ac_try) 2>&5
17968 ac_status=$?
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); }; } &&
17971 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973 (eval $ac_try) 2>&5
17974 ac_status=$?
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); }; }; then
17977 ac_hi=$ac_mid; break
17978else
17979 echo "$as_me: failed program was:" >&5
17980sed 's/^/| /' conftest.$ac_ext >&5
17981
17982ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17983 if test $ac_lo -le $ac_mid; then
17984 ac_lo= ac_hi=
17985 break
17986 fi
17987 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17988fi
ac1cb8d3 17989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17990 done
17991else
17992 echo "$as_me: failed program was:" >&5
17993sed 's/^/| /' conftest.$ac_ext >&5
17994
17995cat >conftest.$ac_ext <<_ACEOF
17996/* confdefs.h. */
17997_ACEOF
17998cat confdefs.h >>conftest.$ac_ext
17999cat >>conftest.$ac_ext <<_ACEOF
18000/* end confdefs.h. */
18001$ac_includes_default
18002int
18003main ()
18004{
18005static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
18006test_array [0] = 0
18007
18008 ;
18009 return 0;
18010}
18011_ACEOF
18012rm -f conftest.$ac_objext
18013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18014 (eval $ac_compile) 2>conftest.er1
a848cd7e 18015 ac_status=$?
ac1cb8d3
VS
18016 grep -v '^ *+' conftest.er1 >conftest.err
18017 rm -f conftest.er1
18018 cat conftest.err >&5
a848cd7e
SC
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); } &&
ca5c6ac3 18021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18023 (eval $ac_try) 2>&5
18024 ac_status=$?
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); }; } &&
18027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029 (eval $ac_try) 2>&5
18030 ac_status=$?
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; }; then
18033 ac_hi=-1 ac_mid=-1
18034 while :; do
18035 cat >conftest.$ac_ext <<_ACEOF
18036/* confdefs.h. */
18037_ACEOF
18038cat confdefs.h >>conftest.$ac_ext
18039cat >>conftest.$ac_ext <<_ACEOF
18040/* end confdefs.h. */
18041$ac_includes_default
18042int
18043main ()
18044{
18045static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
18046test_array [0] = 0
18047
18048 ;
18049 return 0;
18050}
18051_ACEOF
18052rm -f conftest.$ac_objext
18053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18054 (eval $ac_compile) 2>conftest.er1
a848cd7e 18055 ac_status=$?
ac1cb8d3
VS
18056 grep -v '^ *+' conftest.er1 >conftest.err
18057 rm -f conftest.er1
18058 cat conftest.err >&5
a848cd7e
SC
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); } &&
ca5c6ac3 18061 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18063 (eval $ac_try) 2>&5
18064 ac_status=$?
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); }; } &&
18067 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069 (eval $ac_try) 2>&5
18070 ac_status=$?
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; }; then
18073 ac_lo=$ac_mid; break
18074else
18075 echo "$as_me: failed program was:" >&5
18076sed 's/^/| /' conftest.$ac_ext >&5
18077
18078ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18079 if test $ac_mid -le $ac_hi; then
18080 ac_lo= ac_hi=
18081 break
18082 fi
18083 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18084fi
ac1cb8d3 18085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18086 done
18087else
18088 echo "$as_me: failed program was:" >&5
18089sed 's/^/| /' conftest.$ac_ext >&5
18090
18091ac_lo= ac_hi=
18092fi
ac1cb8d3 18093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18094fi
ac1cb8d3 18095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18096# Binary search between lo and hi bounds.
18097while test "x$ac_lo" != "x$ac_hi"; do
18098 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18099 cat >conftest.$ac_ext <<_ACEOF
18100/* confdefs.h. */
18101_ACEOF
18102cat confdefs.h >>conftest.$ac_ext
18103cat >>conftest.$ac_ext <<_ACEOF
18104/* end confdefs.h. */
18105$ac_includes_default
18106int
18107main ()
18108{
18109static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18110test_array [0] = 0
18111
18112 ;
18113 return 0;
18114}
18115_ACEOF
18116rm -f conftest.$ac_objext
18117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18118 (eval $ac_compile) 2>conftest.er1
a848cd7e 18119 ac_status=$?
ac1cb8d3
VS
18120 grep -v '^ *+' conftest.er1 >conftest.err
18121 rm -f conftest.er1
18122 cat conftest.err >&5
a848cd7e
SC
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); } &&
ca5c6ac3 18125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127 (eval $ac_try) 2>&5
18128 ac_status=$?
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; } &&
18131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133 (eval $ac_try) 2>&5
18134 ac_status=$?
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); }; }; then
18137 ac_hi=$ac_mid
18138else
18139 echo "$as_me: failed program was:" >&5
18140sed 's/^/| /' conftest.$ac_ext >&5
18141
18142ac_lo=`expr '(' $ac_mid ')' + 1`
18143fi
ac1cb8d3 18144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18145done
18146case $ac_lo in
18147?*) ac_cv_sizeof_char=$ac_lo;;
18148'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18149See \`config.log' for more details." >&5
18150echo "$as_me: error: cannot compute sizeof (char), 77
18151See \`config.log' for more details." >&2;}
18152 { (exit 1); exit 1; }; } ;;
18153esac
18154else
18155 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
18156 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18157echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18158 { (exit 1); exit 1; }; }
18159else
18160 cat >conftest.$ac_ext <<_ACEOF
18161/* confdefs.h. */
18162_ACEOF
18163cat confdefs.h >>conftest.$ac_ext
18164cat >>conftest.$ac_ext <<_ACEOF
18165/* end confdefs.h. */
18166$ac_includes_default
18167long longval () { return (long) (sizeof (char)); }
18168unsigned long ulongval () { return (long) (sizeof (char)); }
18169#include <stdio.h>
18170#include <stdlib.h>
18171int
18172main ()
18173{
18174
18175 FILE *f = fopen ("conftest.val", "w");
18176 if (! f)
18177 exit (1);
18178 if (((long) (sizeof (char))) < 0)
18179 {
18180 long i = longval ();
18181 if (i != ((long) (sizeof (char))))
18182 exit (1);
18183 fprintf (f, "%ld\n", i);
18184 }
18185 else
18186 {
18187 unsigned long i = ulongval ();
18188 if (i != ((long) (sizeof (char))))
18189 exit (1);
18190 fprintf (f, "%lu\n", i);
18191 }
18192 exit (ferror (f) || fclose (f) != 0);
18193
18194 ;
18195 return 0;
18196}
18197_ACEOF
18198rm -f conftest$ac_exeext
18199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18200 (eval $ac_link) 2>&5
18201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18205 (eval $ac_try) 2>&5
18206 ac_status=$?
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); }; }; then
18209 ac_cv_sizeof_char=`cat conftest.val`
18210else
18211 echo "$as_me: program exited with status $ac_status" >&5
18212echo "$as_me: failed program was:" >&5
18213sed 's/^/| /' conftest.$ac_ext >&5
18214
18215( exit $ac_status )
18216{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18217See \`config.log' for more details." >&5
18218echo "$as_me: error: cannot compute sizeof (char), 77
18219See \`config.log' for more details." >&2;}
18220 { (exit 1); exit 1; }; }
18221fi
ac1cb8d3 18222rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18223fi
18224fi
18225rm -f conftest.val
18226else
18227 ac_cv_sizeof_char=0
18228fi
18229fi
18230echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18231echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18232cat >>confdefs.h <<_ACEOF
18233#define SIZEOF_CHAR $ac_cv_sizeof_char
18234_ACEOF
18235
18236
18237echo "$as_me:$LINENO: checking for short" >&5
18238echo $ECHO_N "checking for short... $ECHO_C" >&6
18239if test "${ac_cv_type_short+set}" = set; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
18241else
18242 cat >conftest.$ac_ext <<_ACEOF
18243/* confdefs.h. */
18244_ACEOF
18245cat confdefs.h >>conftest.$ac_ext
18246cat >>conftest.$ac_ext <<_ACEOF
18247/* end confdefs.h. */
18248$ac_includes_default
18249int
18250main ()
18251{
18252if ((short *) 0)
18253 return 0;
18254if (sizeof (short))
18255 return 0;
18256 ;
18257 return 0;
18258}
18259_ACEOF
18260rm -f conftest.$ac_objext
18261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18262 (eval $ac_compile) 2>conftest.er1
a848cd7e 18263 ac_status=$?
ac1cb8d3
VS
18264 grep -v '^ *+' conftest.er1 >conftest.err
18265 rm -f conftest.er1
18266 cat conftest.err >&5
a848cd7e
SC
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } &&
ca5c6ac3 18269 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271 (eval $ac_try) 2>&5
18272 ac_status=$?
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); }; } &&
18275 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18278 ac_status=$?
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; }; then
18281 ac_cv_type_short=yes
18282else
18283 echo "$as_me: failed program was:" >&5
18284sed 's/^/| /' conftest.$ac_ext >&5
18285
18286ac_cv_type_short=no
18287fi
ac1cb8d3 18288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18289fi
18290echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18291echo "${ECHO_T}$ac_cv_type_short" >&6
18292
18293echo "$as_me:$LINENO: checking size of short" >&5
18294echo $ECHO_N "checking size of short... $ECHO_C" >&6
18295if test "${ac_cv_sizeof_short+set}" = set; then
18296 echo $ECHO_N "(cached) $ECHO_C" >&6
18297else
18298 if test "$ac_cv_type_short" = yes; then
18299 # The cast to unsigned long works around a bug in the HP C Compiler
18300 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18301 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18302 # This bug is HP SR number 8606223364.
18303 if test "$cross_compiling" = yes; then
18304 # Depending upon the size, compute the lo and hi bounds.
18305cat >conftest.$ac_ext <<_ACEOF
18306/* confdefs.h. */
18307_ACEOF
18308cat confdefs.h >>conftest.$ac_ext
18309cat >>conftest.$ac_ext <<_ACEOF
18310/* end confdefs.h. */
18311$ac_includes_default
18312int
18313main ()
18314{
18315static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18316test_array [0] = 0
18317
18318 ;
18319 return 0;
18320}
18321_ACEOF
18322rm -f conftest.$ac_objext
18323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18324 (eval $ac_compile) 2>conftest.er1
a848cd7e 18325 ac_status=$?
ac1cb8d3
VS
18326 grep -v '^ *+' conftest.er1 >conftest.err
18327 rm -f conftest.er1
18328 cat conftest.err >&5
a848cd7e
SC
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); } &&
ca5c6ac3 18331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333 (eval $ac_try) 2>&5
18334 ac_status=$?
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); }; } &&
18337 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18340 ac_status=$?
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; }; then
18343 ac_lo=0 ac_mid=0
18344 while :; do
18345 cat >conftest.$ac_ext <<_ACEOF
18346/* confdefs.h. */
18347_ACEOF
18348cat confdefs.h >>conftest.$ac_ext
18349cat >>conftest.$ac_ext <<_ACEOF
18350/* end confdefs.h. */
18351$ac_includes_default
18352int
18353main ()
18354{
18355static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18356test_array [0] = 0
18357
18358 ;
18359 return 0;
18360}
18361_ACEOF
18362rm -f conftest.$ac_objext
18363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18364 (eval $ac_compile) 2>conftest.er1
a848cd7e 18365 ac_status=$?
ac1cb8d3
VS
18366 grep -v '^ *+' conftest.er1 >conftest.err
18367 rm -f conftest.er1
18368 cat conftest.err >&5
a848cd7e
SC
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); } &&
ca5c6ac3 18371 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373 (eval $ac_try) 2>&5
18374 ac_status=$?
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; } &&
18377 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18379 (eval $ac_try) 2>&5
18380 ac_status=$?
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); }; }; then
18383 ac_hi=$ac_mid; break
18384else
18385 echo "$as_me: failed program was:" >&5
18386sed 's/^/| /' conftest.$ac_ext >&5
18387
18388ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18389 if test $ac_lo -le $ac_mid; then
18390 ac_lo= ac_hi=
18391 break
18392 fi
18393 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18394fi
ac1cb8d3 18395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18396 done
18397else
18398 echo "$as_me: failed program was:" >&5
18399sed 's/^/| /' conftest.$ac_ext >&5
18400
18401cat >conftest.$ac_ext <<_ACEOF
18402/* confdefs.h. */
18403_ACEOF
18404cat confdefs.h >>conftest.$ac_ext
18405cat >>conftest.$ac_ext <<_ACEOF
18406/* end confdefs.h. */
18407$ac_includes_default
18408int
18409main ()
18410{
18411static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18412test_array [0] = 0
18413
18414 ;
18415 return 0;
18416}
18417_ACEOF
18418rm -f conftest.$ac_objext
18419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18420 (eval $ac_compile) 2>conftest.er1
a848cd7e 18421 ac_status=$?
ac1cb8d3
VS
18422 grep -v '^ *+' conftest.er1 >conftest.err
18423 rm -f conftest.er1
18424 cat conftest.err >&5
a848cd7e
SC
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); } &&
ca5c6ac3 18427 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18429 (eval $ac_try) 2>&5
18430 ac_status=$?
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); }; } &&
18433 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435 (eval $ac_try) 2>&5
18436 ac_status=$?
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; }; then
18439 ac_hi=-1 ac_mid=-1
18440 while :; do
18441 cat >conftest.$ac_ext <<_ACEOF
18442/* confdefs.h. */
18443_ACEOF
18444cat confdefs.h >>conftest.$ac_ext
18445cat >>conftest.$ac_ext <<_ACEOF
18446/* end confdefs.h. */
18447$ac_includes_default
18448int
18449main ()
18450{
18451static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18452test_array [0] = 0
18453
18454 ;
18455 return 0;
18456}
18457_ACEOF
18458rm -f conftest.$ac_objext
18459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18460 (eval $ac_compile) 2>conftest.er1
a848cd7e 18461 ac_status=$?
ac1cb8d3
VS
18462 grep -v '^ *+' conftest.er1 >conftest.err
18463 rm -f conftest.er1
18464 cat conftest.err >&5
a848cd7e
SC
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } &&
ca5c6ac3 18467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469 (eval $ac_try) 2>&5
18470 ac_status=$?
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; } &&
18473 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18475 (eval $ac_try) 2>&5
18476 ac_status=$?
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); }; }; then
18479 ac_lo=$ac_mid; break
18480else
18481 echo "$as_me: failed program was:" >&5
18482sed 's/^/| /' conftest.$ac_ext >&5
18483
18484ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18485 if test $ac_mid -le $ac_hi; then
18486 ac_lo= ac_hi=
18487 break
18488 fi
18489 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18490fi
ac1cb8d3 18491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18492 done
18493else
18494 echo "$as_me: failed program was:" >&5
18495sed 's/^/| /' conftest.$ac_ext >&5
18496
18497ac_lo= ac_hi=
18498fi
ac1cb8d3 18499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18500fi
ac1cb8d3 18501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18502# Binary search between lo and hi bounds.
18503while test "x$ac_lo" != "x$ac_hi"; do
18504 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18505 cat >conftest.$ac_ext <<_ACEOF
18506/* confdefs.h. */
18507_ACEOF
18508cat confdefs.h >>conftest.$ac_ext
18509cat >>conftest.$ac_ext <<_ACEOF
18510/* end confdefs.h. */
18511$ac_includes_default
18512int
18513main ()
18514{
18515static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18516test_array [0] = 0
18517
18518 ;
18519 return 0;
18520}
18521_ACEOF
18522rm -f conftest.$ac_objext
18523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18524 (eval $ac_compile) 2>conftest.er1
a848cd7e 18525 ac_status=$?
ac1cb8d3
VS
18526 grep -v '^ *+' conftest.er1 >conftest.err
18527 rm -f conftest.er1
18528 cat conftest.err >&5
a848cd7e
SC
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); } &&
ca5c6ac3 18531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; } &&
18537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18540 ac_status=$?
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
18543 ac_hi=$ac_mid
18544else
18545 echo "$as_me: failed program was:" >&5
18546sed 's/^/| /' conftest.$ac_ext >&5
18547
18548ac_lo=`expr '(' $ac_mid ')' + 1`
18549fi
ac1cb8d3 18550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18551done
18552case $ac_lo in
18553?*) ac_cv_sizeof_short=$ac_lo;;
18554'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18555See \`config.log' for more details." >&5
18556echo "$as_me: error: cannot compute sizeof (short), 77
18557See \`config.log' for more details." >&2;}
18558 { (exit 1); exit 1; }; } ;;
18559esac
18560else
18561 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
18562 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18563echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18564 { (exit 1); exit 1; }; }
18565else
18566 cat >conftest.$ac_ext <<_ACEOF
18567/* confdefs.h. */
18568_ACEOF
18569cat confdefs.h >>conftest.$ac_ext
18570cat >>conftest.$ac_ext <<_ACEOF
18571/* end confdefs.h. */
18572$ac_includes_default
18573long longval () { return (long) (sizeof (short)); }
18574unsigned long ulongval () { return (long) (sizeof (short)); }
18575#include <stdio.h>
18576#include <stdlib.h>
18577int
18578main ()
18579{
18580
18581 FILE *f = fopen ("conftest.val", "w");
18582 if (! f)
18583 exit (1);
18584 if (((long) (sizeof (short))) < 0)
18585 {
18586 long i = longval ();
18587 if (i != ((long) (sizeof (short))))
18588 exit (1);
18589 fprintf (f, "%ld\n", i);
18590 }
18591 else
18592 {
18593 unsigned long i = ulongval ();
18594 if (i != ((long) (sizeof (short))))
18595 exit (1);
18596 fprintf (f, "%lu\n", i);
18597 }
18598 exit (ferror (f) || fclose (f) != 0);
18599
18600 ;
18601 return 0;
18602}
18603_ACEOF
18604rm -f conftest$ac_exeext
18605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18606 (eval $ac_link) 2>&5
18607 ac_status=$?
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611 (eval $ac_try) 2>&5
18612 ac_status=$?
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; }; then
18615 ac_cv_sizeof_short=`cat conftest.val`
18616else
18617 echo "$as_me: program exited with status $ac_status" >&5
18618echo "$as_me: failed program was:" >&5
18619sed 's/^/| /' conftest.$ac_ext >&5
18620
18621( exit $ac_status )
18622{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18623See \`config.log' for more details." >&5
18624echo "$as_me: error: cannot compute sizeof (short), 77
18625See \`config.log' for more details." >&2;}
18626 { (exit 1); exit 1; }; }
18627fi
ac1cb8d3 18628rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18629fi
18630fi
18631rm -f conftest.val
18632else
18633 ac_cv_sizeof_short=0
18634fi
18635fi
18636echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18637echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18638cat >>confdefs.h <<_ACEOF
18639#define SIZEOF_SHORT $ac_cv_sizeof_short
18640_ACEOF
18641
18642
18643echo "$as_me:$LINENO: checking for void *" >&5
18644echo $ECHO_N "checking for void *... $ECHO_C" >&6
18645if test "${ac_cv_type_void_p+set}" = set; then
18646 echo $ECHO_N "(cached) $ECHO_C" >&6
18647else
18648 cat >conftest.$ac_ext <<_ACEOF
18649/* confdefs.h. */
18650_ACEOF
18651cat confdefs.h >>conftest.$ac_ext
18652cat >>conftest.$ac_ext <<_ACEOF
18653/* end confdefs.h. */
18654$ac_includes_default
18655int
18656main ()
18657{
18658if ((void * *) 0)
18659 return 0;
18660if (sizeof (void *))
18661 return 0;
18662 ;
18663 return 0;
18664}
18665_ACEOF
18666rm -f conftest.$ac_objext
18667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18668 (eval $ac_compile) 2>conftest.er1
a848cd7e 18669 ac_status=$?
ac1cb8d3
VS
18670 grep -v '^ *+' conftest.er1 >conftest.err
18671 rm -f conftest.er1
18672 cat conftest.err >&5
a848cd7e
SC
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); } &&
ca5c6ac3 18675 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18677 (eval $ac_try) 2>&5
18678 ac_status=$?
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); }; } &&
18681 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683 (eval $ac_try) 2>&5
18684 ac_status=$?
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; }; then
18687 ac_cv_type_void_p=yes
18688else
18689 echo "$as_me: failed program was:" >&5
18690sed 's/^/| /' conftest.$ac_ext >&5
18691
18692ac_cv_type_void_p=no
18693fi
ac1cb8d3 18694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18695fi
18696echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18697echo "${ECHO_T}$ac_cv_type_void_p" >&6
18698
18699echo "$as_me:$LINENO: checking size of void *" >&5
18700echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18701if test "${ac_cv_sizeof_void_p+set}" = set; then
18702 echo $ECHO_N "(cached) $ECHO_C" >&6
18703else
18704 if test "$ac_cv_type_void_p" = yes; then
18705 # The cast to unsigned long works around a bug in the HP C Compiler
18706 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18707 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18708 # This bug is HP SR number 8606223364.
18709 if test "$cross_compiling" = yes; then
18710 # Depending upon the size, compute the lo and hi bounds.
18711cat >conftest.$ac_ext <<_ACEOF
18712/* confdefs.h. */
18713_ACEOF
18714cat confdefs.h >>conftest.$ac_ext
18715cat >>conftest.$ac_ext <<_ACEOF
18716/* end confdefs.h. */
18717$ac_includes_default
18718int
18719main ()
18720{
18721static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18722test_array [0] = 0
18723
18724 ;
18725 return 0;
18726}
18727_ACEOF
18728rm -f conftest.$ac_objext
18729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18730 (eval $ac_compile) 2>conftest.er1
a848cd7e 18731 ac_status=$?
ac1cb8d3
VS
18732 grep -v '^ *+' conftest.er1 >conftest.err
18733 rm -f conftest.er1
18734 cat conftest.err >&5
a848cd7e
SC
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); } &&
ca5c6ac3 18737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18739 (eval $ac_try) 2>&5
18740 ac_status=$?
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); }; } &&
18743 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18745 (eval $ac_try) 2>&5
18746 ac_status=$?
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; }; then
18749 ac_lo=0 ac_mid=0
18750 while :; do
18751 cat >conftest.$ac_ext <<_ACEOF
18752/* confdefs.h. */
18753_ACEOF
18754cat confdefs.h >>conftest.$ac_ext
18755cat >>conftest.$ac_ext <<_ACEOF
18756/* end confdefs.h. */
18757$ac_includes_default
18758int
18759main ()
18760{
18761static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18762test_array [0] = 0
18763
18764 ;
18765 return 0;
18766}
18767_ACEOF
18768rm -f conftest.$ac_objext
18769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18770 (eval $ac_compile) 2>conftest.er1
a848cd7e 18771 ac_status=$?
ac1cb8d3
VS
18772 grep -v '^ *+' conftest.er1 >conftest.err
18773 rm -f conftest.er1
18774 cat conftest.err >&5
a848cd7e
SC
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); } &&
ca5c6ac3 18777 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779 (eval $ac_try) 2>&5
18780 ac_status=$?
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; } &&
18783 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18785 (eval $ac_try) 2>&5
18786 ac_status=$?
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); }; }; then
18789 ac_hi=$ac_mid; break
18790else
18791 echo "$as_me: failed program was:" >&5
18792sed 's/^/| /' conftest.$ac_ext >&5
18793
18794ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18795 if test $ac_lo -le $ac_mid; then
18796 ac_lo= ac_hi=
18797 break
18798 fi
18799 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18800fi
ac1cb8d3 18801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18802 done
18803else
18804 echo "$as_me: failed program was:" >&5
18805sed 's/^/| /' conftest.$ac_ext >&5
18806
18807cat >conftest.$ac_ext <<_ACEOF
18808/* confdefs.h. */
18809_ACEOF
18810cat confdefs.h >>conftest.$ac_ext
18811cat >>conftest.$ac_ext <<_ACEOF
18812/* end confdefs.h. */
18813$ac_includes_default
18814int
18815main ()
18816{
18817static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18818test_array [0] = 0
18819
18820 ;
18821 return 0;
18822}
18823_ACEOF
18824rm -f conftest.$ac_objext
18825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18826 (eval $ac_compile) 2>conftest.er1
a848cd7e 18827 ac_status=$?
ac1cb8d3
VS
18828 grep -v '^ *+' conftest.er1 >conftest.err
18829 rm -f conftest.er1
18830 cat conftest.err >&5
a848cd7e
SC
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); } &&
ca5c6ac3 18833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18835 (eval $ac_try) 2>&5
18836 ac_status=$?
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); }; } &&
18839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18841 (eval $ac_try) 2>&5
18842 ac_status=$?
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; }; then
18845 ac_hi=-1 ac_mid=-1
18846 while :; do
18847 cat >conftest.$ac_ext <<_ACEOF
18848/* confdefs.h. */
18849_ACEOF
18850cat confdefs.h >>conftest.$ac_ext
18851cat >>conftest.$ac_ext <<_ACEOF
18852/* end confdefs.h. */
18853$ac_includes_default
18854int
18855main ()
18856{
18857static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18858test_array [0] = 0
18859
18860 ;
18861 return 0;
18862}
18863_ACEOF
18864rm -f conftest.$ac_objext
18865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18866 (eval $ac_compile) 2>conftest.er1
a848cd7e 18867 ac_status=$?
ac1cb8d3
VS
18868 grep -v '^ *+' conftest.er1 >conftest.err
18869 rm -f conftest.er1
18870 cat conftest.err >&5
a848cd7e
SC
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); } &&
ca5c6ac3 18873 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18875 (eval $ac_try) 2>&5
18876 ac_status=$?
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); }; } &&
18879 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18882 ac_status=$?
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; }; then
18885 ac_lo=$ac_mid; break
18886else
18887 echo "$as_me: failed program was:" >&5
18888sed 's/^/| /' conftest.$ac_ext >&5
18889
18890ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18891 if test $ac_mid -le $ac_hi; then
18892 ac_lo= ac_hi=
18893 break
18894 fi
18895 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18896fi
ac1cb8d3 18897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18898 done
18899else
18900 echo "$as_me: failed program was:" >&5
18901sed 's/^/| /' conftest.$ac_ext >&5
18902
18903ac_lo= ac_hi=
18904fi
ac1cb8d3 18905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18906fi
ac1cb8d3 18907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18908# Binary search between lo and hi bounds.
18909while test "x$ac_lo" != "x$ac_hi"; do
18910 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18911 cat >conftest.$ac_ext <<_ACEOF
18912/* confdefs.h. */
18913_ACEOF
18914cat confdefs.h >>conftest.$ac_ext
18915cat >>conftest.$ac_ext <<_ACEOF
18916/* end confdefs.h. */
18917$ac_includes_default
18918int
18919main ()
18920{
18921static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18922test_array [0] = 0
18923
18924 ;
18925 return 0;
18926}
18927_ACEOF
18928rm -f conftest.$ac_objext
18929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18930 (eval $ac_compile) 2>conftest.er1
a848cd7e 18931 ac_status=$?
ac1cb8d3
VS
18932 grep -v '^ *+' conftest.er1 >conftest.err
18933 rm -f conftest.er1
18934 cat conftest.err >&5
a848cd7e
SC
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } &&
ca5c6ac3 18937 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18939 (eval $ac_try) 2>&5
18940 ac_status=$?
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); }; } &&
18943 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945 (eval $ac_try) 2>&5
18946 ac_status=$?
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; }; then
18949 ac_hi=$ac_mid
18950else
18951 echo "$as_me: failed program was:" >&5
18952sed 's/^/| /' conftest.$ac_ext >&5
18953
18954ac_lo=`expr '(' $ac_mid ')' + 1`
18955fi
ac1cb8d3 18956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18957done
18958case $ac_lo in
18959?*) ac_cv_sizeof_void_p=$ac_lo;;
18960'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18961See \`config.log' for more details." >&5
18962echo "$as_me: error: cannot compute sizeof (void *), 77
18963See \`config.log' for more details." >&2;}
18964 { (exit 1); exit 1; }; } ;;
18965esac
18966else
18967 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
18968 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18969echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18970 { (exit 1); exit 1; }; }
18971else
18972 cat >conftest.$ac_ext <<_ACEOF
18973/* confdefs.h. */
18974_ACEOF
18975cat confdefs.h >>conftest.$ac_ext
18976cat >>conftest.$ac_ext <<_ACEOF
18977/* end confdefs.h. */
18978$ac_includes_default
18979long longval () { return (long) (sizeof (void *)); }
18980unsigned long ulongval () { return (long) (sizeof (void *)); }
18981#include <stdio.h>
18982#include <stdlib.h>
18983int
18984main ()
18985{
18986
18987 FILE *f = fopen ("conftest.val", "w");
18988 if (! f)
18989 exit (1);
18990 if (((long) (sizeof (void *))) < 0)
18991 {
18992 long i = longval ();
18993 if (i != ((long) (sizeof (void *))))
18994 exit (1);
18995 fprintf (f, "%ld\n", i);
18996 }
18997 else
18998 {
18999 unsigned long i = ulongval ();
19000 if (i != ((long) (sizeof (void *))))
19001 exit (1);
19002 fprintf (f, "%lu\n", i);
19003 }
19004 exit (ferror (f) || fclose (f) != 0);
19005
19006 ;
19007 return 0;
19008}
19009_ACEOF
19010rm -f conftest$ac_exeext
19011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19012 (eval $ac_link) 2>&5
19013 ac_status=$?
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19017 (eval $ac_try) 2>&5
19018 ac_status=$?
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); }; }; then
19021 ac_cv_sizeof_void_p=`cat conftest.val`
19022else
19023 echo "$as_me: program exited with status $ac_status" >&5
19024echo "$as_me: failed program was:" >&5
19025sed 's/^/| /' conftest.$ac_ext >&5
19026
19027( exit $ac_status )
19028{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19029See \`config.log' for more details." >&5
19030echo "$as_me: error: cannot compute sizeof (void *), 77
19031See \`config.log' for more details." >&2;}
19032 { (exit 1); exit 1; }; }
19033fi
ac1cb8d3 19034rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19035fi
19036fi
19037rm -f conftest.val
19038else
19039 ac_cv_sizeof_void_p=0
19040fi
19041fi
19042echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
19043echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
19044cat >>confdefs.h <<_ACEOF
19045#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19046_ACEOF
19047
19048
19049echo "$as_me:$LINENO: checking for int" >&5
19050echo $ECHO_N "checking for int... $ECHO_C" >&6
19051if test "${ac_cv_type_int+set}" = set; then
19052 echo $ECHO_N "(cached) $ECHO_C" >&6
19053else
19054 cat >conftest.$ac_ext <<_ACEOF
19055/* confdefs.h. */
19056_ACEOF
19057cat confdefs.h >>conftest.$ac_ext
19058cat >>conftest.$ac_ext <<_ACEOF
19059/* end confdefs.h. */
19060$ac_includes_default
19061int
19062main ()
19063{
19064if ((int *) 0)
19065 return 0;
19066if (sizeof (int))
19067 return 0;
19068 ;
19069 return 0;
19070}
19071_ACEOF
19072rm -f conftest.$ac_objext
19073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19074 (eval $ac_compile) 2>conftest.er1
a848cd7e 19075 ac_status=$?
ac1cb8d3
VS
19076 grep -v '^ *+' conftest.er1 >conftest.err
19077 rm -f conftest.er1
19078 cat conftest.err >&5
a848cd7e
SC
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); } &&
ca5c6ac3 19081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19083 (eval $ac_try) 2>&5
19084 ac_status=$?
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); }; } &&
19087 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19089 (eval $ac_try) 2>&5
19090 ac_status=$?
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; }; then
19093 ac_cv_type_int=yes
19094else
19095 echo "$as_me: failed program was:" >&5
19096sed 's/^/| /' conftest.$ac_ext >&5
19097
19098ac_cv_type_int=no
19099fi
ac1cb8d3 19100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19101fi
19102echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19103echo "${ECHO_T}$ac_cv_type_int" >&6
19104
19105echo "$as_me:$LINENO: checking size of int" >&5
19106echo $ECHO_N "checking size of int... $ECHO_C" >&6
19107if test "${ac_cv_sizeof_int+set}" = set; then
19108 echo $ECHO_N "(cached) $ECHO_C" >&6
19109else
19110 if test "$ac_cv_type_int" = yes; then
19111 # The cast to unsigned long works around a bug in the HP C Compiler
19112 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19113 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19114 # This bug is HP SR number 8606223364.
19115 if test "$cross_compiling" = yes; then
19116 # Depending upon the size, compute the lo and hi bounds.
19117cat >conftest.$ac_ext <<_ACEOF
19118/* confdefs.h. */
19119_ACEOF
19120cat confdefs.h >>conftest.$ac_ext
19121cat >>conftest.$ac_ext <<_ACEOF
19122/* end confdefs.h. */
19123$ac_includes_default
19124int
19125main ()
19126{
19127static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19128test_array [0] = 0
19129
19130 ;
19131 return 0;
19132}
19133_ACEOF
19134rm -f conftest.$ac_objext
19135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19136 (eval $ac_compile) 2>conftest.er1
a848cd7e 19137 ac_status=$?
ac1cb8d3
VS
19138 grep -v '^ *+' conftest.er1 >conftest.err
19139 rm -f conftest.er1
19140 cat conftest.err >&5
a848cd7e
SC
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); } &&
ca5c6ac3 19143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145 (eval $ac_try) 2>&5
19146 ac_status=$?
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; } &&
19149 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; }; then
19155 ac_lo=0 ac_mid=0
19156 while :; do
19157 cat >conftest.$ac_ext <<_ACEOF
19158/* confdefs.h. */
19159_ACEOF
19160cat confdefs.h >>conftest.$ac_ext
19161cat >>conftest.$ac_ext <<_ACEOF
19162/* end confdefs.h. */
19163$ac_includes_default
19164int
19165main ()
19166{
19167static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19168test_array [0] = 0
19169
19170 ;
19171 return 0;
19172}
19173_ACEOF
19174rm -f conftest.$ac_objext
19175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19176 (eval $ac_compile) 2>conftest.er1
a848cd7e 19177 ac_status=$?
ac1cb8d3
VS
19178 grep -v '^ *+' conftest.er1 >conftest.err
19179 rm -f conftest.er1
19180 cat conftest.err >&5
a848cd7e
SC
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); } &&
ca5c6ac3 19183 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19185 (eval $ac_try) 2>&5
19186 ac_status=$?
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; } &&
19189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19191 (eval $ac_try) 2>&5
19192 ac_status=$?
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; }; then
19195 ac_hi=$ac_mid; break
19196else
19197 echo "$as_me: failed program was:" >&5
19198sed 's/^/| /' conftest.$ac_ext >&5
19199
19200ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19201 if test $ac_lo -le $ac_mid; then
19202 ac_lo= ac_hi=
19203 break
19204 fi
19205 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19206fi
ac1cb8d3 19207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19208 done
19209else
19210 echo "$as_me: failed program was:" >&5
19211sed 's/^/| /' conftest.$ac_ext >&5
19212
19213cat >conftest.$ac_ext <<_ACEOF
19214/* confdefs.h. */
19215_ACEOF
19216cat confdefs.h >>conftest.$ac_ext
19217cat >>conftest.$ac_ext <<_ACEOF
19218/* end confdefs.h. */
19219$ac_includes_default
19220int
19221main ()
19222{
19223static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19224test_array [0] = 0
19225
19226 ;
19227 return 0;
19228}
19229_ACEOF
19230rm -f conftest.$ac_objext
19231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19232 (eval $ac_compile) 2>conftest.er1
a848cd7e 19233 ac_status=$?
ac1cb8d3
VS
19234 grep -v '^ *+' conftest.er1 >conftest.err
19235 rm -f conftest.er1
19236 cat conftest.err >&5
a848cd7e
SC
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } &&
ca5c6ac3 19239 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; } &&
19245 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
19251 ac_hi=-1 ac_mid=-1
19252 while :; do
19253 cat >conftest.$ac_ext <<_ACEOF
19254/* confdefs.h. */
19255_ACEOF
19256cat confdefs.h >>conftest.$ac_ext
19257cat >>conftest.$ac_ext <<_ACEOF
19258/* end confdefs.h. */
19259$ac_includes_default
19260int
19261main ()
19262{
19263static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19264test_array [0] = 0
19265
19266 ;
19267 return 0;
19268}
19269_ACEOF
19270rm -f conftest.$ac_objext
19271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19272 (eval $ac_compile) 2>conftest.er1
a848cd7e 19273 ac_status=$?
ac1cb8d3
VS
19274 grep -v '^ *+' conftest.er1 >conftest.err
19275 rm -f conftest.er1
19276 cat conftest.err >&5
a848cd7e
SC
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); } &&
ca5c6ac3 19279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281 (eval $ac_try) 2>&5
19282 ac_status=$?
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; } &&
19285 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287 (eval $ac_try) 2>&5
19288 ac_status=$?
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; }; then
19291 ac_lo=$ac_mid; break
19292else
19293 echo "$as_me: failed program was:" >&5
19294sed 's/^/| /' conftest.$ac_ext >&5
19295
19296ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19297 if test $ac_mid -le $ac_hi; then
19298 ac_lo= ac_hi=
19299 break
19300 fi
19301 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19302fi
ac1cb8d3 19303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19304 done
19305else
19306 echo "$as_me: failed program was:" >&5
19307sed 's/^/| /' conftest.$ac_ext >&5
19308
19309ac_lo= ac_hi=
19310fi
ac1cb8d3 19311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19312fi
ac1cb8d3 19313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19314# Binary search between lo and hi bounds.
19315while test "x$ac_lo" != "x$ac_hi"; do
19316 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19317 cat >conftest.$ac_ext <<_ACEOF
19318/* confdefs.h. */
19319_ACEOF
19320cat confdefs.h >>conftest.$ac_ext
19321cat >>conftest.$ac_ext <<_ACEOF
19322/* end confdefs.h. */
19323$ac_includes_default
19324int
19325main ()
19326{
19327static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19328test_array [0] = 0
19329
19330 ;
19331 return 0;
19332}
19333_ACEOF
19334rm -f conftest.$ac_objext
19335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19336 (eval $ac_compile) 2>conftest.er1
a848cd7e 19337 ac_status=$?
ac1cb8d3
VS
19338 grep -v '^ *+' conftest.er1 >conftest.err
19339 rm -f conftest.er1
19340 cat conftest.err >&5
a848cd7e
SC
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); } &&
ca5c6ac3 19343 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19345 (eval $ac_try) 2>&5
19346 ac_status=$?
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); }; } &&
19349 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351 (eval $ac_try) 2>&5
19352 ac_status=$?
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; }; then
19355 ac_hi=$ac_mid
19356else
19357 echo "$as_me: failed program was:" >&5
19358sed 's/^/| /' conftest.$ac_ext >&5
19359
19360ac_lo=`expr '(' $ac_mid ')' + 1`
19361fi
ac1cb8d3 19362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19363done
19364case $ac_lo in
19365?*) ac_cv_sizeof_int=$ac_lo;;
19366'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19367See \`config.log' for more details." >&5
19368echo "$as_me: error: cannot compute sizeof (int), 77
19369See \`config.log' for more details." >&2;}
19370 { (exit 1); exit 1; }; } ;;
19371esac
19372else
19373 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
19374 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19375echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19376 { (exit 1); exit 1; }; }
19377else
19378 cat >conftest.$ac_ext <<_ACEOF
19379/* confdefs.h. */
19380_ACEOF
19381cat confdefs.h >>conftest.$ac_ext
19382cat >>conftest.$ac_ext <<_ACEOF
19383/* end confdefs.h. */
19384$ac_includes_default
19385long longval () { return (long) (sizeof (int)); }
19386unsigned long ulongval () { return (long) (sizeof (int)); }
19387#include <stdio.h>
19388#include <stdlib.h>
19389int
19390main ()
19391{
19392
19393 FILE *f = fopen ("conftest.val", "w");
19394 if (! f)
19395 exit (1);
19396 if (((long) (sizeof (int))) < 0)
19397 {
19398 long i = longval ();
19399 if (i != ((long) (sizeof (int))))
19400 exit (1);
19401 fprintf (f, "%ld\n", i);
19402 }
19403 else
19404 {
19405 unsigned long i = ulongval ();
19406 if (i != ((long) (sizeof (int))))
19407 exit (1);
19408 fprintf (f, "%lu\n", i);
19409 }
19410 exit (ferror (f) || fclose (f) != 0);
19411
19412 ;
19413 return 0;
19414}
19415_ACEOF
19416rm -f conftest$ac_exeext
19417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19418 (eval $ac_link) 2>&5
19419 ac_status=$?
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19423 (eval $ac_try) 2>&5
19424 ac_status=$?
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); }; }; then
19427 ac_cv_sizeof_int=`cat conftest.val`
19428else
19429 echo "$as_me: program exited with status $ac_status" >&5
19430echo "$as_me: failed program was:" >&5
19431sed 's/^/| /' conftest.$ac_ext >&5
19432
19433( exit $ac_status )
19434{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19435See \`config.log' for more details." >&5
19436echo "$as_me: error: cannot compute sizeof (int), 77
19437See \`config.log' for more details." >&2;}
19438 { (exit 1); exit 1; }; }
19439fi
ac1cb8d3 19440rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19441fi
19442fi
19443rm -f conftest.val
19444else
19445 ac_cv_sizeof_int=0
19446fi
19447fi
19448echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19449echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19450cat >>confdefs.h <<_ACEOF
19451#define SIZEOF_INT $ac_cv_sizeof_int
19452_ACEOF
19453
19454
19455echo "$as_me:$LINENO: checking for long" >&5
19456echo $ECHO_N "checking for long... $ECHO_C" >&6
19457if test "${ac_cv_type_long+set}" = set; then
19458 echo $ECHO_N "(cached) $ECHO_C" >&6
19459else
19460 cat >conftest.$ac_ext <<_ACEOF
19461/* confdefs.h. */
19462_ACEOF
19463cat confdefs.h >>conftest.$ac_ext
19464cat >>conftest.$ac_ext <<_ACEOF
19465/* end confdefs.h. */
19466$ac_includes_default
19467int
19468main ()
19469{
19470if ((long *) 0)
19471 return 0;
19472if (sizeof (long))
19473 return 0;
19474 ;
19475 return 0;
19476}
19477_ACEOF
19478rm -f conftest.$ac_objext
19479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19480 (eval $ac_compile) 2>conftest.er1
a848cd7e 19481 ac_status=$?
ac1cb8d3
VS
19482 grep -v '^ *+' conftest.er1 >conftest.err
19483 rm -f conftest.er1
19484 cat conftest.err >&5
a848cd7e
SC
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); } &&
ca5c6ac3 19487 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489 (eval $ac_try) 2>&5
19490 ac_status=$?
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; } &&
19493 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19495 (eval $ac_try) 2>&5
19496 ac_status=$?
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); }; }; then
19499 ac_cv_type_long=yes
19500else
19501 echo "$as_me: failed program was:" >&5
19502sed 's/^/| /' conftest.$ac_ext >&5
19503
19504ac_cv_type_long=no
19505fi
ac1cb8d3 19506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19507fi
19508echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19509echo "${ECHO_T}$ac_cv_type_long" >&6
19510
19511echo "$as_me:$LINENO: checking size of long" >&5
19512echo $ECHO_N "checking size of long... $ECHO_C" >&6
19513if test "${ac_cv_sizeof_long+set}" = set; then
19514 echo $ECHO_N "(cached) $ECHO_C" >&6
19515else
19516 if test "$ac_cv_type_long" = yes; then
19517 # The cast to unsigned long works around a bug in the HP C Compiler
19518 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19519 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19520 # This bug is HP SR number 8606223364.
19521 if test "$cross_compiling" = yes; then
19522 # Depending upon the size, compute the lo and hi bounds.
19523cat >conftest.$ac_ext <<_ACEOF
19524/* confdefs.h. */
19525_ACEOF
19526cat confdefs.h >>conftest.$ac_ext
19527cat >>conftest.$ac_ext <<_ACEOF
19528/* end confdefs.h. */
19529$ac_includes_default
19530int
19531main ()
19532{
19533static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19534test_array [0] = 0
19535
19536 ;
19537 return 0;
19538}
19539_ACEOF
19540rm -f conftest.$ac_objext
19541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19542 (eval $ac_compile) 2>conftest.er1
a848cd7e 19543 ac_status=$?
ac1cb8d3
VS
19544 grep -v '^ *+' conftest.er1 >conftest.err
19545 rm -f conftest.er1
19546 cat conftest.err >&5
a848cd7e
SC
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); } &&
ca5c6ac3 19549 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19551 (eval $ac_try) 2>&5
19552 ac_status=$?
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; } &&
19555 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557 (eval $ac_try) 2>&5
19558 ac_status=$?
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; }; then
19561 ac_lo=0 ac_mid=0
19562 while :; do
19563 cat >conftest.$ac_ext <<_ACEOF
19564/* confdefs.h. */
19565_ACEOF
19566cat confdefs.h >>conftest.$ac_ext
19567cat >>conftest.$ac_ext <<_ACEOF
19568/* end confdefs.h. */
19569$ac_includes_default
19570int
19571main ()
19572{
19573static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19574test_array [0] = 0
19575
19576 ;
19577 return 0;
19578}
19579_ACEOF
19580rm -f conftest.$ac_objext
19581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19582 (eval $ac_compile) 2>conftest.er1
a848cd7e 19583 ac_status=$?
ac1cb8d3
VS
19584 grep -v '^ *+' conftest.er1 >conftest.err
19585 rm -f conftest.er1
19586 cat conftest.err >&5
a848cd7e
SC
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); } &&
ca5c6ac3 19589 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591 (eval $ac_try) 2>&5
19592 ac_status=$?
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; } &&
19595 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19597 (eval $ac_try) 2>&5
19598 ac_status=$?
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); }; }; then
19601 ac_hi=$ac_mid; break
19602else
19603 echo "$as_me: failed program was:" >&5
19604sed 's/^/| /' conftest.$ac_ext >&5
19605
19606ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19607 if test $ac_lo -le $ac_mid; then
19608 ac_lo= ac_hi=
19609 break
19610 fi
19611 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19612fi
ac1cb8d3 19613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19614 done
19615else
19616 echo "$as_me: failed program was:" >&5
19617sed 's/^/| /' conftest.$ac_ext >&5
19618
19619cat >conftest.$ac_ext <<_ACEOF
19620/* confdefs.h. */
19621_ACEOF
19622cat confdefs.h >>conftest.$ac_ext
19623cat >>conftest.$ac_ext <<_ACEOF
19624/* end confdefs.h. */
19625$ac_includes_default
19626int
19627main ()
19628{
19629static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19630test_array [0] = 0
19631
19632 ;
19633 return 0;
19634}
19635_ACEOF
19636rm -f conftest.$ac_objext
19637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19638 (eval $ac_compile) 2>conftest.er1
a848cd7e 19639 ac_status=$?
ac1cb8d3
VS
19640 grep -v '^ *+' conftest.er1 >conftest.err
19641 rm -f conftest.er1
19642 cat conftest.err >&5
a848cd7e
SC
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); } &&
ca5c6ac3 19645 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19648 ac_status=$?
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; } &&
19651 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653 (eval $ac_try) 2>&5
19654 ac_status=$?
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); }; }; then
19657 ac_hi=-1 ac_mid=-1
19658 while :; do
19659 cat >conftest.$ac_ext <<_ACEOF
19660/* confdefs.h. */
19661_ACEOF
19662cat confdefs.h >>conftest.$ac_ext
19663cat >>conftest.$ac_ext <<_ACEOF
19664/* end confdefs.h. */
19665$ac_includes_default
19666int
19667main ()
19668{
19669static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19670test_array [0] = 0
19671
19672 ;
19673 return 0;
19674}
19675_ACEOF
19676rm -f conftest.$ac_objext
19677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19678 (eval $ac_compile) 2>conftest.er1
a848cd7e 19679 ac_status=$?
ac1cb8d3
VS
19680 grep -v '^ *+' conftest.er1 >conftest.err
19681 rm -f conftest.er1
19682 cat conftest.err >&5
a848cd7e
SC
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } &&
ca5c6ac3 19685 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19687 (eval $ac_try) 2>&5
19688 ac_status=$?
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); }; } &&
19691 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19693 (eval $ac_try) 2>&5
19694 ac_status=$?
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; }; then
19697 ac_lo=$ac_mid; break
19698else
19699 echo "$as_me: failed program was:" >&5
19700sed 's/^/| /' conftest.$ac_ext >&5
19701
19702ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19703 if test $ac_mid -le $ac_hi; then
19704 ac_lo= ac_hi=
19705 break
19706 fi
19707 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19708fi
ac1cb8d3 19709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19710 done
19711else
19712 echo "$as_me: failed program was:" >&5
19713sed 's/^/| /' conftest.$ac_ext >&5
19714
19715ac_lo= ac_hi=
19716fi
ac1cb8d3 19717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19718fi
ac1cb8d3 19719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19720# Binary search between lo and hi bounds.
19721while test "x$ac_lo" != "x$ac_hi"; do
19722 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19723 cat >conftest.$ac_ext <<_ACEOF
19724/* confdefs.h. */
19725_ACEOF
19726cat confdefs.h >>conftest.$ac_ext
19727cat >>conftest.$ac_ext <<_ACEOF
19728/* end confdefs.h. */
19729$ac_includes_default
19730int
19731main ()
19732{
19733static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19734test_array [0] = 0
19735
19736 ;
19737 return 0;
19738}
19739_ACEOF
19740rm -f conftest.$ac_objext
19741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19742 (eval $ac_compile) 2>conftest.er1
a848cd7e 19743 ac_status=$?
ac1cb8d3
VS
19744 grep -v '^ *+' conftest.er1 >conftest.err
19745 rm -f conftest.er1
19746 cat conftest.err >&5
a848cd7e
SC
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); } &&
ca5c6ac3 19749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751 (eval $ac_try) 2>&5
19752 ac_status=$?
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; } &&
19755 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19757 (eval $ac_try) 2>&5
19758 ac_status=$?
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); }; }; then
19761 ac_hi=$ac_mid
19762else
19763 echo "$as_me: failed program was:" >&5
19764sed 's/^/| /' conftest.$ac_ext >&5
19765
19766ac_lo=`expr '(' $ac_mid ')' + 1`
19767fi
ac1cb8d3 19768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19769done
19770case $ac_lo in
19771?*) ac_cv_sizeof_long=$ac_lo;;
19772'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19773See \`config.log' for more details." >&5
19774echo "$as_me: error: cannot compute sizeof (long), 77
19775See \`config.log' for more details." >&2;}
19776 { (exit 1); exit 1; }; } ;;
19777esac
19778else
19779 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
19780 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19781echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19782 { (exit 1); exit 1; }; }
19783else
19784 cat >conftest.$ac_ext <<_ACEOF
19785/* confdefs.h. */
19786_ACEOF
19787cat confdefs.h >>conftest.$ac_ext
19788cat >>conftest.$ac_ext <<_ACEOF
19789/* end confdefs.h. */
19790$ac_includes_default
19791long longval () { return (long) (sizeof (long)); }
19792unsigned long ulongval () { return (long) (sizeof (long)); }
19793#include <stdio.h>
19794#include <stdlib.h>
19795int
19796main ()
19797{
19798
19799 FILE *f = fopen ("conftest.val", "w");
19800 if (! f)
19801 exit (1);
19802 if (((long) (sizeof (long))) < 0)
19803 {
19804 long i = longval ();
19805 if (i != ((long) (sizeof (long))))
19806 exit (1);
19807 fprintf (f, "%ld\n", i);
19808 }
19809 else
19810 {
19811 unsigned long i = ulongval ();
19812 if (i != ((long) (sizeof (long))))
19813 exit (1);
19814 fprintf (f, "%lu\n", i);
19815 }
19816 exit (ferror (f) || fclose (f) != 0);
19817
19818 ;
19819 return 0;
19820}
19821_ACEOF
19822rm -f conftest$ac_exeext
19823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19824 (eval $ac_link) 2>&5
19825 ac_status=$?
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19829 (eval $ac_try) 2>&5
19830 ac_status=$?
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); }; }; then
19833 ac_cv_sizeof_long=`cat conftest.val`
19834else
19835 echo "$as_me: program exited with status $ac_status" >&5
19836echo "$as_me: failed program was:" >&5
19837sed 's/^/| /' conftest.$ac_ext >&5
19838
19839( exit $ac_status )
19840{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19841See \`config.log' for more details." >&5
19842echo "$as_me: error: cannot compute sizeof (long), 77
19843See \`config.log' for more details." >&2;}
19844 { (exit 1); exit 1; }; }
19845fi
ac1cb8d3 19846rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19847fi
19848fi
19849rm -f conftest.val
19850else
19851 ac_cv_sizeof_long=0
19852fi
19853fi
19854echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19855echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19856cat >>confdefs.h <<_ACEOF
19857#define SIZEOF_LONG $ac_cv_sizeof_long
19858_ACEOF
19859
19860
19861echo "$as_me:$LINENO: checking for size_t" >&5
19862echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19863if test "${ac_cv_type_size_t+set}" = set; then
19864 echo $ECHO_N "(cached) $ECHO_C" >&6
19865else
19866 cat >conftest.$ac_ext <<_ACEOF
19867/* confdefs.h. */
19868_ACEOF
19869cat confdefs.h >>conftest.$ac_ext
19870cat >>conftest.$ac_ext <<_ACEOF
19871/* end confdefs.h. */
19872$ac_includes_default
19873int
19874main ()
19875{
19876if ((size_t *) 0)
19877 return 0;
19878if (sizeof (size_t))
19879 return 0;
19880 ;
19881 return 0;
19882}
19883_ACEOF
19884rm -f conftest.$ac_objext
19885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19886 (eval $ac_compile) 2>conftest.er1
a848cd7e 19887 ac_status=$?
ac1cb8d3
VS
19888 grep -v '^ *+' conftest.er1 >conftest.err
19889 rm -f conftest.er1
19890 cat conftest.err >&5
a848cd7e
SC
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); } &&
ca5c6ac3 19893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19895 (eval $ac_try) 2>&5
19896 ac_status=$?
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); }; } &&
19899 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19901 (eval $ac_try) 2>&5
19902 ac_status=$?
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); }; }; then
19905 ac_cv_type_size_t=yes
19906else
19907 echo "$as_me: failed program was:" >&5
19908sed 's/^/| /' conftest.$ac_ext >&5
19909
19910ac_cv_type_size_t=no
19911fi
ac1cb8d3 19912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19913fi
19914echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19915echo "${ECHO_T}$ac_cv_type_size_t" >&6
19916
19917echo "$as_me:$LINENO: checking size of size_t" >&5
19918echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19919if test "${ac_cv_sizeof_size_t+set}" = set; then
19920 echo $ECHO_N "(cached) $ECHO_C" >&6
19921else
19922 if test "$ac_cv_type_size_t" = yes; then
19923 # The cast to unsigned long works around a bug in the HP C Compiler
19924 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19925 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19926 # This bug is HP SR number 8606223364.
19927 if test "$cross_compiling" = yes; then
19928 # Depending upon the size, compute the lo and hi bounds.
19929cat >conftest.$ac_ext <<_ACEOF
19930/* confdefs.h. */
19931_ACEOF
19932cat confdefs.h >>conftest.$ac_ext
19933cat >>conftest.$ac_ext <<_ACEOF
19934/* end confdefs.h. */
19935$ac_includes_default
19936int
19937main ()
19938{
19939static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19940test_array [0] = 0
19941
19942 ;
19943 return 0;
19944}
19945_ACEOF
19946rm -f conftest.$ac_objext
19947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19948 (eval $ac_compile) 2>conftest.er1
a848cd7e 19949 ac_status=$?
ac1cb8d3
VS
19950 grep -v '^ *+' conftest.er1 >conftest.err
19951 rm -f conftest.er1
19952 cat conftest.err >&5
a848cd7e
SC
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } &&
ca5c6ac3 19955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19957 (eval $ac_try) 2>&5
19958 ac_status=$?
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); }; } &&
19961 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963 (eval $ac_try) 2>&5
19964 ac_status=$?
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; }; then
19967 ac_lo=0 ac_mid=0
19968 while :; do
19969 cat >conftest.$ac_ext <<_ACEOF
19970/* confdefs.h. */
19971_ACEOF
19972cat confdefs.h >>conftest.$ac_ext
19973cat >>conftest.$ac_ext <<_ACEOF
19974/* end confdefs.h. */
19975$ac_includes_default
19976int
19977main ()
19978{
19979static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19980test_array [0] = 0
19981
19982 ;
19983 return 0;
19984}
19985_ACEOF
19986rm -f conftest.$ac_objext
19987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19988 (eval $ac_compile) 2>conftest.er1
a848cd7e 19989 ac_status=$?
ac1cb8d3
VS
19990 grep -v '^ *+' conftest.er1 >conftest.err
19991 rm -f conftest.er1
19992 cat conftest.err >&5
a848cd7e
SC
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } &&
ca5c6ac3 19995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997 (eval $ac_try) 2>&5
19998 ac_status=$?
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; } &&
20001 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20004 ac_status=$?
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; }; then
20007 ac_hi=$ac_mid; break
20008else
20009 echo "$as_me: failed program was:" >&5
20010sed 's/^/| /' conftest.$ac_ext >&5
20011
20012ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20013 if test $ac_lo -le $ac_mid; then
20014 ac_lo= ac_hi=
20015 break
20016 fi
20017 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20018fi
ac1cb8d3 20019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20020 done
20021else
20022 echo "$as_me: failed program was:" >&5
20023sed 's/^/| /' conftest.$ac_ext >&5
20024
20025cat >conftest.$ac_ext <<_ACEOF
20026/* confdefs.h. */
20027_ACEOF
20028cat confdefs.h >>conftest.$ac_ext
20029cat >>conftest.$ac_ext <<_ACEOF
20030/* end confdefs.h. */
20031$ac_includes_default
20032int
20033main ()
20034{
20035static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
20036test_array [0] = 0
20037
20038 ;
20039 return 0;
20040}
20041_ACEOF
20042rm -f conftest.$ac_objext
20043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20044 (eval $ac_compile) 2>conftest.er1
a848cd7e 20045 ac_status=$?
ac1cb8d3
VS
20046 grep -v '^ *+' conftest.er1 >conftest.err
20047 rm -f conftest.er1
20048 cat conftest.err >&5
a848cd7e
SC
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); } &&
ca5c6ac3 20051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20053 (eval $ac_try) 2>&5
20054 ac_status=$?
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; } &&
20057 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20059 (eval $ac_try) 2>&5
20060 ac_status=$?
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); }; }; then
20063 ac_hi=-1 ac_mid=-1
20064 while :; do
20065 cat >conftest.$ac_ext <<_ACEOF
20066/* confdefs.h. */
20067_ACEOF
20068cat confdefs.h >>conftest.$ac_ext
20069cat >>conftest.$ac_ext <<_ACEOF
20070/* end confdefs.h. */
20071$ac_includes_default
20072int
20073main ()
20074{
20075static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20076test_array [0] = 0
20077
20078 ;
20079 return 0;
20080}
20081_ACEOF
20082rm -f conftest.$ac_objext
20083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20084 (eval $ac_compile) 2>conftest.er1
a848cd7e 20085 ac_status=$?
ac1cb8d3
VS
20086 grep -v '^ *+' conftest.er1 >conftest.err
20087 rm -f conftest.er1
20088 cat conftest.err >&5
a848cd7e
SC
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); } &&
ca5c6ac3 20091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20093 (eval $ac_try) 2>&5
20094 ac_status=$?
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); }; } &&
20097 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20099 (eval $ac_try) 2>&5
20100 ac_status=$?
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); }; }; then
20103 ac_lo=$ac_mid; break
20104else
20105 echo "$as_me: failed program was:" >&5
20106sed 's/^/| /' conftest.$ac_ext >&5
20107
20108ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20109 if test $ac_mid -le $ac_hi; then
20110 ac_lo= ac_hi=
20111 break
20112 fi
20113 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20114fi
ac1cb8d3 20115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20116 done
20117else
20118 echo "$as_me: failed program was:" >&5
20119sed 's/^/| /' conftest.$ac_ext >&5
20120
20121ac_lo= ac_hi=
20122fi
ac1cb8d3 20123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20124fi
ac1cb8d3 20125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20126# Binary search between lo and hi bounds.
20127while test "x$ac_lo" != "x$ac_hi"; do
20128 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20129 cat >conftest.$ac_ext <<_ACEOF
20130/* confdefs.h. */
20131_ACEOF
20132cat confdefs.h >>conftest.$ac_ext
20133cat >>conftest.$ac_ext <<_ACEOF
20134/* end confdefs.h. */
20135$ac_includes_default
20136int
20137main ()
20138{
20139static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20140test_array [0] = 0
20141
20142 ;
20143 return 0;
20144}
20145_ACEOF
20146rm -f conftest.$ac_objext
20147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20148 (eval $ac_compile) 2>conftest.er1
a848cd7e 20149 ac_status=$?
ac1cb8d3
VS
20150 grep -v '^ *+' conftest.er1 >conftest.err
20151 rm -f conftest.er1
20152 cat conftest.err >&5
a848cd7e
SC
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); } &&
ca5c6ac3 20155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157 (eval $ac_try) 2>&5
20158 ac_status=$?
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; } &&
20161 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20163 (eval $ac_try) 2>&5
20164 ac_status=$?
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); }; }; then
20167 ac_hi=$ac_mid
20168else
20169 echo "$as_me: failed program was:" >&5
20170sed 's/^/| /' conftest.$ac_ext >&5
20171
20172ac_lo=`expr '(' $ac_mid ')' + 1`
20173fi
ac1cb8d3 20174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20175done
20176case $ac_lo in
20177?*) ac_cv_sizeof_size_t=$ac_lo;;
20178'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20179See \`config.log' for more details." >&5
20180echo "$as_me: error: cannot compute sizeof (size_t), 77
20181See \`config.log' for more details." >&2;}
20182 { (exit 1); exit 1; }; } ;;
20183esac
20184else
20185 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
20186 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20187echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20188 { (exit 1); exit 1; }; }
20189else
20190 cat >conftest.$ac_ext <<_ACEOF
20191/* confdefs.h. */
20192_ACEOF
20193cat confdefs.h >>conftest.$ac_ext
20194cat >>conftest.$ac_ext <<_ACEOF
20195/* end confdefs.h. */
20196$ac_includes_default
20197long longval () { return (long) (sizeof (size_t)); }
20198unsigned long ulongval () { return (long) (sizeof (size_t)); }
20199#include <stdio.h>
20200#include <stdlib.h>
20201int
20202main ()
20203{
20204
20205 FILE *f = fopen ("conftest.val", "w");
20206 if (! f)
20207 exit (1);
20208 if (((long) (sizeof (size_t))) < 0)
20209 {
20210 long i = longval ();
20211 if (i != ((long) (sizeof (size_t))))
20212 exit (1);
20213 fprintf (f, "%ld\n", i);
20214 }
20215 else
20216 {
20217 unsigned long i = ulongval ();
20218 if (i != ((long) (sizeof (size_t))))
20219 exit (1);
20220 fprintf (f, "%lu\n", i);
20221 }
20222 exit (ferror (f) || fclose (f) != 0);
20223
20224 ;
20225 return 0;
20226}
20227_ACEOF
20228rm -f conftest$ac_exeext
20229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20230 (eval $ac_link) 2>&5
20231 ac_status=$?
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20235 (eval $ac_try) 2>&5
20236 ac_status=$?
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); }; }; then
20239 ac_cv_sizeof_size_t=`cat conftest.val`
20240else
20241 echo "$as_me: program exited with status $ac_status" >&5
20242echo "$as_me: failed program was:" >&5
20243sed 's/^/| /' conftest.$ac_ext >&5
20244
20245( exit $ac_status )
20246{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20247See \`config.log' for more details." >&5
20248echo "$as_me: error: cannot compute sizeof (size_t), 77
20249See \`config.log' for more details." >&2;}
20250 { (exit 1); exit 1; }; }
20251fi
ac1cb8d3 20252rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20253fi
20254fi
20255rm -f conftest.val
20256else
20257 ac_cv_sizeof_size_t=0
20258fi
20259fi
20260echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20261echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20262cat >>confdefs.h <<_ACEOF
20263#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20264_ACEOF
20265
20266
20267
20268case "${host}" in
20269 arm-*-linux* )
20270 echo "$as_me:$LINENO: checking for long long" >&5
20271echo $ECHO_N "checking for long long... $ECHO_C" >&6
20272if test "${ac_cv_type_long_long+set}" = set; then
20273 echo $ECHO_N "(cached) $ECHO_C" >&6
20274else
20275 cat >conftest.$ac_ext <<_ACEOF
20276/* confdefs.h. */
20277_ACEOF
20278cat confdefs.h >>conftest.$ac_ext
20279cat >>conftest.$ac_ext <<_ACEOF
20280/* end confdefs.h. */
20281$ac_includes_default
20282int
20283main ()
20284{
20285if ((long long *) 0)
20286 return 0;
20287if (sizeof (long long))
20288 return 0;
20289 ;
20290 return 0;
20291}
20292_ACEOF
20293rm -f conftest.$ac_objext
20294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20295 (eval $ac_compile) 2>conftest.er1
a848cd7e 20296 ac_status=$?
ac1cb8d3
VS
20297 grep -v '^ *+' conftest.er1 >conftest.err
20298 rm -f conftest.er1
20299 cat conftest.err >&5
a848cd7e
SC
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } &&
ca5c6ac3 20302 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304 (eval $ac_try) 2>&5
20305 ac_status=$?
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; } &&
20308 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20311 ac_status=$?
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; }; then
20314 ac_cv_type_long_long=yes
20315else
20316 echo "$as_me: failed program was:" >&5
20317sed 's/^/| /' conftest.$ac_ext >&5
20318
20319ac_cv_type_long_long=no
20320fi
ac1cb8d3 20321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20322fi
20323echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20324echo "${ECHO_T}$ac_cv_type_long_long" >&6
20325
20326echo "$as_me:$LINENO: checking size of long long" >&5
20327echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20328if test "${ac_cv_sizeof_long_long+set}" = set; then
20329 echo $ECHO_N "(cached) $ECHO_C" >&6
20330else
20331 if test "$ac_cv_type_long_long" = yes; then
20332 # The cast to unsigned long works around a bug in the HP C Compiler
20333 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20334 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20335 # This bug is HP SR number 8606223364.
20336 if test "$cross_compiling" = yes; then
20337 # Depending upon the size, compute the lo and hi bounds.
20338cat >conftest.$ac_ext <<_ACEOF
20339/* confdefs.h. */
20340_ACEOF
20341cat confdefs.h >>conftest.$ac_ext
20342cat >>conftest.$ac_ext <<_ACEOF
20343/* end confdefs.h. */
20344$ac_includes_default
20345int
20346main ()
20347{
20348static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20349test_array [0] = 0
20350
20351 ;
20352 return 0;
20353}
20354_ACEOF
20355rm -f conftest.$ac_objext
20356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20357 (eval $ac_compile) 2>conftest.er1
a848cd7e 20358 ac_status=$?
ac1cb8d3
VS
20359 grep -v '^ *+' conftest.er1 >conftest.err
20360 rm -f conftest.er1
20361 cat conftest.err >&5
a848cd7e
SC
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } &&
ca5c6ac3 20364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20366 (eval $ac_try) 2>&5
20367 ac_status=$?
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); }; } &&
20370 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20372 (eval $ac_try) 2>&5
20373 ac_status=$?
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); }; }; then
20376 ac_lo=0 ac_mid=0
20377 while :; do
20378 cat >conftest.$ac_ext <<_ACEOF
20379/* confdefs.h. */
20380_ACEOF
20381cat confdefs.h >>conftest.$ac_ext
20382cat >>conftest.$ac_ext <<_ACEOF
20383/* end confdefs.h. */
20384$ac_includes_default
20385int
20386main ()
20387{
20388static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20389test_array [0] = 0
20390
20391 ;
20392 return 0;
20393}
20394_ACEOF
20395rm -f conftest.$ac_objext
20396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20397 (eval $ac_compile) 2>conftest.er1
a848cd7e 20398 ac_status=$?
ac1cb8d3
VS
20399 grep -v '^ *+' conftest.er1 >conftest.err
20400 rm -f conftest.er1
20401 cat conftest.err >&5
a848cd7e
SC
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } &&
ca5c6ac3 20404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20407 ac_status=$?
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; } &&
20410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412 (eval $ac_try) 2>&5
20413 ac_status=$?
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; }; then
20416 ac_hi=$ac_mid; break
20417else
20418 echo "$as_me: failed program was:" >&5
20419sed 's/^/| /' conftest.$ac_ext >&5
20420
20421ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20422 if test $ac_lo -le $ac_mid; then
20423 ac_lo= ac_hi=
20424 break
20425 fi
20426 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20427fi
ac1cb8d3 20428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20429 done
20430else
20431 echo "$as_me: failed program was:" >&5
20432sed 's/^/| /' conftest.$ac_ext >&5
20433
20434cat >conftest.$ac_ext <<_ACEOF
20435/* confdefs.h. */
20436_ACEOF
20437cat confdefs.h >>conftest.$ac_ext
20438cat >>conftest.$ac_ext <<_ACEOF
20439/* end confdefs.h. */
20440$ac_includes_default
20441int
20442main ()
20443{
20444static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20445test_array [0] = 0
20446
20447 ;
20448 return 0;
20449}
20450_ACEOF
20451rm -f conftest.$ac_objext
20452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20453 (eval $ac_compile) 2>conftest.er1
a848cd7e 20454 ac_status=$?
ac1cb8d3
VS
20455 grep -v '^ *+' conftest.er1 >conftest.err
20456 rm -f conftest.er1
20457 cat conftest.err >&5
a848cd7e
SC
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); } &&
ca5c6ac3 20460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462 (eval $ac_try) 2>&5
20463 ac_status=$?
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; } &&
20466 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20468 (eval $ac_try) 2>&5
20469 ac_status=$?
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); }; }; then
20472 ac_hi=-1 ac_mid=-1
20473 while :; do
20474 cat >conftest.$ac_ext <<_ACEOF
20475/* confdefs.h. */
20476_ACEOF
20477cat confdefs.h >>conftest.$ac_ext
20478cat >>conftest.$ac_ext <<_ACEOF
20479/* end confdefs.h. */
20480$ac_includes_default
20481int
20482main ()
20483{
20484static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20485test_array [0] = 0
20486
20487 ;
20488 return 0;
20489}
20490_ACEOF
20491rm -f conftest.$ac_objext
20492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20493 (eval $ac_compile) 2>conftest.er1
a848cd7e 20494 ac_status=$?
ac1cb8d3
VS
20495 grep -v '^ *+' conftest.er1 >conftest.err
20496 rm -f conftest.er1
20497 cat conftest.err >&5
a848cd7e
SC
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); } &&
ca5c6ac3 20500 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20503 ac_status=$?
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; } &&
20506 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20508 (eval $ac_try) 2>&5
20509 ac_status=$?
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); }; }; then
20512 ac_lo=$ac_mid; break
20513else
20514 echo "$as_me: failed program was:" >&5
20515sed 's/^/| /' conftest.$ac_ext >&5
20516
20517ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20518 if test $ac_mid -le $ac_hi; then
20519 ac_lo= ac_hi=
20520 break
20521 fi
20522 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20523fi
ac1cb8d3 20524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20525 done
20526else
20527 echo "$as_me: failed program was:" >&5
20528sed 's/^/| /' conftest.$ac_ext >&5
20529
20530ac_lo= ac_hi=
20531fi
ac1cb8d3 20532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20533fi
ac1cb8d3 20534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20535# Binary search between lo and hi bounds.
20536while test "x$ac_lo" != "x$ac_hi"; do
20537 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20538 cat >conftest.$ac_ext <<_ACEOF
20539/* confdefs.h. */
20540_ACEOF
20541cat confdefs.h >>conftest.$ac_ext
20542cat >>conftest.$ac_ext <<_ACEOF
20543/* end confdefs.h. */
20544$ac_includes_default
20545int
20546main ()
20547{
20548static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20549test_array [0] = 0
20550
20551 ;
20552 return 0;
20553}
20554_ACEOF
20555rm -f conftest.$ac_objext
20556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20557 (eval $ac_compile) 2>conftest.er1
a848cd7e 20558 ac_status=$?
ac1cb8d3
VS
20559 grep -v '^ *+' conftest.er1 >conftest.err
20560 rm -f conftest.er1
20561 cat conftest.err >&5
a848cd7e
SC
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); } &&
ca5c6ac3 20564 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20566 (eval $ac_try) 2>&5
20567 ac_status=$?
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); }; } &&
20570 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20572 (eval $ac_try) 2>&5
20573 ac_status=$?
20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); }; }; then
20576 ac_hi=$ac_mid
20577else
20578 echo "$as_me: failed program was:" >&5
20579sed 's/^/| /' conftest.$ac_ext >&5
20580
20581ac_lo=`expr '(' $ac_mid ')' + 1`
20582fi
ac1cb8d3 20583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20584done
20585case $ac_lo in
20586?*) ac_cv_sizeof_long_long=$ac_lo;;
20587'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20588See \`config.log' for more details." >&5
20589echo "$as_me: error: cannot compute sizeof (long long), 77
20590See \`config.log' for more details." >&2;}
20591 { (exit 1); exit 1; }; } ;;
20592esac
20593else
20594 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
20595 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20596echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20597 { (exit 1); exit 1; }; }
20598else
20599 cat >conftest.$ac_ext <<_ACEOF
20600/* confdefs.h. */
20601_ACEOF
20602cat confdefs.h >>conftest.$ac_ext
20603cat >>conftest.$ac_ext <<_ACEOF
20604/* end confdefs.h. */
20605$ac_includes_default
20606long longval () { return (long) (sizeof (long long)); }
20607unsigned long ulongval () { return (long) (sizeof (long long)); }
20608#include <stdio.h>
20609#include <stdlib.h>
20610int
20611main ()
20612{
20613
20614 FILE *f = fopen ("conftest.val", "w");
20615 if (! f)
20616 exit (1);
20617 if (((long) (sizeof (long long))) < 0)
20618 {
20619 long i = longval ();
20620 if (i != ((long) (sizeof (long long))))
20621 exit (1);
20622 fprintf (f, "%ld\n", i);
20623 }
20624 else
20625 {
20626 unsigned long i = ulongval ();
20627 if (i != ((long) (sizeof (long long))))
20628 exit (1);
20629 fprintf (f, "%lu\n", i);
20630 }
20631 exit (ferror (f) || fclose (f) != 0);
20632
20633 ;
20634 return 0;
20635}
20636_ACEOF
20637rm -f conftest$ac_exeext
20638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20639 (eval $ac_link) 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20644 (eval $ac_try) 2>&5
20645 ac_status=$?
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; }; then
20648 ac_cv_sizeof_long_long=`cat conftest.val`
20649else
20650 echo "$as_me: program exited with status $ac_status" >&5
20651echo "$as_me: failed program was:" >&5
20652sed 's/^/| /' conftest.$ac_ext >&5
20653
20654( exit $ac_status )
20655{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20656See \`config.log' for more details." >&5
20657echo "$as_me: error: cannot compute sizeof (long long), 77
20658See \`config.log' for more details." >&2;}
20659 { (exit 1); exit 1; }; }
20660fi
ac1cb8d3 20661rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20662fi
20663fi
20664rm -f conftest.val
20665else
20666 ac_cv_sizeof_long_long=0
20667fi
20668fi
20669echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20670echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20671cat >>confdefs.h <<_ACEOF
20672#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20673_ACEOF
20674
20675
20676 ;;
20677 *-hp-hpux* )
20678 echo "$as_me:$LINENO: checking for long long" >&5
20679echo $ECHO_N "checking for long long... $ECHO_C" >&6
20680if test "${ac_cv_type_long_long+set}" = set; then
20681 echo $ECHO_N "(cached) $ECHO_C" >&6
20682else
20683 cat >conftest.$ac_ext <<_ACEOF
20684/* confdefs.h. */
20685_ACEOF
20686cat confdefs.h >>conftest.$ac_ext
20687cat >>conftest.$ac_ext <<_ACEOF
20688/* end confdefs.h. */
20689$ac_includes_default
20690int
20691main ()
20692{
20693if ((long long *) 0)
20694 return 0;
20695if (sizeof (long long))
20696 return 0;
20697 ;
20698 return 0;
20699}
20700_ACEOF
20701rm -f conftest.$ac_objext
20702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20703 (eval $ac_compile) 2>conftest.er1
a848cd7e 20704 ac_status=$?
ac1cb8d3
VS
20705 grep -v '^ *+' conftest.er1 >conftest.err
20706 rm -f conftest.er1
20707 cat conftest.err >&5
a848cd7e
SC
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); } &&
ca5c6ac3 20710 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20712 (eval $ac_try) 2>&5
20713 ac_status=$?
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); }; } &&
20716 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718 (eval $ac_try) 2>&5
20719 ac_status=$?
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; }; then
20722 ac_cv_type_long_long=yes
20723else
20724 echo "$as_me: failed program was:" >&5
20725sed 's/^/| /' conftest.$ac_ext >&5
20726
20727ac_cv_type_long_long=no
20728fi
ac1cb8d3 20729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20730fi
20731echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20732echo "${ECHO_T}$ac_cv_type_long_long" >&6
20733
20734echo "$as_me:$LINENO: checking size of long long" >&5
20735echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20736if test "${ac_cv_sizeof_long_long+set}" = set; then
20737 echo $ECHO_N "(cached) $ECHO_C" >&6
20738else
20739 if test "$ac_cv_type_long_long" = yes; then
20740 # The cast to unsigned long works around a bug in the HP C Compiler
20741 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20742 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20743 # This bug is HP SR number 8606223364.
20744 if test "$cross_compiling" = yes; then
20745 # Depending upon the size, compute the lo and hi bounds.
20746cat >conftest.$ac_ext <<_ACEOF
20747/* confdefs.h. */
20748_ACEOF
20749cat confdefs.h >>conftest.$ac_ext
20750cat >>conftest.$ac_ext <<_ACEOF
20751/* end confdefs.h. */
20752$ac_includes_default
20753int
20754main ()
20755{
20756static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20757test_array [0] = 0
20758
20759 ;
20760 return 0;
20761}
20762_ACEOF
20763rm -f conftest.$ac_objext
20764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20765 (eval $ac_compile) 2>conftest.er1
a848cd7e 20766 ac_status=$?
ac1cb8d3
VS
20767 grep -v '^ *+' conftest.er1 >conftest.err
20768 rm -f conftest.er1
20769 cat conftest.err >&5
a848cd7e
SC
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); } &&
ca5c6ac3 20772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774 (eval $ac_try) 2>&5
20775 ac_status=$?
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); }; } &&
20778 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20780 (eval $ac_try) 2>&5
20781 ac_status=$?
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; }; then
20784 ac_lo=0 ac_mid=0
20785 while :; do
20786 cat >conftest.$ac_ext <<_ACEOF
20787/* confdefs.h. */
20788_ACEOF
20789cat confdefs.h >>conftest.$ac_ext
20790cat >>conftest.$ac_ext <<_ACEOF
20791/* end confdefs.h. */
20792$ac_includes_default
20793int
20794main ()
20795{
20796static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20797test_array [0] = 0
20798
20799 ;
20800 return 0;
20801}
20802_ACEOF
20803rm -f conftest.$ac_objext
20804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20805 (eval $ac_compile) 2>conftest.er1
a848cd7e 20806 ac_status=$?
ac1cb8d3
VS
20807 grep -v '^ *+' conftest.er1 >conftest.err
20808 rm -f conftest.er1
20809 cat conftest.err >&5
a848cd7e
SC
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } &&
ca5c6ac3 20812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20814 (eval $ac_try) 2>&5
20815 ac_status=$?
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; } &&
20818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820 (eval $ac_try) 2>&5
20821 ac_status=$?
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; }; then
20824 ac_hi=$ac_mid; break
20825else
20826 echo "$as_me: failed program was:" >&5
20827sed 's/^/| /' conftest.$ac_ext >&5
20828
20829ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20830 if test $ac_lo -le $ac_mid; then
20831 ac_lo= ac_hi=
20832 break
20833 fi
20834 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20835fi
ac1cb8d3 20836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20837 done
20838else
20839 echo "$as_me: failed program was:" >&5
20840sed 's/^/| /' conftest.$ac_ext >&5
20841
20842cat >conftest.$ac_ext <<_ACEOF
20843/* confdefs.h. */
20844_ACEOF
20845cat confdefs.h >>conftest.$ac_ext
20846cat >>conftest.$ac_ext <<_ACEOF
20847/* end confdefs.h. */
20848$ac_includes_default
20849int
20850main ()
20851{
20852static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20853test_array [0] = 0
20854
20855 ;
20856 return 0;
20857}
20858_ACEOF
20859rm -f conftest.$ac_objext
20860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20861 (eval $ac_compile) 2>conftest.er1
a848cd7e 20862 ac_status=$?
ac1cb8d3
VS
20863 grep -v '^ *+' conftest.er1 >conftest.err
20864 rm -f conftest.er1
20865 cat conftest.err >&5
a848cd7e
SC
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); } &&
ca5c6ac3 20868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20870 (eval $ac_try) 2>&5
20871 ac_status=$?
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); }; } &&
20874 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876 (eval $ac_try) 2>&5
20877 ac_status=$?
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); }; }; then
20880 ac_hi=-1 ac_mid=-1
20881 while :; do
20882 cat >conftest.$ac_ext <<_ACEOF
20883/* confdefs.h. */
20884_ACEOF
20885cat confdefs.h >>conftest.$ac_ext
20886cat >>conftest.$ac_ext <<_ACEOF
20887/* end confdefs.h. */
20888$ac_includes_default
20889int
20890main ()
20891{
20892static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20893test_array [0] = 0
20894
20895 ;
20896 return 0;
20897}
20898_ACEOF
20899rm -f conftest.$ac_objext
20900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20901 (eval $ac_compile) 2>conftest.er1
a848cd7e 20902 ac_status=$?
ac1cb8d3
VS
20903 grep -v '^ *+' conftest.er1 >conftest.err
20904 rm -f conftest.er1
20905 cat conftest.err >&5
a848cd7e
SC
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } &&
ca5c6ac3 20908 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910 (eval $ac_try) 2>&5
20911 ac_status=$?
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); }; } &&
20914 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20916 (eval $ac_try) 2>&5
20917 ac_status=$?
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); }; }; then
20920 ac_lo=$ac_mid; break
20921else
20922 echo "$as_me: failed program was:" >&5
20923sed 's/^/| /' conftest.$ac_ext >&5
20924
20925ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20926 if test $ac_mid -le $ac_hi; then
20927 ac_lo= ac_hi=
20928 break
20929 fi
20930 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20931fi
ac1cb8d3 20932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20933 done
20934else
20935 echo "$as_me: failed program was:" >&5
20936sed 's/^/| /' conftest.$ac_ext >&5
20937
20938ac_lo= ac_hi=
20939fi
ac1cb8d3 20940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20941fi
ac1cb8d3 20942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20943# Binary search between lo and hi bounds.
20944while test "x$ac_lo" != "x$ac_hi"; do
20945 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20946 cat >conftest.$ac_ext <<_ACEOF
20947/* confdefs.h. */
20948_ACEOF
20949cat confdefs.h >>conftest.$ac_ext
20950cat >>conftest.$ac_ext <<_ACEOF
20951/* end confdefs.h. */
20952$ac_includes_default
20953int
20954main ()
20955{
20956static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20957test_array [0] = 0
20958
20959 ;
20960 return 0;
20961}
20962_ACEOF
20963rm -f conftest.$ac_objext
20964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20965 (eval $ac_compile) 2>conftest.er1
a848cd7e 20966 ac_status=$?
ac1cb8d3
VS
20967 grep -v '^ *+' conftest.er1 >conftest.err
20968 rm -f conftest.er1
20969 cat conftest.err >&5
a848cd7e
SC
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); } &&
ca5c6ac3 20972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20974 (eval $ac_try) 2>&5
20975 ac_status=$?
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); }; } &&
20978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980 (eval $ac_try) 2>&5
20981 ac_status=$?
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; }; then
20984 ac_hi=$ac_mid
20985else
20986 echo "$as_me: failed program was:" >&5
20987sed 's/^/| /' conftest.$ac_ext >&5
20988
20989ac_lo=`expr '(' $ac_mid ')' + 1`
20990fi
ac1cb8d3 20991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20992done
20993case $ac_lo in
20994?*) ac_cv_sizeof_long_long=$ac_lo;;
20995'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20996See \`config.log' for more details." >&5
20997echo "$as_me: error: cannot compute sizeof (long long), 77
20998See \`config.log' for more details." >&2;}
20999 { (exit 1); exit 1; }; } ;;
21000esac
21001else
21002 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
21003 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21004echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21005 { (exit 1); exit 1; }; }
21006else
21007 cat >conftest.$ac_ext <<_ACEOF
21008/* confdefs.h. */
21009_ACEOF
21010cat confdefs.h >>conftest.$ac_ext
21011cat >>conftest.$ac_ext <<_ACEOF
21012/* end confdefs.h. */
21013$ac_includes_default
21014long longval () { return (long) (sizeof (long long)); }
21015unsigned long ulongval () { return (long) (sizeof (long long)); }
21016#include <stdio.h>
21017#include <stdlib.h>
21018int
21019main ()
21020{
21021
21022 FILE *f = fopen ("conftest.val", "w");
21023 if (! f)
21024 exit (1);
21025 if (((long) (sizeof (long long))) < 0)
21026 {
21027 long i = longval ();
21028 if (i != ((long) (sizeof (long long))))
21029 exit (1);
21030 fprintf (f, "%ld\n", i);
21031 }
21032 else
21033 {
21034 unsigned long i = ulongval ();
21035 if (i != ((long) (sizeof (long long))))
21036 exit (1);
21037 fprintf (f, "%lu\n", i);
21038 }
21039 exit (ferror (f) || fclose (f) != 0);
21040
21041 ;
21042 return 0;
21043}
21044_ACEOF
21045rm -f conftest$ac_exeext
21046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21047 (eval $ac_link) 2>&5
21048 ac_status=$?
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21052 (eval $ac_try) 2>&5
21053 ac_status=$?
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); }; }; then
21056 ac_cv_sizeof_long_long=`cat conftest.val`
21057else
21058 echo "$as_me: program exited with status $ac_status" >&5
21059echo "$as_me: failed program was:" >&5
21060sed 's/^/| /' conftest.$ac_ext >&5
21061
21062( exit $ac_status )
21063{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21064See \`config.log' for more details." >&5
21065echo "$as_me: error: cannot compute sizeof (long long), 77
21066See \`config.log' for more details." >&2;}
21067 { (exit 1); exit 1; }; }
21068fi
ac1cb8d3 21069rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21070fi
21071fi
21072rm -f conftest.val
21073else
21074 ac_cv_sizeof_long_long=0
21075fi
21076fi
21077echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21078echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21079cat >>confdefs.h <<_ACEOF
21080#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21081_ACEOF
21082
21083
21084 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 21085 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
21086 fi
21087 ;;
21088 * )
21089 echo "$as_me:$LINENO: checking for long long" >&5
21090echo $ECHO_N "checking for long long... $ECHO_C" >&6
21091if test "${ac_cv_type_long_long+set}" = set; then
21092 echo $ECHO_N "(cached) $ECHO_C" >&6
21093else
21094 cat >conftest.$ac_ext <<_ACEOF
21095/* confdefs.h. */
21096_ACEOF
21097cat confdefs.h >>conftest.$ac_ext
21098cat >>conftest.$ac_ext <<_ACEOF
21099/* end confdefs.h. */
21100$ac_includes_default
21101int
21102main ()
21103{
21104if ((long long *) 0)
21105 return 0;
21106if (sizeof (long long))
21107 return 0;
21108 ;
21109 return 0;
21110}
21111_ACEOF
21112rm -f conftest.$ac_objext
21113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21114 (eval $ac_compile) 2>conftest.er1
a848cd7e 21115 ac_status=$?
ac1cb8d3
VS
21116 grep -v '^ *+' conftest.er1 >conftest.err
21117 rm -f conftest.er1
21118 cat conftest.err >&5
a848cd7e
SC
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); } &&
ca5c6ac3 21121 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21123 (eval $ac_try) 2>&5
21124 ac_status=$?
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); }; } &&
21127 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21129 (eval $ac_try) 2>&5
21130 ac_status=$?
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); }; }; then
21133 ac_cv_type_long_long=yes
21134else
21135 echo "$as_me: failed program was:" >&5
21136sed 's/^/| /' conftest.$ac_ext >&5
21137
21138ac_cv_type_long_long=no
21139fi
ac1cb8d3 21140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21141fi
21142echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21143echo "${ECHO_T}$ac_cv_type_long_long" >&6
21144
21145echo "$as_me:$LINENO: checking size of long long" >&5
21146echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21147if test "${ac_cv_sizeof_long_long+set}" = set; then
21148 echo $ECHO_N "(cached) $ECHO_C" >&6
21149else
21150 if test "$ac_cv_type_long_long" = yes; then
21151 # The cast to unsigned long works around a bug in the HP C Compiler
21152 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21153 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21154 # This bug is HP SR number 8606223364.
21155 if test "$cross_compiling" = yes; then
21156 # Depending upon the size, compute the lo and hi bounds.
21157cat >conftest.$ac_ext <<_ACEOF
21158/* confdefs.h. */
21159_ACEOF
21160cat confdefs.h >>conftest.$ac_ext
21161cat >>conftest.$ac_ext <<_ACEOF
21162/* end confdefs.h. */
21163$ac_includes_default
21164int
21165main ()
21166{
21167static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21168test_array [0] = 0
21169
21170 ;
21171 return 0;
21172}
21173_ACEOF
21174rm -f conftest.$ac_objext
21175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21176 (eval $ac_compile) 2>conftest.er1
a848cd7e 21177 ac_status=$?
ac1cb8d3
VS
21178 grep -v '^ *+' conftest.er1 >conftest.err
21179 rm -f conftest.er1
21180 cat conftest.err >&5
a848cd7e
SC
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); } &&
ca5c6ac3 21183 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21185 (eval $ac_try) 2>&5
21186 ac_status=$?
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); }; } &&
21189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21191 (eval $ac_try) 2>&5
21192 ac_status=$?
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); }; }; then
21195 ac_lo=0 ac_mid=0
21196 while :; do
21197 cat >conftest.$ac_ext <<_ACEOF
21198/* confdefs.h. */
21199_ACEOF
21200cat confdefs.h >>conftest.$ac_ext
21201cat >>conftest.$ac_ext <<_ACEOF
21202/* end confdefs.h. */
21203$ac_includes_default
21204int
21205main ()
21206{
21207static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21208test_array [0] = 0
21209
21210 ;
21211 return 0;
21212}
21213_ACEOF
21214rm -f conftest.$ac_objext
21215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21216 (eval $ac_compile) 2>conftest.er1
a848cd7e 21217 ac_status=$?
ac1cb8d3
VS
21218 grep -v '^ *+' conftest.er1 >conftest.err
21219 rm -f conftest.er1
21220 cat conftest.err >&5
a848cd7e
SC
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); } &&
ca5c6ac3 21223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225 (eval $ac_try) 2>&5
21226 ac_status=$?
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; } &&
21229 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231 (eval $ac_try) 2>&5
21232 ac_status=$?
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); }; }; then
21235 ac_hi=$ac_mid; break
21236else
21237 echo "$as_me: failed program was:" >&5
21238sed 's/^/| /' conftest.$ac_ext >&5
21239
21240ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21241 if test $ac_lo -le $ac_mid; then
21242 ac_lo= ac_hi=
21243 break
21244 fi
21245 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21246fi
ac1cb8d3 21247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21248 done
21249else
21250 echo "$as_me: failed program was:" >&5
21251sed 's/^/| /' conftest.$ac_ext >&5
21252
21253cat >conftest.$ac_ext <<_ACEOF
21254/* confdefs.h. */
21255_ACEOF
21256cat confdefs.h >>conftest.$ac_ext
21257cat >>conftest.$ac_ext <<_ACEOF
21258/* end confdefs.h. */
21259$ac_includes_default
21260int
21261main ()
21262{
21263static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21264test_array [0] = 0
21265
21266 ;
21267 return 0;
21268}
21269_ACEOF
21270rm -f conftest.$ac_objext
21271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21272 (eval $ac_compile) 2>conftest.er1
a848cd7e 21273 ac_status=$?
ac1cb8d3
VS
21274 grep -v '^ *+' conftest.er1 >conftest.err
21275 rm -f conftest.er1
21276 cat conftest.err >&5
a848cd7e
SC
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); } &&
ca5c6ac3 21279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281 (eval $ac_try) 2>&5
21282 ac_status=$?
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); }; } &&
21285 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21287 (eval $ac_try) 2>&5
21288 ac_status=$?
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); }; }; then
21291 ac_hi=-1 ac_mid=-1
21292 while :; do
21293 cat >conftest.$ac_ext <<_ACEOF
21294/* confdefs.h. */
21295_ACEOF
21296cat confdefs.h >>conftest.$ac_ext
21297cat >>conftest.$ac_ext <<_ACEOF
21298/* end confdefs.h. */
21299$ac_includes_default
21300int
21301main ()
21302{
21303static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21304test_array [0] = 0
21305
21306 ;
21307 return 0;
21308}
21309_ACEOF
21310rm -f conftest.$ac_objext
21311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21312 (eval $ac_compile) 2>conftest.er1
a848cd7e 21313 ac_status=$?
ac1cb8d3
VS
21314 grep -v '^ *+' conftest.er1 >conftest.err
21315 rm -f conftest.er1
21316 cat conftest.err >&5
a848cd7e
SC
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } &&
ca5c6ac3 21319 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21321 (eval $ac_try) 2>&5
21322 ac_status=$?
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); }; } &&
21325 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21327 (eval $ac_try) 2>&5
21328 ac_status=$?
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); }; }; then
21331 ac_lo=$ac_mid; break
21332else
21333 echo "$as_me: failed program was:" >&5
21334sed 's/^/| /' conftest.$ac_ext >&5
21335
21336ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21337 if test $ac_mid -le $ac_hi; then
21338 ac_lo= ac_hi=
21339 break
21340 fi
21341 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21342fi
ac1cb8d3 21343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21344 done
21345else
21346 echo "$as_me: failed program was:" >&5
21347sed 's/^/| /' conftest.$ac_ext >&5
21348
21349ac_lo= ac_hi=
21350fi
ac1cb8d3 21351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21352fi
ac1cb8d3 21353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21354# Binary search between lo and hi bounds.
21355while test "x$ac_lo" != "x$ac_hi"; do
21356 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21357 cat >conftest.$ac_ext <<_ACEOF
21358/* confdefs.h. */
21359_ACEOF
21360cat confdefs.h >>conftest.$ac_ext
21361cat >>conftest.$ac_ext <<_ACEOF
21362/* end confdefs.h. */
21363$ac_includes_default
21364int
21365main ()
21366{
21367static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21368test_array [0] = 0
21369
21370 ;
21371 return 0;
21372}
21373_ACEOF
21374rm -f conftest.$ac_objext
21375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21376 (eval $ac_compile) 2>conftest.er1
a848cd7e 21377 ac_status=$?
ac1cb8d3
VS
21378 grep -v '^ *+' conftest.er1 >conftest.err
21379 rm -f conftest.er1
21380 cat conftest.err >&5
a848cd7e
SC
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); } &&
ca5c6ac3 21383 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385 (eval $ac_try) 2>&5
21386 ac_status=$?
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); }; } &&
21389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391 (eval $ac_try) 2>&5
21392 ac_status=$?
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); }; }; then
21395 ac_hi=$ac_mid
21396else
21397 echo "$as_me: failed program was:" >&5
21398sed 's/^/| /' conftest.$ac_ext >&5
21399
21400ac_lo=`expr '(' $ac_mid ')' + 1`
21401fi
ac1cb8d3 21402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21403done
21404case $ac_lo in
21405?*) ac_cv_sizeof_long_long=$ac_lo;;
21406'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21407See \`config.log' for more details." >&5
21408echo "$as_me: error: cannot compute sizeof (long long), 77
21409See \`config.log' for more details." >&2;}
21410 { (exit 1); exit 1; }; } ;;
21411esac
21412else
21413 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
21414 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21415echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21416 { (exit 1); exit 1; }; }
21417else
21418 cat >conftest.$ac_ext <<_ACEOF
21419/* confdefs.h. */
21420_ACEOF
21421cat confdefs.h >>conftest.$ac_ext
21422cat >>conftest.$ac_ext <<_ACEOF
21423/* end confdefs.h. */
21424$ac_includes_default
21425long longval () { return (long) (sizeof (long long)); }
21426unsigned long ulongval () { return (long) (sizeof (long long)); }
21427#include <stdio.h>
21428#include <stdlib.h>
21429int
21430main ()
21431{
21432
21433 FILE *f = fopen ("conftest.val", "w");
21434 if (! f)
21435 exit (1);
21436 if (((long) (sizeof (long long))) < 0)
21437 {
21438 long i = longval ();
21439 if (i != ((long) (sizeof (long long))))
21440 exit (1);
21441 fprintf (f, "%ld\n", i);
21442 }
21443 else
21444 {
21445 unsigned long i = ulongval ();
21446 if (i != ((long) (sizeof (long long))))
21447 exit (1);
21448 fprintf (f, "%lu\n", i);
21449 }
21450 exit (ferror (f) || fclose (f) != 0);
21451
21452 ;
21453 return 0;
21454}
21455_ACEOF
21456rm -f conftest$ac_exeext
21457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21458 (eval $ac_link) 2>&5
21459 ac_status=$?
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21463 (eval $ac_try) 2>&5
21464 ac_status=$?
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); }; }; then
21467 ac_cv_sizeof_long_long=`cat conftest.val`
21468else
21469 echo "$as_me: program exited with status $ac_status" >&5
21470echo "$as_me: failed program was:" >&5
21471sed 's/^/| /' conftest.$ac_ext >&5
21472
21473( exit $ac_status )
21474{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21475See \`config.log' for more details." >&5
21476echo "$as_me: error: cannot compute sizeof (long long), 77
21477See \`config.log' for more details." >&2;}
21478 { (exit 1); exit 1; }; }
21479fi
ac1cb8d3 21480rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21481fi
21482fi
21483rm -f conftest.val
21484else
21485 ac_cv_sizeof_long_long=0
21486fi
21487fi
21488echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21489echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21490cat >>confdefs.h <<_ACEOF
21491#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21492_ACEOF
21493
21494
21495esac
21496
238ecede
MW
21497echo "$as_me:$LINENO: checking for wchar_t" >&5
21498echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21499if test "${ac_cv_type_wchar_t+set}" = set; then
21500 echo $ECHO_N "(cached) $ECHO_C" >&6
21501else
21502 cat >conftest.$ac_ext <<_ACEOF
21503/* confdefs.h. */
21504_ACEOF
21505cat confdefs.h >>conftest.$ac_ext
21506cat >>conftest.$ac_ext <<_ACEOF
21507/* end confdefs.h. */
21508
83d8eb47
MW
21509 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21510 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21511 # error "fake wchar_t"
21512 #endif
21513 #ifdef HAVE_WCHAR_H
21514 # ifdef __CYGWIN__
21515 # include <stddef.h>
21516 # endif
21517 # include <wchar.h>
21518 #endif
21519 #ifdef HAVE_STDLIB_H
21520 # include <stdlib.h>
21521 #endif
21522 #include <stdio.h>
21523
21524
21525
21526int
21527main ()
21528{
21529if ((wchar_t *) 0)
21530 return 0;
21531if (sizeof (wchar_t))
21532 return 0;
21533 ;
21534 return 0;
21535}
21536_ACEOF
21537rm -f conftest.$ac_objext
21538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21539 (eval $ac_compile) 2>conftest.er1
21540 ac_status=$?
21541 grep -v '^ *+' conftest.er1 >conftest.err
21542 rm -f conftest.er1
21543 cat conftest.err >&5
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); } &&
ca5c6ac3 21546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21548 (eval $ac_try) 2>&5
21549 ac_status=$?
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); }; } &&
21552 { ac_try='test -s conftest.$ac_objext'
21553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21554 (eval $ac_try) 2>&5
21555 ac_status=$?
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); }; }; then
21558 ac_cv_type_wchar_t=yes
21559else
21560 echo "$as_me: failed program was:" >&5
21561sed 's/^/| /' conftest.$ac_ext >&5
21562
21563ac_cv_type_wchar_t=no
21564fi
21565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21566fi
21567echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21568echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21569
a848cd7e
SC
21570echo "$as_me:$LINENO: checking size of wchar_t" >&5
21571echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21572if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21573 echo $ECHO_N "(cached) $ECHO_C" >&6
21574else
238ecede
MW
21575 if test "$ac_cv_type_wchar_t" = yes; then
21576 # The cast to unsigned long works around a bug in the HP C Compiler
21577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21578 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21579 # This bug is HP SR number 8606223364.
21580 if test "$cross_compiling" = yes; then
21581 # Depending upon the size, compute the lo and hi bounds.
21582cat >conftest.$ac_ext <<_ACEOF
21583/* confdefs.h. */
21584_ACEOF
21585cat confdefs.h >>conftest.$ac_ext
21586cat >>conftest.$ac_ext <<_ACEOF
21587/* end confdefs.h. */
21588
83d8eb47
MW
21589 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21590 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21591 # error "fake wchar_t"
21592 #endif
21593 #ifdef HAVE_WCHAR_H
21594 # ifdef __CYGWIN__
21595 # include <stddef.h>
21596 # endif
21597 # include <wchar.h>
21598 #endif
21599 #ifdef HAVE_STDLIB_H
21600 # include <stdlib.h>
21601 #endif
21602 #include <stdio.h>
21603
21604
21605
21606int
21607main ()
21608{
21609static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21610test_array [0] = 0
21611
21612 ;
21613 return 0;
21614}
21615_ACEOF
21616rm -f conftest.$ac_objext
21617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21618 (eval $ac_compile) 2>conftest.er1
21619 ac_status=$?
21620 grep -v '^ *+' conftest.er1 >conftest.err
21621 rm -f conftest.er1
21622 cat conftest.err >&5
21623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624 (exit $ac_status); } &&
ca5c6ac3 21625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21627 (eval $ac_try) 2>&5
21628 ac_status=$?
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); }; } &&
21631 { ac_try='test -s conftest.$ac_objext'
21632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21633 (eval $ac_try) 2>&5
21634 ac_status=$?
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); }; }; then
21637 ac_lo=0 ac_mid=0
21638 while :; do
21639 cat >conftest.$ac_ext <<_ACEOF
21640/* confdefs.h. */
21641_ACEOF
21642cat confdefs.h >>conftest.$ac_ext
21643cat >>conftest.$ac_ext <<_ACEOF
21644/* end confdefs.h. */
21645
83d8eb47
MW
21646 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21647 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21648 # error "fake wchar_t"
21649 #endif
21650 #ifdef HAVE_WCHAR_H
21651 # ifdef __CYGWIN__
21652 # include <stddef.h>
21653 # endif
21654 # include <wchar.h>
21655 #endif
21656 #ifdef HAVE_STDLIB_H
21657 # include <stdlib.h>
21658 #endif
21659 #include <stdio.h>
21660
21661
21662
21663int
21664main ()
21665{
21666static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21667test_array [0] = 0
21668
21669 ;
21670 return 0;
21671}
21672_ACEOF
21673rm -f conftest.$ac_objext
21674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21675 (eval $ac_compile) 2>conftest.er1
21676 ac_status=$?
21677 grep -v '^ *+' conftest.er1 >conftest.err
21678 rm -f conftest.er1
21679 cat conftest.err >&5
21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); } &&
ca5c6ac3 21682 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21684 (eval $ac_try) 2>&5
21685 ac_status=$?
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); }; } &&
21688 { ac_try='test -s conftest.$ac_objext'
21689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690 (eval $ac_try) 2>&5
21691 ac_status=$?
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); }; }; then
21694 ac_hi=$ac_mid; break
21695else
21696 echo "$as_me: failed program was:" >&5
21697sed 's/^/| /' conftest.$ac_ext >&5
21698
21699ac_lo=`expr $ac_mid + 1`
21700 if test $ac_lo -le $ac_mid; then
21701 ac_lo= ac_hi=
21702 break
21703 fi
21704 ac_mid=`expr 2 '*' $ac_mid + 1`
21705fi
21706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21707 done
21708else
21709 echo "$as_me: failed program was:" >&5
21710sed 's/^/| /' conftest.$ac_ext >&5
21711
21712cat >conftest.$ac_ext <<_ACEOF
21713/* confdefs.h. */
21714_ACEOF
21715cat confdefs.h >>conftest.$ac_ext
21716cat >>conftest.$ac_ext <<_ACEOF
21717/* end confdefs.h. */
21718
83d8eb47
MW
21719 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21720 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21721 # error "fake wchar_t"
21722 #endif
21723 #ifdef HAVE_WCHAR_H
21724 # ifdef __CYGWIN__
21725 # include <stddef.h>
21726 # endif
21727 # include <wchar.h>
21728 #endif
21729 #ifdef HAVE_STDLIB_H
21730 # include <stdlib.h>
21731 #endif
21732 #include <stdio.h>
21733
21734
21735
21736int
21737main ()
21738{
21739static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21740test_array [0] = 0
21741
21742 ;
21743 return 0;
21744}
21745_ACEOF
21746rm -f conftest.$ac_objext
21747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21748 (eval $ac_compile) 2>conftest.er1
21749 ac_status=$?
21750 grep -v '^ *+' conftest.er1 >conftest.err
21751 rm -f conftest.er1
21752 cat conftest.err >&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); } &&
ca5c6ac3 21755 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757 (eval $ac_try) 2>&5
21758 ac_status=$?
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); }; } &&
21761 { ac_try='test -s conftest.$ac_objext'
21762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21763 (eval $ac_try) 2>&5
21764 ac_status=$?
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); }; }; then
21767 ac_hi=-1 ac_mid=-1
21768 while :; do
21769 cat >conftest.$ac_ext <<_ACEOF
21770/* confdefs.h. */
21771_ACEOF
21772cat confdefs.h >>conftest.$ac_ext
21773cat >>conftest.$ac_ext <<_ACEOF
21774/* end confdefs.h. */
21775
83d8eb47
MW
21776 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21777 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21778 # error "fake wchar_t"
21779 #endif
21780 #ifdef HAVE_WCHAR_H
21781 # ifdef __CYGWIN__
21782 # include <stddef.h>
21783 # endif
21784 # include <wchar.h>
21785 #endif
21786 #ifdef HAVE_STDLIB_H
21787 # include <stdlib.h>
21788 #endif
21789 #include <stdio.h>
21790
21791
21792
21793int
21794main ()
21795{
21796static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21797test_array [0] = 0
21798
21799 ;
21800 return 0;
21801}
21802_ACEOF
21803rm -f conftest.$ac_objext
21804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21805 (eval $ac_compile) 2>conftest.er1
21806 ac_status=$?
21807 grep -v '^ *+' conftest.er1 >conftest.err
21808 rm -f conftest.er1
21809 cat conftest.err >&5
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); } &&
ca5c6ac3 21812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21814 (eval $ac_try) 2>&5
21815 ac_status=$?
21816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); }; } &&
21818 { ac_try='test -s conftest.$ac_objext'
21819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21820 (eval $ac_try) 2>&5
21821 ac_status=$?
21822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823 (exit $ac_status); }; }; then
21824 ac_lo=$ac_mid; break
21825else
21826 echo "$as_me: failed program was:" >&5
21827sed 's/^/| /' conftest.$ac_ext >&5
21828
21829ac_hi=`expr '(' $ac_mid ')' - 1`
21830 if test $ac_mid -le $ac_hi; then
21831 ac_lo= ac_hi=
21832 break
21833 fi
21834 ac_mid=`expr 2 '*' $ac_mid`
21835fi
21836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21837 done
21838else
21839 echo "$as_me: failed program was:" >&5
21840sed 's/^/| /' conftest.$ac_ext >&5
21841
21842ac_lo= ac_hi=
21843fi
21844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21845fi
21846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21847# Binary search between lo and hi bounds.
21848while test "x$ac_lo" != "x$ac_hi"; do
21849 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21850 cat >conftest.$ac_ext <<_ACEOF
21851/* confdefs.h. */
21852_ACEOF
21853cat confdefs.h >>conftest.$ac_ext
21854cat >>conftest.$ac_ext <<_ACEOF
21855/* end confdefs.h. */
21856
83d8eb47
MW
21857 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21858 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21859 # error "fake wchar_t"
21860 #endif
21861 #ifdef HAVE_WCHAR_H
21862 # ifdef __CYGWIN__
21863 # include <stddef.h>
21864 # endif
21865 # include <wchar.h>
21866 #endif
21867 #ifdef HAVE_STDLIB_H
21868 # include <stdlib.h>
21869 #endif
21870 #include <stdio.h>
a848cd7e 21871
a848cd7e 21872
a848cd7e 21873
238ecede
MW
21874int
21875main ()
21876{
21877static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21878test_array [0] = 0
a848cd7e 21879
238ecede
MW
21880 ;
21881 return 0;
21882}
21883_ACEOF
21884rm -f conftest.$ac_objext
21885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21886 (eval $ac_compile) 2>conftest.er1
21887 ac_status=$?
21888 grep -v '^ *+' conftest.er1 >conftest.err
21889 rm -f conftest.er1
21890 cat conftest.err >&5
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); } &&
ca5c6ac3 21893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895 (eval $ac_try) 2>&5
21896 ac_status=$?
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; } &&
21899 { ac_try='test -s conftest.$ac_objext'
21900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21901 (eval $ac_try) 2>&5
21902 ac_status=$?
21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); }; }; then
21905 ac_hi=$ac_mid
21906else
21907 echo "$as_me: failed program was:" >&5
21908sed 's/^/| /' conftest.$ac_ext >&5
21909
21910ac_lo=`expr '(' $ac_mid ')' + 1`
21911fi
21912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21913done
21914case $ac_lo in
21915?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21916'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21917See \`config.log' for more details." >&5
21918echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21919See \`config.log' for more details." >&2;}
21920 { (exit 1); exit 1; }; } ;;
21921esac
21922else
21923 if test "$cross_compiling" = yes; then
ca5c6ac3
VZ
21924 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21925echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 21926 { (exit 1); exit 1; }; }
a848cd7e
SC
21927else
21928 cat >conftest.$ac_ext <<_ACEOF
21929/* confdefs.h. */
21930_ACEOF
21931cat confdefs.h >>conftest.$ac_ext
21932cat >>conftest.$ac_ext <<_ACEOF
21933/* end confdefs.h. */
21934
83d8eb47
MW
21935 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21936 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21937 # error "fake wchar_t"
21938 #endif
21939 #ifdef HAVE_WCHAR_H
21940 # ifdef __CYGWIN__
21941 # include <stddef.h>
21942 # endif
21943 # include <wchar.h>
21944 #endif
21945 #ifdef HAVE_STDLIB_H
21946 # include <stdlib.h>
21947 #endif
21948 #include <stdio.h>
21949
21950
21951
21952long longval () { return (long) (sizeof (wchar_t)); }
21953unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21954#include <stdio.h>
21955#include <stdlib.h>
21956int
21957main ()
21958{
a848cd7e 21959
238ecede
MW
21960 FILE *f = fopen ("conftest.val", "w");
21961 if (! f)
21962 exit (1);
21963 if (((long) (sizeof (wchar_t))) < 0)
21964 {
21965 long i = longval ();
21966 if (i != ((long) (sizeof (wchar_t))))
21967 exit (1);
21968 fprintf (f, "%ld\n", i);
21969 }
21970 else
21971 {
21972 unsigned long i = ulongval ();
21973 if (i != ((long) (sizeof (wchar_t))))
21974 exit (1);
21975 fprintf (f, "%lu\n", i);
21976 }
21977 exit (ferror (f) || fclose (f) != 0);
21978
21979 ;
21980 return 0;
21981}
a848cd7e
SC
21982_ACEOF
21983rm -f conftest$ac_exeext
21984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21985 (eval $ac_link) 2>&5
21986 ac_status=$?
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21990 (eval $ac_try) 2>&5
21991 ac_status=$?
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); }; }; then
238ecede 21994 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21995else
21996 echo "$as_me: program exited with status $ac_status" >&5
21997echo "$as_me: failed program was:" >&5
21998sed 's/^/| /' conftest.$ac_ext >&5
21999
22000( exit $ac_status )
238ecede
MW
22001{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22002See \`config.log' for more details." >&5
22003echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22004See \`config.log' for more details." >&2;}
22005 { (exit 1); exit 1; }; }
a848cd7e 22006fi
ac1cb8d3 22007rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 22008fi
a848cd7e 22009fi
238ecede
MW
22010rm -f conftest.val
22011else
22012 ac_cv_sizeof_wchar_t=0
22013fi
22014fi
22015echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22016echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 22017cat >>confdefs.h <<_ACEOF
238ecede 22018#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
22019_ACEOF
22020
22021
47a7e797
MW
22022if test "$ac_cv_sizeof_wchar_t" != "0"; then
22023 wxUSE_WCHAR_T=yes
22024else
22025 wxUSE_WCHAR_T=no
22026fi
238ecede 22027
ba3d13e1
VZ
22028echo "$as_me:$LINENO: checking for va_copy" >&5
22029echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
22030if test "${wx_cv_func_va_copy+set}" = set; then
22031 echo $ECHO_N "(cached) $ECHO_C" >&6
22032else
22033
22034 cat >conftest.$ac_ext <<_ACEOF
22035
22036 #include <stdarg.h>
22037 void foo(char *f, ...)
22038 {
22039 va_list ap1, ap2;
22040 va_start(ap1, f);
22041 va_copy(ap2, ap1);
22042 va_end(ap2);
22043 va_end(ap1);
22044 }
5886b072
VZ
22045 int main()
22046 {
b902e639
VZ
22047 foo("hi", 17);
22048 return 0;
5886b072 22049 }
ba3d13e1
VZ
22050_ACEOF
22051rm -f conftest.$ac_objext conftest$ac_exeext
22052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22053 (eval $ac_link) 2>conftest.er1
22054 ac_status=$?
22055 grep -v '^ *+' conftest.er1 >conftest.err
22056 rm -f conftest.er1
22057 cat conftest.err >&5
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); } &&
ca5c6ac3 22060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
22061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22062 (eval $ac_try) 2>&5
22063 ac_status=$?
22064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 (exit $ac_status); }; } &&
22066 { ac_try='test -s conftest$ac_exeext'
22067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22068 (eval $ac_try) 2>&5
22069 ac_status=$?
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); }; }; then
22072 wx_cv_func_va_copy=yes
22073else
22074 echo "$as_me: failed program was:" >&5
22075sed 's/^/| /' conftest.$ac_ext >&5
22076
22077wx_cv_func_va_copy=no
22078
22079fi
22080rm -f conftest.err conftest.$ac_objext \
22081 conftest$ac_exeext conftest.$ac_ext
22082
22083
22084fi
22085echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22086echo "${ECHO_T}$wx_cv_func_va_copy" >&6
22087
22088if test $wx_cv_func_va_copy = "yes"; then
22089 cat >>confdefs.h <<\_ACEOF
22090#define HAVE_VA_COPY 1
22091_ACEOF
22092
22093else
22094 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22095echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
22096if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22097 echo $ECHO_N "(cached) $ECHO_C" >&6
22098else
22099
22100 if test "$cross_compiling" = yes; then
22101 wx_cv_type_va_list_lvalue=yes
22102
22103else
22104 cat >conftest.$ac_ext <<_ACEOF
22105
22106 #include <stdarg.h>
22107 int foo(char *f, ...)
22108 {
22109 va_list ap1, ap2;
22110 va_start(ap1, f);
22111 ap2 = ap1;
22112 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22113 return 1;
22114 va_end(ap2);
22115 va_end(ap1);
22116 return 0;
22117 }
22118 int main()
22119 {
22120 return foo("hi", 17);
22121 }
22122_ACEOF
22123rm -f conftest$ac_exeext
22124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22125 (eval $ac_link) 2>&5
22126 ac_status=$?
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22130 (eval $ac_try) 2>&5
22131 ac_status=$?
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); }; }; then
22134 wx_cv_type_va_list_lvalue=yes
22135else
22136 echo "$as_me: program exited with status $ac_status" >&5
22137echo "$as_me: failed program was:" >&5
22138sed 's/^/| /' conftest.$ac_ext >&5
22139
22140( exit $ac_status )
22141wx_cv_type_va_list_lvalue=no
22142fi
22143rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22144fi
22145
22146
22147fi
22148echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22149echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22150
22151 if test $wx_cv_type_va_list_lvalue != "yes"; then
22152 cat >>confdefs.h <<\_ACEOF
22153#define VA_LIST_IS_ARRAY 1
22154_ACEOF
22155
22156 fi
22157fi
22158
ca766534
VS
22159echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
22160echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6
22161if test "${wx_cv_have_variadic_macros+set}" = set; then
22162 echo $ECHO_N "(cached) $ECHO_C" >&6
22163else
22164
22165 cat >conftest.$ac_ext <<_ACEOF
22166/* confdefs.h. */
22167_ACEOF
22168cat confdefs.h >>conftest.$ac_ext
22169cat >>conftest.$ac_ext <<_ACEOF
22170/* end confdefs.h. */
22171
22172 #include <stdio.h>
22173 #define test(fmt, ...) printf(fmt, __VA_ARGS__)
22174
22175int
22176main ()
22177{
22178
22179 test("%s %d %p", "test", 1, 0);
22180
22181
22182 ;
22183 return 0;
22184}
22185_ACEOF
22186rm -f conftest.$ac_objext
22187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22188 (eval $ac_compile) 2>conftest.er1
22189 ac_status=$?
22190 grep -v '^ *+' conftest.er1 >conftest.err
22191 rm -f conftest.er1
22192 cat conftest.err >&5
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); } &&
ca5c6ac3 22195 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ca766534
VS
22196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22197 (eval $ac_try) 2>&5
22198 ac_status=$?
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); }; } &&
22201 { ac_try='test -s conftest.$ac_objext'
22202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22203 (eval $ac_try) 2>&5
22204 ac_status=$?
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); }; }; then
22207 wx_cv_have_variadic_macros=yes
22208else
22209 echo "$as_me: failed program was:" >&5
22210sed 's/^/| /' conftest.$ac_ext >&5
22211
22212wx_cv_have_variadic_macros=no
22213
22214fi
22215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22216
22217
22218fi
22219echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
22220echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6
22221
22222if test $wx_cv_have_variadic_macros = "yes"; then
22223 cat >>confdefs.h <<\_ACEOF
22224#define HAVE_VARIADIC_MACROS 1
22225_ACEOF
22226
22227fi
22228
a848cd7e
SC
22229# Check whether --enable-largefile or --disable-largefile was given.
22230if test "${enable_largefile+set}" = set; then
22231 enableval="$enable_largefile"
22232
22233fi;
22234if test "$enable_largefile" != no; then
22235 wx_largefile=no
22236
22237 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22238echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22239if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22240 echo $ECHO_N "(cached) $ECHO_C" >&6
22241else
22242
22243 cat >conftest.$ac_ext <<_ACEOF
22244/* confdefs.h. */
22245_ACEOF
22246cat confdefs.h >>conftest.$ac_ext
22247cat >>conftest.$ac_ext <<_ACEOF
22248/* end confdefs.h. */
22249#define _FILE_OFFSET_BITS 64
22250 #include <sys/types.h>
22251int
22252main ()
22253{
22254typedef struct {
22255 unsigned int field: sizeof(off_t) == 8;
22256} wxlf;
22257
22258 ;
22259 return 0;
22260}
22261_ACEOF
22262rm -f conftest.$ac_objext
22263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22264 (eval $ac_compile) 2>conftest.er1
a848cd7e 22265 ac_status=$?
ac1cb8d3
VS
22266 grep -v '^ *+' conftest.er1 >conftest.err
22267 rm -f conftest.er1
22268 cat conftest.err >&5
a848cd7e
SC
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); } &&
ca5c6ac3 22271 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22273 (eval $ac_try) 2>&5
22274 ac_status=$?
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); }; } &&
22277 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22279 (eval $ac_try) 2>&5
22280 ac_status=$?
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); }; }; then
22283 ac_cv_sys_file_offset_bits=64
22284else
22285 echo "$as_me: failed program was:" >&5
22286sed 's/^/| /' conftest.$ac_ext >&5
22287
22288ac_cv_sys_file_offset_bits=no
22289fi
ac1cb8d3 22290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22291
22292
22293fi
22294echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22295echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22296
22297 if test "$ac_cv_sys_file_offset_bits" != no; then
22298 wx_largefile=yes
22299 cat >>confdefs.h <<_ACEOF
22300#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22301_ACEOF
22302
22303 fi
22304
22305 if test "x$wx_largefile" != "xyes"; then
22306
22307 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22308echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22309if test "${ac_cv_sys_large_files+set}" = set; then
22310 echo $ECHO_N "(cached) $ECHO_C" >&6
22311else
22312
22313 cat >conftest.$ac_ext <<_ACEOF
22314/* confdefs.h. */
22315_ACEOF
22316cat confdefs.h >>conftest.$ac_ext
22317cat >>conftest.$ac_ext <<_ACEOF
22318/* end confdefs.h. */
22319#define _LARGE_FILES 1
22320 #include <sys/types.h>
22321int
22322main ()
22323{
22324typedef struct {
22325 unsigned int field: sizeof(off_t) == 8;
22326} wxlf;
22327
22328 ;
22329 return 0;
22330}
22331_ACEOF
22332rm -f conftest.$ac_objext
22333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22334 (eval $ac_compile) 2>conftest.er1
a848cd7e 22335 ac_status=$?
ac1cb8d3
VS
22336 grep -v '^ *+' conftest.er1 >conftest.err
22337 rm -f conftest.er1
22338 cat conftest.err >&5
a848cd7e
SC
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); } &&
ca5c6ac3 22341 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22343 (eval $ac_try) 2>&5
22344 ac_status=$?
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); }; } &&
22347 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349 (eval $ac_try) 2>&5
22350 ac_status=$?
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); }; }; then
22353 ac_cv_sys_large_files=1
22354else
22355 echo "$as_me: failed program was:" >&5
22356sed 's/^/| /' conftest.$ac_ext >&5
22357
22358ac_cv_sys_large_files=no
22359fi
ac1cb8d3 22360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22361
22362
22363fi
22364echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22365echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22366
22367 if test "$ac_cv_sys_large_files" != no; then
22368 wx_largefile=yes
22369 cat >>confdefs.h <<_ACEOF
22370#define _LARGE_FILES $ac_cv_sys_large_files
22371_ACEOF
22372
22373 fi
22374
22375 fi
22376
22377 echo "$as_me:$LINENO: checking if large file support is available" >&5
22378echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22379 if test "x$wx_largefile" = "xyes"; then
22380 cat >>confdefs.h <<\_ACEOF
22381#define HAVE_LARGEFILE_SUPPORT 1
22382_ACEOF
22383
22384 fi
22385 echo "$as_me:$LINENO: result: $wx_largefile" >&5
22386echo "${ECHO_T}$wx_largefile" >&6
22387fi
22388
5b674b9d
DE
22389
22390if test "x$wx_largefile" = "xyes"; then
22391 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 22392 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
22393
22394 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22395 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22396echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22397if test "${wx_cv_STDC_EXT_required+set}" = set; then
22398 echo $ECHO_N "(cached) $ECHO_C" >&6
22399else
22400
00421666
MW
22401 cat >conftest.$ac_ext <<_ACEOF
22402/* confdefs.h. */
22403_ACEOF
22404cat confdefs.h >>conftest.$ac_ext
22405cat >>conftest.$ac_ext <<_ACEOF
22406/* end confdefs.h. */
22407
22408int
22409main ()
22410{
22411
22412 #ifndef __STDC_EXT__
22413 choke me
22414 #endif
22415
22416 ;
22417 return 0;
22418}
22419_ACEOF
22420rm -f conftest.$ac_objext
22421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22422 (eval $ac_compile) 2>conftest.er1
22423 ac_status=$?
22424 grep -v '^ *+' conftest.er1 >conftest.err
22425 rm -f conftest.er1
22426 cat conftest.err >&5
22427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428 (exit $ac_status); } &&
ca5c6ac3 22429 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
22430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22431 (eval $ac_try) 2>&5
22432 ac_status=$?
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); }; } &&
22435 { ac_try='test -s conftest.$ac_objext'
22436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22437 (eval $ac_try) 2>&5
22438 ac_status=$?
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); }; }; then
22441 wx_cv_STDC_EXT_required=no
22442else
22443 echo "$as_me: failed program was:" >&5
22444sed 's/^/| /' conftest.$ac_ext >&5
22445
22446wx_cv_STDC_EXT_required=yes
22447
22448fi
22449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
22450
22451
22452fi
22453echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22454echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22455 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22456 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22457 fi
22458 fi
5b674b9d 22459 else
5ff751d6 22460 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
22461 fi
22462 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
22463echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22464if test "${ac_cv_sys_largefile_source+set}" = set; then
22465 echo $ECHO_N "(cached) $ECHO_C" >&6
22466else
22467 while :; do
22468 ac_cv_sys_largefile_source=no
22469 cat >conftest.$ac_ext <<_ACEOF
22470/* confdefs.h. */
22471_ACEOF
22472cat confdefs.h >>conftest.$ac_ext
22473cat >>conftest.$ac_ext <<_ACEOF
22474/* end confdefs.h. */
22475#include <stdio.h>
22476int
22477main ()
22478{
22479return !fseeko;
22480 ;
22481 return 0;
22482}
22483_ACEOF
22484rm -f conftest.$ac_objext
22485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22486 (eval $ac_compile) 2>conftest.er1
22487 ac_status=$?
22488 grep -v '^ *+' conftest.er1 >conftest.err
22489 rm -f conftest.er1
22490 cat conftest.err >&5
22491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); } &&
ca5c6ac3 22493 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22495 (eval $ac_try) 2>&5
22496 ac_status=$?
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; } &&
22499 { ac_try='test -s conftest.$ac_objext'
22500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22501 (eval $ac_try) 2>&5
22502 ac_status=$?
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); }; }; then
22505 break
22506else
22507 echo "$as_me: failed program was:" >&5
22508sed 's/^/| /' conftest.$ac_ext >&5
22509
22510fi
22511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22512 cat >conftest.$ac_ext <<_ACEOF
22513/* confdefs.h. */
22514_ACEOF
22515cat confdefs.h >>conftest.$ac_ext
22516cat >>conftest.$ac_ext <<_ACEOF
22517/* end confdefs.h. */
22518#define _LARGEFILE_SOURCE 1
22519#include <stdio.h>
22520int
22521main ()
22522{
22523return !fseeko;
22524 ;
22525 return 0;
22526}
22527_ACEOF
22528rm -f conftest.$ac_objext
22529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22530 (eval $ac_compile) 2>conftest.er1
22531 ac_status=$?
22532 grep -v '^ *+' conftest.er1 >conftest.err
22533 rm -f conftest.er1
22534 cat conftest.err >&5
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); } &&
ca5c6ac3 22537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22539 (eval $ac_try) 2>&5
22540 ac_status=$?
22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); }; } &&
22543 { ac_try='test -s conftest.$ac_objext'
22544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22545 (eval $ac_try) 2>&5
22546 ac_status=$?
22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); }; }; then
22549 ac_cv_sys_largefile_source=1; break
22550else
22551 echo "$as_me: failed program was:" >&5
22552sed 's/^/| /' conftest.$ac_ext >&5
22553
22554fi
22555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22556 break
22557done
22558fi
22559echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22560echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22561if test "$ac_cv_sys_largefile_source" != no; then
22562
22563cat >>confdefs.h <<_ACEOF
22564#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22565_ACEOF
22566
22567fi
22568rm -f conftest*
22569
22570# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22571# in glibc 2.1.3, but that breaks too many other things.
22572# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22573echo "$as_me:$LINENO: checking for fseeko" >&5
22574echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22575if test "${ac_cv_func_fseeko+set}" = set; then
22576 echo $ECHO_N "(cached) $ECHO_C" >&6
22577else
22578 cat >conftest.$ac_ext <<_ACEOF
22579/* confdefs.h. */
22580_ACEOF
22581cat confdefs.h >>conftest.$ac_ext
22582cat >>conftest.$ac_ext <<_ACEOF
22583/* end confdefs.h. */
22584#include <stdio.h>
22585int
22586main ()
22587{
22588return fseeko && fseeko (stdin, 0, 0);
22589 ;
22590 return 0;
22591}
22592_ACEOF
22593rm -f conftest.$ac_objext conftest$ac_exeext
22594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22595 (eval $ac_link) 2>conftest.er1
22596 ac_status=$?
22597 grep -v '^ *+' conftest.er1 >conftest.err
22598 rm -f conftest.er1
22599 cat conftest.err >&5
22600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601 (exit $ac_status); } &&
ca5c6ac3 22602 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22604 (eval $ac_try) 2>&5
22605 ac_status=$?
22606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); }; } &&
22608 { ac_try='test -s conftest$ac_exeext'
22609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22610 (eval $ac_try) 2>&5
22611 ac_status=$?
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); }; }; then
22614 ac_cv_func_fseeko=yes
22615else
22616 echo "$as_me: failed program was:" >&5
22617sed 's/^/| /' conftest.$ac_ext >&5
22618
22619ac_cv_func_fseeko=no
22620fi
22621rm -f conftest.err conftest.$ac_objext \
22622 conftest$ac_exeext conftest.$ac_ext
22623fi
22624echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22625echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22626if test $ac_cv_func_fseeko = yes; then
22627
22628cat >>confdefs.h <<\_ACEOF
22629#define HAVE_FSEEKO 1
22630_ACEOF
22631
22632fi
22633
5b674b9d 22634 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22635 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22636 fi
a848cd7e
SC
22637fi
22638
22639echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22640echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22641if test "${ac_cv_c_bigendian+set}" = set; then
22642 echo $ECHO_N "(cached) $ECHO_C" >&6
22643else
22644 ac_cv_c_bigendian=unknown
22645# See if sys/param.h defines the BYTE_ORDER macro.
22646cat >conftest.$ac_ext <<_ACEOF
22647/* confdefs.h. */
22648_ACEOF
22649cat confdefs.h >>conftest.$ac_ext
22650cat >>conftest.$ac_ext <<_ACEOF
22651/* end confdefs.h. */
22652#include <sys/types.h>
22653#include <sys/param.h>
22654int
22655main ()
22656{
22657
22658#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22659 bogus endian macros
22660#endif
22661 ;
22662 return 0;
22663}
22664_ACEOF
22665rm -f conftest.$ac_objext
22666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22667 (eval $ac_compile) 2>conftest.er1
a848cd7e 22668 ac_status=$?
ac1cb8d3
VS
22669 grep -v '^ *+' conftest.er1 >conftest.err
22670 rm -f conftest.er1
22671 cat conftest.err >&5
a848cd7e
SC
22672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); } &&
ca5c6ac3 22674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22676 (eval $ac_try) 2>&5
22677 ac_status=$?
22678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679 (exit $ac_status); }; } &&
22680 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22682 (eval $ac_try) 2>&5
22683 ac_status=$?
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); }; }; then
22686 # It does; now see whether it defined to BIG_ENDIAN or not.
22687cat >conftest.$ac_ext <<_ACEOF
22688/* confdefs.h. */
22689_ACEOF
22690cat confdefs.h >>conftest.$ac_ext
22691cat >>conftest.$ac_ext <<_ACEOF
22692/* end confdefs.h. */
22693#include <sys/types.h>
22694#include <sys/param.h>
22695int
22696main ()
22697{
22698
22699#if BYTE_ORDER != BIG_ENDIAN
22700 not big endian
22701#endif
22702 ;
22703 return 0;
22704}
22705_ACEOF
22706rm -f conftest.$ac_objext
22707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22708 (eval $ac_compile) 2>conftest.er1
a848cd7e 22709 ac_status=$?
ac1cb8d3
VS
22710 grep -v '^ *+' conftest.er1 >conftest.err
22711 rm -f conftest.er1
22712 cat conftest.err >&5
a848cd7e
SC
22713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714 (exit $ac_status); } &&
ca5c6ac3 22715 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22717 (eval $ac_try) 2>&5
22718 ac_status=$?
22719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); }; } &&
22721 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22723 (eval $ac_try) 2>&5
22724 ac_status=$?
22725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726 (exit $ac_status); }; }; then
22727 ac_cv_c_bigendian=yes
22728else
22729 echo "$as_me: failed program was:" >&5
22730sed 's/^/| /' conftest.$ac_ext >&5
22731
22732ac_cv_c_bigendian=no
22733fi
ac1cb8d3 22734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22735else
22736 echo "$as_me: failed program was:" >&5
22737sed 's/^/| /' conftest.$ac_ext >&5
22738
22739fi
ac1cb8d3 22740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22741if test $ac_cv_c_bigendian = unknown; then
22742if test "$cross_compiling" = yes; then
22743 ac_cv_c_bigendian=unknown
22744else
22745 cat >conftest.$ac_ext <<_ACEOF
22746/* confdefs.h. */
22747_ACEOF
22748cat confdefs.h >>conftest.$ac_ext
22749cat >>conftest.$ac_ext <<_ACEOF
22750/* end confdefs.h. */
22751main () {
22752 /* Are we little or big endian? From Harbison&Steele. */
22753 union
22754 {
22755 long l;
22756 char c[sizeof (long)];
22757 } u;
22758 u.l = 1;
22759 exit (u.c[sizeof (long) - 1] == 1);
22760}
22761_ACEOF
22762rm -f conftest$ac_exeext
22763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22764 (eval $ac_link) 2>&5
22765 ac_status=$?
22766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22769 (eval $ac_try) 2>&5
22770 ac_status=$?
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); }; }; then
22773 ac_cv_c_bigendian=no
22774else
22775 echo "$as_me: program exited with status $ac_status" >&5
22776echo "$as_me: failed program was:" >&5
22777sed 's/^/| /' conftest.$ac_ext >&5
22778
22779( exit $ac_status )
22780ac_cv_c_bigendian=yes
22781fi
ac1cb8d3 22782rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22783fi
22784fi
22785fi
22786echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22787echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22788if test $ac_cv_c_bigendian = unknown; then
22789 { 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
22790echo "$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;}
22791fi
22792if test $ac_cv_c_bigendian = yes; then
22793 cat >>confdefs.h <<\_ACEOF
22794#define WORDS_BIGENDIAN 1
22795_ACEOF
22796
22797fi
22798
22799
a848cd7e
SC
22800
22801
22802
22803 ac_ext=cc
22804ac_cpp='$CXXCPP $CPPFLAGS'
22805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22808
22809
22810
22811for ac_header in iostream
22812do
22813as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22814if eval "test \"\${$as_ac_Header+set}\" = set"; then
22815 echo "$as_me:$LINENO: checking for $ac_header" >&5
22816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22817if eval "test \"\${$as_ac_Header+set}\" = set"; then
22818 echo $ECHO_N "(cached) $ECHO_C" >&6
22819fi
22820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22822else
22823 # Is the header compilable?
22824echo "$as_me:$LINENO: checking $ac_header usability" >&5
22825echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22826cat >conftest.$ac_ext <<_ACEOF
22827/* confdefs.h. */
22828_ACEOF
22829cat confdefs.h >>conftest.$ac_ext
22830cat >>conftest.$ac_ext <<_ACEOF
22831/* end confdefs.h. */
22832$ac_includes_default
22833#include <$ac_header>
22834_ACEOF
22835rm -f conftest.$ac_objext
22836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22837 (eval $ac_compile) 2>conftest.er1
a848cd7e 22838 ac_status=$?
ac1cb8d3
VS
22839 grep -v '^ *+' conftest.er1 >conftest.err
22840 rm -f conftest.er1
22841 cat conftest.err >&5
a848cd7e
SC
22842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); } &&
ca5c6ac3 22844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22846 (eval $ac_try) 2>&5
22847 ac_status=$?
22848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); }; } &&
22850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22852 (eval $ac_try) 2>&5
22853 ac_status=$?
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); }; }; then
22856 ac_header_compiler=yes
22857else
22858 echo "$as_me: failed program was:" >&5
22859sed 's/^/| /' conftest.$ac_ext >&5
22860
22861ac_header_compiler=no
22862fi
ac1cb8d3 22863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22864echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22865echo "${ECHO_T}$ac_header_compiler" >&6
22866
22867# Is the header present?
22868echo "$as_me:$LINENO: checking $ac_header presence" >&5
22869echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22870cat >conftest.$ac_ext <<_ACEOF
22871/* confdefs.h. */
22872_ACEOF
22873cat confdefs.h >>conftest.$ac_ext
22874cat >>conftest.$ac_ext <<_ACEOF
22875/* end confdefs.h. */
22876#include <$ac_header>
22877_ACEOF
22878if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22880 ac_status=$?
22881 grep -v '^ *+' conftest.er1 >conftest.err
22882 rm -f conftest.er1
22883 cat conftest.err >&5
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } >/dev/null; then
22886 if test -s conftest.err; then
22887 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22888 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22889 else
22890 ac_cpp_err=
22891 fi
22892else
22893 ac_cpp_err=yes
22894fi
22895if test -z "$ac_cpp_err"; then
22896 ac_header_preproc=yes
22897else
22898 echo "$as_me: failed program was:" >&5
22899sed 's/^/| /' conftest.$ac_ext >&5
22900
22901 ac_header_preproc=no
22902fi
22903rm -f conftest.err conftest.$ac_ext
22904echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22905echo "${ECHO_T}$ac_header_preproc" >&6
22906
22907# So? What about this header?
ac1cb8d3
VS
22908case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22909 yes:no: )
a848cd7e
SC
22910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22911echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22913echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22914 ac_header_preproc=yes
a848cd7e 22915 ;;
ac1cb8d3 22916 no:yes:* )
a848cd7e
SC
22917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22918echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22920echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22922echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22924echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22926echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22928echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22929 (
22930 cat <<\_ASBOX
ac1cb8d3
VS
22931## ----------------------------------------- ##
22932## Report this to wx-dev@lists.wxwidgets.org ##
22933## ----------------------------------------- ##
a848cd7e
SC
22934_ASBOX
22935 ) |
22936 sed "s/^/$as_me: WARNING: /" >&2
22937 ;;
22938esac
22939echo "$as_me:$LINENO: checking for $ac_header" >&5
22940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22941if eval "test \"\${$as_ac_Header+set}\" = set"; then
22942 echo $ECHO_N "(cached) $ECHO_C" >&6
22943else
ac1cb8d3 22944 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22945fi
22946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22948
22949fi
22950if test `eval echo '${'$as_ac_Header'}'` = yes; then
22951 cat >>confdefs.h <<_ACEOF
22952#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22953_ACEOF
22954
22955fi
22956
22957done
22958
22959
22960 if test "$ac_cv_header_iostream" = "yes" ; then
22961 :
22962 else
22963 cat >>confdefs.h <<\_ACEOF
22964#define wxUSE_IOSTREAMH 1
22965_ACEOF
22966
22967 fi
22968
5d7b7554
VZ
22969 ac_ext=cc
22970ac_cpp='$CXXCPP $CPPFLAGS'
22971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22974
22975
22976
22977
22978 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22979echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22980if test "${wx_cv_cpp_bool+set}" = set; then
22981 echo $ECHO_N "(cached) $ECHO_C" >&6
22982else
22983
22984
22985
22986 ac_ext=cc
22987ac_cpp='$CXXCPP $CPPFLAGS'
22988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22991
22992
22993 cat >conftest.$ac_ext <<_ACEOF
22994/* confdefs.h. */
22995_ACEOF
22996cat confdefs.h >>conftest.$ac_ext
22997cat >>conftest.$ac_ext <<_ACEOF
22998/* end confdefs.h. */
22999
23000
23001int
23002main ()
23003{
23004
23005 bool b = true;
23006
23007 return 0;
23008
23009 ;
23010 return 0;
23011}
23012_ACEOF
23013rm -f conftest.$ac_objext
23014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23015 (eval $ac_compile) 2>conftest.er1
a848cd7e 23016 ac_status=$?
ac1cb8d3
VS
23017 grep -v '^ *+' conftest.er1 >conftest.err
23018 rm -f conftest.er1
23019 cat conftest.err >&5
a848cd7e
SC
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); } &&
ca5c6ac3 23022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23024 (eval $ac_try) 2>&5
23025 ac_status=$?
23026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027 (exit $ac_status); }; } &&
23028 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23030 (eval $ac_try) 2>&5
23031 ac_status=$?
23032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033 (exit $ac_status); }; }; then
23034
23035 wx_cv_cpp_bool=yes
23036
23037else
23038 echo "$as_me: failed program was:" >&5
23039sed 's/^/| /' conftest.$ac_ext >&5
23040
23041
23042 wx_cv_cpp_bool=no
23043
23044
23045fi
ac1cb8d3 23046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23047
5d7b7554
VZ
23048 ac_ext=cc
23049ac_cpp='$CXXCPP $CPPFLAGS'
23050ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23051ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23052ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23053
23054
23055fi
23056echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23057echo "${ECHO_T}$wx_cv_cpp_bool" >&6
23058
23059 if test "$wx_cv_cpp_bool" = "yes"; then
23060 cat >>confdefs.h <<\_ACEOF
23061#define HAVE_BOOL 1
23062_ACEOF
23063
23064 fi
23065
23066
23067
23068 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23069echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
23070if test "${wx_cv_explicit+set}" = set; then
23071 echo $ECHO_N "(cached) $ECHO_C" >&6
23072else
23073
23074
23075
23076 ac_ext=cc
23077ac_cpp='$CXXCPP $CPPFLAGS'
23078ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23079ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23080ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23081
23082
23083 cat >conftest.$ac_ext <<_ACEOF
23084/* confdefs.h. */
23085_ACEOF
23086cat confdefs.h >>conftest.$ac_ext
23087cat >>conftest.$ac_ext <<_ACEOF
23088/* end confdefs.h. */
23089
23090 class Foo { public: explicit Foo(int) {} };
23091
23092int
23093main ()
23094{
23095
23096 return 0;
23097
23098 ;
23099 return 0;
23100}
23101_ACEOF
23102rm -f conftest.$ac_objext
23103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23104 (eval $ac_compile) 2>conftest.er1
a848cd7e 23105 ac_status=$?
ac1cb8d3
VS
23106 grep -v '^ *+' conftest.er1 >conftest.err
23107 rm -f conftest.er1
23108 cat conftest.err >&5
a848cd7e
SC
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); } &&
ca5c6ac3 23111 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23113 (eval $ac_try) 2>&5
23114 ac_status=$?
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); }; } &&
23117 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23119 (eval $ac_try) 2>&5
23120 ac_status=$?
23121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122 (exit $ac_status); }; }; then
23123
23124 cat >conftest.$ac_ext <<_ACEOF
23125/* confdefs.h. */
23126_ACEOF
23127cat confdefs.h >>conftest.$ac_ext
23128cat >>conftest.$ac_ext <<_ACEOF
23129/* end confdefs.h. */
23130
23131 class Foo { public: explicit Foo(int) {} };
23132 static void TakeFoo(const Foo& foo) { }
23133
23134int
23135main ()
23136{
23137
23138 TakeFoo(17);
23139 return 0;
23140
23141 ;
23142 return 0;
23143}
23144_ACEOF
23145rm -f conftest.$ac_objext
23146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23147 (eval $ac_compile) 2>conftest.er1
a848cd7e 23148 ac_status=$?
ac1cb8d3
VS
23149 grep -v '^ *+' conftest.er1 >conftest.err
23150 rm -f conftest.er1
23151 cat conftest.err >&5
a848cd7e
SC
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); } &&
ca5c6ac3 23154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23156 (eval $ac_try) 2>&5
23157 ac_status=$?
23158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); }; } &&
23160 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23162 (eval $ac_try) 2>&5
23163 ac_status=$?
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); }; }; then
23166 wx_cv_explicit=no
23167else
23168 echo "$as_me: failed program was:" >&5
23169sed 's/^/| /' conftest.$ac_ext >&5
23170
23171wx_cv_explicit=yes
23172
23173fi
ac1cb8d3 23174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23175
23176else
23177 echo "$as_me: failed program was:" >&5
23178sed 's/^/| /' conftest.$ac_ext >&5
23179
23180wx_cv_explicit=no
23181
23182fi
ac1cb8d3 23183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23184
5d7b7554
VZ
23185 ac_ext=cc
23186ac_cpp='$CXXCPP $CPPFLAGS'
23187ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23188ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23189ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23190
23191
23192fi
23193echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23194echo "${ECHO_T}$wx_cv_explicit" >&6
23195
23196 if test "$wx_cv_explicit" = "yes"; then
23197 cat >>confdefs.h <<\_ACEOF
23198#define HAVE_EXPLICIT 1
23199_ACEOF
23200
23201 fi
23202
23203
23204echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23205echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23206if test "${ac_cv_cxx_const_cast+set}" = set; then
23207 echo $ECHO_N "(cached) $ECHO_C" >&6
23208else
23209
23210
23211 ac_ext=cc
23212ac_cpp='$CXXCPP $CPPFLAGS'
23213ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23214ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23215ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23216
23217 cat >conftest.$ac_ext <<_ACEOF
23218/* confdefs.h. */
23219_ACEOF
23220cat confdefs.h >>conftest.$ac_ext
23221cat >>conftest.$ac_ext <<_ACEOF
23222/* end confdefs.h. */
23223
23224int
23225main ()
23226{
23227int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23228 ;
23229 return 0;
23230}
23231_ACEOF
23232rm -f conftest.$ac_objext
23233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23234 (eval $ac_compile) 2>conftest.er1
a848cd7e 23235 ac_status=$?
ac1cb8d3
VS
23236 grep -v '^ *+' conftest.er1 >conftest.err
23237 rm -f conftest.er1
23238 cat conftest.err >&5
a848cd7e
SC
23239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240 (exit $ac_status); } &&
ca5c6ac3 23241 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23243 (eval $ac_try) 2>&5
23244 ac_status=$?
23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); }; } &&
23247 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23249 (eval $ac_try) 2>&5
23250 ac_status=$?
23251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252 (exit $ac_status); }; }; then
23253 ac_cv_cxx_const_cast=yes
23254else
23255 echo "$as_me: failed program was:" >&5
23256sed 's/^/| /' conftest.$ac_ext >&5
23257
23258ac_cv_cxx_const_cast=no
23259fi
ac1cb8d3 23260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23261 ac_ext=cc
23262ac_cpp='$CXXCPP $CPPFLAGS'
23263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23266
23267
23268fi
23269echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23270echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23271if test "$ac_cv_cxx_const_cast" = yes; then
23272
23273cat >>confdefs.h <<\_ACEOF
23274#define HAVE_CONST_CAST
23275_ACEOF
23276
23277fi
23278
7714864e
RL
23279echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23280echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23281if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23282 echo $ECHO_N "(cached) $ECHO_C" >&6
23283else
23284
23285
23286 ac_ext=cc
23287ac_cpp='$CXXCPP $CPPFLAGS'
23288ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23289ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23290ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23291
23292 cat >conftest.$ac_ext <<_ACEOF
23293/* confdefs.h. */
23294_ACEOF
23295cat confdefs.h >>conftest.$ac_ext
23296cat >>conftest.$ac_ext <<_ACEOF
23297/* end confdefs.h. */
23298#include <typeinfo>
23299class Base { public : Base () {} virtual void f () = 0;};
23300class Derived : public Base { public : Derived () {} virtual void f () {} };
23301class Unrelated { public : Unrelated () {} };
23302int g (Unrelated&) { return 0; }
23303int
23304main ()
23305{
23306
23307Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23308 ;
23309 return 0;
23310}
23311_ACEOF
23312rm -f conftest.$ac_objext
23313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23314 (eval $ac_compile) 2>conftest.er1
23315 ac_status=$?
23316 grep -v '^ *+' conftest.er1 >conftest.err
23317 rm -f conftest.er1
23318 cat conftest.err >&5
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); } &&
ca5c6ac3 23321 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
23322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23323 (eval $ac_try) 2>&5
23324 ac_status=$?
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); }; } &&
23327 { ac_try='test -s conftest.$ac_objext'
23328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23329 (eval $ac_try) 2>&5
23330 ac_status=$?
23331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); }; }; then
23333 ac_cv_cxx_reinterpret_cast=yes
23334else
23335 echo "$as_me: failed program was:" >&5
23336sed 's/^/| /' conftest.$ac_ext >&5
23337
23338ac_cv_cxx_reinterpret_cast=no
23339fi
23340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23341 ac_ext=cc
23342ac_cpp='$CXXCPP $CPPFLAGS'
23343ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23344ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
23346
23347
23348fi
23349echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23350echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23351if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23352
23353cat >>confdefs.h <<\_ACEOF
23354#define HAVE_REINTERPRET_CAST
23355_ACEOF
23356
23357fi
23358
a848cd7e
SC
23359echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23360echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23361if test "${ac_cv_cxx_static_cast+set}" = set; then
23362 echo $ECHO_N "(cached) $ECHO_C" >&6
23363else
23364
23365
23366 ac_ext=cc
23367ac_cpp='$CXXCPP $CPPFLAGS'
23368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23371
23372 cat >conftest.$ac_ext <<_ACEOF
23373/* confdefs.h. */
23374_ACEOF
23375cat confdefs.h >>conftest.$ac_ext
23376cat >>conftest.$ac_ext <<_ACEOF
23377/* end confdefs.h. */
23378#include <typeinfo>
23379class Base { public : Base () {} virtual void f () = 0; };
23380class Derived : public Base { public : Derived () {} virtual void f () {} };
23381int g (Derived&) { return 0; }
23382int
23383main ()
23384{
23385
23386Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23387 ;
23388 return 0;
23389}
23390_ACEOF
23391rm -f conftest.$ac_objext
23392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23393 (eval $ac_compile) 2>conftest.er1
a848cd7e 23394 ac_status=$?
ac1cb8d3
VS
23395 grep -v '^ *+' conftest.er1 >conftest.err
23396 rm -f conftest.er1
23397 cat conftest.err >&5
a848cd7e
SC
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); } &&
ca5c6ac3 23400 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402 (eval $ac_try) 2>&5
23403 ac_status=$?
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); }; } &&
23406 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23408 (eval $ac_try) 2>&5
23409 ac_status=$?
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); }; }; then
23412 ac_cv_cxx_static_cast=yes
23413else
23414 echo "$as_me: failed program was:" >&5
23415sed 's/^/| /' conftest.$ac_ext >&5
23416
23417ac_cv_cxx_static_cast=no
23418fi
ac1cb8d3 23419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23420 ac_ext=cc
23421ac_cpp='$CXXCPP $CPPFLAGS'
23422ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23423ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23424ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23425
23426
23427fi
23428echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23429echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23430if test "$ac_cv_cxx_static_cast" = yes; then
23431
23432cat >>confdefs.h <<\_ACEOF
23433#define HAVE_STATIC_CAST
23434_ACEOF
23435
23436fi
23437
23438
3c28b7cb 23439if test "x$SUNCXX" = xyes; then
c92ad099 23440 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23441fi
23442
9122d155 23443if test "x$SUNCC" = xyes; then
c92ad099 23444 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23445fi
23446
0ad5d837 23447if test "x$SGICC" = "xyes"; then
c92ad099 23448 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23449fi
23450if test "x$SGICXX" = "xyes"; then
c92ad099 23451 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23452fi
23453
2eef8513 23454if test "x$HPCC" = "xyes"; then
c92ad099 23455 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23456fi
23457if test "x$HPCXX" = "xyes"; then
c92ad099 23458 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23459fi
23460
23461if test "x$COMPAQCXX" = "xyes"; then
23462 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23463fi
23464
f56c22b4 23465if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23466 if test "$wxUSE_UNICODE" = "yes"; then
23467 std_string="std::wstring"
23468 char_type="wchar_t"
23469 else
23470 std_string="std::string"
23471 char_type="char"
23472 fi
23473
23474 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23475echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
23476 cat >conftest.$ac_ext <<_ACEOF
23477/* confdefs.h. */
23478_ACEOF
23479cat confdefs.h >>conftest.$ac_ext
23480cat >>conftest.$ac_ext <<_ACEOF
23481/* end confdefs.h. */
23482#include <string>
a848cd7e
SC
23483int
23484main ()
23485{
f56c22b4 23486$std_string foo;
a848cd7e
SC
23487 ;
23488 return 0;
23489}
23490_ACEOF
23491rm -f conftest.$ac_objext
23492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23493 (eval $ac_compile) 2>conftest.er1
a848cd7e 23494 ac_status=$?
ac1cb8d3
VS
23495 grep -v '^ *+' conftest.er1 >conftest.err
23496 rm -f conftest.er1
23497 cat conftest.err >&5
a848cd7e
SC
23498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499 (exit $ac_status); } &&
ca5c6ac3 23500 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23502 (eval $ac_try) 2>&5
23503 ac_status=$?
23504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23505 (exit $ac_status); }; } &&
23506 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23508 (eval $ac_try) 2>&5
23509 ac_status=$?
23510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511 (exit $ac_status); }; }; then
23512 echo "$as_me:$LINENO: result: yes" >&5
23513echo "${ECHO_T}yes" >&6
0a08f02a
MB
23514 cat >>confdefs.h <<\_ACEOF
23515#define HAVE_STD_WSTRING 1
23516_ACEOF
23517
a848cd7e
SC
23518else
23519 echo "$as_me: failed program was:" >&5
23520sed 's/^/| /' conftest.$ac_ext >&5
23521
23522echo "$as_me:$LINENO: result: no" >&5
23523echo "${ECHO_T}no" >&6
f56c22b4
MW
23524 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23525echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23526 cat >conftest.$ac_ext <<_ACEOF
23527/* confdefs.h. */
23528_ACEOF
23529cat confdefs.h >>conftest.$ac_ext
23530cat >>conftest.$ac_ext <<_ACEOF
23531/* end confdefs.h. */
23532
23533 #ifdef HAVE_WCHAR_H
23534 # ifdef __CYGWIN__
23535 # include <stddef.h>
23536 # endif
23537 # include <wchar.h>
23538 #endif
23539 #ifdef HAVE_STDLIB_H
23540 # include <stdlib.h>
23541 #endif
23542 #include <stdio.h>
23543 #include <string>
23544
23545int
23546main ()
23547{
f56c22b4
MW
23548std::basic_string<$char_type> foo;
23549 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23550 ;
23551 return 0;
23552}
23553_ACEOF
23554rm -f conftest.$ac_objext
23555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23556 (eval $ac_compile) 2>conftest.er1
23557 ac_status=$?
23558 grep -v '^ *+' conftest.er1 >conftest.err
23559 rm -f conftest.er1
23560 cat conftest.err >&5
23561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); } &&
ca5c6ac3 23563 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
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'
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 echo "$as_me:$LINENO: result: yes" >&5
23576echo "${ECHO_T}yes" >&6
23577else
23578 echo "$as_me: failed program was:" >&5
23579sed 's/^/| /' conftest.$ac_ext >&5
23580
23581echo "$as_me:$LINENO: result: no" >&5
23582echo "${ECHO_T}no" >&6
f56c22b4 23583 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23584 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23585echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23586 { (exit 1); exit 1; }; }
23587 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23588 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23589echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23590 { (exit 1); exit 1; }; }
f56c22b4
MW
23591 else
23592 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23593echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23594 wxUSE_STD_STRING=no
23595 fi
23596
0a08f02a 23597
a848cd7e 23598fi
ac1cb8d3 23599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23600
0a08f02a
MB
23601fi
23602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
23603fi
23604
23605if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23606 echo "$as_me:$LINENO: checking for std::istream" >&5
23607echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23608if test "${ac_cv_type_std__istream+set}" = set; then
23609 echo $ECHO_N "(cached) $ECHO_C" >&6
23610else
23611 cat >conftest.$ac_ext <<_ACEOF
23612/* confdefs.h. */
23613_ACEOF
23614cat confdefs.h >>conftest.$ac_ext
23615cat >>conftest.$ac_ext <<_ACEOF
23616/* end confdefs.h. */
23617#include <iostream>
23618
23619int
23620main ()
23621{
23622if ((std::istream *) 0)
23623 return 0;
23624if (sizeof (std::istream))
23625 return 0;
23626 ;
23627 return 0;
23628}
23629_ACEOF
23630rm -f conftest.$ac_objext
23631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23632 (eval $ac_compile) 2>conftest.er1
23633 ac_status=$?
23634 grep -v '^ *+' conftest.er1 >conftest.err
23635 rm -f conftest.er1
23636 cat conftest.err >&5
23637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638 (exit $ac_status); } &&
ca5c6ac3 23639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23641 (eval $ac_try) 2>&5
23642 ac_status=$?
23643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644 (exit $ac_status); }; } &&
23645 { ac_try='test -s conftest.$ac_objext'
23646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23647 (eval $ac_try) 2>&5
23648 ac_status=$?
23649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650 (exit $ac_status); }; }; then
23651 ac_cv_type_std__istream=yes
23652else
23653 echo "$as_me: failed program was:" >&5
23654sed 's/^/| /' conftest.$ac_ext >&5
23655
23656ac_cv_type_std__istream=no
23657fi
23658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23659fi
23660echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23661echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23662if test $ac_cv_type_std__istream = yes; then
23663
23664cat >>confdefs.h <<_ACEOF
23665#define HAVE_STD__ISTREAM 1
23666_ACEOF
23667
23668
23669else
23670 wxUSE_STD_IOSTREAM=no
23671fi
23672echo "$as_me:$LINENO: checking for std::ostream" >&5
23673echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23674if test "${ac_cv_type_std__ostream+set}" = set; then
23675 echo $ECHO_N "(cached) $ECHO_C" >&6
23676else
23677 cat >conftest.$ac_ext <<_ACEOF
23678/* confdefs.h. */
23679_ACEOF
23680cat confdefs.h >>conftest.$ac_ext
23681cat >>conftest.$ac_ext <<_ACEOF
23682/* end confdefs.h. */
23683#include <iostream>
23684
23685int
23686main ()
23687{
23688if ((std::ostream *) 0)
23689 return 0;
23690if (sizeof (std::ostream))
23691 return 0;
23692 ;
23693 return 0;
23694}
23695_ACEOF
23696rm -f conftest.$ac_objext
23697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23698 (eval $ac_compile) 2>conftest.er1
23699 ac_status=$?
23700 grep -v '^ *+' conftest.er1 >conftest.err
23701 rm -f conftest.er1
23702 cat conftest.err >&5
23703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704 (exit $ac_status); } &&
ca5c6ac3 23705 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23707 (eval $ac_try) 2>&5
23708 ac_status=$?
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); }; } &&
23711 { ac_try='test -s conftest.$ac_objext'
23712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23713 (eval $ac_try) 2>&5
23714 ac_status=$?
23715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716 (exit $ac_status); }; }; then
23717 ac_cv_type_std__ostream=yes
23718else
23719 echo "$as_me: failed program was:" >&5
23720sed 's/^/| /' conftest.$ac_ext >&5
23721
23722ac_cv_type_std__ostream=no
23723fi
23724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23725fi
23726echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23727echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23728if test $ac_cv_type_std__ostream = yes; then
23729
23730cat >>confdefs.h <<_ACEOF
23731#define HAVE_STD__OSTREAM 1
23732_ACEOF
23733
23734
23735else
23736 wxUSE_STD_IOSTREAM=no
23737fi
23738
23739
23740 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23741 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23742 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23743echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23744 { (exit 1); exit 1; }; }
23745 else
23746 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23747echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23748 fi
f56c22b4 23749 fi
0a08f02a
MB
23750fi
23751
23752if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23753 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23754echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23755 cat >conftest.$ac_ext <<_ACEOF
23756/* confdefs.h. */
23757_ACEOF
23758cat confdefs.h >>conftest.$ac_ext
23759cat >>conftest.$ac_ext <<_ACEOF
23760/* end confdefs.h. */
23761#include <string>
0a08f02a
MB
23762 #include <functional>
23763 #include <algorithm>
23764 #include <vector>
23765 #include <list>
a848cd7e
SC
23766int
23767main ()
23768{
0a08f02a
MB
23769std::vector<int> moo;
23770 std::list<int> foo;
23771 std::vector<int>::iterator it =
23772 std::find_if(moo.begin(), moo.end(),
23773 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23774 ;
23775 return 0;
23776}
23777_ACEOF
23778rm -f conftest.$ac_objext
23779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23780 (eval $ac_compile) 2>conftest.er1
a848cd7e 23781 ac_status=$?
ac1cb8d3
VS
23782 grep -v '^ *+' conftest.er1 >conftest.err
23783 rm -f conftest.er1
23784 cat conftest.err >&5
a848cd7e
SC
23785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); } &&
ca5c6ac3 23787 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23789 (eval $ac_try) 2>&5
23790 ac_status=$?
23791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792 (exit $ac_status); }; } &&
23793 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23795 (eval $ac_try) 2>&5
23796 ac_status=$?
23797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798 (exit $ac_status); }; }; then
23799 echo "$as_me:$LINENO: result: yes" >&5
23800echo "${ECHO_T}yes" >&6
a848cd7e
SC
23801else
23802 echo "$as_me: failed program was:" >&5
23803sed 's/^/| /' conftest.$ac_ext >&5
23804
23805echo "$as_me:$LINENO: result: no" >&5
23806echo "${ECHO_T}no" >&6
0a08f02a
MB
23807 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23808echo "$as_me: error: Basic STL functionality missing" >&2;}
23809 { (exit 1); exit 1; }; }
a848cd7e 23810fi
ac1cb8d3 23811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23812
23813 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23814echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23815 cat >conftest.$ac_ext <<_ACEOF
23816/* confdefs.h. */
23817_ACEOF
23818cat confdefs.h >>conftest.$ac_ext
23819cat >>conftest.$ac_ext <<_ACEOF
23820/* end confdefs.h. */
23821#include <string>
23822int
23823main ()
23824{
23825std::string foo, bar;
23826 foo.compare(bar);
23827 foo.compare(1, 1, bar);
23828 foo.compare(1, 1, bar, 1, 1);
23829 foo.compare("");
23830 foo.compare(1, 1, "");
23831 foo.compare(1, 1, "", 2);
23832 ;
23833 return 0;
23834}
23835_ACEOF
23836rm -f conftest.$ac_objext
23837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23838 (eval $ac_compile) 2>conftest.er1
a848cd7e 23839 ac_status=$?
ac1cb8d3
VS
23840 grep -v '^ *+' conftest.er1 >conftest.err
23841 rm -f conftest.er1
23842 cat conftest.err >&5
a848cd7e
SC
23843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844 (exit $ac_status); } &&
ca5c6ac3 23845 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23847 (eval $ac_try) 2>&5
23848 ac_status=$?
23849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850 (exit $ac_status); }; } &&
23851 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23853 (eval $ac_try) 2>&5
23854 ac_status=$?
23855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23856 (exit $ac_status); }; }; then
23857 echo "$as_me:$LINENO: result: yes" >&5
23858echo "${ECHO_T}yes" >&6
23859 cat >>confdefs.h <<\_ACEOF
23860#define HAVE_STD_STRING_COMPARE 1
23861_ACEOF
23862
23863else
23864 echo "$as_me: failed program was:" >&5
23865sed 's/^/| /' conftest.$ac_ext >&5
23866
23867echo "$as_me:$LINENO: result: no" >&5
23868echo "${ECHO_T}no" >&6
23869fi
ac1cb8d3 23870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23871
23872 if test "${ac_cv_header_hash_map+set}" = set; then
23873 echo "$as_me:$LINENO: checking for hash_map" >&5
23874echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23875if test "${ac_cv_header_hash_map+set}" = set; then
23876 echo $ECHO_N "(cached) $ECHO_C" >&6
23877fi
23878echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23879echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23880else
23881 # Is the header compilable?
23882echo "$as_me:$LINENO: checking hash_map usability" >&5
23883echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23884cat >conftest.$ac_ext <<_ACEOF
23885/* confdefs.h. */
23886_ACEOF
23887cat confdefs.h >>conftest.$ac_ext
23888cat >>conftest.$ac_ext <<_ACEOF
23889/* end confdefs.h. */
23890$ac_includes_default
23891#include <hash_map>
23892_ACEOF
23893rm -f conftest.$ac_objext
23894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23895 (eval $ac_compile) 2>conftest.er1
bdcade0a 23896 ac_status=$?
ac1cb8d3
VS
23897 grep -v '^ *+' conftest.er1 >conftest.err
23898 rm -f conftest.er1
23899 cat conftest.err >&5
bdcade0a
MB
23900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901 (exit $ac_status); } &&
ca5c6ac3 23902 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23904 (eval $ac_try) 2>&5
23905 ac_status=$?
23906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); }; } &&
23908 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23910 (eval $ac_try) 2>&5
23911 ac_status=$?
23912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23913 (exit $ac_status); }; }; then
23914 ac_header_compiler=yes
23915else
23916 echo "$as_me: failed program was:" >&5
23917sed 's/^/| /' conftest.$ac_ext >&5
23918
23919ac_header_compiler=no
23920fi
ac1cb8d3 23921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23922echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23923echo "${ECHO_T}$ac_header_compiler" >&6
23924
23925# Is the header present?
23926echo "$as_me:$LINENO: checking hash_map presence" >&5
23927echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23928cat >conftest.$ac_ext <<_ACEOF
23929/* confdefs.h. */
23930_ACEOF
23931cat confdefs.h >>conftest.$ac_ext
23932cat >>conftest.$ac_ext <<_ACEOF
23933/* end confdefs.h. */
23934#include <hash_map>
23935_ACEOF
23936if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23938 ac_status=$?
23939 grep -v '^ *+' conftest.er1 >conftest.err
23940 rm -f conftest.er1
23941 cat conftest.err >&5
23942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943 (exit $ac_status); } >/dev/null; then
23944 if test -s conftest.err; then
23945 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23946 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23947 else
23948 ac_cpp_err=
23949 fi
23950else
23951 ac_cpp_err=yes
23952fi
23953if test -z "$ac_cpp_err"; then
23954 ac_header_preproc=yes
23955else
23956 echo "$as_me: failed program was:" >&5
23957sed 's/^/| /' conftest.$ac_ext >&5
23958
23959 ac_header_preproc=no
23960fi
23961rm -f conftest.err conftest.$ac_ext
23962echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23963echo "${ECHO_T}$ac_header_preproc" >&6
23964
23965# So? What about this header?
ac1cb8d3
VS
23966case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23967 yes:no: )
bdcade0a
MB
23968 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23969echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23970 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23971echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23972 ac_header_preproc=yes
bdcade0a 23973 ;;
ac1cb8d3 23974 no:yes:* )
bdcade0a
MB
23975 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23976echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23977 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23978echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23979 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23980echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23981 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23982echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23983 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23984echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23985 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23986echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23987 (
23988 cat <<\_ASBOX
ac1cb8d3
VS
23989## ----------------------------------------- ##
23990## Report this to wx-dev@lists.wxwidgets.org ##
23991## ----------------------------------------- ##
bdcade0a
MB
23992_ASBOX
23993 ) |
23994 sed "s/^/$as_me: WARNING: /" >&2
23995 ;;
23996esac
23997echo "$as_me:$LINENO: checking for hash_map" >&5
23998echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23999if test "${ac_cv_header_hash_map+set}" = set; then
24000 echo $ECHO_N "(cached) $ECHO_C" >&6
24001else
24002 ac_cv_header_hash_map=$ac_header_preproc
24003fi
24004echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24005echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24006
24007fi
24008if test $ac_cv_header_hash_map = yes; then
24009 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24010echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24011 cat >conftest.$ac_ext <<_ACEOF
24012/* confdefs.h. */
24013_ACEOF
24014cat confdefs.h >>conftest.$ac_ext
24015cat >>conftest.$ac_ext <<_ACEOF
24016/* end confdefs.h. */
24017#include <hash_map>
24018 #include <hash_set>
24019int
24020main ()
24021{
24022std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
24023 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
24024 ;
24025 return 0;
24026}
24027_ACEOF
24028rm -f conftest.$ac_objext
24029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24030 (eval $ac_compile) 2>conftest.er1
bdcade0a 24031 ac_status=$?
ac1cb8d3
VS
24032 grep -v '^ *+' conftest.er1 >conftest.err
24033 rm -f conftest.er1
24034 cat conftest.err >&5
bdcade0a
MB
24035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036 (exit $ac_status); } &&
ca5c6ac3 24037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24039 (eval $ac_try) 2>&5
24040 ac_status=$?
24041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24042 (exit $ac_status); }; } &&
24043 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24045 (eval $ac_try) 2>&5
24046 ac_status=$?
24047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048 (exit $ac_status); }; }; then
24049 echo "$as_me:$LINENO: result: yes" >&5
24050echo "${ECHO_T}yes" >&6
24051 cat >>confdefs.h <<\_ACEOF
24052#define HAVE_HASH_MAP 1
24053_ACEOF
24054
24055 cat >>confdefs.h <<\_ACEOF
24056#define HAVE_STD_HASH_MAP 1
24057_ACEOF
24058
24059else
24060 echo "$as_me: failed program was:" >&5
24061sed 's/^/| /' conftest.$ac_ext >&5
24062
24063echo "$as_me:$LINENO: result: no" >&5
24064echo "${ECHO_T}no" >&6
24065fi
ac1cb8d3 24066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24067
24068fi
24069
24070
24071
24072 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24073 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24074echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24075if test "${ac_cv_header_ext_hash_map+set}" = set; then
24076 echo $ECHO_N "(cached) $ECHO_C" >&6
24077fi
24078echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24079echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24080else
24081 # Is the header compilable?
24082echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
24083echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
24084cat >conftest.$ac_ext <<_ACEOF
24085/* confdefs.h. */
24086_ACEOF
24087cat confdefs.h >>conftest.$ac_ext
24088cat >>conftest.$ac_ext <<_ACEOF
24089/* end confdefs.h. */
24090$ac_includes_default
24091#include <ext/hash_map>
24092_ACEOF
24093rm -f conftest.$ac_objext
24094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24095 (eval $ac_compile) 2>conftest.er1
bdcade0a 24096 ac_status=$?
ac1cb8d3
VS
24097 grep -v '^ *+' conftest.er1 >conftest.err
24098 rm -f conftest.er1
24099 cat conftest.err >&5
bdcade0a
MB
24100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); } &&
ca5c6ac3 24102 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24104 (eval $ac_try) 2>&5
24105 ac_status=$?
24106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24107 (exit $ac_status); }; } &&
24108 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24110 (eval $ac_try) 2>&5
24111 ac_status=$?
24112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113 (exit $ac_status); }; }; then
24114 ac_header_compiler=yes
24115else
24116 echo "$as_me: failed program was:" >&5
24117sed 's/^/| /' conftest.$ac_ext >&5
24118
24119ac_header_compiler=no
24120fi
ac1cb8d3 24121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24122echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24123echo "${ECHO_T}$ac_header_compiler" >&6
24124
24125# Is the header present?
24126echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
24127echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
24128cat >conftest.$ac_ext <<_ACEOF
24129/* confdefs.h. */
24130_ACEOF
24131cat confdefs.h >>conftest.$ac_ext
24132cat >>conftest.$ac_ext <<_ACEOF
24133/* end confdefs.h. */
24134#include <ext/hash_map>
24135_ACEOF
24136if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24138 ac_status=$?
24139 grep -v '^ *+' conftest.er1 >conftest.err
24140 rm -f conftest.er1
24141 cat conftest.err >&5
24142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143 (exit $ac_status); } >/dev/null; then
24144 if test -s conftest.err; then
24145 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24146 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24147 else
24148 ac_cpp_err=
24149 fi
24150else
24151 ac_cpp_err=yes
24152fi
24153if test -z "$ac_cpp_err"; then
24154 ac_header_preproc=yes
24155else
24156 echo "$as_me: failed program was:" >&5
24157sed 's/^/| /' conftest.$ac_ext >&5
24158
24159 ac_header_preproc=no
24160fi
24161rm -f conftest.err conftest.$ac_ext
24162echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24163echo "${ECHO_T}$ac_header_preproc" >&6
24164
24165# So? What about this header?
ac1cb8d3
VS
24166case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24167 yes:no: )
bdcade0a
MB
24168 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24169echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24170 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
24171echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
24172 ac_header_preproc=yes
bdcade0a 24173 ;;
ac1cb8d3 24174 no:yes:* )
bdcade0a
MB
24175 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
24176echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24177 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
24178echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
24179 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
24180echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
24181 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
24182echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24183 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
24184echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24185 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
24186echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24187 (
24188 cat <<\_ASBOX
ac1cb8d3
VS
24189## ----------------------------------------- ##
24190## Report this to wx-dev@lists.wxwidgets.org ##
24191## ----------------------------------------- ##
bdcade0a
MB
24192_ASBOX
24193 ) |
24194 sed "s/^/$as_me: WARNING: /" >&2
24195 ;;
24196esac
24197echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24198echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24199if test "${ac_cv_header_ext_hash_map+set}" = set; then
24200 echo $ECHO_N "(cached) $ECHO_C" >&6
24201else
24202 ac_cv_header_ext_hash_map=$ac_header_preproc
24203fi
24204echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24205echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24206
24207fi
24208if test $ac_cv_header_ext_hash_map = yes; then
24209 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24210echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24211 cat >conftest.$ac_ext <<_ACEOF
24212/* confdefs.h. */
24213_ACEOF
24214cat confdefs.h >>conftest.$ac_ext
24215cat >>conftest.$ac_ext <<_ACEOF
24216/* end confdefs.h. */
24217#include <ext/hash_map>
24218 #include <ext/hash_set>
24219int
24220main ()
24221{
24222__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24223 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24224 ;
24225 return 0;
24226}
24227_ACEOF
24228rm -f conftest.$ac_objext
24229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24230 (eval $ac_compile) 2>conftest.er1
bdcade0a 24231 ac_status=$?
ac1cb8d3
VS
24232 grep -v '^ *+' conftest.er1 >conftest.err
24233 rm -f conftest.er1
24234 cat conftest.err >&5
bdcade0a
MB
24235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236 (exit $ac_status); } &&
ca5c6ac3 24237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24239 (eval $ac_try) 2>&5
24240 ac_status=$?
24241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24242 (exit $ac_status); }; } &&
24243 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24245 (eval $ac_try) 2>&5
24246 ac_status=$?
24247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248 (exit $ac_status); }; }; then
24249 echo "$as_me:$LINENO: result: yes" >&5
24250echo "${ECHO_T}yes" >&6
24251 cat >>confdefs.h <<\_ACEOF
24252#define HAVE_EXT_HASH_MAP 1
24253_ACEOF
24254
24255 cat >>confdefs.h <<\_ACEOF
24256#define HAVE_GNU_CXX_HASH_MAP 1
24257_ACEOF
24258
24259else
24260 echo "$as_me: failed program was:" >&5
24261sed 's/^/| /' conftest.$ac_ext >&5
24262
24263echo "$as_me:$LINENO: result: no" >&5
24264echo "${ECHO_T}no" >&6
24265fi
ac1cb8d3 24266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24267
24268fi
24269
24270
a848cd7e
SC
24271fi
24272
24273
24274SEARCH_INCLUDE="\
24275 /usr/local/include \
24276 \
24277 /usr/Motif-2.1/include \
24278 /usr/Motif-1.2/include \
24279 /usr/include/Motif1.2 \
a848cd7e
SC
24280 \
24281 /usr/dt/include \
24282 /usr/openwin/include \
24283 \
24284 /usr/include/Xm \
24285 \
24286 /usr/X11R6/include \
24287 /usr/X11R6.4/include \
24288 /usr/X11R5/include \
24289 /usr/X11R4/include \
24290 \
24291 /usr/include/X11R6 \
24292 /usr/include/X11R5 \
24293 /usr/include/X11R4 \
24294 \
24295 /usr/local/X11R6/include \
24296 /usr/local/X11R5/include \
24297 /usr/local/X11R4/include \
24298 \
24299 /usr/local/include/X11R6 \
24300 /usr/local/include/X11R5 \
24301 /usr/local/include/X11R4 \
24302 \
24303 /usr/X11/include \
24304 /usr/include/X11 \
24305 /usr/local/X11/include \
24306 /usr/local/include/X11 \
24307 \
a848cd7e 24308 /usr/XFree86/include/X11 \
e051b34e
MW
24309 /usr/pkg/include \
24310 \
a848cd7e
SC
24311 /usr/openwin/share/include"
24312
6f9cf1e6 24313echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 24314echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24315
24316case "${host}" in
24317 *-*-irix6* )
24318 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24319 echo $ECHO_N "(cached) $ECHO_C" >&6
24320else
24321
c687b303
VZ
24322 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24323 for e in a so sl dylib dll.a; do
24324 libc="$d/libc.$e"
24325 if test -f $libc; then
24326 save_LIBS="$LIBS"
24327 LIBS="$libc"
24328 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24329int main() { return 0; }
24330_ACEOF
24331rm -f conftest.$ac_objext conftest$ac_exeext
24332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24333 (eval $ac_link) 2>conftest.er1
24334 ac_status=$?
24335 grep -v '^ *+' conftest.er1 >conftest.err
24336 rm -f conftest.er1
24337 cat conftest.err >&5
24338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24339 (exit $ac_status); } &&
ca5c6ac3 24340 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
24341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24342 (eval $ac_try) 2>&5
24343 ac_status=$?
24344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345 (exit $ac_status); }; } &&
24346 { ac_try='test -s conftest$ac_exeext'
24347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24348 (eval $ac_try) 2>&5
24349 ac_status=$?
24350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); }; }; then
24352 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24353else
24354 echo "$as_me: failed program was:" >&5
24355sed 's/^/| /' conftest.$ac_ext >&5
24356
24357fi
24358rm -f conftest.err conftest.$ac_objext \
24359 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24360 LIBS="$save_LIBS"
24361 if test "x$wx_cv_std_libpath" != "x"; then
24362 break 2
24363 fi
24364 fi
24365 done
24366 done
24367 if test "x$wx_cv_std_libpath" = "x"; then
24368 wx_cv_std_libpath="lib"
0ad5d837 24369 fi
0ad5d837
VZ
24370
24371
24372fi
6f9cf1e6
MW
24373
24374 ;;
24375
24376 *-*-solaris2* )
24377 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24378 wx_cv_std_libpath="lib/64"
24379 else
24380 wx_cv_std_libpath="lib"
24381 fi
24382 ;;
24383
24384 *-*-linux* )
24385 if test "$ac_cv_sizeof_void_p" = 8 -a \
24386 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24387 wx_cv_std_libpath="lib64"
24388 else
24389 wx_cv_std_libpath="lib"
24390 fi
c687b303
VZ
24391 ;;
24392
24393 *)
24394 wx_cv_std_libpath="lib";
24395 ;;
24396esac
0ad5d837 24397
6f9cf1e6
MW
24398echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24399echo "${ECHO_T}$wx_cv_std_libpath" >&6
24400
24401SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24402
3eca31dc
MW
24403if test "$build" != "$host" -a "$GCC" = yes; then
24404 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24405 cross_root=`dirname $cross_root`
24406 cross_root=`dirname $cross_root`
24407
24408 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24409 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24410 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24411
24412 if test -z "$PKG_CONFIG_PATH"; then
24413 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24414 export PKG_CONFIG_PATH
24415 fi
24416
24417 if test -z "$x_includes" -o "$x_includes" = NONE; then
24418
24419ac_find_includes=
24420for ac_dir in $SEARCH_INCLUDE /usr/include;
24421 do
24422 if test -f "$ac_dir/X11/Intrinsic.h"; then
24423 ac_find_includes=$ac_dir
24424 break
24425 fi
24426 done
24427
24428 x_includes=$ac_find_includes
24429 fi
24430 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24431
0ad5d837
VZ
24432 ac_find_libraries=
24433 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24434 do
24435 for ac_extension in a so sl dylib dll.a; do
24436 if test -f "$ac_dir/libXt.$ac_extension"; then
24437 ac_find_libraries=$ac_dir
24438 break 2
24439 fi
24440 done
24441 done
24442
24443 x_libraries=$ac_find_libraries
24444 fi
24445 fi
24446fi
24447
a848cd7e
SC
24448
24449cat >confcache <<\_ACEOF
24450# This file is a shell script that caches the results of configure
24451# tests run on this system so they can be shared between configure
24452# scripts and configure runs, see configure's option --config-cache.
24453# It is not useful on other systems. If it contains results you don't
24454# want to keep, you may remove or edit it.
24455#
24456# config.status only pays attention to the cache file if you give it
24457# the --recheck option to rerun configure.
24458#
24459# `ac_cv_env_foo' variables (set or unset) will be overridden when
24460# loading this file, other *unset* `ac_cv_foo' will be assigned the
24461# following values.
24462
24463_ACEOF
24464
24465# The following way of writing the cache mishandles newlines in values,
24466# but we know of no workaround that is simple, portable, and efficient.
24467# So, don't put newlines in cache variables' values.
24468# Ultrix sh set writes to stderr and can't be redirected directly,
24469# and sets the high bit in the cache file unless we assign to the vars.
24470{
24471 (set) 2>&1 |
24472 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24473 *ac_space=\ *)
24474 # `set' does not quote correctly, so add quotes (double-quote
24475 # substitution turns \\\\ into \\, and sed turns \\ into \).
24476 sed -n \
ac1cb8d3
VS
24477 "s/'/'\\\\''/g;
24478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24479 ;;
24480 *)
24481 # `set' quotes correctly as required by POSIX, so do not add quotes.
24482 sed -n \
ac1cb8d3 24483 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24484 ;;
24485 esac;
24486} |
24487 sed '
24488 t clear
24489 : clear
24490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24491 t end
24492 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24493 : end' >>confcache
24494if diff $cache_file confcache >/dev/null 2>&1; then :; else
24495 if test -w $cache_file; then
24496 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24497 cat confcache >$cache_file
24498 else
24499 echo "not updating unwritable cache $cache_file"
24500 fi
24501fi
24502rm -f confcache
24503
24504if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24505 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24506echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24507if test "${wx_cv_lib_glibc21+set}" = set; then
24508 echo $ECHO_N "(cached) $ECHO_C" >&6
24509else
24510
24511 cat >conftest.$ac_ext <<_ACEOF
24512/* confdefs.h. */
24513_ACEOF
24514cat confdefs.h >>conftest.$ac_ext
24515cat >>conftest.$ac_ext <<_ACEOF
24516/* end confdefs.h. */
24517#include <features.h>
24518int
24519main ()
24520{
24521
24522 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24523 not glibc 2.1
a848cd7e
SC
24524 #endif
24525
24526 ;
24527 return 0;
24528}
24529_ACEOF
24530rm -f conftest.$ac_objext
24531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24532 (eval $ac_compile) 2>conftest.er1
a848cd7e 24533 ac_status=$?
ac1cb8d3
VS
24534 grep -v '^ *+' conftest.er1 >conftest.err
24535 rm -f conftest.er1
24536 cat conftest.err >&5
a848cd7e
SC
24537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538 (exit $ac_status); } &&
ca5c6ac3 24539 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24541 (eval $ac_try) 2>&5
24542 ac_status=$?
24543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); }; } &&
24545 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24547 (eval $ac_try) 2>&5
24548 ac_status=$?
24549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550 (exit $ac_status); }; }; then
24551
24552 wx_cv_lib_glibc21=yes
24553
24554else
24555 echo "$as_me: failed program was:" >&5
24556sed 's/^/| /' conftest.$ac_ext >&5
24557
24558
24559 wx_cv_lib_glibc21=no
24560
24561
24562fi
ac1cb8d3 24563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24564
24565fi
24566echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24567echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24568 if test "$wx_cv_lib_glibc21" = "yes"; then
24569 cat >>confdefs.h <<\_ACEOF
24570#define wxHAVE_GLIBC2 1
24571_ACEOF
24572
24573 fi
24574fi
24575
24576if test "x$wx_cv_lib_glibc21" = "xyes"; then
24577 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24578 cat >>confdefs.h <<\_ACEOF
24579#define _GNU_SOURCE 1
24580_ACEOF
24581
24582 fi
24583fi
24584
5d7b7554
VZ
24585have_cos=0
24586have_floor=0
a848cd7e 24587
5d7b7554
VZ
24588for ac_func in cos
24589do
24590as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24591echo "$as_me:$LINENO: checking for $ac_func" >&5
24592echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24593if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24594 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24595else
5d7b7554 24596 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24597/* confdefs.h. */
24598_ACEOF
24599cat confdefs.h >>conftest.$ac_ext
24600cat >>conftest.$ac_ext <<_ACEOF
24601/* end confdefs.h. */
5d7b7554
VZ
24602/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24604#define $ac_func innocuous_$ac_func
24605
24606/* System header to define __stub macros and hopefully few prototypes,
24607 which can conflict with char $ac_func (); below.
24608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24609 <limits.h> exists even on freestanding compilers. */
24610
24611#ifdef __STDC__
24612# include <limits.h>
24613#else
24614# include <assert.h>
24615#endif
24616
24617#undef $ac_func
24618
24619/* Override any gcc2 internal prototype to avoid an error. */
24620#ifdef __cplusplus
24621extern "C"
24622{
24623#endif
24624/* We use char because int might match the return type of a gcc2
24625 builtin and then its argument prototype would still apply. */
24626char $ac_func ();
24627/* The GNU C library defines this for functions which it implements
24628 to always fail with ENOSYS. Some functions are actually named
24629 something starting with __ and the normal name is an alias. */
24630#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24631choke me
24632#else
24633char (*f) () = $ac_func;
24634#endif
24635#ifdef __cplusplus
24636}
24637#endif
24638
24639int
24640main ()
24641{
24642return f != $ac_func;
24643 ;
24644 return 0;
24645}
a848cd7e 24646_ACEOF
5d7b7554
VZ
24647rm -f conftest.$ac_objext conftest$ac_exeext
24648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24649 (eval $ac_link) 2>conftest.er1
a848cd7e 24650 ac_status=$?
ac1cb8d3
VS
24651 grep -v '^ *+' conftest.er1 >conftest.err
24652 rm -f conftest.er1
24653 cat conftest.err >&5
a848cd7e
SC
24654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24655 (exit $ac_status); } &&
ca5c6ac3 24656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24658 (eval $ac_try) 2>&5
24659 ac_status=$?
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); }; } &&
5d7b7554 24662 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
5d7b7554 24668 eval "$as_ac_var=yes"
a848cd7e
SC
24669else
24670 echo "$as_me: failed program was:" >&5
24671sed 's/^/| /' conftest.$ac_ext >&5
24672
5d7b7554 24673eval "$as_ac_var=no"
a848cd7e 24674fi
5d7b7554
VZ
24675rm -f conftest.err conftest.$ac_objext \
24676 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24677fi
5d7b7554
VZ
24678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24679echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24680if test `eval echo '${'$as_ac_var'}'` = yes; then
24681 cat >>confdefs.h <<_ACEOF
24682#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24683_ACEOF
24684 have_cos=1
a848cd7e 24685fi
5d7b7554 24686done
a848cd7e 24687
ab0f0edd 24688
5d7b7554 24689for ac_func in floor
a848cd7e
SC
24690do
24691as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24692echo "$as_me:$LINENO: checking for $ac_func" >&5
24693echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24694if eval "test \"\${$as_ac_var+set}\" = set"; then
24695 echo $ECHO_N "(cached) $ECHO_C" >&6
24696else
24697 cat >conftest.$ac_ext <<_ACEOF
24698/* confdefs.h. */
24699_ACEOF
24700cat confdefs.h >>conftest.$ac_ext
24701cat >>conftest.$ac_ext <<_ACEOF
24702/* end confdefs.h. */
ac1cb8d3
VS
24703/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24705#define $ac_func innocuous_$ac_func
24706
a848cd7e
SC
24707/* System header to define __stub macros and hopefully few prototypes,
24708 which can conflict with char $ac_func (); below.
24709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24710 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24711
a848cd7e
SC
24712#ifdef __STDC__
24713# include <limits.h>
24714#else
24715# include <assert.h>
24716#endif
ac1cb8d3
VS
24717
24718#undef $ac_func
24719
a848cd7e
SC
24720/* Override any gcc2 internal prototype to avoid an error. */
24721#ifdef __cplusplus
24722extern "C"
24723{
24724#endif
24725/* We use char because int might match the return type of a gcc2
24726 builtin and then its argument prototype would still apply. */
24727char $ac_func ();
24728/* The GNU C library defines this for functions which it implements
24729 to always fail with ENOSYS. Some functions are actually named
24730 something starting with __ and the normal name is an alias. */
24731#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24732choke me
24733#else
24734char (*f) () = $ac_func;
24735#endif
24736#ifdef __cplusplus
24737}
24738#endif
24739
24740int
24741main ()
24742{
24743return f != $ac_func;
24744 ;
24745 return 0;
24746}
24747_ACEOF
24748rm -f conftest.$ac_objext conftest$ac_exeext
24749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24750 (eval $ac_link) 2>conftest.er1
a848cd7e 24751 ac_status=$?
ac1cb8d3
VS
24752 grep -v '^ *+' conftest.er1 >conftest.err
24753 rm -f conftest.er1
24754 cat conftest.err >&5
a848cd7e
SC
24755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756 (exit $ac_status); } &&
ca5c6ac3 24757 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24759 (eval $ac_try) 2>&5
24760 ac_status=$?
24761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762 (exit $ac_status); }; } &&
24763 { ac_try='test -s conftest$ac_exeext'
24764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24765 (eval $ac_try) 2>&5
24766 ac_status=$?
24767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768 (exit $ac_status); }; }; then
24769 eval "$as_ac_var=yes"
24770else
24771 echo "$as_me: failed program was:" >&5
24772sed 's/^/| /' conftest.$ac_ext >&5
24773
24774eval "$as_ac_var=no"
24775fi
24776rm -f conftest.err conftest.$ac_objext \
24777 conftest$ac_exeext conftest.$ac_ext
24778fi
24779echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24780echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24781if test `eval echo '${'$as_ac_var'}'` = yes; then
24782 cat >>confdefs.h <<_ACEOF
24783#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24784_ACEOF
24785 have_floor=1
24786fi
24787done
24788
24789echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24790echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24791if test "$have_cos" = 1 -a "$have_floor" = 1; then
24792 echo "$as_me:$LINENO: result: yes" >&5
24793echo "${ECHO_T}yes" >&6
24794else
24795 echo "$as_me:$LINENO: result: no" >&5
24796echo "${ECHO_T}no" >&6
24797 LIBS="$LIBS -lm"
24798 # use different functions to avoid configure caching
24799 have_sin=0
24800 have_ceil=0
24801
24802for ac_func in sin
24803do
24804as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24805echo "$as_me:$LINENO: checking for $ac_func" >&5
24806echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24807if eval "test \"\${$as_ac_var+set}\" = set"; then
24808 echo $ECHO_N "(cached) $ECHO_C" >&6
24809else
24810 cat >conftest.$ac_ext <<_ACEOF
24811/* confdefs.h. */
24812_ACEOF
24813cat confdefs.h >>conftest.$ac_ext
24814cat >>conftest.$ac_ext <<_ACEOF
24815/* end confdefs.h. */
24816/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24818#define $ac_func innocuous_$ac_func
24819
24820/* System header to define __stub macros and hopefully few prototypes,
24821 which can conflict with char $ac_func (); below.
24822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24823 <limits.h> exists even on freestanding compilers. */
24824
24825#ifdef __STDC__
24826# include <limits.h>
24827#else
24828# include <assert.h>
24829#endif
24830
24831#undef $ac_func
24832
24833/* Override any gcc2 internal prototype to avoid an error. */
24834#ifdef __cplusplus
24835extern "C"
24836{
24837#endif
24838/* We use char because int might match the return type of a gcc2
24839 builtin and then its argument prototype would still apply. */
24840char $ac_func ();
24841/* The GNU C library defines this for functions which it implements
24842 to always fail with ENOSYS. Some functions are actually named
24843 something starting with __ and the normal name is an alias. */
24844#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24845choke me
24846#else
24847char (*f) () = $ac_func;
24848#endif
24849#ifdef __cplusplus
24850}
24851#endif
24852
24853int
24854main ()
24855{
24856return f != $ac_func;
24857 ;
24858 return 0;
24859}
24860_ACEOF
24861rm -f conftest.$ac_objext conftest$ac_exeext
24862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24863 (eval $ac_link) 2>conftest.er1
24864 ac_status=$?
24865 grep -v '^ *+' conftest.er1 >conftest.err
24866 rm -f conftest.er1
24867 cat conftest.err >&5
24868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869 (exit $ac_status); } &&
ca5c6ac3 24870 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24872 (eval $ac_try) 2>&5
24873 ac_status=$?
24874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24875 (exit $ac_status); }; } &&
24876 { ac_try='test -s conftest$ac_exeext'
24877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24878 (eval $ac_try) 2>&5
24879 ac_status=$?
24880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881 (exit $ac_status); }; }; then
24882 eval "$as_ac_var=yes"
24883else
24884 echo "$as_me: failed program was:" >&5
24885sed 's/^/| /' conftest.$ac_ext >&5
24886
24887eval "$as_ac_var=no"
24888fi
24889rm -f conftest.err conftest.$ac_objext \
24890 conftest$ac_exeext conftest.$ac_ext
24891fi
24892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24893echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24894if test `eval echo '${'$as_ac_var'}'` = yes; then
24895 cat >>confdefs.h <<_ACEOF
24896#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24897_ACEOF
24898 have_sin=1
24899fi
24900done
24901
24902
24903for ac_func in ceil
24904do
24905as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24906echo "$as_me:$LINENO: checking for $ac_func" >&5
24907echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24908if eval "test \"\${$as_ac_var+set}\" = set"; then
24909 echo $ECHO_N "(cached) $ECHO_C" >&6
24910else
24911 cat >conftest.$ac_ext <<_ACEOF
24912/* confdefs.h. */
24913_ACEOF
24914cat confdefs.h >>conftest.$ac_ext
24915cat >>conftest.$ac_ext <<_ACEOF
24916/* end confdefs.h. */
24917/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24919#define $ac_func innocuous_$ac_func
24920
24921/* System header to define __stub macros and hopefully few prototypes,
24922 which can conflict with char $ac_func (); below.
24923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24924 <limits.h> exists even on freestanding compilers. */
24925
24926#ifdef __STDC__
24927# include <limits.h>
24928#else
24929# include <assert.h>
24930#endif
24931
24932#undef $ac_func
24933
24934/* Override any gcc2 internal prototype to avoid an error. */
24935#ifdef __cplusplus
24936extern "C"
24937{
24938#endif
24939/* We use char because int might match the return type of a gcc2
24940 builtin and then its argument prototype would still apply. */
24941char $ac_func ();
24942/* The GNU C library defines this for functions which it implements
24943 to always fail with ENOSYS. Some functions are actually named
24944 something starting with __ and the normal name is an alias. */
24945#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24946choke me
24947#else
24948char (*f) () = $ac_func;
24949#endif
24950#ifdef __cplusplus
24951}
24952#endif
24953
24954int
24955main ()
24956{
24957return f != $ac_func;
24958 ;
24959 return 0;
24960}
24961_ACEOF
24962rm -f conftest.$ac_objext conftest$ac_exeext
24963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24964 (eval $ac_link) 2>conftest.er1
24965 ac_status=$?
24966 grep -v '^ *+' conftest.er1 >conftest.err
24967 rm -f conftest.er1
24968 cat conftest.err >&5
24969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970 (exit $ac_status); } &&
ca5c6ac3 24971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24973 (eval $ac_try) 2>&5
24974 ac_status=$?
24975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976 (exit $ac_status); }; } &&
24977 { ac_try='test -s conftest$ac_exeext'
24978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24979 (eval $ac_try) 2>&5
24980 ac_status=$?
24981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); }; }; then
24983 eval "$as_ac_var=yes"
24984else
24985 echo "$as_me: failed program was:" >&5
24986sed 's/^/| /' conftest.$ac_ext >&5
24987
24988eval "$as_ac_var=no"
24989fi
24990rm -f conftest.err conftest.$ac_objext \
24991 conftest$ac_exeext conftest.$ac_ext
24992fi
24993echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24994echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24995if test `eval echo '${'$as_ac_var'}'` = yes; then
24996 cat >>confdefs.h <<_ACEOF
24997#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24998_ACEOF
24999 have_ceil=1
25000fi
25001done
25002
25003 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
25004echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
25005 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
25006 echo "$as_me:$LINENO: result: yes" >&5
25007echo "${ECHO_T}yes" >&6
25008 else
25009 echo "$as_me:$LINENO: result: no" >&5
25010echo "${ECHO_T}no" >&6
25011 # not sure we should warn the user, crash, etc.
25012 fi
25013fi
25014
25015
25016
25017if test "$wxUSE_REGEX" != "no"; then
25018 cat >>confdefs.h <<\_ACEOF
25019#define wxUSE_REGEX 1
25020_ACEOF
25021
25022
25023 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25024 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
25025echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
25026 wxUSE_REGEX=builtin
25027 fi
25028
25029 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25030 if test "${ac_cv_header_regex_h+set}" = set; then
25031 echo "$as_me:$LINENO: checking for regex.h" >&5
25032echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25033if test "${ac_cv_header_regex_h+set}" = set; then
25034 echo $ECHO_N "(cached) $ECHO_C" >&6
25035fi
25036echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25037echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25038else
25039 # Is the header compilable?
25040echo "$as_me:$LINENO: checking regex.h usability" >&5
25041echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
25042cat >conftest.$ac_ext <<_ACEOF
25043/* confdefs.h. */
25044_ACEOF
25045cat confdefs.h >>conftest.$ac_ext
25046cat >>conftest.$ac_ext <<_ACEOF
25047/* end confdefs.h. */
25048$ac_includes_default
25049#include <regex.h>
25050_ACEOF
25051rm -f conftest.$ac_objext
25052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25053 (eval $ac_compile) 2>conftest.er1
25054 ac_status=$?
25055 grep -v '^ *+' conftest.er1 >conftest.err
25056 rm -f conftest.er1
25057 cat conftest.err >&5
25058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25059 (exit $ac_status); } &&
ca5c6ac3 25060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25062 (eval $ac_try) 2>&5
25063 ac_status=$?
25064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065 (exit $ac_status); }; } &&
25066 { ac_try='test -s conftest.$ac_objext'
25067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25068 (eval $ac_try) 2>&5
25069 ac_status=$?
25070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071 (exit $ac_status); }; }; then
25072 ac_header_compiler=yes
25073else
25074 echo "$as_me: failed program was:" >&5
25075sed 's/^/| /' conftest.$ac_ext >&5
25076
25077ac_header_compiler=no
25078fi
25079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25080echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25081echo "${ECHO_T}$ac_header_compiler" >&6
25082
25083# Is the header present?
25084echo "$as_me:$LINENO: checking regex.h presence" >&5
25085echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
25086cat >conftest.$ac_ext <<_ACEOF
25087/* confdefs.h. */
25088_ACEOF
25089cat confdefs.h >>conftest.$ac_ext
25090cat >>conftest.$ac_ext <<_ACEOF
25091/* end confdefs.h. */
25092#include <regex.h>
25093_ACEOF
25094if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25096 ac_status=$?
25097 grep -v '^ *+' conftest.er1 >conftest.err
25098 rm -f conftest.er1
25099 cat conftest.err >&5
25100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); } >/dev/null; then
25102 if test -s conftest.err; then
25103 ac_cpp_err=$ac_cxx_preproc_warn_flag
25104 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25105 else
25106 ac_cpp_err=
25107 fi
25108else
25109 ac_cpp_err=yes
25110fi
25111if test -z "$ac_cpp_err"; then
25112 ac_header_preproc=yes
25113else
25114 echo "$as_me: failed program was:" >&5
25115sed 's/^/| /' conftest.$ac_ext >&5
25116
25117 ac_header_preproc=no
25118fi
25119rm -f conftest.err conftest.$ac_ext
25120echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25121echo "${ECHO_T}$ac_header_preproc" >&6
25122
25123# So? What about this header?
25124case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25125 yes:no: )
25126 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25127echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25128 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
25129echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
25130 ac_header_preproc=yes
25131 ;;
25132 no:yes:* )
25133 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
25134echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
25135 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
25136echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
25137 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
25138echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
25139 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
25140echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25141 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
25142echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
25143 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
25144echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
25145 (
25146 cat <<\_ASBOX
25147## ----------------------------------------- ##
25148## Report this to wx-dev@lists.wxwidgets.org ##
25149## ----------------------------------------- ##
25150_ASBOX
25151 ) |
25152 sed "s/^/$as_me: WARNING: /" >&2
25153 ;;
25154esac
25155echo "$as_me:$LINENO: checking for regex.h" >&5
25156echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25157if test "${ac_cv_header_regex_h+set}" = set; then
25158 echo $ECHO_N "(cached) $ECHO_C" >&6
25159else
25160 ac_cv_header_regex_h=$ac_header_preproc
25161fi
25162echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25163echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25164
25165fi
25166if test $ac_cv_header_regex_h = yes; then
25167
25168
25169for ac_func in regcomp re_search
25170do
25171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25172echo "$as_me:$LINENO: checking for $ac_func" >&5
25173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25174if eval "test \"\${$as_ac_var+set}\" = set"; then
25175 echo $ECHO_N "(cached) $ECHO_C" >&6
25176else
25177 cat >conftest.$ac_ext <<_ACEOF
25178/* confdefs.h. */
25179_ACEOF
25180cat confdefs.h >>conftest.$ac_ext
25181cat >>conftest.$ac_ext <<_ACEOF
25182/* end confdefs.h. */
25183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25185#define $ac_func innocuous_$ac_func
25186
25187/* System header to define __stub macros and hopefully few prototypes,
25188 which can conflict with char $ac_func (); below.
25189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25190 <limits.h> exists even on freestanding compilers. */
25191
25192#ifdef __STDC__
25193# include <limits.h>
25194#else
25195# include <assert.h>
25196#endif
25197
25198#undef $ac_func
25199
25200/* Override any gcc2 internal prototype to avoid an error. */
25201#ifdef __cplusplus
25202extern "C"
25203{
25204#endif
25205/* We use char because int might match the return type of a gcc2
25206 builtin and then its argument prototype would still apply. */
25207char $ac_func ();
25208/* The GNU C library defines this for functions which it implements
25209 to always fail with ENOSYS. Some functions are actually named
25210 something starting with __ and the normal name is an alias. */
25211#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25212choke me
25213#else
25214char (*f) () = $ac_func;
25215#endif
25216#ifdef __cplusplus
25217}
25218#endif
25219
25220int
25221main ()
25222{
25223return f != $ac_func;
25224 ;
25225 return 0;
25226}
25227_ACEOF
25228rm -f conftest.$ac_objext conftest$ac_exeext
25229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25230 (eval $ac_link) 2>conftest.er1
25231 ac_status=$?
25232 grep -v '^ *+' conftest.er1 >conftest.err
25233 rm -f conftest.er1
25234 cat conftest.err >&5
25235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236 (exit $ac_status); } &&
ca5c6ac3 25237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25239 (eval $ac_try) 2>&5
25240 ac_status=$?
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); }; } &&
25243 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25245 (eval $ac_try) 2>&5
25246 ac_status=$?
25247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248 (exit $ac_status); }; }; then
25249 eval "$as_ac_var=yes"
25250else
25251 echo "$as_me: failed program was:" >&5
25252sed 's/^/| /' conftest.$ac_ext >&5
25253
25254eval "$as_ac_var=no"
25255fi
ac1cb8d3
VS
25256rm -f conftest.err conftest.$ac_objext \
25257 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25258fi
25259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25260echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25261if test `eval echo '${'$as_ac_var'}'` = yes; then
25262 cat >>confdefs.h <<_ACEOF
25263#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25264_ACEOF
25265
25266fi
25267done
25268
25269fi
25270
25271
25272
25273 if test "x$ac_cv_func_regcomp" != "xyes"; then
25274 if test "$wxUSE_REGEX" = "sys" ; then
25275 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25276echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25277 { (exit 1); exit 1; }; }
25278 else
25279 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25280echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25281 wxUSE_REGEX=builtin
25282 fi
25283 else
25284 wxUSE_REGEX=sys
25285 cat >>confdefs.h <<\_ACEOF
25286#define WX_NO_REGEX_ADVANCED 1
25287_ACEOF
25288
25289 fi
25290 fi
25291fi
25292
25293
25294ZLIB_LINK=
25295if test "$wxUSE_ZLIB" != "no" ; then
25296 cat >>confdefs.h <<\_ACEOF
25297#define wxUSE_ZLIB 1
25298_ACEOF
25299
25300
25301 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25302 if test "$USE_DARWIN" = 1; then
25303 system_zlib_h_ok="yes"
25304 else
25305 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25306echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25307if test "${ac_cv_header_zlib_h+set}" = set; then
25308 echo $ECHO_N "(cached) $ECHO_C" >&6
25309else
25310 if test "$cross_compiling" = yes; then
25311 unset ac_cv_header_zlib_h
25312
25313else
25314 cat >conftest.$ac_ext <<_ACEOF
25315/* confdefs.h. */
25316_ACEOF
25317cat confdefs.h >>conftest.$ac_ext
25318cat >>conftest.$ac_ext <<_ACEOF
25319/* end confdefs.h. */
25320
25321 #include <zlib.h>
25322 #include <stdio.h>
25323
25324 int main()
25325 {
25326 FILE *f=fopen("conftestval", "w");
25327 if (!f) exit(1);
25328 fprintf(f, "%s",
25329 ZLIB_VERSION[0] == '1' &&
25330 (ZLIB_VERSION[2] > '1' ||
25331 (ZLIB_VERSION[2] == '1' &&
25332 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25333 exit(0);
25334 }
25335
25336_ACEOF
25337rm -f conftest$ac_exeext
25338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25339 (eval $ac_link) 2>&5
25340 ac_status=$?
25341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25344 (eval $ac_try) 2>&5
25345 ac_status=$?
25346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347 (exit $ac_status); }; }; then
25348 ac_cv_header_zlib_h=`cat conftestval`
25349else
25350 echo "$as_me: program exited with status $ac_status" >&5
25351echo "$as_me: failed program was:" >&5
25352sed 's/^/| /' conftest.$ac_ext >&5
25353
25354( exit $ac_status )
25355ac_cv_header_zlib_h=no
25356fi
ac1cb8d3 25357rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25358fi
25359
25360fi
25361echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25362echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25363 if test "${ac_cv_header_zlib_h+set}" = set; then
25364 echo "$as_me:$LINENO: checking for zlib.h" >&5
25365echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25366if test "${ac_cv_header_zlib_h+set}" = set; then
25367 echo $ECHO_N "(cached) $ECHO_C" >&6
25368fi
25369echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25370echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25371else
25372 # Is the header compilable?
25373echo "$as_me:$LINENO: checking zlib.h usability" >&5
25374echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25375cat >conftest.$ac_ext <<_ACEOF
25376/* confdefs.h. */
25377_ACEOF
25378cat confdefs.h >>conftest.$ac_ext
25379cat >>conftest.$ac_ext <<_ACEOF
25380/* end confdefs.h. */
25381$ac_includes_default
25382#include <zlib.h>
25383_ACEOF
25384rm -f conftest.$ac_objext
25385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25386 (eval $ac_compile) 2>conftest.er1
a848cd7e 25387 ac_status=$?
ac1cb8d3
VS
25388 grep -v '^ *+' conftest.er1 >conftest.err
25389 rm -f conftest.er1
25390 cat conftest.err >&5
a848cd7e
SC
25391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392 (exit $ac_status); } &&
ca5c6ac3 25393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25395 (eval $ac_try) 2>&5
25396 ac_status=$?
25397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398 (exit $ac_status); }; } &&
25399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25401 (eval $ac_try) 2>&5
25402 ac_status=$?
25403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); }; }; then
25405 ac_header_compiler=yes
25406else
25407 echo "$as_me: failed program was:" >&5
25408sed 's/^/| /' conftest.$ac_ext >&5
25409
25410ac_header_compiler=no
25411fi
ac1cb8d3 25412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25413echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25414echo "${ECHO_T}$ac_header_compiler" >&6
25415
25416# Is the header present?
25417echo "$as_me:$LINENO: checking zlib.h presence" >&5
25418echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25419cat >conftest.$ac_ext <<_ACEOF
25420/* confdefs.h. */
25421_ACEOF
25422cat confdefs.h >>conftest.$ac_ext
25423cat >>conftest.$ac_ext <<_ACEOF
25424/* end confdefs.h. */
25425#include <zlib.h>
25426_ACEOF
25427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25429 ac_status=$?
25430 grep -v '^ *+' conftest.er1 >conftest.err
25431 rm -f conftest.er1
25432 cat conftest.err >&5
25433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25434 (exit $ac_status); } >/dev/null; then
25435 if test -s conftest.err; then
5d7b7554
VZ
25436 ac_cpp_err=$ac_cxx_preproc_warn_flag
25437 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25438 else
25439 ac_cpp_err=
25440 fi
25441else
25442 ac_cpp_err=yes
25443fi
25444if test -z "$ac_cpp_err"; then
25445 ac_header_preproc=yes
25446else
25447 echo "$as_me: failed program was:" >&5
25448sed 's/^/| /' conftest.$ac_ext >&5
25449
25450 ac_header_preproc=no
25451fi
25452rm -f conftest.err conftest.$ac_ext
25453echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25454echo "${ECHO_T}$ac_header_preproc" >&6
25455
25456# So? What about this header?
5d7b7554 25457case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25458 yes:no: )
a848cd7e
SC
25459 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25460echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25461 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25462echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25463 ac_header_preproc=yes
a848cd7e 25464 ;;
ac1cb8d3 25465 no:yes:* )
a848cd7e
SC
25466 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25467echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25468 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25469echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25470 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25471echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25472 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25473echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25474 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25475echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25476 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25477echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25478 (
25479 cat <<\_ASBOX
ac1cb8d3
VS
25480## ----------------------------------------- ##
25481## Report this to wx-dev@lists.wxwidgets.org ##
25482## ----------------------------------------- ##
a848cd7e
SC
25483_ASBOX
25484 ) |
25485 sed "s/^/$as_me: WARNING: /" >&2
25486 ;;
25487esac
25488echo "$as_me:$LINENO: checking for zlib.h" >&5
25489echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25490if test "${ac_cv_header_zlib_h+set}" = set; then
25491 echo $ECHO_N "(cached) $ECHO_C" >&6
25492else
25493 ac_cv_header_zlib_h=$ac_header_preproc
25494fi
25495echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25496echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25497
25498fi
25499
25500
25501
25502 system_zlib_h_ok=$ac_cv_header_zlib_h
25503 fi
25504
25505 if test "$system_zlib_h_ok" = "yes"; then
25506 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25507echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25508if test "${ac_cv_lib_z_deflate+set}" = set; then
25509 echo $ECHO_N "(cached) $ECHO_C" >&6
25510else
25511 ac_check_lib_save_LIBS=$LIBS
25512LIBS="-lz $LIBS"
25513cat >conftest.$ac_ext <<_ACEOF
25514/* confdefs.h. */
25515_ACEOF
25516cat confdefs.h >>conftest.$ac_ext
25517cat >>conftest.$ac_ext <<_ACEOF
25518/* end confdefs.h. */
25519
25520/* Override any gcc2 internal prototype to avoid an error. */
25521#ifdef __cplusplus
25522extern "C"
25523#endif
25524/* We use char because int might match the return type of a gcc2
25525 builtin and then its argument prototype would still apply. */
25526char deflate ();
25527int
25528main ()
25529{
25530deflate ();
25531 ;
25532 return 0;
25533}
25534_ACEOF
25535rm -f conftest.$ac_objext conftest$ac_exeext
25536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25537 (eval $ac_link) 2>conftest.er1
a848cd7e 25538 ac_status=$?
ac1cb8d3
VS
25539 grep -v '^ *+' conftest.er1 >conftest.err
25540 rm -f conftest.er1
25541 cat conftest.err >&5
a848cd7e
SC
25542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543 (exit $ac_status); } &&
ca5c6ac3 25544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25546 (eval $ac_try) 2>&5
25547 ac_status=$?
25548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25549 (exit $ac_status); }; } &&
25550 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25552 (eval $ac_try) 2>&5
25553 ac_status=$?
25554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555 (exit $ac_status); }; }; then
25556 ac_cv_lib_z_deflate=yes
25557else
25558 echo "$as_me: failed program was:" >&5
25559sed 's/^/| /' conftest.$ac_ext >&5
25560
25561ac_cv_lib_z_deflate=no
25562fi
ac1cb8d3
VS
25563rm -f conftest.err conftest.$ac_objext \
25564 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25565LIBS=$ac_check_lib_save_LIBS
25566fi
25567echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25568echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25569if test $ac_cv_lib_z_deflate = yes; then
25570 ZLIB_LINK=" -lz"
25571fi
25572
25573 fi
25574
25575 if test "x$ZLIB_LINK" = "x" ; then
25576 if test "$wxUSE_ZLIB" = "sys" ; then
25577 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25578echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25579 { (exit 1); exit 1; }; }
25580 else
25581 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25582echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25583 wxUSE_ZLIB=builtin
25584 fi
25585 else
25586 wxUSE_ZLIB=sys
25587 fi
25588 fi
25589fi
25590
25591
25592PNG_LINK=
25593if test "$wxUSE_LIBPNG" != "no" ; then
25594 cat >>confdefs.h <<\_ACEOF
25595#define wxUSE_LIBPNG 1
25596_ACEOF
25597
25598
25599 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25600 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25601echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25602 wxUSE_LIBPNG=sys
25603 fi
25604
25605 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25606 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25607echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25608 wxUSE_LIBPNG=builtin
25609 fi
25610
25611 if test "$wxUSE_MGL" != 1 ; then
25612 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25613 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25614echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25615if test "${ac_cv_header_png_h+set}" = set; then
25616 echo $ECHO_N "(cached) $ECHO_C" >&6
25617else
25618 if test "$cross_compiling" = yes; then
25619 unset ac_cv_header_png_h
25620
25621else
25622 cat >conftest.$ac_ext <<_ACEOF
25623/* confdefs.h. */
25624_ACEOF
25625cat confdefs.h >>conftest.$ac_ext
25626cat >>conftest.$ac_ext <<_ACEOF
25627/* end confdefs.h. */
25628
25629 #include <png.h>
25630 #include <stdio.h>
25631
25632 int main()
25633 {
25634 FILE *f=fopen("conftestval", "w");
25635 if (!f) exit(1);
25636 fprintf(f, "%s",
25637 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25638 exit(0);
25639 }
25640
25641_ACEOF
25642rm -f conftest$ac_exeext
25643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25644 (eval $ac_link) 2>&5
25645 ac_status=$?
25646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25649 (eval $ac_try) 2>&5
25650 ac_status=$?
25651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25652 (exit $ac_status); }; }; then
25653 ac_cv_header_png_h=`cat conftestval`
25654else
25655 echo "$as_me: program exited with status $ac_status" >&5
25656echo "$as_me: failed program was:" >&5
25657sed 's/^/| /' conftest.$ac_ext >&5
25658
25659( exit $ac_status )
25660ac_cv_header_png_h=no
25661fi
ac1cb8d3 25662rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25663fi
25664
25665fi
25666echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25667echo "${ECHO_T}$ac_cv_header_png_h" >&6
25668 if test "${ac_cv_header_png_h+set}" = set; then
25669 echo "$as_me:$LINENO: checking for png.h" >&5
25670echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25671if test "${ac_cv_header_png_h+set}" = set; then
25672 echo $ECHO_N "(cached) $ECHO_C" >&6
25673fi
25674echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25675echo "${ECHO_T}$ac_cv_header_png_h" >&6
25676else
25677 # Is the header compilable?
25678echo "$as_me:$LINENO: checking png.h usability" >&5
25679echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25680cat >conftest.$ac_ext <<_ACEOF
25681/* confdefs.h. */
25682_ACEOF
25683cat confdefs.h >>conftest.$ac_ext
25684cat >>conftest.$ac_ext <<_ACEOF
25685/* end confdefs.h. */
25686$ac_includes_default
25687#include <png.h>
25688_ACEOF
25689rm -f conftest.$ac_objext
25690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25691 (eval $ac_compile) 2>conftest.er1
a848cd7e 25692 ac_status=$?
ac1cb8d3
VS
25693 grep -v '^ *+' conftest.er1 >conftest.err
25694 rm -f conftest.er1
25695 cat conftest.err >&5
a848cd7e
SC
25696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697 (exit $ac_status); } &&
ca5c6ac3 25698 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25700 (eval $ac_try) 2>&5
25701 ac_status=$?
25702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703 (exit $ac_status); }; } &&
25704 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25706 (eval $ac_try) 2>&5
25707 ac_status=$?
25708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709 (exit $ac_status); }; }; then
25710 ac_header_compiler=yes
25711else
25712 echo "$as_me: failed program was:" >&5
25713sed 's/^/| /' conftest.$ac_ext >&5
25714
25715ac_header_compiler=no
25716fi
ac1cb8d3 25717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25718echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25719echo "${ECHO_T}$ac_header_compiler" >&6
25720
25721# Is the header present?
25722echo "$as_me:$LINENO: checking png.h presence" >&5
25723echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25724cat >conftest.$ac_ext <<_ACEOF
25725/* confdefs.h. */
25726_ACEOF
25727cat confdefs.h >>conftest.$ac_ext
25728cat >>conftest.$ac_ext <<_ACEOF
25729/* end confdefs.h. */
25730#include <png.h>
25731_ACEOF
25732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25734 ac_status=$?
25735 grep -v '^ *+' conftest.er1 >conftest.err
25736 rm -f conftest.er1
25737 cat conftest.err >&5
25738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739 (exit $ac_status); } >/dev/null; then
25740 if test -s conftest.err; then
5d7b7554
VZ
25741 ac_cpp_err=$ac_cxx_preproc_warn_flag
25742 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25743 else
25744 ac_cpp_err=
25745 fi
25746else
25747 ac_cpp_err=yes
25748fi
25749if test -z "$ac_cpp_err"; then
25750 ac_header_preproc=yes
25751else
25752 echo "$as_me: failed program was:" >&5
25753sed 's/^/| /' conftest.$ac_ext >&5
25754
25755 ac_header_preproc=no
25756fi
25757rm -f conftest.err conftest.$ac_ext
25758echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25759echo "${ECHO_T}$ac_header_preproc" >&6
25760
25761# So? What about this header?
5d7b7554 25762case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25763 yes:no: )
a848cd7e
SC
25764 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25765echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25766 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25767echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25768 ac_header_preproc=yes
a848cd7e 25769 ;;
ac1cb8d3 25770 no:yes:* )
a848cd7e
SC
25771 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25772echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25773 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25774echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25775 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25776echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25777 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25778echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25779 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25780echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25781 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25782echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25783 (
25784 cat <<\_ASBOX
ac1cb8d3
VS
25785## ----------------------------------------- ##
25786## Report this to wx-dev@lists.wxwidgets.org ##
25787## ----------------------------------------- ##
a848cd7e
SC
25788_ASBOX
25789 ) |
25790 sed "s/^/$as_me: WARNING: /" >&2
25791 ;;
25792esac
25793echo "$as_me:$LINENO: checking for png.h" >&5
25794echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25795if test "${ac_cv_header_png_h+set}" = set; then
25796 echo $ECHO_N "(cached) $ECHO_C" >&6
25797else
25798 ac_cv_header_png_h=$ac_header_preproc
25799fi
25800echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25801echo "${ECHO_T}$ac_cv_header_png_h" >&6
25802
25803fi
25804
25805
25806
25807 if test "$ac_cv_header_png_h" = "yes"; then
25808 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25809echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25810if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25811 echo $ECHO_N "(cached) $ECHO_C" >&6
25812else
25813 ac_check_lib_save_LIBS=$LIBS
25814LIBS="-lpng -lz -lm $LIBS"
25815cat >conftest.$ac_ext <<_ACEOF
25816/* confdefs.h. */
25817_ACEOF
25818cat confdefs.h >>conftest.$ac_ext
25819cat >>conftest.$ac_ext <<_ACEOF
25820/* end confdefs.h. */
25821
25822/* Override any gcc2 internal prototype to avoid an error. */
25823#ifdef __cplusplus
25824extern "C"
25825#endif
25826/* We use char because int might match the return type of a gcc2
25827 builtin and then its argument prototype would still apply. */
25828char png_check_sig ();
25829int
25830main ()
25831{
25832png_check_sig ();
25833 ;
25834 return 0;
25835}
25836_ACEOF
25837rm -f conftest.$ac_objext conftest$ac_exeext
25838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25839 (eval $ac_link) 2>conftest.er1
a848cd7e 25840 ac_status=$?
ac1cb8d3
VS
25841 grep -v '^ *+' conftest.er1 >conftest.err
25842 rm -f conftest.er1
25843 cat conftest.err >&5
a848cd7e
SC
25844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845 (exit $ac_status); } &&
ca5c6ac3 25846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25848 (eval $ac_try) 2>&5
25849 ac_status=$?
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); }; } &&
25852 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25854 (eval $ac_try) 2>&5
25855 ac_status=$?
25856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857 (exit $ac_status); }; }; then
25858 ac_cv_lib_png_png_check_sig=yes
25859else
25860 echo "$as_me: failed program was:" >&5
25861sed 's/^/| /' conftest.$ac_ext >&5
25862
25863ac_cv_lib_png_png_check_sig=no
25864fi
ac1cb8d3
VS
25865rm -f conftest.err conftest.$ac_objext \
25866 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25867LIBS=$ac_check_lib_save_LIBS
25868fi
25869echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25870echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25871if test $ac_cv_lib_png_png_check_sig = yes; then
25872 PNG_LINK=" -lpng -lz"
25873fi
25874
25875 fi
25876
25877 if test "x$PNG_LINK" = "x" ; then
25878 if test "$wxUSE_LIBPNG" = "sys" ; then
25879 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25880echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25881 { (exit 1); exit 1; }; }
25882 else
25883 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25884echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25885 wxUSE_LIBPNG=builtin
25886 fi
25887 else
25888 wxUSE_LIBPNG=sys
25889 fi
25890 fi
25891 fi
25892
25893 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25894fi
25895
25896
25897JPEG_LINK=
25898if test "$wxUSE_LIBJPEG" != "no" ; then
25899 cat >>confdefs.h <<\_ACEOF
25900#define wxUSE_LIBJPEG 1
25901_ACEOF
25902
25903
25904 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25905 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25906echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25907 wxUSE_LIBJPEG=sys
25908 fi
25909
25910 if test "$wxUSE_MGL" != 1 ; then
25911 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25912 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25913echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25914 if test "${ac_cv_header_jpeglib_h+set}" = set; then
25915 echo $ECHO_N "(cached) $ECHO_C" >&6
25916else
25917 cat >conftest.$ac_ext <<_ACEOF
25918/* confdefs.h. */
25919_ACEOF
25920cat confdefs.h >>conftest.$ac_ext
25921cat >>conftest.$ac_ext <<_ACEOF
25922/* end confdefs.h. */
25923
25924 #undef HAVE_STDLIB_H
25925 #include <stdio.h>
25926 #include <jpeglib.h>
25927
25928int
25929main ()
25930{
25931
25932
25933 ;
25934 return 0;
25935}
25936_ACEOF
25937rm -f conftest.$ac_objext
25938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25939 (eval $ac_compile) 2>conftest.er1
a848cd7e 25940 ac_status=$?
ac1cb8d3
VS
25941 grep -v '^ *+' conftest.er1 >conftest.err
25942 rm -f conftest.er1
25943 cat conftest.err >&5
a848cd7e
SC
25944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945 (exit $ac_status); } &&
ca5c6ac3 25946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25948 (eval $ac_try) 2>&5
25949 ac_status=$?
25950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951 (exit $ac_status); }; } &&
25952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25954 (eval $ac_try) 2>&5
25955 ac_status=$?
25956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957 (exit $ac_status); }; }; then
25958 ac_cv_header_jpeglib_h=yes
25959else
25960 echo "$as_me: failed program was:" >&5
25961sed 's/^/| /' conftest.$ac_ext >&5
25962
25963ac_cv_header_jpeglib_h=no
25964
25965fi
ac1cb8d3 25966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25967
25968fi
25969
25970 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25971echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25972
25973 if test "$ac_cv_header_jpeglib_h" = "yes"; then
25974 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25975echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25976if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25977 echo $ECHO_N "(cached) $ECHO_C" >&6
25978else
25979 ac_check_lib_save_LIBS=$LIBS
25980LIBS="-ljpeg $LIBS"
25981cat >conftest.$ac_ext <<_ACEOF
25982/* confdefs.h. */
25983_ACEOF
25984cat confdefs.h >>conftest.$ac_ext
25985cat >>conftest.$ac_ext <<_ACEOF
25986/* end confdefs.h. */
25987
25988/* Override any gcc2 internal prototype to avoid an error. */
25989#ifdef __cplusplus
25990extern "C"
25991#endif
25992/* We use char because int might match the return type of a gcc2
25993 builtin and then its argument prototype would still apply. */
25994char jpeg_read_header ();
25995int
25996main ()
25997{
25998jpeg_read_header ();
25999 ;
26000 return 0;
26001}
26002_ACEOF
26003rm -f conftest.$ac_objext conftest$ac_exeext
26004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26005 (eval $ac_link) 2>conftest.er1
a848cd7e 26006 ac_status=$?
ac1cb8d3
VS
26007 grep -v '^ *+' conftest.er1 >conftest.err
26008 rm -f conftest.er1
26009 cat conftest.err >&5
a848cd7e
SC
26010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011 (exit $ac_status); } &&
ca5c6ac3 26012 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26014 (eval $ac_try) 2>&5
26015 ac_status=$?
26016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017 (exit $ac_status); }; } &&
26018 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26020 (eval $ac_try) 2>&5
26021 ac_status=$?
26022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26023 (exit $ac_status); }; }; then
26024 ac_cv_lib_jpeg_jpeg_read_header=yes
26025else
26026 echo "$as_me: failed program was:" >&5
26027sed 's/^/| /' conftest.$ac_ext >&5
26028
26029ac_cv_lib_jpeg_jpeg_read_header=no
26030fi
ac1cb8d3
VS
26031rm -f conftest.err conftest.$ac_objext \
26032 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26033LIBS=$ac_check_lib_save_LIBS
26034fi
26035echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26036echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
26037if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26038 JPEG_LINK=" -ljpeg"
26039fi
26040
26041 fi
26042
26043 if test "x$JPEG_LINK" = "x" ; then
26044 if test "$wxUSE_LIBJPEG" = "sys" ; then
26045 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26046echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26047 { (exit 1); exit 1; }; }
26048 else
26049 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26050echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26051 wxUSE_LIBJPEG=builtin
26052 fi
26053 else
26054 wxUSE_LIBJPEG=sys
26055 fi
26056 fi
26057 fi
26058fi
26059
26060
26061TIFF_LINK=
26062TIFF_PREREQ_LINKS=-lm
26063if test "$wxUSE_LIBTIFF" != "no" ; then
26064 cat >>confdefs.h <<\_ACEOF
26065#define wxUSE_LIBTIFF 1
26066_ACEOF
26067
26068
26069 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
26070 if test "$wxUSE_LIBJPEG" = "sys"; then
26071 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
26072 fi
26073 if test "$wxUSE_ZLIB" = "sys"; then
26074 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
26075 fi
26076 if test "${ac_cv_header_tiffio_h+set}" = set; then
26077 echo "$as_me:$LINENO: checking for tiffio.h" >&5
26078echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26079if test "${ac_cv_header_tiffio_h+set}" = set; then
26080 echo $ECHO_N "(cached) $ECHO_C" >&6
26081fi
26082echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26083echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26084else
26085 # Is the header compilable?
26086echo "$as_me:$LINENO: checking tiffio.h usability" >&5
26087echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
26088cat >conftest.$ac_ext <<_ACEOF
26089/* confdefs.h. */
26090_ACEOF
26091cat confdefs.h >>conftest.$ac_ext
26092cat >>conftest.$ac_ext <<_ACEOF
26093/* end confdefs.h. */
26094$ac_includes_default
26095#include <tiffio.h>
26096_ACEOF
26097rm -f conftest.$ac_objext
26098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26099 (eval $ac_compile) 2>conftest.er1
a848cd7e 26100 ac_status=$?
ac1cb8d3
VS
26101 grep -v '^ *+' conftest.er1 >conftest.err
26102 rm -f conftest.er1
26103 cat conftest.err >&5
a848cd7e
SC
26104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105 (exit $ac_status); } &&
ca5c6ac3 26106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26108 (eval $ac_try) 2>&5
26109 ac_status=$?
26110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111 (exit $ac_status); }; } &&
26112 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26114 (eval $ac_try) 2>&5
26115 ac_status=$?
26116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26117 (exit $ac_status); }; }; then
26118 ac_header_compiler=yes
26119else
26120 echo "$as_me: failed program was:" >&5
26121sed 's/^/| /' conftest.$ac_ext >&5
26122
26123ac_header_compiler=no
26124fi
ac1cb8d3 26125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26126echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26127echo "${ECHO_T}$ac_header_compiler" >&6
26128
26129# Is the header present?
26130echo "$as_me:$LINENO: checking tiffio.h presence" >&5
26131echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
26132cat >conftest.$ac_ext <<_ACEOF
26133/* confdefs.h. */
26134_ACEOF
26135cat confdefs.h >>conftest.$ac_ext
26136cat >>conftest.$ac_ext <<_ACEOF
26137/* end confdefs.h. */
26138#include <tiffio.h>
26139_ACEOF
26140if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26142 ac_status=$?
26143 grep -v '^ *+' conftest.er1 >conftest.err
26144 rm -f conftest.er1
26145 cat conftest.err >&5
26146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147 (exit $ac_status); } >/dev/null; then
26148 if test -s conftest.err; then
5d7b7554
VZ
26149 ac_cpp_err=$ac_cxx_preproc_warn_flag
26150 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26151 else
26152 ac_cpp_err=
26153 fi
26154else
26155 ac_cpp_err=yes
26156fi
26157if test -z "$ac_cpp_err"; then
26158 ac_header_preproc=yes
26159else
26160 echo "$as_me: failed program was:" >&5
26161sed 's/^/| /' conftest.$ac_ext >&5
26162
26163 ac_header_preproc=no
26164fi
26165rm -f conftest.err conftest.$ac_ext
26166echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26167echo "${ECHO_T}$ac_header_preproc" >&6
26168
26169# So? What about this header?
5d7b7554 26170case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26171 yes:no: )
a848cd7e
SC
26172 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26173echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26174 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26175echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26176 ac_header_preproc=yes
a848cd7e 26177 ;;
ac1cb8d3 26178 no:yes:* )
a848cd7e
SC
26179 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26180echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26181 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
26182echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
26183 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26184echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26185 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
26186echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26187 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26188echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26189 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26190echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26191 (
26192 cat <<\_ASBOX
ac1cb8d3
VS
26193## ----------------------------------------- ##
26194## Report this to wx-dev@lists.wxwidgets.org ##
26195## ----------------------------------------- ##
a848cd7e
SC
26196_ASBOX
26197 ) |
26198 sed "s/^/$as_me: WARNING: /" >&2
26199 ;;
26200esac
26201echo "$as_me:$LINENO: checking for tiffio.h" >&5
26202echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26203if test "${ac_cv_header_tiffio_h+set}" = set; then
26204 echo $ECHO_N "(cached) $ECHO_C" >&6
26205else
26206 ac_cv_header_tiffio_h=$ac_header_preproc
26207fi
26208echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26209echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26210
26211fi
26212if test $ac_cv_header_tiffio_h = yes; then
26213
26214 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26215echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26216if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26217 echo $ECHO_N "(cached) $ECHO_C" >&6
26218else
26219 ac_check_lib_save_LIBS=$LIBS
26220LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26221cat >conftest.$ac_ext <<_ACEOF
26222/* confdefs.h. */
26223_ACEOF
26224cat confdefs.h >>conftest.$ac_ext
26225cat >>conftest.$ac_ext <<_ACEOF
26226/* end confdefs.h. */
26227
26228/* Override any gcc2 internal prototype to avoid an error. */
26229#ifdef __cplusplus
26230extern "C"
26231#endif
26232/* We use char because int might match the return type of a gcc2
26233 builtin and then its argument prototype would still apply. */
26234char TIFFError ();
26235int
26236main ()
26237{
26238TIFFError ();
26239 ;
26240 return 0;
26241}
26242_ACEOF
26243rm -f conftest.$ac_objext conftest$ac_exeext
26244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26245 (eval $ac_link) 2>conftest.er1
a848cd7e 26246 ac_status=$?
ac1cb8d3
VS
26247 grep -v '^ *+' conftest.er1 >conftest.err
26248 rm -f conftest.er1
26249 cat conftest.err >&5
a848cd7e
SC
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); } &&
ca5c6ac3 26252 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26254 (eval $ac_try) 2>&5
26255 ac_status=$?
26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); }; } &&
26258 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26260 (eval $ac_try) 2>&5
26261 ac_status=$?
26262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263 (exit $ac_status); }; }; then
26264 ac_cv_lib_tiff_TIFFError=yes
26265else
26266 echo "$as_me: failed program was:" >&5
26267sed 's/^/| /' conftest.$ac_ext >&5
26268
26269ac_cv_lib_tiff_TIFFError=no
26270fi
ac1cb8d3
VS
26271rm -f conftest.err conftest.$ac_objext \
26272 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26273LIBS=$ac_check_lib_save_LIBS
26274fi
26275echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26276echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26277if test $ac_cv_lib_tiff_TIFFError = yes; then
26278 TIFF_LINK=" -ltiff"
26279fi
26280
26281
26282
26283fi
26284
26285
26286
26287 if test "x$TIFF_LINK" = "x" ; then
26288 if test "$wxUSE_LIBTIFF" = "sys" ; then
26289 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26290echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26291 { (exit 1); exit 1; }; }
26292 else
26293 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26294echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26295 wxUSE_LIBTIFF=builtin
26296 fi
26297 else
26298 wxUSE_LIBTIFF=sys
26299 fi
26300 fi
26301fi
26302
26303
47a7e797
MW
26304if test "$wxUSE_WCHAR_T" != "yes"; then
26305 if test "$wxUSE_EXPAT" != "no"; then
26306 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26307echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26308 wxUSE_EXPAT=no
26309 fi
26310 if test "$wxUSE_XML" != "no"; then
26311 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26312echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26313 wxUSE_XML=no
26314 fi
26315fi
26316
a848cd7e
SC
26317if test "$wxUSE_EXPAT" != "no"; then
26318 wxUSE_XML=yes
26319 cat >>confdefs.h <<\_ACEOF
26320#define wxUSE_EXPAT 1
26321_ACEOF
26322
26323 cat >>confdefs.h <<\_ACEOF
26324#define wxUSE_XML 1
26325_ACEOF
26326
26327
26328 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26329 if test "${ac_cv_header_expat_h+set}" = set; then
26330 echo "$as_me:$LINENO: checking for expat.h" >&5
26331echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26332if test "${ac_cv_header_expat_h+set}" = set; then
26333 echo $ECHO_N "(cached) $ECHO_C" >&6
26334fi
26335echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26336echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26337else
26338 # Is the header compilable?
26339echo "$as_me:$LINENO: checking expat.h usability" >&5
26340echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26341cat >conftest.$ac_ext <<_ACEOF
26342/* confdefs.h. */
26343_ACEOF
26344cat confdefs.h >>conftest.$ac_ext
26345cat >>conftest.$ac_ext <<_ACEOF
26346/* end confdefs.h. */
26347$ac_includes_default
26348#include <expat.h>
26349_ACEOF
26350rm -f conftest.$ac_objext
26351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26352 (eval $ac_compile) 2>conftest.er1
a848cd7e 26353 ac_status=$?
ac1cb8d3
VS
26354 grep -v '^ *+' conftest.er1 >conftest.err
26355 rm -f conftest.er1
26356 cat conftest.err >&5
a848cd7e
SC
26357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358 (exit $ac_status); } &&
ca5c6ac3 26359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26361 (eval $ac_try) 2>&5
26362 ac_status=$?
26363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26364 (exit $ac_status); }; } &&
26365 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26367 (eval $ac_try) 2>&5
26368 ac_status=$?
26369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26370 (exit $ac_status); }; }; then
26371 ac_header_compiler=yes
26372else
26373 echo "$as_me: failed program was:" >&5
26374sed 's/^/| /' conftest.$ac_ext >&5
26375
26376ac_header_compiler=no
26377fi
ac1cb8d3 26378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26379echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26380echo "${ECHO_T}$ac_header_compiler" >&6
26381
26382# Is the header present?
26383echo "$as_me:$LINENO: checking expat.h presence" >&5
26384echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26385cat >conftest.$ac_ext <<_ACEOF
26386/* confdefs.h. */
26387_ACEOF
26388cat confdefs.h >>conftest.$ac_ext
26389cat >>conftest.$ac_ext <<_ACEOF
26390/* end confdefs.h. */
26391#include <expat.h>
26392_ACEOF
26393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26395 ac_status=$?
26396 grep -v '^ *+' conftest.er1 >conftest.err
26397 rm -f conftest.er1
26398 cat conftest.err >&5
26399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400 (exit $ac_status); } >/dev/null; then
26401 if test -s conftest.err; then
5d7b7554
VZ
26402 ac_cpp_err=$ac_cxx_preproc_warn_flag
26403 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26404 else
26405 ac_cpp_err=
26406 fi
26407else
26408 ac_cpp_err=yes
26409fi
26410if test -z "$ac_cpp_err"; then
26411 ac_header_preproc=yes
26412else
26413 echo "$as_me: failed program was:" >&5
26414sed 's/^/| /' conftest.$ac_ext >&5
26415
26416 ac_header_preproc=no
26417fi
26418rm -f conftest.err conftest.$ac_ext
26419echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26420echo "${ECHO_T}$ac_header_preproc" >&6
26421
26422# So? What about this header?
5d7b7554 26423case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26424 yes:no: )
a848cd7e
SC
26425 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26426echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26427 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26428echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26429 ac_header_preproc=yes
a848cd7e 26430 ;;
ac1cb8d3 26431 no:yes:* )
a848cd7e
SC
26432 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26433echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26434 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
26435echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
26436 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26437echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26438 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
26439echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26440 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26441echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26442 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26443echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26444 (
26445 cat <<\_ASBOX
ac1cb8d3
VS
26446## ----------------------------------------- ##
26447## Report this to wx-dev@lists.wxwidgets.org ##
26448## ----------------------------------------- ##
a848cd7e
SC
26449_ASBOX
26450 ) |
26451 sed "s/^/$as_me: WARNING: /" >&2
26452 ;;
26453esac
26454echo "$as_me:$LINENO: checking for expat.h" >&5
26455echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26456if test "${ac_cv_header_expat_h+set}" = set; then
26457 echo $ECHO_N "(cached) $ECHO_C" >&6
26458else
26459 ac_cv_header_expat_h=$ac_header_preproc
26460fi
26461echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26462echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26463
26464fi
26465if test $ac_cv_header_expat_h = yes; then
26466 found_expat_h=1
26467fi
26468
26469
26470 if test "x$found_expat_h" = "x1"; then
26471 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26472echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26473if test "${wx_cv_expat_is_not_broken+set}" = set; then
26474 echo $ECHO_N "(cached) $ECHO_C" >&6
26475else
26476
a848cd7e
SC
26477 cat >conftest.$ac_ext <<_ACEOF
26478/* confdefs.h. */
26479_ACEOF
26480cat confdefs.h >>conftest.$ac_ext
26481cat >>conftest.$ac_ext <<_ACEOF
26482/* end confdefs.h. */
26483#include <expat.h>
26484int
26485main ()
26486{
26487
26488 ;
26489 return 0;
26490}
26491_ACEOF
26492rm -f conftest.$ac_objext
26493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26494 (eval $ac_compile) 2>conftest.er1
a848cd7e 26495 ac_status=$?
ac1cb8d3
VS
26496 grep -v '^ *+' conftest.er1 >conftest.err
26497 rm -f conftest.er1
26498 cat conftest.err >&5
a848cd7e
SC
26499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26500 (exit $ac_status); } &&
ca5c6ac3 26501 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26503 (eval $ac_try) 2>&5
26504 ac_status=$?
26505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506 (exit $ac_status); }; } &&
26507 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26509 (eval $ac_try) 2>&5
26510 ac_status=$?
26511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26512 (exit $ac_status); }; }; then
26513 wx_cv_expat_is_not_broken=yes
26514else
26515 echo "$as_me: failed program was:" >&5
26516sed 's/^/| /' conftest.$ac_ext >&5
26517
26518wx_cv_expat_is_not_broken=no
26519
26520fi
ac1cb8d3 26521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26522
26523
26524fi
26525echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26526echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26527 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26528 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26529echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26530if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26531 echo $ECHO_N "(cached) $ECHO_C" >&6
26532else
26533 ac_check_lib_save_LIBS=$LIBS
26534LIBS="-lexpat $LIBS"
26535cat >conftest.$ac_ext <<_ACEOF
26536/* confdefs.h. */
26537_ACEOF
26538cat confdefs.h >>conftest.$ac_ext
26539cat >>conftest.$ac_ext <<_ACEOF
26540/* end confdefs.h. */
26541
26542/* Override any gcc2 internal prototype to avoid an error. */
26543#ifdef __cplusplus
26544extern "C"
26545#endif
26546/* We use char because int might match the return type of a gcc2
26547 builtin and then its argument prototype would still apply. */
26548char XML_ParserCreate ();
26549int
26550main ()
26551{
26552XML_ParserCreate ();
26553 ;
26554 return 0;
26555}
26556_ACEOF
26557rm -f conftest.$ac_objext conftest$ac_exeext
26558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26559 (eval $ac_link) 2>conftest.er1
a848cd7e 26560 ac_status=$?
ac1cb8d3
VS
26561 grep -v '^ *+' conftest.er1 >conftest.err
26562 rm -f conftest.er1
26563 cat conftest.err >&5
a848cd7e
SC
26564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565 (exit $ac_status); } &&
ca5c6ac3 26566 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26568 (eval $ac_try) 2>&5
26569 ac_status=$?
26570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26571 (exit $ac_status); }; } &&
26572 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26574 (eval $ac_try) 2>&5
26575 ac_status=$?
26576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577 (exit $ac_status); }; }; then
26578 ac_cv_lib_expat_XML_ParserCreate=yes
26579else
26580 echo "$as_me: failed program was:" >&5
26581sed 's/^/| /' conftest.$ac_ext >&5
26582
26583ac_cv_lib_expat_XML_ParserCreate=no
26584fi
ac1cb8d3
VS
26585rm -f conftest.err conftest.$ac_objext \
26586 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26587LIBS=$ac_check_lib_save_LIBS
26588fi
26589echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26590echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26591if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26592 EXPAT_LINK=" -lexpat"
26593fi
26594
26595 fi
26596 fi
26597 if test "x$EXPAT_LINK" = "x" ; then
26598 if test "$wxUSE_EXPAT" = "sys" ; then
26599 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26600echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26601 { (exit 1); exit 1; }; }
26602 else
26603 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26604echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26605 wxUSE_EXPAT=builtin
26606 fi
26607 else
26608 wxUSE_EXPAT=sys
26609 fi
26610 fi
26611 if test "$wxUSE_EXPAT" = "builtin" ; then
26612
26613
26614subdirs="$subdirs src/expat"
26615
26616 fi
26617fi
26618
26619
26620
26621if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
26622 if test "${ac_cv_header_mspack_h+set}" = set; then
26623 echo "$as_me:$LINENO: checking for mspack.h" >&5
26624echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26625if test "${ac_cv_header_mspack_h+set}" = set; then
26626 echo $ECHO_N "(cached) $ECHO_C" >&6
26627fi
26628echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26629echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26630else
26631 # Is the header compilable?
26632echo "$as_me:$LINENO: checking mspack.h usability" >&5
26633echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26634cat >conftest.$ac_ext <<_ACEOF
26635/* confdefs.h. */
26636_ACEOF
26637cat confdefs.h >>conftest.$ac_ext
26638cat >>conftest.$ac_ext <<_ACEOF
26639/* end confdefs.h. */
26640$ac_includes_default
26641#include <mspack.h>
26642_ACEOF
26643rm -f conftest.$ac_objext
26644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26645 (eval $ac_compile) 2>conftest.er1
a848cd7e 26646 ac_status=$?
ac1cb8d3
VS
26647 grep -v '^ *+' conftest.er1 >conftest.err
26648 rm -f conftest.er1
26649 cat conftest.err >&5
a848cd7e
SC
26650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); } &&
ca5c6ac3 26652 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26654 (eval $ac_try) 2>&5
26655 ac_status=$?
26656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26657 (exit $ac_status); }; } &&
26658 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26660 (eval $ac_try) 2>&5
26661 ac_status=$?
26662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26663 (exit $ac_status); }; }; then
26664 ac_header_compiler=yes
26665else
26666 echo "$as_me: failed program was:" >&5
26667sed 's/^/| /' conftest.$ac_ext >&5
26668
26669ac_header_compiler=no
26670fi
ac1cb8d3 26671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26672echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26673echo "${ECHO_T}$ac_header_compiler" >&6
26674
26675# Is the header present?
26676echo "$as_me:$LINENO: checking mspack.h presence" >&5
26677echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26678cat >conftest.$ac_ext <<_ACEOF
26679/* confdefs.h. */
26680_ACEOF
26681cat confdefs.h >>conftest.$ac_ext
26682cat >>conftest.$ac_ext <<_ACEOF
26683/* end confdefs.h. */
26684#include <mspack.h>
26685_ACEOF
26686if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26688 ac_status=$?
26689 grep -v '^ *+' conftest.er1 >conftest.err
26690 rm -f conftest.er1
26691 cat conftest.err >&5
26692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26693 (exit $ac_status); } >/dev/null; then
26694 if test -s conftest.err; then
5d7b7554
VZ
26695 ac_cpp_err=$ac_cxx_preproc_warn_flag
26696 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26697 else
26698 ac_cpp_err=
26699 fi
26700else
26701 ac_cpp_err=yes
26702fi
26703if test -z "$ac_cpp_err"; then
26704 ac_header_preproc=yes
26705else
26706 echo "$as_me: failed program was:" >&5
26707sed 's/^/| /' conftest.$ac_ext >&5
26708
26709 ac_header_preproc=no
26710fi
26711rm -f conftest.err conftest.$ac_ext
26712echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26713echo "${ECHO_T}$ac_header_preproc" >&6
26714
26715# So? What about this header?
5d7b7554 26716case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26717 yes:no: )
a848cd7e
SC
26718 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26719echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26720 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26721echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26722 ac_header_preproc=yes
a848cd7e 26723 ;;
ac1cb8d3 26724 no:yes:* )
a848cd7e
SC
26725 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26726echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26727 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
26728echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
26729 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26730echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26731 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
26732echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26733 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26734echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26735 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26736echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26737 (
26738 cat <<\_ASBOX
ac1cb8d3
VS
26739## ----------------------------------------- ##
26740## Report this to wx-dev@lists.wxwidgets.org ##
26741## ----------------------------------------- ##
a848cd7e
SC
26742_ASBOX
26743 ) |
26744 sed "s/^/$as_me: WARNING: /" >&2
26745 ;;
26746esac
26747echo "$as_me:$LINENO: checking for mspack.h" >&5
26748echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26749if test "${ac_cv_header_mspack_h+set}" = set; then
26750 echo $ECHO_N "(cached) $ECHO_C" >&6
26751else
26752 ac_cv_header_mspack_h=$ac_header_preproc
26753fi
26754echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26755echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26756
26757fi
26758if test $ac_cv_header_mspack_h = yes; then
26759 found_mspack_h=1
26760fi
26761
26762
26763 if test "x$found_mspack_h" = "x1"; then
26764 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26765echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26766if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26767 echo $ECHO_N "(cached) $ECHO_C" >&6
26768else
26769 ac_check_lib_save_LIBS=$LIBS
26770LIBS="-lmspack $LIBS"
26771cat >conftest.$ac_ext <<_ACEOF
26772/* confdefs.h. */
26773_ACEOF
26774cat confdefs.h >>conftest.$ac_ext
26775cat >>conftest.$ac_ext <<_ACEOF
26776/* end confdefs.h. */
26777
26778/* Override any gcc2 internal prototype to avoid an error. */
26779#ifdef __cplusplus
26780extern "C"
26781#endif
26782/* We use char because int might match the return type of a gcc2
26783 builtin and then its argument prototype would still apply. */
26784char mspack_create_chm_decompressor ();
26785int
26786main ()
26787{
26788mspack_create_chm_decompressor ();
26789 ;
26790 return 0;
26791}
26792_ACEOF
26793rm -f conftest.$ac_objext conftest$ac_exeext
26794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26795 (eval $ac_link) 2>conftest.er1
a848cd7e 26796 ac_status=$?
ac1cb8d3
VS
26797 grep -v '^ *+' conftest.er1 >conftest.err
26798 rm -f conftest.er1
26799 cat conftest.err >&5
a848cd7e
SC
26800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801 (exit $ac_status); } &&
ca5c6ac3 26802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26804 (eval $ac_try) 2>&5
26805 ac_status=$?
26806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807 (exit $ac_status); }; } &&
26808 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26810 (eval $ac_try) 2>&5
26811 ac_status=$?
26812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813 (exit $ac_status); }; }; then
26814 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26815else
26816 echo "$as_me: failed program was:" >&5
26817sed 's/^/| /' conftest.$ac_ext >&5
26818
26819ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26820fi
ac1cb8d3
VS
26821rm -f conftest.err conftest.$ac_objext \
26822 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26823LIBS=$ac_check_lib_save_LIBS
26824fi
26825echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26826echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26827if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26828 MSPACK_LINK=" -lmspack"
26829fi
26830
26831 fi
26832 if test "x$MSPACK_LINK" = "x" ; then
26833 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
26834 fi
26835fi
26836
26837if test "$wxUSE_LIBMSPACK" != "no"; then
26838 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
26839#define wxUSE_LIBMSPACK 1
26840_ACEOF
26841
a848cd7e
SC
26842fi
26843
26844
26845
26846AFMINSTALL=
26847WIN32INSTALL=
26848
26849TOOLKIT=
26850TOOLKIT_INCLUDE=
26851WIDGET_SET=
26852
26853if test "$USE_WIN32" = 1 ; then
26854
26855for ac_header in w32api.h
26856do
26857as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26858if eval "test \"\${$as_ac_Header+set}\" = set"; then
26859 echo "$as_me:$LINENO: checking for $ac_header" >&5
26860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26861if eval "test \"\${$as_ac_Header+set}\" = set"; then
26862 echo $ECHO_N "(cached) $ECHO_C" >&6
26863fi
26864echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26865echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26866else
26867 # Is the header compilable?
26868echo "$as_me:$LINENO: checking $ac_header usability" >&5
26869echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26870cat >conftest.$ac_ext <<_ACEOF
26871/* confdefs.h. */
26872_ACEOF
26873cat confdefs.h >>conftest.$ac_ext
26874cat >>conftest.$ac_ext <<_ACEOF
26875/* end confdefs.h. */
26876$ac_includes_default
26877#include <$ac_header>
26878_ACEOF
26879rm -f conftest.$ac_objext
26880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26881 (eval $ac_compile) 2>conftest.er1
a848cd7e 26882 ac_status=$?
ac1cb8d3
VS
26883 grep -v '^ *+' conftest.er1 >conftest.err
26884 rm -f conftest.er1
26885 cat conftest.err >&5
a848cd7e
SC
26886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887 (exit $ac_status); } &&
ca5c6ac3 26888 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26890 (eval $ac_try) 2>&5
26891 ac_status=$?
26892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26893 (exit $ac_status); }; } &&
26894 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26896 (eval $ac_try) 2>&5
26897 ac_status=$?
26898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26899 (exit $ac_status); }; }; then
26900 ac_header_compiler=yes
26901else
26902 echo "$as_me: failed program was:" >&5
26903sed 's/^/| /' conftest.$ac_ext >&5
26904
26905ac_header_compiler=no
26906fi
ac1cb8d3 26907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26908echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26909echo "${ECHO_T}$ac_header_compiler" >&6
26910
26911# Is the header present?
26912echo "$as_me:$LINENO: checking $ac_header presence" >&5
26913echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26914cat >conftest.$ac_ext <<_ACEOF
26915/* confdefs.h. */
26916_ACEOF
26917cat confdefs.h >>conftest.$ac_ext
26918cat >>conftest.$ac_ext <<_ACEOF
26919/* end confdefs.h. */
26920#include <$ac_header>
26921_ACEOF
26922if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26924 ac_status=$?
26925 grep -v '^ *+' conftest.er1 >conftest.err
26926 rm -f conftest.er1
26927 cat conftest.err >&5
26928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); } >/dev/null; then
26930 if test -s conftest.err; then
5d7b7554
VZ
26931 ac_cpp_err=$ac_cxx_preproc_warn_flag
26932 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26933 else
26934 ac_cpp_err=
26935 fi
26936else
26937 ac_cpp_err=yes
26938fi
26939if test -z "$ac_cpp_err"; then
26940 ac_header_preproc=yes
26941else
26942 echo "$as_me: failed program was:" >&5
26943sed 's/^/| /' conftest.$ac_ext >&5
26944
26945 ac_header_preproc=no
26946fi
26947rm -f conftest.err conftest.$ac_ext
26948echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26949echo "${ECHO_T}$ac_header_preproc" >&6
26950
26951# So? What about this header?
5d7b7554 26952case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26953 yes:no: )
a848cd7e
SC
26954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26955echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26957echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26958 ac_header_preproc=yes
a848cd7e 26959 ;;
ac1cb8d3 26960 no:yes:* )
a848cd7e
SC
26961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26962echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26964echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26965 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26966echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26967 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26968echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26970echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26971 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26972echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26973 (
26974 cat <<\_ASBOX
ac1cb8d3
VS
26975## ----------------------------------------- ##
26976## Report this to wx-dev@lists.wxwidgets.org ##
26977## ----------------------------------------- ##
a848cd7e
SC
26978_ASBOX
26979 ) |
26980 sed "s/^/$as_me: WARNING: /" >&2
26981 ;;
26982esac
26983echo "$as_me:$LINENO: checking for $ac_header" >&5
26984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26985if eval "test \"\${$as_ac_Header+set}\" = set"; then
26986 echo $ECHO_N "(cached) $ECHO_C" >&6
26987else
ac1cb8d3 26988 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
26989fi
26990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26991echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26992
26993fi
26994if test `eval echo '${'$as_ac_Header'}'` = yes; then
26995 cat >>confdefs.h <<_ACEOF
26996#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26997_ACEOF
26998
26999fi
27000
27001done
27002
27003 if test "${ac_cv_header_windows_h+set}" = set; then
27004 echo "$as_me:$LINENO: checking for windows.h" >&5
27005echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27006if test "${ac_cv_header_windows_h+set}" = set; then
27007 echo $ECHO_N "(cached) $ECHO_C" >&6
27008fi
27009echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27010echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27011else
27012 # Is the header compilable?
27013echo "$as_me:$LINENO: checking windows.h usability" >&5
27014echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
27015cat >conftest.$ac_ext <<_ACEOF
27016/* confdefs.h. */
27017_ACEOF
27018cat confdefs.h >>conftest.$ac_ext
27019cat >>conftest.$ac_ext <<_ACEOF
27020/* end confdefs.h. */
27021$ac_includes_default
27022#include <windows.h>
27023_ACEOF
27024rm -f conftest.$ac_objext
27025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27026 (eval $ac_compile) 2>conftest.er1
a848cd7e 27027 ac_status=$?
ac1cb8d3
VS
27028 grep -v '^ *+' conftest.er1 >conftest.err
27029 rm -f conftest.er1
27030 cat conftest.err >&5
a848cd7e
SC
27031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032 (exit $ac_status); } &&
ca5c6ac3 27033 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27035 (eval $ac_try) 2>&5
27036 ac_status=$?
27037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038 (exit $ac_status); }; } &&
27039 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27041 (eval $ac_try) 2>&5
27042 ac_status=$?
27043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27044 (exit $ac_status); }; }; then
27045 ac_header_compiler=yes
27046else
27047 echo "$as_me: failed program was:" >&5
27048sed 's/^/| /' conftest.$ac_ext >&5
27049
27050ac_header_compiler=no
27051fi
ac1cb8d3 27052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27053echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27054echo "${ECHO_T}$ac_header_compiler" >&6
27055
27056# Is the header present?
27057echo "$as_me:$LINENO: checking windows.h presence" >&5
27058echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
27059cat >conftest.$ac_ext <<_ACEOF
27060/* confdefs.h. */
27061_ACEOF
27062cat confdefs.h >>conftest.$ac_ext
27063cat >>conftest.$ac_ext <<_ACEOF
27064/* end confdefs.h. */
27065#include <windows.h>
27066_ACEOF
27067if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27069 ac_status=$?
27070 grep -v '^ *+' conftest.er1 >conftest.err
27071 rm -f conftest.er1
27072 cat conftest.err >&5
27073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074 (exit $ac_status); } >/dev/null; then
27075 if test -s conftest.err; then
5d7b7554
VZ
27076 ac_cpp_err=$ac_cxx_preproc_warn_flag
27077 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27078 else
27079 ac_cpp_err=
27080 fi
27081else
27082 ac_cpp_err=yes
27083fi
27084if test -z "$ac_cpp_err"; then
27085 ac_header_preproc=yes
27086else
27087 echo "$as_me: failed program was:" >&5
27088sed 's/^/| /' conftest.$ac_ext >&5
27089
27090 ac_header_preproc=no
27091fi
27092rm -f conftest.err conftest.$ac_ext
27093echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27094echo "${ECHO_T}$ac_header_preproc" >&6
27095
27096# So? What about this header?
5d7b7554 27097case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27098 yes:no: )
a848cd7e
SC
27099 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
27100echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27101 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
27102echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
27103 ac_header_preproc=yes
a848cd7e 27104 ;;
ac1cb8d3 27105 no:yes:* )
a848cd7e
SC
27106 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
27107echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27108 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
27109echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
27110 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
27111echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
27112 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
27113echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27114 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
27115echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27116 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
27117echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27118 (
27119 cat <<\_ASBOX
ac1cb8d3
VS
27120## ----------------------------------------- ##
27121## Report this to wx-dev@lists.wxwidgets.org ##
27122## ----------------------------------------- ##
a848cd7e
SC
27123_ASBOX
27124 ) |
27125 sed "s/^/$as_me: WARNING: /" >&2
27126 ;;
27127esac
27128echo "$as_me:$LINENO: checking for windows.h" >&5
27129echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27130if test "${ac_cv_header_windows_h+set}" = set; then
27131 echo $ECHO_N "(cached) $ECHO_C" >&6
27132else
27133 ac_cv_header_windows_h=$ac_header_preproc
27134fi
27135echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27136echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27137
27138fi
27139if test $ac_cv_header_windows_h = yes; then
27140 :
27141else
27142
27143 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27144echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27145 { (exit 1); exit 1; }; }
27146
27147fi
27148
27149
27150
27151 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27152
27153 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27154 LIBS="$LIBS -loleacc"
27155 fi
27156
27157 case "${host}" in
27158 *-*-cygwin* )
27159 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
27160 esac
27161
27162 if test "$wxUSE_ODBC" = "sys" ; then
27163 wxUSE_ODBC = "yes"
27164 fi
27165 if test "$wxUSE_ODBC" = "yes" ; then
27166 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27167 cat >>confdefs.h <<\_ACEOF
27168#define wxUSE_ODBC 1
27169_ACEOF
27170
27171 fi
27172
370d2fd7 27173 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
27174 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27175
004ee6da 27176 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 27177
a848cd7e 27178 WIN32INSTALL=win32install
5f41d1bf
MW
27179
27180 echo "$as_me:$LINENO: checking for boolean" >&5
27181echo $ECHO_N "checking for boolean... $ECHO_C" >&6
27182if test "${ac_cv_type_boolean+set}" = set; then
27183 echo $ECHO_N "(cached) $ECHO_C" >&6
27184else
27185 cat >conftest.$ac_ext <<_ACEOF
27186/* confdefs.h. */
27187_ACEOF
27188cat confdefs.h >>conftest.$ac_ext
27189cat >>conftest.$ac_ext <<_ACEOF
27190/* end confdefs.h. */
27191#include <windows.h>
27192
27193int
27194main ()
27195{
27196if ((boolean *) 0)
27197 return 0;
27198if (sizeof (boolean))
27199 return 0;
27200 ;
27201 return 0;
27202}
27203_ACEOF
27204rm -f conftest.$ac_objext
27205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27206 (eval $ac_compile) 2>conftest.er1
27207 ac_status=$?
27208 grep -v '^ *+' conftest.er1 >conftest.err
27209 rm -f conftest.er1
27210 cat conftest.err >&5
27211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212 (exit $ac_status); } &&
ca5c6ac3 27213 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5f41d1bf
MW
27214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27215 (eval $ac_try) 2>&5
27216 ac_status=$?
27217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27218 (exit $ac_status); }; } &&
27219 { ac_try='test -s conftest.$ac_objext'
27220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27221 (eval $ac_try) 2>&5
27222 ac_status=$?
27223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224 (exit $ac_status); }; }; then
27225 ac_cv_type_boolean=yes
27226else
27227 echo "$as_me: failed program was:" >&5
27228sed 's/^/| /' conftest.$ac_ext >&5
27229
27230ac_cv_type_boolean=no
27231fi
27232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27233fi
27234echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27235echo "${ECHO_T}$ac_cv_type_boolean" >&6
27236if test $ac_cv_type_boolean = yes; then
27237
27238cat >>confdefs.h <<_ACEOF
27239#define HAVE_BOOLEAN 1
27240_ACEOF
27241
27242
27243fi
27244
dcfd4ac4
MW
27245
27246
27247for ac_header in pbt.h
27248do
27249as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27250if eval "test \"\${$as_ac_Header+set}\" = set"; then
27251 echo "$as_me:$LINENO: checking for $ac_header" >&5
27252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27253if eval "test \"\${$as_ac_Header+set}\" = set"; then
27254 echo $ECHO_N "(cached) $ECHO_C" >&6
27255fi
27256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27258else
27259 # Is the header compilable?
27260echo "$as_me:$LINENO: checking $ac_header usability" >&5
27261echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27262cat >conftest.$ac_ext <<_ACEOF
27263/* confdefs.h. */
27264_ACEOF
27265cat confdefs.h >>conftest.$ac_ext
27266cat >>conftest.$ac_ext <<_ACEOF
27267/* end confdefs.h. */
27268$ac_includes_default
27269#include <$ac_header>
27270_ACEOF
27271rm -f conftest.$ac_objext
27272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27273 (eval $ac_compile) 2>conftest.er1
27274 ac_status=$?
27275 grep -v '^ *+' conftest.er1 >conftest.err
27276 rm -f conftest.er1
27277 cat conftest.err >&5
27278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27279 (exit $ac_status); } &&
ca5c6ac3 27280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
dcfd4ac4
MW
27281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27282 (eval $ac_try) 2>&5
27283 ac_status=$?
27284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285 (exit $ac_status); }; } &&
27286 { ac_try='test -s conftest.$ac_objext'
27287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27288 (eval $ac_try) 2>&5
27289 ac_status=$?
27290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291 (exit $ac_status); }; }; then
27292 ac_header_compiler=yes
27293else
27294 echo "$as_me: failed program was:" >&5
27295sed 's/^/| /' conftest.$ac_ext >&5
27296
27297ac_header_compiler=no
27298fi
27299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27300echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27301echo "${ECHO_T}$ac_header_compiler" >&6
27302
27303# Is the header present?
27304echo "$as_me:$LINENO: checking $ac_header presence" >&5
27305echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27306cat >conftest.$ac_ext <<_ACEOF
27307/* confdefs.h. */
27308_ACEOF
27309cat confdefs.h >>conftest.$ac_ext
27310cat >>conftest.$ac_ext <<_ACEOF
27311/* end confdefs.h. */
27312#include <$ac_header>
27313_ACEOF
27314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27316 ac_status=$?
27317 grep -v '^ *+' conftest.er1 >conftest.err
27318 rm -f conftest.er1
27319 cat conftest.err >&5
27320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321 (exit $ac_status); } >/dev/null; then
27322 if test -s conftest.err; then
27323 ac_cpp_err=$ac_cxx_preproc_warn_flag
27324 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27325 else
27326 ac_cpp_err=
27327 fi
27328else
27329 ac_cpp_err=yes
27330fi
27331if test -z "$ac_cpp_err"; then
27332 ac_header_preproc=yes
27333else
27334 echo "$as_me: failed program was:" >&5
27335sed 's/^/| /' conftest.$ac_ext >&5
27336
27337 ac_header_preproc=no
27338fi
27339rm -f conftest.err conftest.$ac_ext
27340echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27341echo "${ECHO_T}$ac_header_preproc" >&6
27342
27343# So? What about this header?
27344case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27345 yes:no: )
27346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27347echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27349echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27350 ac_header_preproc=yes
27351 ;;
27352 no:yes:* )
27353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27354echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27356echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27358echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27360echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27362echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27364echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27365 (
27366 cat <<\_ASBOX
27367## ----------------------------------------- ##
27368## Report this to wx-dev@lists.wxwidgets.org ##
27369## ----------------------------------------- ##
27370_ASBOX
27371 ) |
27372 sed "s/^/$as_me: WARNING: /" >&2
27373 ;;
27374esac
27375echo "$as_me:$LINENO: checking for $ac_header" >&5
27376echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27377if eval "test \"\${$as_ac_Header+set}\" = set"; then
27378 echo $ECHO_N "(cached) $ECHO_C" >&6
27379else
27380 eval "$as_ac_Header=\$ac_header_preproc"
27381fi
27382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27383echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27384
27385fi
27386if test `eval echo '${'$as_ac_Header'}'` = yes; then
27387 cat >>confdefs.h <<_ACEOF
27388#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27389_ACEOF
27390
27391else
27392 cat >>confdefs.h <<\_ACEOF
27393#define NEED_PBT_H 1
27394_ACEOF
27395
27396fi
27397
27398done
27399
a848cd7e
SC
27400fi
27401
27402if test "$wxUSE_GUI" = "yes"; then
27403 USE_GUI=1
27404
27405 GUI_TK_LIBRARY=
27406
27407 WXGTK12=
27408 WXGTK127=
27409 WXGTK20=
27410 WXGPE=
27411
207bc66c
RN
27412 if test "$wxUSE_COCOA" = 1 ; then
27413 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27414 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27415echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27416 wxUSE_PRINTING_ARCHITECTURE=no
27417 fi
27418 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27419 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27420echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27421 wxUSE_DRAG_AND_DROP=no
27422 fi
27423 if test "$wxUSE_DRAGIMAGE" = "yes"; then
27424 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27425echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27426 wxUSE_DRAGIMAGE=no
27427 fi
27428 fi
27429
a848cd7e
SC
27430 if test "$wxUSE_MSW" = 1 ; then
27431 TOOLKIT=MSW
27432 GUIDIST=MSW_DIST
27433
ceec2216 27434 case "${host}" in
a848cd7e
SC
27435 *-*-mingw32* )
27436 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27437 esac
27438 fi
27439
27440 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
27441 ac_ext=c
27442ac_cpp='$CPP $CPPFLAGS'
27443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27445ac_compiler_gnu=$ac_cv_c_compiler_gnu
27446
27447
a848cd7e
SC
27448 echo "$as_me:$LINENO: checking for GTK+ version" >&5
27449echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27450
27451 gtk_version_cached=1
27452 if test "${wx_cv_lib_gtk+set}" = set; then
27453 echo $ECHO_N "(cached) $ECHO_C" >&6
27454else
27455
27456 gtk_version_cached=0
27457 echo "$as_me:$LINENO: result: " >&5
27458echo "${ECHO_T}" >&6
27459
27460 GTK_MODULES=
27461 if test "$wxUSE_THREADS" = "yes"; then
27462 GTK_MODULES=gthread
27463 fi
27464
f597b41c 27465 wx_cv_lib_gtk=
5001df0d
MW
27466 if test "x$wxGTK_VERSION" != "x1"
27467 then
27468 case "${host}" in
27469 *-*-solaris2* )
27470 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 27471 enable_gtktest=no
5001df0d
MW
27472 fi
27473 esac
27474
a848cd7e
SC
27475 # Check whether --enable-gtktest or --disable-gtktest was given.
27476if test "${enable_gtktest+set}" = set; then
27477 enableval="$enable_gtktest"
27478
27479else
27480 enable_gtktest=yes
27481fi;
27482
27483 pkg_config_args=gtk+-2.0
27484 for module in . $GTK_MODULES
27485 do
27486 case "$module" in
27487 gthread)
27488 pkg_config_args="$pkg_config_args gthread-2.0"
27489 ;;
27490 esac
27491 done
27492
27493 no_gtk=""
27494
27495 # Extract the first word of "pkg-config", so it can be a program name with args.
27496set dummy pkg-config; ac_word=$2
27497echo "$as_me:$LINENO: checking for $ac_word" >&5
27498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27499if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27500 echo $ECHO_N "(cached) $ECHO_C" >&6
27501else
27502 case $PKG_CONFIG in
27503 [\\/]* | ?:[\\/]*)
27504 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27505 ;;
27506 *)
27507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27508for as_dir in $PATH
27509do
27510 IFS=$as_save_IFS
27511 test -z "$as_dir" && as_dir=.
27512 for ac_exec_ext in '' $ac_executable_extensions; do
27513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27514 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27516 break 2
27517 fi
27518done
27519done
27520
27521 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27522 ;;
27523esac
27524fi
27525PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27526
27527if test -n "$PKG_CONFIG"; then
27528 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27529echo "${ECHO_T}$PKG_CONFIG" >&6
27530else
27531 echo "$as_me:$LINENO: result: no" >&5
27532echo "${ECHO_T}no" >&6
27533fi
27534
27535
27536 if test x$PKG_CONFIG != xno ; then
27537 if pkg-config --atleast-pkgconfig-version 0.7 ; then
27538 :
27539 else
c2218763 27540 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
27541 no_gtk=yes
27542 PKG_CONFIG=no
27543 fi
27544 else
27545 no_gtk=yes
27546 fi
27547
27548 min_gtk_version=2.0.0
27549 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27550echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27551
27552 if test x$PKG_CONFIG != xno ; then
27553 ## don't try to run the test against uninstalled libtool libs
27554 if $PKG_CONFIG --uninstalled $pkg_config_args; then
27555 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27556 enable_gtktest=no
27557 fi
27558
27559 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27560 :
27561 else
27562 no_gtk=yes
27563 fi
27564 fi
27565
27566 if test x"$no_gtk" = x ; then
27567 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27568 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27569 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27570 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27571 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27572 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27573 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27574 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27575 if test "x$enable_gtktest" = "xyes" ; then
27576 ac_save_CFLAGS="$CFLAGS"
27577 ac_save_LIBS="$LIBS"
27578 CFLAGS="$CFLAGS $GTK_CFLAGS"
27579 LIBS="$GTK_LIBS $LIBS"
27580 rm -f conf.gtktest
27581 if test "$cross_compiling" = yes; then
27582 echo $ac_n "cross compiling; assumed OK... $ac_c"
27583else
27584 cat >conftest.$ac_ext <<_ACEOF
27585/* confdefs.h. */
27586_ACEOF
27587cat confdefs.h >>conftest.$ac_ext
27588cat >>conftest.$ac_ext <<_ACEOF
27589/* end confdefs.h. */
27590
27591#include <gtk/gtk.h>
27592#include <stdio.h>
27593#include <stdlib.h>
27594
27595int
27596main ()
27597{
27598 int major, minor, micro;
27599 char *tmp_version;
27600
27601 system ("touch conf.gtktest");
27602
27603 /* HP/UX 9 (%@#!) writes to sscanf strings */
27604 tmp_version = g_strdup("$min_gtk_version");
27605 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27606 printf("%s, bad version string\n", "$min_gtk_version");
27607 exit(1);
27608 }
27609
27610 if ((gtk_major_version != $gtk_config_major_version) ||
27611 (gtk_minor_version != $gtk_config_minor_version) ||
27612 (gtk_micro_version != $gtk_config_micro_version))
27613 {
27614 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27615 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27616 gtk_major_version, gtk_minor_version, gtk_micro_version);
27617 printf ("*** was found! If pkg-config was correct, then it is best\n");
27618 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27619 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27620 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27621 printf("*** required on your system.\n");
27622 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27623 printf("*** to point to the correct configuration files\n");
27624 }
27625 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27626 (gtk_minor_version != GTK_MINOR_VERSION) ||
27627 (gtk_micro_version != GTK_MICRO_VERSION))
27628 {
27629 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27630 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27631 printf("*** library (version %d.%d.%d)\n",
27632 gtk_major_version, gtk_minor_version, gtk_micro_version);
27633 }
27634 else
27635 {
27636 if ((gtk_major_version > major) ||
27637 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27638 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27639 {
27640 return 0;
27641 }
27642 else
27643 {
27644 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27645 gtk_major_version, gtk_minor_version, gtk_micro_version);
27646 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27647 major, minor, micro);
27648 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27649 printf("***\n");
27650 printf("*** If you have already installed a sufficiently new version, this error\n");
27651 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27652 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27653 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27654 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27655 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27656 printf("*** so that the correct libraries are found at run-time))\n");
27657 }
27658 }
27659 return 1;
27660}
27661
27662_ACEOF
27663rm -f conftest$ac_exeext
27664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27665 (eval $ac_link) 2>&5
27666 ac_status=$?
27667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27670 (eval $ac_try) 2>&5
27671 ac_status=$?
27672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673 (exit $ac_status); }; }; then
27674 :
27675else
27676 echo "$as_me: program exited with status $ac_status" >&5
27677echo "$as_me: failed program was:" >&5
27678sed 's/^/| /' conftest.$ac_ext >&5
27679
27680( exit $ac_status )
27681no_gtk=yes
27682fi
ac1cb8d3 27683rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27684fi
27685 CFLAGS="$ac_save_CFLAGS"
27686 LIBS="$ac_save_LIBS"
27687 fi
27688 fi
27689 if test "x$no_gtk" = x ; then
27690 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27691echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27692 wx_cv_lib_gtk=2.0
27693 else
27694 echo "$as_me:$LINENO: result: no" >&5
27695echo "${ECHO_T}no" >&6
27696 if test "$PKG_CONFIG" = "no" ; then
27697 echo "*** A new enough version of pkg-config was not found."
27698 echo "*** See http://pkgconfig.sourceforge.net"
27699 else
27700 if test -f conf.gtktest ; then
27701 :
27702 else
27703 echo "*** Could not run GTK+ test program, checking why..."
27704 ac_save_CFLAGS="$CFLAGS"
27705 ac_save_LIBS="$LIBS"
27706 CFLAGS="$CFLAGS $GTK_CFLAGS"
27707 LIBS="$LIBS $GTK_LIBS"
27708 cat >conftest.$ac_ext <<_ACEOF
27709/* confdefs.h. */
27710_ACEOF
27711cat confdefs.h >>conftest.$ac_ext
27712cat >>conftest.$ac_ext <<_ACEOF
27713/* end confdefs.h. */
27714
27715#include <gtk/gtk.h>
27716#include <stdio.h>
27717
27718int
27719main ()
27720{
27721 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27722 ;
27723 return 0;
27724}
27725_ACEOF
27726rm -f conftest.$ac_objext conftest$ac_exeext
27727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27728 (eval $ac_link) 2>conftest.er1
a848cd7e 27729 ac_status=$?
ac1cb8d3
VS
27730 grep -v '^ *+' conftest.er1 >conftest.err
27731 rm -f conftest.er1
27732 cat conftest.err >&5
a848cd7e
SC
27733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734 (exit $ac_status); } &&
ca5c6ac3 27735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27737 (eval $ac_try) 2>&5
27738 ac_status=$?
27739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740 (exit $ac_status); }; } &&
27741 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
27747 echo "*** The test program compiled, but did not run. This usually means"
27748 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27749 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27750 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27751 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27752 echo "*** is required on your system"
27753 echo "***"
27754 echo "*** If you have an old version installed, it is best to remove it, although"
27755 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27756else
27757 echo "$as_me: failed program was:" >&5
27758sed 's/^/| /' conftest.$ac_ext >&5
27759
27760 echo "*** The test program failed to compile or link. See the file config.log for the"
27761 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27762fi
ac1cb8d3
VS
27763rm -f conftest.err conftest.$ac_objext \
27764 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27765 CFLAGS="$ac_save_CFLAGS"
27766 LIBS="$ac_save_LIBS"
27767 fi
27768 fi
27769 GTK_CFLAGS=""
27770 GTK_LIBS=""
27771 :
27772 fi
27773
27774
27775 rm -f conf.gtktest
27776
5001df0d
MW
27777
27778 case "${host}" in
27779 *-*-solaris2* )
27780 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27781 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27782 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27783 fi
27784 if test "$wxUSE_SHARED" != "yes"; then
27785 GTK_LIBS="$GTK_LIBS -lX11"
27786 fi
27787 esac
f597b41c
MW
27788 fi
27789
f34ca037
MW
27790 if test -z "$wx_cv_lib_gtk"; then
27791 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
27792
27793# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27794if test "${with_gtk_prefix+set}" = set; then
27795 withval="$with_gtk_prefix"
27796 gtk_config_prefix="$withval"
27797else
27798 gtk_config_prefix=""
27799fi;
27800
27801# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27802if test "${with_gtk_exec_prefix+set}" = set; then
27803 withval="$with_gtk_exec_prefix"
27804 gtk_config_exec_prefix="$withval"
27805else
27806 gtk_config_exec_prefix=""
27807fi;
27808# Check whether --enable-gtktest or --disable-gtktest was given.
27809if test "${enable_gtktest+set}" = set; then
27810 enableval="$enable_gtktest"
27811
27812else
27813 enable_gtktest=yes
27814fi;
27815
27816 for module in . $GTK_MODULES
27817 do
27818 case "$module" in
27819 gthread)
27820 gtk_config_args="$gtk_config_args gthread"
27821 ;;
27822 esac
27823 done
27824
27825 if test x$gtk_config_exec_prefix != x ; then
27826 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27827 if test x${GTK_CONFIG+set} != xset ; then
27828 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27829 fi
27830 fi
27831 if test x$gtk_config_prefix != x ; then
27832 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27833 if test x${GTK_CONFIG+set} != xset ; then
27834 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27835 fi
27836 fi
27837
27838 # Extract the first word of "gtk-config", so it can be a program name with args.
27839set dummy gtk-config; ac_word=$2
27840echo "$as_me:$LINENO: checking for $ac_word" >&5
27841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27842if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27843 echo $ECHO_N "(cached) $ECHO_C" >&6
27844else
27845 case $GTK_CONFIG in
27846 [\\/]* | ?:[\\/]*)
27847 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27848 ;;
27849 *)
27850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27851for as_dir in $PATH
27852do
27853 IFS=$as_save_IFS
27854 test -z "$as_dir" && as_dir=.
27855 for ac_exec_ext in '' $ac_executable_extensions; do
27856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27857 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27859 break 2
27860 fi
27861done
27862done
27863
27864 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27865 ;;
27866esac
27867fi
27868GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27869
27870if test -n "$GTK_CONFIG"; then
27871 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27872echo "${ECHO_T}$GTK_CONFIG" >&6
27873else
27874 echo "$as_me:$LINENO: result: no" >&5
27875echo "${ECHO_T}no" >&6
27876fi
27877
27878 min_gtk_version=1.2.7
27879 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27880echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27881 no_gtk=""
27882 if test "$GTK_CONFIG" = "no" ; then
27883 no_gtk=yes
27884 else
27885 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27886 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27887 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27888 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27889 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27890 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27891 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27892 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27893 if test "x$enable_gtktest" = "xyes" ; then
27894 ac_save_CFLAGS="$CFLAGS"
27895 ac_save_LIBS="$LIBS"
27896 CFLAGS="$CFLAGS $GTK_CFLAGS"
27897 LIBS="$GTK_LIBS $LIBS"
27898 rm -f conf.gtktest
27899 if test "$cross_compiling" = yes; then
27900 echo $ac_n "cross compiling; assumed OK... $ac_c"
27901else
27902 cat >conftest.$ac_ext <<_ACEOF
27903/* confdefs.h. */
27904_ACEOF
27905cat confdefs.h >>conftest.$ac_ext
27906cat >>conftest.$ac_ext <<_ACEOF
27907/* end confdefs.h. */
27908
27909#include <gtk/gtk.h>
27910#include <stdio.h>
27911#include <stdlib.h>
27912
27913int
27914main ()
27915{
27916 int major, minor, micro;
27917 char *tmp_version;
27918
27919 system ("touch conf.gtktest");
27920
27921 /* HP/UX 9 (%@#!) writes to sscanf strings */
27922 tmp_version = g_strdup("$min_gtk_version");
27923 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27924 printf("%s, bad version string\n", "$min_gtk_version");
27925 exit(1);
27926 }
27927
27928 if ((gtk_major_version != $gtk_config_major_version) ||
27929 (gtk_minor_version != $gtk_config_minor_version) ||
27930 (gtk_micro_version != $gtk_config_micro_version))
27931 {
27932 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27933 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27934 gtk_major_version, gtk_minor_version, gtk_micro_version);
27935 printf ("*** was found! If gtk-config was correct, then it is best\n");
27936 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27937 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27938 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27939 printf("*** required on your system.\n");
27940 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27941 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27942 printf("*** before re-running configure\n");
27943 }
27944#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27945 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27946 (gtk_minor_version != GTK_MINOR_VERSION) ||
27947 (gtk_micro_version != GTK_MICRO_VERSION))
27948 {
27949 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27950 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27951 printf("*** library (version %d.%d.%d)\n",
27952 gtk_major_version, gtk_minor_version, gtk_micro_version);
27953 }
27954#endif /* defined (GTK_MAJOR_VERSION) ... */
27955 else
27956 {
27957 if ((gtk_major_version > major) ||
27958 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27959 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27960 {
27961 return 0;
27962 }
27963 else
27964 {
27965 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27966 gtk_major_version, gtk_minor_version, gtk_micro_version);
27967 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27968 major, minor, micro);
27969 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27970 printf("***\n");
27971 printf("*** If you have already installed a sufficiently new version, this error\n");
27972 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27973 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27974 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27975 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27976 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27977 printf("*** so that the correct libraries are found at run-time))\n");
27978 }
27979 }
27980 return 1;
27981}
27982
27983_ACEOF
27984rm -f conftest$ac_exeext
27985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27986 (eval $ac_link) 2>&5
27987 ac_status=$?
27988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27991 (eval $ac_try) 2>&5
27992 ac_status=$?
27993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994 (exit $ac_status); }; }; then
27995 :
27996else
27997 echo "$as_me: program exited with status $ac_status" >&5
27998echo "$as_me: failed program was:" >&5
27999sed 's/^/| /' conftest.$ac_ext >&5
28000
28001( exit $ac_status )
28002no_gtk=yes
28003fi
ac1cb8d3 28004rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28005fi
28006 CFLAGS="$ac_save_CFLAGS"
28007 LIBS="$ac_save_LIBS"
28008 fi
28009 fi
28010 if test "x$no_gtk" = x ; then
28011 echo "$as_me:$LINENO: result: yes" >&5
28012echo "${ECHO_T}yes" >&6
28013 wx_cv_lib_gtk=1.2.7
28014 else
28015 echo "$as_me:$LINENO: result: no" >&5
28016echo "${ECHO_T}no" >&6
28017 if test "$GTK_CONFIG" = "no" ; then
28018 echo "*** The gtk-config script installed by GTK could not be found"
28019 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28020 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28021 echo "*** full path to gtk-config."
28022 else
28023 if test -f conf.gtktest ; then
28024 :
28025 else
28026 echo "*** Could not run GTK test program, checking why..."
28027 CFLAGS="$CFLAGS $GTK_CFLAGS"
28028 LIBS="$LIBS $GTK_LIBS"
28029 cat >conftest.$ac_ext <<_ACEOF
28030/* confdefs.h. */
28031_ACEOF
28032cat confdefs.h >>conftest.$ac_ext
28033cat >>conftest.$ac_ext <<_ACEOF
28034/* end confdefs.h. */
28035
28036#include <gtk/gtk.h>
28037#include <stdio.h>
28038
28039int
28040main ()
28041{
28042 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28043 ;
28044 return 0;
28045}
28046_ACEOF
28047rm -f conftest.$ac_objext conftest$ac_exeext
28048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28049 (eval $ac_link) 2>conftest.er1
a848cd7e 28050 ac_status=$?
ac1cb8d3
VS
28051 grep -v '^ *+' conftest.er1 >conftest.err
28052 rm -f conftest.er1
28053 cat conftest.err >&5
a848cd7e
SC
28054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055 (exit $ac_status); } &&
ca5c6ac3 28056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28058 (eval $ac_try) 2>&5
28059 ac_status=$?
28060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061 (exit $ac_status); }; } &&
28062 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28064 (eval $ac_try) 2>&5
28065 ac_status=$?
28066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067 (exit $ac_status); }; }; then
28068 echo "*** The test program compiled, but did not run. This usually means"
28069 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28070 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28071 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28072 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28073 echo "*** is required on your system"
28074 echo "***"
28075 echo "*** If you have an old version installed, it is best to remove it, although"
28076 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28077 echo "***"
28078 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28079 echo "*** came with the system with the command"
28080 echo "***"
28081 echo "*** rpm --erase --nodeps gtk gtk-devel"
28082else
28083 echo "$as_me: failed program was:" >&5
28084sed 's/^/| /' conftest.$ac_ext >&5
28085
28086 echo "*** The test program failed to compile or link. See the file config.log for the"
28087 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28088 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28089 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28090fi
ac1cb8d3
VS
28091rm -f conftest.err conftest.$ac_objext \
28092 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28093 CFLAGS="$ac_save_CFLAGS"
28094 LIBS="$ac_save_LIBS"
28095 fi
28096 fi
28097 GTK_CFLAGS=""
28098 GTK_LIBS=""
28099 :
28100 fi
28101
28102
28103 rm -f conf.gtktest
28104
28105
f34ca037 28106 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
28107
28108# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28109if test "${with_gtk_prefix+set}" = set; then
28110 withval="$with_gtk_prefix"
28111 gtk_config_prefix="$withval"
28112else
28113 gtk_config_prefix=""
28114fi;
28115
28116# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28117if test "${with_gtk_exec_prefix+set}" = set; then
28118 withval="$with_gtk_exec_prefix"
28119 gtk_config_exec_prefix="$withval"
28120else
28121 gtk_config_exec_prefix=""
28122fi;
28123# Check whether --enable-gtktest or --disable-gtktest was given.
28124if test "${enable_gtktest+set}" = set; then
28125 enableval="$enable_gtktest"
28126
28127else
28128 enable_gtktest=yes
28129fi;
28130
28131 for module in . $GTK_MODULES
28132 do
28133 case "$module" in
28134 gthread)
28135 gtk_config_args="$gtk_config_args gthread"
28136 ;;
28137 esac
28138 done
28139
28140 if test x$gtk_config_exec_prefix != x ; then
28141 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28142 if test x${GTK_CONFIG+set} != xset ; then
28143 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28144 fi
28145 fi
28146 if test x$gtk_config_prefix != x ; then
28147 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28148 if test x${GTK_CONFIG+set} != xset ; then
28149 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28150 fi
28151 fi
28152
28153 # Extract the first word of "gtk-config", so it can be a program name with args.
28154set dummy gtk-config; ac_word=$2
28155echo "$as_me:$LINENO: checking for $ac_word" >&5
28156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28157if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28158 echo $ECHO_N "(cached) $ECHO_C" >&6
28159else
28160 case $GTK_CONFIG in
28161 [\\/]* | ?:[\\/]*)
28162 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28163 ;;
28164 *)
28165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28166for as_dir in $PATH
28167do
28168 IFS=$as_save_IFS
28169 test -z "$as_dir" && as_dir=.
28170 for ac_exec_ext in '' $ac_executable_extensions; do
28171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28172 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28174 break 2
28175 fi
28176done
28177done
28178
28179 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28180 ;;
28181esac
28182fi
28183GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28184
28185if test -n "$GTK_CONFIG"; then
28186 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28187echo "${ECHO_T}$GTK_CONFIG" >&6
28188else
28189 echo "$as_me:$LINENO: result: no" >&5
28190echo "${ECHO_T}no" >&6
28191fi
28192
28193 min_gtk_version=1.2.3
28194 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28195echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28196 no_gtk=""
28197 if test "$GTK_CONFIG" = "no" ; then
28198 no_gtk=yes
28199 else
28200 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28201 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28202 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28203 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28204 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28205 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28206 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28207 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28208 if test "x$enable_gtktest" = "xyes" ; then
28209 ac_save_CFLAGS="$CFLAGS"
28210 ac_save_LIBS="$LIBS"
28211 CFLAGS="$CFLAGS $GTK_CFLAGS"
28212 LIBS="$GTK_LIBS $LIBS"
28213 rm -f conf.gtktest
28214 if test "$cross_compiling" = yes; then
28215 echo $ac_n "cross compiling; assumed OK... $ac_c"
28216else
28217 cat >conftest.$ac_ext <<_ACEOF
28218/* confdefs.h. */
28219_ACEOF
28220cat confdefs.h >>conftest.$ac_ext
28221cat >>conftest.$ac_ext <<_ACEOF
28222/* end confdefs.h. */
28223
28224#include <gtk/gtk.h>
28225#include <stdio.h>
28226#include <stdlib.h>
28227
28228int
28229main ()
28230{
28231 int major, minor, micro;
28232 char *tmp_version;
28233
28234 system ("touch conf.gtktest");
28235
28236 /* HP/UX 9 (%@#!) writes to sscanf strings */
28237 tmp_version = g_strdup("$min_gtk_version");
28238 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28239 printf("%s, bad version string\n", "$min_gtk_version");
28240 exit(1);
28241 }
28242
28243 if ((gtk_major_version != $gtk_config_major_version) ||
28244 (gtk_minor_version != $gtk_config_minor_version) ||
28245 (gtk_micro_version != $gtk_config_micro_version))
28246 {
28247 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28248 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28249 gtk_major_version, gtk_minor_version, gtk_micro_version);
28250 printf ("*** was found! If gtk-config was correct, then it is best\n");
28251 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28252 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28253 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28254 printf("*** required on your system.\n");
28255 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28256 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28257 printf("*** before re-running configure\n");
28258 }
28259#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28260 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28261 (gtk_minor_version != GTK_MINOR_VERSION) ||
28262 (gtk_micro_version != GTK_MICRO_VERSION))
28263 {
28264 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28265 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28266 printf("*** library (version %d.%d.%d)\n",
28267 gtk_major_version, gtk_minor_version, gtk_micro_version);
28268 }
28269#endif /* defined (GTK_MAJOR_VERSION) ... */
28270 else
28271 {
28272 if ((gtk_major_version > major) ||
28273 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28274 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28275 {
28276 return 0;
28277 }
28278 else
28279 {
28280 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28281 gtk_major_version, gtk_minor_version, gtk_micro_version);
28282 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28283 major, minor, micro);
28284 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28285 printf("***\n");
28286 printf("*** If you have already installed a sufficiently new version, this error\n");
28287 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28288 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28289 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28290 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28291 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28292 printf("*** so that the correct libraries are found at run-time))\n");
28293 }
28294 }
28295 return 1;
28296}
28297
28298_ACEOF
28299rm -f conftest$ac_exeext
28300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28301 (eval $ac_link) 2>&5
28302 ac_status=$?
28303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28306 (eval $ac_try) 2>&5
28307 ac_status=$?
28308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309 (exit $ac_status); }; }; then
28310 :
28311else
28312 echo "$as_me: program exited with status $ac_status" >&5
28313echo "$as_me: failed program was:" >&5
28314sed 's/^/| /' conftest.$ac_ext >&5
28315
28316( exit $ac_status )
28317no_gtk=yes
28318fi
ac1cb8d3 28319rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28320fi
28321 CFLAGS="$ac_save_CFLAGS"
28322 LIBS="$ac_save_LIBS"
28323 fi
28324 fi
28325 if test "x$no_gtk" = x ; then
28326 echo "$as_me:$LINENO: result: yes" >&5
28327echo "${ECHO_T}yes" >&6
28328 wx_cv_lib_gtk=1.2.3
28329 else
28330 echo "$as_me:$LINENO: result: no" >&5
28331echo "${ECHO_T}no" >&6
28332 if test "$GTK_CONFIG" = "no" ; then
28333 echo "*** The gtk-config script installed by GTK could not be found"
28334 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28335 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28336 echo "*** full path to gtk-config."
28337 else
28338 if test -f conf.gtktest ; then
28339 :
28340 else
28341 echo "*** Could not run GTK test program, checking why..."
28342 CFLAGS="$CFLAGS $GTK_CFLAGS"
28343 LIBS="$LIBS $GTK_LIBS"
28344 cat >conftest.$ac_ext <<_ACEOF
28345/* confdefs.h. */
28346_ACEOF
28347cat confdefs.h >>conftest.$ac_ext
28348cat >>conftest.$ac_ext <<_ACEOF
28349/* end confdefs.h. */
28350
28351#include <gtk/gtk.h>
28352#include <stdio.h>
28353
28354int
28355main ()
28356{
28357 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28358 ;
28359 return 0;
28360}
28361_ACEOF
28362rm -f conftest.$ac_objext conftest$ac_exeext
28363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28364 (eval $ac_link) 2>conftest.er1
a848cd7e 28365 ac_status=$?
ac1cb8d3
VS
28366 grep -v '^ *+' conftest.er1 >conftest.err
28367 rm -f conftest.er1
28368 cat conftest.err >&5
a848cd7e
SC
28369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370 (exit $ac_status); } &&
ca5c6ac3 28371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28373 (eval $ac_try) 2>&5
28374 ac_status=$?
28375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376 (exit $ac_status); }; } &&
28377 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28379 (eval $ac_try) 2>&5
28380 ac_status=$?
28381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382 (exit $ac_status); }; }; then
28383 echo "*** The test program compiled, but did not run. This usually means"
28384 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28385 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28386 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28387 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28388 echo "*** is required on your system"
28389 echo "***"
28390 echo "*** If you have an old version installed, it is best to remove it, although"
28391 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28392 echo "***"
28393 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28394 echo "*** came with the system with the command"
28395 echo "***"
28396 echo "*** rpm --erase --nodeps gtk gtk-devel"
28397else
28398 echo "$as_me: failed program was:" >&5
28399sed 's/^/| /' conftest.$ac_ext >&5
28400
28401 echo "*** The test program failed to compile or link. See the file config.log for the"
28402 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28403 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28404 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28405fi
ac1cb8d3
VS
28406rm -f conftest.err conftest.$ac_objext \
28407 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28408 CFLAGS="$ac_save_CFLAGS"
28409 LIBS="$ac_save_LIBS"
28410 fi
28411 fi
28412 GTK_CFLAGS=""
28413 GTK_LIBS=""
28414 :
28415 fi
28416
28417
28418 rm -f conf.gtktest
28419
f34ca037 28420 fi
a848cd7e
SC
28421 fi
28422 fi
28423
28424 if test -z "$wx_cv_lib_gtk"; then
28425 wx_cv_lib_gtk=none
28426 else
28427 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 28428 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
28429 fi
28430
28431
28432fi
28433
28434
28435 if test "$gtk_version_cached" = 1; then
28436 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28437echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28438 fi
28439
28440 case "$wx_cv_lib_gtk" in
28441 2.0) WXGTK20=1
28442 TOOLKIT_VERSION=2
28443 ;;
28444 1.2.7) WXGTK127=1
28445 WXGTK12=1
28446 ;;
28447 1.2.3) WXGTK12=1
28448 ;;
28449 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
28450The development files for GTK+ were not found. For GTK+ 2, please
28451ensure that pkg-config is in the path and that gtk+-2.0.pc is
28452installed. For GTK+ 1.2 please check that gtk-config is in the path,
28453and that the version is 1.2.3 or above. Also check that the
28454libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28455--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28456 " >&5
28457echo "$as_me: error:
f597b41c
MW
28458The development files for GTK+ were not found. For GTK+ 2, please
28459ensure that pkg-config is in the path and that gtk+-2.0.pc is
28460installed. For GTK+ 1.2 please check that gtk-config is in the path,
28461and that the version is 1.2.3 or above. Also check that the
28462libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28463--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28464 " >&2;}
28465 { (exit 1); exit 1; }; }
28466 ;;
28467 esac
28468
28469 if test "$WXGTK20" = 1; then
6954625c 28470 save_CFLAGS="$CFLAGS"
304205f1 28471 save_LIBS="$LIBS"
6954625c 28472 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 28473 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 28474
58e65954
MW
28475 echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
28476echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6
28477if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
28478 echo $ECHO_N "(cached) $ECHO_C" >&6
28479else
28480 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
28481/* confdefs.h. */
28482_ACEOF
28483cat confdefs.h >>conftest.$ac_ext
28484cat >>conftest.$ac_ext <<_ACEOF
28485/* end confdefs.h. */
58e65954 28486#include <gtk/gtk.h>
304205f1 28487
d12aef51
VZ
28488int
28489main ()
28490{
58e65954
MW
28491#ifndef gtk_icon_size_lookup
28492 char *p = (char *) gtk_icon_size_lookup;
28493#endif
abc736fd
MW
28494
28495 ;
28496 return 0;
28497}
28498_ACEOF
28499rm -f conftest.$ac_objext
28500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28501 (eval $ac_compile) 2>conftest.er1
28502 ac_status=$?
28503 grep -v '^ *+' conftest.er1 >conftest.err
28504 rm -f conftest.er1
28505 cat conftest.err >&5
28506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507 (exit $ac_status); } &&
ca5c6ac3 28508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
28509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28510 (eval $ac_try) 2>&5
28511 ac_status=$?
28512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513 (exit $ac_status); }; } &&
28514 { ac_try='test -s conftest.$ac_objext'
28515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28516 (eval $ac_try) 2>&5
28517 ac_status=$?
28518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519 (exit $ac_status); }; }; then
58e65954 28520 ac_cv_have_decl_gtk_icon_size_lookup=yes
abc736fd
MW
28521else
28522 echo "$as_me: failed program was:" >&5
28523sed 's/^/| /' conftest.$ac_ext >&5
28524
58e65954
MW
28525ac_cv_have_decl_gtk_icon_size_lookup=no
28526fi
28527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28528fi
28529echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
28530echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6
28531if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
abc736fd 28532
58e65954
MW
28533cat >>confdefs.h <<_ACEOF
28534#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
abc736fd
MW
28535_ACEOF
28536
58e65954
MW
28537
28538else
28539 cat >>confdefs.h <<_ACEOF
28540#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
28541_ACEOF
28542
28543cat >>confdefs.h <<\_ACEOF
28544#define NEED_GTK_ICON_SIZE_LOOKUP 1
28545_ACEOF
abc736fd
MW
28546
28547fi
58e65954
MW
28548
28549
abc736fd 28550
e9263684
VZ
28551 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28552echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28553 cat >conftest.$ac_ext <<_ACEOF
28554/* confdefs.h. */
28555_ACEOF
28556cat confdefs.h >>conftest.$ac_ext
28557cat >>conftest.$ac_ext <<_ACEOF
28558/* end confdefs.h. */
28559
28560 #include <gtk/gtk.h>
28561
28562int
28563main ()
28564{
28565
28566 #if !GTK_CHECK_VERSION(2,6,0)
28567 Not GTK+ 2.6
28568 #endif
28569
28570 ;
28571 return 0;
28572}
28573_ACEOF
28574rm -f conftest.$ac_objext
28575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28576 (eval $ac_compile) 2>conftest.er1
28577 ac_status=$?
28578 grep -v '^ *+' conftest.er1 >conftest.err
28579 rm -f conftest.er1
28580 cat conftest.err >&5
28581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582 (exit $ac_status); } &&
ca5c6ac3 28583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e9263684
VZ
28584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28585 (eval $ac_try) 2>&5
28586 ac_status=$?
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); }; } &&
28589 { ac_try='test -s conftest.$ac_objext'
28590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28591 (eval $ac_try) 2>&5
28592 ac_status=$?
28593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28594 (exit $ac_status); }; }; then
28595
28596 cat >>confdefs.h <<\_ACEOF
28597#define __WXGTK26__ 1
28598_ACEOF
28599
28600 cat >>confdefs.h <<\_ACEOF
28601#define __WXGTK24__ 1
28602_ACEOF
28603
28604 echo "$as_me:$LINENO: result: yes" >&5
28605echo "${ECHO_T}yes" >&6
28606 ac_wxgtk26=1
28607
28608else
28609 echo "$as_me: failed program was:" >&5
28610sed 's/^/| /' conftest.$ac_ext >&5
28611
28612
28613 echo "$as_me:$LINENO: result: no" >&5
28614echo "${ECHO_T}no" >&6
28615 ac_wxgtk26=0
28616
28617fi
28618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28619
28620 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
28621 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28622echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28623 cat >conftest.$ac_ext <<_ACEOF
28624/* confdefs.h. */
28625_ACEOF
28626cat confdefs.h >>conftest.$ac_ext
28627cat >>conftest.$ac_ext <<_ACEOF
28628/* end confdefs.h. */
28629
28630 #include <gtk/gtk.h>
28631
28632int
28633main ()
28634{
28635
28636 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 28637 Not GTK+ 2.4
9755e73b
VS
28638 #endif
28639
28640 ;
28641 return 0;
28642}
28643_ACEOF
28644rm -f conftest.$ac_objext
28645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28646 (eval $ac_compile) 2>conftest.er1
28647 ac_status=$?
28648 grep -v '^ *+' conftest.er1 >conftest.err
28649 rm -f conftest.er1
28650 cat conftest.err >&5
28651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28652 (exit $ac_status); } &&
ca5c6ac3 28653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
28654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28655 (eval $ac_try) 2>&5
28656 ac_status=$?
28657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658 (exit $ac_status); }; } &&
28659 { ac_try='test -s conftest.$ac_objext'
28660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28661 (eval $ac_try) 2>&5
28662 ac_status=$?
28663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664 (exit $ac_status); }; }; then
28665
28666 cat >>confdefs.h <<\_ACEOF
28667#define __WXGTK24__ 1
28668_ACEOF
28669
28670 echo "$as_me:$LINENO: result: yes" >&5
28671echo "${ECHO_T}yes" >&6
28672
28673else
28674 echo "$as_me: failed program was:" >&5
28675sed 's/^/| /' conftest.$ac_ext >&5
28676
28677
28678 echo "$as_me:$LINENO: result: no" >&5
28679echo "${ECHO_T}no" >&6
28680
28681fi
28682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 28683 fi
9755e73b 28684
6954625c 28685 CFLAGS="$save_CFLAGS"
304205f1 28686 LIBS="$save_LIBS"
a848cd7e
SC
28687 else
28688 if test "$wxUSE_UNICODE" = "yes"; then
28689 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28690echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28691 wxUSE_UNICODE=no
28692 fi
28693 fi
28694
e56f4f9e
VZ
28695 ac_ext=cc
28696ac_cpp='$CXXCPP $CPPFLAGS'
28697ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28698ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28699ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28700
28701
a848cd7e
SC
28702 if test "$USE_DARWIN" != 1; then
28703
28704for ac_func in poll
28705do
28706as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28707echo "$as_me:$LINENO: checking for $ac_func" >&5
28708echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28709if eval "test \"\${$as_ac_var+set}\" = set"; then
28710 echo $ECHO_N "(cached) $ECHO_C" >&6
28711else
28712 cat >conftest.$ac_ext <<_ACEOF
28713/* confdefs.h. */
28714_ACEOF
28715cat confdefs.h >>conftest.$ac_ext
28716cat >>conftest.$ac_ext <<_ACEOF
28717/* end confdefs.h. */
ac1cb8d3
VS
28718/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28720#define $ac_func innocuous_$ac_func
28721
a848cd7e
SC
28722/* System header to define __stub macros and hopefully few prototypes,
28723 which can conflict with char $ac_func (); below.
28724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28725 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28726
a848cd7e
SC
28727#ifdef __STDC__
28728# include <limits.h>
28729#else
28730# include <assert.h>
28731#endif
ac1cb8d3
VS
28732
28733#undef $ac_func
28734
a848cd7e
SC
28735/* Override any gcc2 internal prototype to avoid an error. */
28736#ifdef __cplusplus
28737extern "C"
28738{
28739#endif
28740/* We use char because int might match the return type of a gcc2
28741 builtin and then its argument prototype would still apply. */
28742char $ac_func ();
28743/* The GNU C library defines this for functions which it implements
28744 to always fail with ENOSYS. Some functions are actually named
28745 something starting with __ and the normal name is an alias. */
28746#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28747choke me
28748#else
28749char (*f) () = $ac_func;
28750#endif
28751#ifdef __cplusplus
28752}
28753#endif
28754
28755int
28756main ()
28757{
28758return f != $ac_func;
28759 ;
28760 return 0;
28761}
28762_ACEOF
28763rm -f conftest.$ac_objext conftest$ac_exeext
28764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28765 (eval $ac_link) 2>conftest.er1
a848cd7e 28766 ac_status=$?
ac1cb8d3
VS
28767 grep -v '^ *+' conftest.er1 >conftest.err
28768 rm -f conftest.er1
28769 cat conftest.err >&5
a848cd7e
SC
28770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771 (exit $ac_status); } &&
ca5c6ac3 28772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28774 (eval $ac_try) 2>&5
28775 ac_status=$?
28776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777 (exit $ac_status); }; } &&
28778 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28780 (eval $ac_try) 2>&5
28781 ac_status=$?
28782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783 (exit $ac_status); }; }; then
28784 eval "$as_ac_var=yes"
28785else
28786 echo "$as_me: failed program was:" >&5
28787sed 's/^/| /' conftest.$ac_ext >&5
28788
28789eval "$as_ac_var=no"
28790fi
ac1cb8d3
VS
28791rm -f conftest.err conftest.$ac_objext \
28792 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28793fi
28794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28795echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28796if test `eval echo '${'$as_ac_var'}'` = yes; then
28797 cat >>confdefs.h <<_ACEOF
28798#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28799_ACEOF
28800
28801fi
28802done
28803
28804 fi
28805
28806 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28807 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28808
28809 AFMINSTALL=afminstall
28810 TOOLKIT=GTK
28811 GUIDIST=GTK_DIST
28812
28813 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28814echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28815if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28816 echo $ECHO_N "(cached) $ECHO_C" >&6
28817else
28818 ac_check_lib_save_LIBS=$LIBS
28819LIBS="-lgdk $LIBS"
28820cat >conftest.$ac_ext <<_ACEOF
28821/* confdefs.h. */
28822_ACEOF
28823cat confdefs.h >>conftest.$ac_ext
28824cat >>conftest.$ac_ext <<_ACEOF
28825/* end confdefs.h. */
28826
28827/* Override any gcc2 internal prototype to avoid an error. */
28828#ifdef __cplusplus
28829extern "C"
28830#endif
28831/* We use char because int might match the return type of a gcc2
28832 builtin and then its argument prototype would still apply. */
28833char gdk_im_open ();
28834int
28835main ()
28836{
28837gdk_im_open ();
28838 ;
28839 return 0;
28840}
28841_ACEOF
28842rm -f conftest.$ac_objext conftest$ac_exeext
28843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28844 (eval $ac_link) 2>conftest.er1
a848cd7e 28845 ac_status=$?
ac1cb8d3
VS
28846 grep -v '^ *+' conftest.er1 >conftest.err
28847 rm -f conftest.er1
28848 cat conftest.err >&5
a848cd7e
SC
28849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850 (exit $ac_status); } &&
ca5c6ac3 28851 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28853 (eval $ac_try) 2>&5
28854 ac_status=$?
28855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28856 (exit $ac_status); }; } &&
28857 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28859 (eval $ac_try) 2>&5
28860 ac_status=$?
28861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862 (exit $ac_status); }; }; then
28863 ac_cv_lib_gdk_gdk_im_open=yes
28864else
28865 echo "$as_me: failed program was:" >&5
28866sed 's/^/| /' conftest.$ac_ext >&5
28867
28868ac_cv_lib_gdk_gdk_im_open=no
28869fi
ac1cb8d3
VS
28870rm -f conftest.err conftest.$ac_objext \
28871 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28872LIBS=$ac_check_lib_save_LIBS
28873fi
28874echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28875echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28876if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28877 cat >>confdefs.h <<\_ACEOF
28878#define HAVE_XIM 1
28879_ACEOF
28880
28881fi
28882
28883
28884
28885 if test "$wxUSE_GPE" = "yes"; then
28886 echo "$as_me:$LINENO: checking for gpewidget library" >&5
28887echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
28888
0ad5d837
VZ
28889 ac_find_libraries=
28890 for ac_dir in $SEARCH_LIB;
a848cd7e 28891 do
3eca31dc 28892 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28893 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
28894 ac_find_libraries=$ac_dir
28895 break 2
28896 fi
28897 done
28898 done
28899
28900 if test "$ac_find_libraries" != "" ; then
28901
0ad5d837 28902 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
28903 ac_path_to_link=""
28904 else
0ad5d837
VZ
28905 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28906 result=$?
28907 if test $result = 0; then
28908 ac_path_to_link=""
28909 else
28910 ac_path_to_link=" -L$ac_find_libraries"
28911 fi
a848cd7e
SC
28912 fi
28913
28914 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
28915 WXGPE=1
0ad5d837
VZ
28916 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28917echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
28918 else
28919 echo "$as_me:$LINENO: result: not found" >&5
28920echo "${ECHO_T}not found" >&6
28921 fi
28922
28923 fi
28924 fi
28925
28926 if test "$wxUSE_MGL" = 1; then
28927 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28928echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
28929 if test "x$MGL_ROOT" = x ; then
28930 echo "$as_me:$LINENO: result: not found" >&5
28931echo "${ECHO_T}not found" >&6
28932 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28933echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28934 { (exit 1); exit 1; }; }
28935 else
28936 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28937echo "${ECHO_T}$MGL_ROOT" >&6
28938 fi
28939
28940 echo "$as_me:$LINENO: checking for libmgl location" >&5
28941echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
28942 case "${host}" in
28943 *-*-linux* )
28944 if test "x$wxUSE_SHARED" = xyes ; then
28945 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28946 else
28947 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28948 fi
28949 ;;
28950 *-pc-msdosdjgpp )
28951 mgl_os_candidates="dos32/dj2"
28952 ;;
28953 *)
28954 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28955echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
28956 { (exit 1); exit 1; }; }
28957 esac
28958
28959 mgl_lib_type=""
28960 mgl_os=""
28961
28962 for mgl_os_i in $mgl_os_candidates ; do
28963 if test "x$mgl_os" = x ; then
28964 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28965 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28966 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28967 mgl_lib_type=debug
28968 mgl_os=$mgl_os_i
28969 fi
28970 fi
28971 if test "x$mgl_lib_type" = x ; then
28972 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28973 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
28974 mgl_lib_type=release
28975 mgl_os=$mgl_os_i
28976 fi
28977 fi
28978 fi
28979 done
28980
28981 if test "x$mgl_os" = x ; then
28982 echo "$as_me:$LINENO: result: not found" >&5
28983echo "${ECHO_T}not found" >&6
28984 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
28985echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
28986 { (exit 1); exit 1; }; }
28987 fi
28988 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
28989echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
28990
28991 wxUSE_UNIVERSAL="yes"
28992
28993 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
28994 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
28995
28996 AFMINSTALL=afminstall
28997 TOOLKIT=MGL
28998 GUIDIST=MGL_DIST
28999 fi
29000
b3c86150
VS
29001 if test "$wxUSE_DFB" = 1; then
29002
29003
29004if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29005 if test -n "$ac_tool_prefix"; then
29006 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29007set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29008echo "$as_me:$LINENO: checking for $ac_word" >&5
29009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29010if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29011 echo $ECHO_N "(cached) $ECHO_C" >&6
29012else
29013 case $PKG_CONFIG in
29014 [\\/]* | ?:[\\/]*)
29015 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29016 ;;
29017 *)
29018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29019for as_dir in $PATH
29020do
29021 IFS=$as_save_IFS
29022 test -z "$as_dir" && as_dir=.
29023 for ac_exec_ext in '' $ac_executable_extensions; do
29024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29025 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29027 break 2
29028 fi
29029done
29030done
29031
29032 ;;
29033esac
29034fi
29035PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29036
29037if test -n "$PKG_CONFIG"; then
29038 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29039echo "${ECHO_T}$PKG_CONFIG" >&6
29040else
29041 echo "$as_me:$LINENO: result: no" >&5
29042echo "${ECHO_T}no" >&6
29043fi
29044
29045fi
29046if test -z "$ac_cv_path_PKG_CONFIG"; then
29047 ac_pt_PKG_CONFIG=$PKG_CONFIG
29048 # Extract the first word of "pkg-config", so it can be a program name with args.
29049set dummy pkg-config; ac_word=$2
29050echo "$as_me:$LINENO: checking for $ac_word" >&5
29051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29052if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29053 echo $ECHO_N "(cached) $ECHO_C" >&6
29054else
29055 case $ac_pt_PKG_CONFIG in
29056 [\\/]* | ?:[\\/]*)
29057 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29058 ;;
29059 *)
29060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29061for as_dir in $PATH
29062do
29063 IFS=$as_save_IFS
29064 test -z "$as_dir" && as_dir=.
29065 for ac_exec_ext in '' $ac_executable_extensions; do
29066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29067 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29069 break 2
29070 fi
29071done
29072done
29073
29074 ;;
29075esac
29076fi
29077ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29078
29079if test -n "$ac_pt_PKG_CONFIG"; then
29080 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29081echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
29082else
29083 echo "$as_me:$LINENO: result: no" >&5
29084echo "${ECHO_T}no" >&6
29085fi
29086
29087 PKG_CONFIG=$ac_pt_PKG_CONFIG
29088else
29089 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29090fi
29091
29092fi
29093if test -n "$PKG_CONFIG"; then
29094 _pkg_min_version=0.9.0
29095 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29096echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
29097 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29098 echo "$as_me:$LINENO: result: yes" >&5
29099echo "${ECHO_T}yes" >&6
29100 else
29101 echo "$as_me:$LINENO: result: no" >&5
29102echo "${ECHO_T}no" >&6
29103 PKG_CONFIG=""
29104 fi
29105
29106fi
29107
29108pkg_failed=no
29109echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29110echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
29111
29112if test -n "$PKG_CONFIG"; then
29113 if test -n "$DIRECTFB_CFLAGS"; then
29114 pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29115 else
29116 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29117 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29118 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29119 ac_status=$?
29120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121 (exit $ac_status); }; then
737d3175 29122 pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29123else
29124 pkg_failed=yes
29125fi
29126 fi
29127else
29128 pkg_failed=untried
29129fi
29130if test -n "$PKG_CONFIG"; then
29131 if test -n "$DIRECTFB_LIBS"; then
29132 pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29133 else
29134 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29135 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29136 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29137 ac_status=$?
29138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29139 (exit $ac_status); }; then
737d3175 29140 pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29141else
29142 pkg_failed=yes
29143fi
29144 fi
29145else
29146 pkg_failed=untried
29147fi
29148
29149
29150
29151if test $pkg_failed = yes; then
29152
29153if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29154 _pkg_short_errors_supported=yes
29155else
29156 _pkg_short_errors_supported=no
29157fi
29158 if test $_pkg_short_errors_supported = yes; then
737d3175 29159 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150 29160 else
737d3175 29161 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150
VS
29162 fi
29163 # Put the nasty error message in config.log where it belongs
29164 echo "$DIRECTFB_PKG_ERRORS" >&5
29165
29166
29167 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29168echo "$as_me: error: DirectFB not found." >&2;}
29169 { (exit 1); exit 1; }; }
29170
29171
29172elif test $pkg_failed = untried; then
29173
29174 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29175echo "$as_me: error: DirectFB not found." >&2;}
29176 { (exit 1); exit 1; }; }
29177
29178
29179else
29180 DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29181 DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29182 echo "$as_me:$LINENO: result: yes" >&5
29183echo "${ECHO_T}yes" >&6
29184
29185 wxUSE_UNIVERSAL="yes"
29186 TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29187 GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29188 TOOLKIT=DFB
29189 GUIDIST=DFB_DIST
29190
29191fi
29192 fi
29193
a848cd7e
SC
29194 if test "$wxUSE_MICROWIN" = 1; then
29195 echo "$as_me:$LINENO: checking for MicroWindows" >&5
29196echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
29197 if test "x$MICROWINDOWS" = x ; then
29198 echo "$as_me:$LINENO: result: not found" >&5
29199echo "${ECHO_T}not found" >&6
29200 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29201echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29202 { (exit 1); exit 1; }; }
29203 else
29204 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29205echo "${ECHO_T}$MICROWINDOWS" >&6
29206 fi
29207
29208 if test -f $MICROWINDOWS/lib/libmwin.a; then
29209 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29210echo "${ECHO_T}MicroWindows' libraries found." >&6
29211 else
29212 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29213echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29214 { (exit 1); exit 1; }; }
29215 fi
29216
29217 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29218 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29219
29220 wxUSE_UNIVERSAL="yes"
29221
29222 AFMINSTALL=afminstall
29223 TOOLKIT=MICROWIN
29224 GUIDIST=MICROWIN_DIST
29225
29226 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29227 fi
29228
74b84332 29229 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
ca5c6ac3
VZ
29230
29231if test "x$ac_path_x_has_been_run" != xyes; then
29232 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
29233echo $ECHO_N "checking for X... $ECHO_C" >&6
29234
ca5c6ac3 29235ac_path_x_has_been_run=yes
a848cd7e
SC
29236
29237# Check whether --with-x or --without-x was given.
29238if test "${with_x+set}" = set; then
29239 withval="$with_x"
29240
29241fi;
29242# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29243if test "x$with_x" = xno; then
29244 # The user explicitly disabled X.
29245 have_x=disabled
29246else
29247 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29248 # Both variables are already set.
29249 have_x=yes
29250 else
29251 if test "${ac_cv_have_x+set}" = set; then
29252 echo $ECHO_N "(cached) $ECHO_C" >&6
29253else
29254 # One or both of the vars are not set, and there is no cached value.
29255ac_x_includes=no ac_x_libraries=no
29256rm -fr conftest.dir
29257if mkdir conftest.dir; then
29258 cd conftest.dir
29259 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29260 cat >Imakefile <<'_ACEOF'
29261acfindx:
29262 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29263_ACEOF
29264 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29265 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29266 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29267 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29268 for ac_extension in a so sl; do
29269 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
29270 test -f $ac_im_libdir/libX11.$ac_extension; then
29271 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
29272 fi
29273 done
29274 # Screen out bogus values from the imake configuration. They are
29275 # bogus both because they are the default anyway, and because
29276 # using them would break gcc on systems where it needs fixed includes.
29277 case $ac_im_incroot in
29278 /usr/include) ;;
29279 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29280 esac
29281 case $ac_im_usrlibdir in
29282 /usr/lib | /lib) ;;
29283 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29284 esac
29285 fi
29286 cd ..
29287 rm -fr conftest.dir
29288fi
29289
29290# Standard set of common directories for X headers.
29291# Check X11 before X11Rn because it is often a symlink to the current release.
29292ac_x_header_dirs='
29293/usr/X11/include
29294/usr/X11R6/include
29295/usr/X11R5/include
29296/usr/X11R4/include
29297
29298/usr/include/X11
29299/usr/include/X11R6
29300/usr/include/X11R5
29301/usr/include/X11R4
29302
29303/usr/local/X11/include
29304/usr/local/X11R6/include
29305/usr/local/X11R5/include
29306/usr/local/X11R4/include
29307
29308/usr/local/include/X11
29309/usr/local/include/X11R6
29310/usr/local/include/X11R5
29311/usr/local/include/X11R4
29312
29313/usr/X386/include
29314/usr/x386/include
29315/usr/XFree86/include/X11
29316
29317/usr/include
29318/usr/local/include
29319/usr/unsupported/include
29320/usr/athena/include
29321/usr/local/x11r5/include
29322/usr/lpp/Xamples/include
29323
29324/usr/openwin/include
29325/usr/openwin/share/include'
29326
29327if test "$ac_x_includes" = no; then
ca5c6ac3 29328 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
29329 # First, try using that file with no special directory specified.
29330 cat >conftest.$ac_ext <<_ACEOF
29331/* confdefs.h. */
29332_ACEOF
29333cat confdefs.h >>conftest.$ac_ext
29334cat >>conftest.$ac_ext <<_ACEOF
29335/* end confdefs.h. */
ca5c6ac3 29336#include <X11/Xlib.h>
a848cd7e
SC
29337_ACEOF
29338if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29340 ac_status=$?
29341 grep -v '^ *+' conftest.er1 >conftest.err
29342 rm -f conftest.er1
29343 cat conftest.err >&5
29344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345 (exit $ac_status); } >/dev/null; then
29346 if test -s conftest.err; then
5d7b7554
VZ
29347 ac_cpp_err=$ac_cxx_preproc_warn_flag
29348 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
29349 else
29350 ac_cpp_err=
29351 fi
29352else
29353 ac_cpp_err=yes
29354fi
29355if test -z "$ac_cpp_err"; then
29356 # We can compile using X headers with no special include directory.
29357ac_x_includes=
29358else
29359 echo "$as_me: failed program was:" >&5
29360sed 's/^/| /' conftest.$ac_ext >&5
29361
29362 for ac_dir in $ac_x_header_dirs; do
ca5c6ac3 29363 if test -r "$ac_dir/X11/Xlib.h"; then
a848cd7e
SC
29364 ac_x_includes=$ac_dir
29365 break
29366 fi
29367done
29368fi
29369rm -f conftest.err conftest.$ac_ext
29370fi # $ac_x_includes = no
29371
29372if test "$ac_x_libraries" = no; then
29373 # Check for the libraries.
29374 # See if we find them without any special options.
29375 # Don't add to $LIBS permanently.
29376 ac_save_LIBS=$LIBS
ca5c6ac3 29377 LIBS="-lX11 $LIBS"
a848cd7e
SC
29378 cat >conftest.$ac_ext <<_ACEOF
29379/* confdefs.h. */
29380_ACEOF
29381cat confdefs.h >>conftest.$ac_ext
29382cat >>conftest.$ac_ext <<_ACEOF
29383/* end confdefs.h. */
ca5c6ac3 29384#include <X11/Xlib.h>
a848cd7e
SC
29385int
29386main ()
29387{
ca5c6ac3 29388XrmInitialize ()
a848cd7e
SC
29389 ;
29390 return 0;
29391}
29392_ACEOF
29393rm -f conftest.$ac_objext conftest$ac_exeext
29394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29395 (eval $ac_link) 2>conftest.er1
a848cd7e 29396 ac_status=$?
ac1cb8d3
VS
29397 grep -v '^ *+' conftest.er1 >conftest.err
29398 rm -f conftest.er1
29399 cat conftest.err >&5
a848cd7e
SC
29400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401 (exit $ac_status); } &&
ca5c6ac3 29402 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29404 (eval $ac_try) 2>&5
29405 ac_status=$?
29406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407 (exit $ac_status); }; } &&
29408 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29410 (eval $ac_try) 2>&5
29411 ac_status=$?
29412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413 (exit $ac_status); }; }; then
29414 LIBS=$ac_save_LIBS
29415# We can link X programs with no special library path.
29416ac_x_libraries=
29417else
29418 echo "$as_me: failed program was:" >&5
29419sed 's/^/| /' conftest.$ac_ext >&5
29420
29421LIBS=$ac_save_LIBS
29422for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29423do
29424 # Don't even attempt the hair of trying to link an X program!
29425 for ac_extension in a so sl; do
ca5c6ac3 29426 if test -r $ac_dir/libX11.$ac_extension; then
a848cd7e
SC
29427 ac_x_libraries=$ac_dir
29428 break 2
29429 fi
29430 done
29431done
29432fi
ac1cb8d3
VS
29433rm -f conftest.err conftest.$ac_objext \
29434 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29435fi # $ac_x_libraries = no
29436
29437if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29438 # Didn't find X anywhere. Cache the known absence of X.
29439 ac_cv_have_x="have_x=no"
29440else
29441 # Record where we found X for the cache.
29442 ac_cv_have_x="have_x=yes \
ac1cb8d3 29443 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
29444fi
29445fi
29446
29447 fi
29448 eval "$ac_cv_have_x"
29449fi # $with_x != no
29450
29451if test "$have_x" != yes; then
29452 echo "$as_me:$LINENO: result: $have_x" >&5
29453echo "${ECHO_T}$have_x" >&6
29454 no_x=yes
29455else
29456 # If each of the values was on the command line, it overrides each guess.
29457 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29458 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29459 # Update the cache value to reflect the command line values.
29460 ac_cv_have_x="have_x=yes \
29461 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
ca5c6ac3
VZ
29462 # It might be that x_includes is empty (headers are found in the
29463 # standard search path. Then output the corresponding message
29464 ac_out_x_includes=$x_includes
29465 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
29466 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
29467echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
29468fi
29469
ca5c6ac3 29470fi
a848cd7e
SC
29471if test "$no_x" = yes; then
29472 # Not all programs may use this symbol, but it does not hurt to define it.
29473
29474cat >>confdefs.h <<\_ACEOF
29475#define X_DISPLAY_MISSING 1
29476_ACEOF
29477
29478 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29479else
29480 if test -n "$x_includes"; then
29481 X_CFLAGS="$X_CFLAGS -I$x_includes"
29482 fi
29483
29484 # It would also be nice to do this for all -L options, not just this one.
29485 if test -n "$x_libraries"; then
29486 X_LIBS="$X_LIBS -L$x_libraries"
29487 # For Solaris; some versions of Sun CC require a space after -R and
29488 # others require no space. Words are not sufficient . . . .
29489 case `(uname -sr) 2>/dev/null` in
29490 "SunOS 5"*)
29491 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29492echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
29493 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29494 cat >conftest.$ac_ext <<_ACEOF
29495/* confdefs.h. */
29496_ACEOF
29497cat confdefs.h >>conftest.$ac_ext
29498cat >>conftest.$ac_ext <<_ACEOF
29499/* end confdefs.h. */
29500
29501int
29502main ()
29503{
29504
29505 ;
29506 return 0;
29507}
29508_ACEOF
29509rm -f conftest.$ac_objext conftest$ac_exeext
29510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29511 (eval $ac_link) 2>conftest.er1
a848cd7e 29512 ac_status=$?
ac1cb8d3
VS
29513 grep -v '^ *+' conftest.er1 >conftest.err
29514 rm -f conftest.er1
29515 cat conftest.err >&5
a848cd7e
SC
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); } &&
ca5c6ac3 29518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29520 (eval $ac_try) 2>&5
29521 ac_status=$?
29522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29523 (exit $ac_status); }; } &&
29524 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29526 (eval $ac_try) 2>&5
29527 ac_status=$?
29528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529 (exit $ac_status); }; }; then
29530 ac_R_nospace=yes
29531else
29532 echo "$as_me: failed program was:" >&5
29533sed 's/^/| /' conftest.$ac_ext >&5
29534
29535ac_R_nospace=no
29536fi
ac1cb8d3
VS
29537rm -f conftest.err conftest.$ac_objext \
29538 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29539 if test $ac_R_nospace = yes; then
29540 echo "$as_me:$LINENO: result: no" >&5
29541echo "${ECHO_T}no" >&6
29542 X_LIBS="$X_LIBS -R$x_libraries"
29543 else
29544 LIBS="$ac_xsave_LIBS -R $x_libraries"
29545 cat >conftest.$ac_ext <<_ACEOF
29546/* confdefs.h. */
29547_ACEOF
29548cat confdefs.h >>conftest.$ac_ext
29549cat >>conftest.$ac_ext <<_ACEOF
29550/* end confdefs.h. */
29551
29552int
29553main ()
29554{
29555
29556 ;
29557 return 0;
29558}
29559_ACEOF
29560rm -f conftest.$ac_objext conftest$ac_exeext
29561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29562 (eval $ac_link) 2>conftest.er1
a848cd7e 29563 ac_status=$?
ac1cb8d3
VS
29564 grep -v '^ *+' conftest.er1 >conftest.err
29565 rm -f conftest.er1
29566 cat conftest.err >&5
a848cd7e
SC
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); } &&
ca5c6ac3 29569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29571 (eval $ac_try) 2>&5
29572 ac_status=$?
29573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29574 (exit $ac_status); }; } &&
29575 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29577 (eval $ac_try) 2>&5
29578 ac_status=$?
29579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580 (exit $ac_status); }; }; then
29581 ac_R_space=yes
29582else
29583 echo "$as_me: failed program was:" >&5
29584sed 's/^/| /' conftest.$ac_ext >&5
29585
29586ac_R_space=no
29587fi
ac1cb8d3
VS
29588rm -f conftest.err conftest.$ac_objext \
29589 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29590 if test $ac_R_space = yes; then
29591 echo "$as_me:$LINENO: result: yes" >&5
29592echo "${ECHO_T}yes" >&6
29593 X_LIBS="$X_LIBS -R $x_libraries"
29594 else
29595 echo "$as_me:$LINENO: result: neither works" >&5
29596echo "${ECHO_T}neither works" >&6
29597 fi
29598 fi
29599 LIBS=$ac_xsave_LIBS
29600 esac
29601 fi
29602
29603 # Check for system-dependent libraries X programs must link with.
29604 # Do this before checking for the system-independent R6 libraries
29605 # (-lICE), since we may need -lsocket or whatever for X linking.
29606
29607 if test "$ISC" = yes; then
29608 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29609 else
29610 # Martyn Johnson says this is needed for Ultrix, if the X
29611 # libraries were built with DECnet support. And Karl Berry says
29612 # the Alpha needs dnet_stub (dnet does not exist).
29613 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29614 cat >conftest.$ac_ext <<_ACEOF
29615/* confdefs.h. */
29616_ACEOF
29617cat confdefs.h >>conftest.$ac_ext
29618cat >>conftest.$ac_ext <<_ACEOF
29619/* end confdefs.h. */
29620
29621/* Override any gcc2 internal prototype to avoid an error. */
29622#ifdef __cplusplus
29623extern "C"
29624#endif
29625/* We use char because int might match the return type of a gcc2
29626 builtin and then its argument prototype would still apply. */
29627char XOpenDisplay ();
29628int
29629main ()
29630{
29631XOpenDisplay ();
29632 ;
29633 return 0;
29634}
29635_ACEOF
29636rm -f conftest.$ac_objext conftest$ac_exeext
29637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29638 (eval $ac_link) 2>conftest.er1
a848cd7e 29639 ac_status=$?
ac1cb8d3
VS
29640 grep -v '^ *+' conftest.er1 >conftest.err
29641 rm -f conftest.er1
29642 cat conftest.err >&5
a848cd7e
SC
29643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); } &&
ca5c6ac3 29645 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29647 (eval $ac_try) 2>&5
29648 ac_status=$?
29649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650 (exit $ac_status); }; } &&
29651 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29653 (eval $ac_try) 2>&5
29654 ac_status=$?
29655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656 (exit $ac_status); }; }; then
29657 :
29658else
29659 echo "$as_me: failed program was:" >&5
29660sed 's/^/| /' conftest.$ac_ext >&5
29661
29662echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29663echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29664if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29665 echo $ECHO_N "(cached) $ECHO_C" >&6
29666else
29667 ac_check_lib_save_LIBS=$LIBS
29668LIBS="-ldnet $LIBS"
29669cat >conftest.$ac_ext <<_ACEOF
29670/* confdefs.h. */
29671_ACEOF
29672cat confdefs.h >>conftest.$ac_ext
29673cat >>conftest.$ac_ext <<_ACEOF
29674/* end confdefs.h. */
29675
29676/* Override any gcc2 internal prototype to avoid an error. */
29677#ifdef __cplusplus
29678extern "C"
29679#endif
29680/* We use char because int might match the return type of a gcc2
29681 builtin and then its argument prototype would still apply. */
29682char dnet_ntoa ();
29683int
29684main ()
29685{
29686dnet_ntoa ();
29687 ;
29688 return 0;
29689}
29690_ACEOF
29691rm -f conftest.$ac_objext conftest$ac_exeext
29692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29693 (eval $ac_link) 2>conftest.er1
a848cd7e 29694 ac_status=$?
ac1cb8d3
VS
29695 grep -v '^ *+' conftest.er1 >conftest.err
29696 rm -f conftest.er1
29697 cat conftest.err >&5
a848cd7e
SC
29698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699 (exit $ac_status); } &&
ca5c6ac3 29700 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29702 (eval $ac_try) 2>&5
29703 ac_status=$?
29704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705 (exit $ac_status); }; } &&
29706 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29708 (eval $ac_try) 2>&5
29709 ac_status=$?
29710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29711 (exit $ac_status); }; }; then
29712 ac_cv_lib_dnet_dnet_ntoa=yes
29713else
29714 echo "$as_me: failed program was:" >&5
29715sed 's/^/| /' conftest.$ac_ext >&5
29716
29717ac_cv_lib_dnet_dnet_ntoa=no
29718fi
ac1cb8d3
VS
29719rm -f conftest.err conftest.$ac_objext \
29720 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29721LIBS=$ac_check_lib_save_LIBS
29722fi
29723echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29724echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29725if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29726 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29727fi
29728
29729 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29730 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29731echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29732if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29733 echo $ECHO_N "(cached) $ECHO_C" >&6
29734else
29735 ac_check_lib_save_LIBS=$LIBS
29736LIBS="-ldnet_stub $LIBS"
29737cat >conftest.$ac_ext <<_ACEOF
29738/* confdefs.h. */
29739_ACEOF
29740cat confdefs.h >>conftest.$ac_ext
29741cat >>conftest.$ac_ext <<_ACEOF
29742/* end confdefs.h. */
29743
29744/* Override any gcc2 internal prototype to avoid an error. */
29745#ifdef __cplusplus
29746extern "C"
29747#endif
29748/* We use char because int might match the return type of a gcc2
29749 builtin and then its argument prototype would still apply. */
29750char dnet_ntoa ();
29751int
29752main ()
29753{
29754dnet_ntoa ();
29755 ;
29756 return 0;
29757}
29758_ACEOF
29759rm -f conftest.$ac_objext conftest$ac_exeext
29760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29761 (eval $ac_link) 2>conftest.er1
a848cd7e 29762 ac_status=$?
ac1cb8d3
VS
29763 grep -v '^ *+' conftest.er1 >conftest.err
29764 rm -f conftest.er1
29765 cat conftest.err >&5
a848cd7e
SC
29766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767 (exit $ac_status); } &&
ca5c6ac3 29768 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29770 (eval $ac_try) 2>&5
29771 ac_status=$?
29772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773 (exit $ac_status); }; } &&
29774 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29776 (eval $ac_try) 2>&5
29777 ac_status=$?
29778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779 (exit $ac_status); }; }; then
29780 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29781else
29782 echo "$as_me: failed program was:" >&5
29783sed 's/^/| /' conftest.$ac_ext >&5
29784
29785ac_cv_lib_dnet_stub_dnet_ntoa=no
29786fi
ac1cb8d3
VS
29787rm -f conftest.err conftest.$ac_objext \
29788 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29789LIBS=$ac_check_lib_save_LIBS
29790fi
29791echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29792echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29793if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29794 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29795fi
29796
29797 fi
29798fi
ac1cb8d3
VS
29799rm -f conftest.err conftest.$ac_objext \
29800 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29801 LIBS="$ac_xsave_LIBS"
29802
29803 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29804 # to get the SysV transport functions.
29805 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29806 # needs -lnsl.
29807 # The nsl library prevents programs from opening the X display
29808 # on Irix 5.2, according to T.E. Dickey.
29809 # The functions gethostbyname, getservbyname, and inet_addr are
29810 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29811 echo "$as_me:$LINENO: checking for gethostbyname" >&5
29812echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29813if test "${ac_cv_func_gethostbyname+set}" = set; then
29814 echo $ECHO_N "(cached) $ECHO_C" >&6
29815else
29816 cat >conftest.$ac_ext <<_ACEOF
29817/* confdefs.h. */
29818_ACEOF
29819cat confdefs.h >>conftest.$ac_ext
29820cat >>conftest.$ac_ext <<_ACEOF
29821/* end confdefs.h. */
ac1cb8d3
VS
29822/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29824#define gethostbyname innocuous_gethostbyname
29825
a848cd7e
SC
29826/* System header to define __stub macros and hopefully few prototypes,
29827 which can conflict with char gethostbyname (); below.
29828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29829 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29830
a848cd7e
SC
29831#ifdef __STDC__
29832# include <limits.h>
29833#else
29834# include <assert.h>
29835#endif
ac1cb8d3
VS
29836
29837#undef gethostbyname
29838
a848cd7e
SC
29839/* Override any gcc2 internal prototype to avoid an error. */
29840#ifdef __cplusplus
29841extern "C"
29842{
29843#endif
29844/* We use char because int might match the return type of a gcc2
29845 builtin and then its argument prototype would still apply. */
29846char gethostbyname ();
29847/* The GNU C library defines this for functions which it implements
29848 to always fail with ENOSYS. Some functions are actually named
29849 something starting with __ and the normal name is an alias. */
29850#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29851choke me
29852#else
29853char (*f) () = gethostbyname;
29854#endif
29855#ifdef __cplusplus
29856}
29857#endif
29858
29859int
29860main ()
29861{
29862return f != gethostbyname;
29863 ;
29864 return 0;
29865}
29866_ACEOF
29867rm -f conftest.$ac_objext conftest$ac_exeext
29868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29869 (eval $ac_link) 2>conftest.er1
a848cd7e 29870 ac_status=$?
ac1cb8d3
VS
29871 grep -v '^ *+' conftest.er1 >conftest.err
29872 rm -f conftest.er1
29873 cat conftest.err >&5
a848cd7e
SC
29874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875 (exit $ac_status); } &&
ca5c6ac3 29876 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29878 (eval $ac_try) 2>&5
29879 ac_status=$?
29880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881 (exit $ac_status); }; } &&
29882 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29884 (eval $ac_try) 2>&5
29885 ac_status=$?
29886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887 (exit $ac_status); }; }; then
29888 ac_cv_func_gethostbyname=yes
29889else
29890 echo "$as_me: failed program was:" >&5
29891sed 's/^/| /' conftest.$ac_ext >&5
29892
29893ac_cv_func_gethostbyname=no
29894fi
ac1cb8d3
VS
29895rm -f conftest.err conftest.$ac_objext \
29896 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29897fi
29898echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29899echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29900
29901 if test $ac_cv_func_gethostbyname = no; then
29902 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29903echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29904if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29905 echo $ECHO_N "(cached) $ECHO_C" >&6
29906else
29907 ac_check_lib_save_LIBS=$LIBS
29908LIBS="-lnsl $LIBS"
29909cat >conftest.$ac_ext <<_ACEOF
29910/* confdefs.h. */
29911_ACEOF
29912cat confdefs.h >>conftest.$ac_ext
29913cat >>conftest.$ac_ext <<_ACEOF
29914/* end confdefs.h. */
29915
29916/* Override any gcc2 internal prototype to avoid an error. */
29917#ifdef __cplusplus
29918extern "C"
29919#endif
29920/* We use char because int might match the return type of a gcc2
29921 builtin and then its argument prototype would still apply. */
29922char gethostbyname ();
29923int
29924main ()
29925{
29926gethostbyname ();
29927 ;
29928 return 0;
29929}
29930_ACEOF
29931rm -f conftest.$ac_objext conftest$ac_exeext
29932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
29933 (eval $ac_link) 2>conftest.er1
29934 ac_status=$?
29935 grep -v '^ *+' conftest.er1 >conftest.err
29936 rm -f conftest.er1
29937 cat conftest.err >&5
29938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29939 (exit $ac_status); } &&
ca5c6ac3 29940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29942 (eval $ac_try) 2>&5
29943 ac_status=$?
29944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29945 (exit $ac_status); }; } &&
29946 { ac_try='test -s conftest$ac_exeext'
29947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29948 (eval $ac_try) 2>&5
29949 ac_status=$?
29950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29951 (exit $ac_status); }; }; then
29952 ac_cv_lib_nsl_gethostbyname=yes
29953else
29954 echo "$as_me: failed program was:" >&5
29955sed 's/^/| /' conftest.$ac_ext >&5
29956
29957ac_cv_lib_nsl_gethostbyname=no
29958fi
29959rm -f conftest.err conftest.$ac_objext \
29960 conftest$ac_exeext conftest.$ac_ext
29961LIBS=$ac_check_lib_save_LIBS
29962fi
29963echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29964echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
29965if test $ac_cv_lib_nsl_gethostbyname = yes; then
29966 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29967fi
29968
29969 if test $ac_cv_lib_nsl_gethostbyname = no; then
29970 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29971echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
29972if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29973 echo $ECHO_N "(cached) $ECHO_C" >&6
29974else
29975 ac_check_lib_save_LIBS=$LIBS
29976LIBS="-lbsd $LIBS"
29977cat >conftest.$ac_ext <<_ACEOF
29978/* confdefs.h. */
29979_ACEOF
29980cat confdefs.h >>conftest.$ac_ext
29981cat >>conftest.$ac_ext <<_ACEOF
29982/* end confdefs.h. */
29983
29984/* Override any gcc2 internal prototype to avoid an error. */
29985#ifdef __cplusplus
29986extern "C"
29987#endif
29988/* We use char because int might match the return type of a gcc2
29989 builtin and then its argument prototype would still apply. */
29990char gethostbyname ();
29991int
29992main ()
29993{
29994gethostbyname ();
29995 ;
29996 return 0;
29997}
29998_ACEOF
29999rm -f conftest.$ac_objext conftest$ac_exeext
30000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30001 (eval $ac_link) 2>conftest.er1
a848cd7e 30002 ac_status=$?
ac1cb8d3
VS
30003 grep -v '^ *+' conftest.er1 >conftest.err
30004 rm -f conftest.er1
30005 cat conftest.err >&5
a848cd7e
SC
30006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007 (exit $ac_status); } &&
ca5c6ac3 30008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
30009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30010 (eval $ac_try) 2>&5
30011 ac_status=$?
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
30013 (exit $ac_status); }; } &&
30014 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30016 (eval $ac_try) 2>&5
30017 ac_status=$?
30018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019 (exit $ac_status); }; }; then
30020 ac_cv_lib_bsd_gethostbyname=yes
30021else
30022 echo "$as_me: failed program was:" >&5
30023sed 's/^/| /' conftest.$ac_ext >&5
30024
30025ac_cv_lib_bsd_gethostbyname=no
30026fi
ac1cb8d3
VS
30027rm -f conftest.err conftest.$ac_objext \
30028 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30029LIBS=$ac_check_lib_save_LIBS
30030fi
30031echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30032echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
30033if test $ac_cv_lib_bsd_gethostbyname = yes; then
30034 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30035fi
30036
30037 fi
30038 fi
30039
30040 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30041 # socket/setsockopt and other routines are undefined under SCO ODT
30042 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30043 # on later versions), says Simon Leinen: it contains gethostby*
30044 # variants that don't use the name server (or something). -lsocket
30045 # must be given before -lnsl if both are needed. We assume that
30046 # if connect needs -lnsl, so does gethostbyname.
30047 echo "$as_me:$LINENO: checking for connect" >&5
30048echo $ECHO_N "checking for connect... $ECHO_C" >&6
30049if test "${ac_cv_func_connect+set}" = set; then
30050 echo $ECHO_N "(cached) $ECHO_C" >&6
30051else
30052 cat >conftest.$ac_ext <<_ACEOF
30053/* confdefs.h. */
30054_ACEOF
30055cat confdefs.h >>conftest.$ac_ext
30056cat >>conftest.$ac_ext <<_ACEOF
30057/* end confdefs.h. */
ac1cb8d3
VS
30058/* Define connect to an innocuous variant, in case <limits.h> declares connect.
30059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30060#define connect innocuous_connect
30061
a848cd7e
SC
30062/* System header to define __stub macros and hopefully few prototypes,
30063 which can conflict with char connect (); below.
30064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30065 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30066
a848cd7e
SC
30067#ifdef __STDC__
30068# include <limits.h>
30069#else
30070# include <assert.h>
30071#endif
ac1cb8d3
VS
30072
30073#undef connect
30074
a848cd7e
SC
30075/* Override any gcc2 internal prototype to avoid an error. */
30076#ifdef __cplusplus
30077extern "C"
30078{
30079#endif
30080/* We use char because int might match the return type of a gcc2
30081 builtin and then its argument prototype would still apply. */
30082char connect ();
30083/* The GNU C library defines this for functions which it implements
30084 to always fail with ENOSYS. Some functions are actually named
30085 something starting with __ and the normal name is an alias. */
30086#if defined (__stub_connect) || defined (__stub___connect)
30087choke me
30088#else
30089char (*f) () = connect;
30090#endif
30091#ifdef __cplusplus
30092}
30093#endif
30094
30095int
30096main ()
30097{
30098return f != connect;
30099 ;
30100 return 0;
30101}
30102_ACEOF
30103rm -f conftest.$ac_objext conftest$ac_exeext
30104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30105 (eval $ac_link) 2>conftest.er1
a848cd7e 30106 ac_status=$?
ac1cb8d3
VS
30107 grep -v '^ *+' conftest.er1 >conftest.err
30108 rm -f conftest.er1
30109 cat conftest.err >&5
a848cd7e
SC
30110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111 (exit $ac_status); } &&
ca5c6ac3 30112 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30114 (eval $ac_try) 2>&5
30115 ac_status=$?
30116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30117 (exit $ac_status); }; } &&
30118 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30120 (eval $ac_try) 2>&5
30121 ac_status=$?
30122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30123 (exit $ac_status); }; }; then
30124 ac_cv_func_connect=yes
30125else
30126 echo "$as_me: failed program was:" >&5
30127sed 's/^/| /' conftest.$ac_ext >&5
30128
30129ac_cv_func_connect=no
30130fi
ac1cb8d3
VS
30131rm -f conftest.err conftest.$ac_objext \
30132 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30133fi
30134echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30135echo "${ECHO_T}$ac_cv_func_connect" >&6
30136
30137 if test $ac_cv_func_connect = no; then
30138 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30139echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
30140if test "${ac_cv_lib_socket_connect+set}" = set; then
30141 echo $ECHO_N "(cached) $ECHO_C" >&6
30142else
30143 ac_check_lib_save_LIBS=$LIBS
30144LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30145cat >conftest.$ac_ext <<_ACEOF
30146/* confdefs.h. */
30147_ACEOF
30148cat confdefs.h >>conftest.$ac_ext
30149cat >>conftest.$ac_ext <<_ACEOF
30150/* end confdefs.h. */
30151
30152/* Override any gcc2 internal prototype to avoid an error. */
30153#ifdef __cplusplus
30154extern "C"
30155#endif
30156/* We use char because int might match the return type of a gcc2
30157 builtin and then its argument prototype would still apply. */
30158char connect ();
30159int
30160main ()
30161{
30162connect ();
30163 ;
30164 return 0;
30165}
30166_ACEOF
30167rm -f conftest.$ac_objext conftest$ac_exeext
30168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30169 (eval $ac_link) 2>conftest.er1
a848cd7e 30170 ac_status=$?
ac1cb8d3
VS
30171 grep -v '^ *+' conftest.er1 >conftest.err
30172 rm -f conftest.er1
30173 cat conftest.err >&5
a848cd7e
SC
30174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175 (exit $ac_status); } &&
ca5c6ac3 30176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30178 (eval $ac_try) 2>&5
30179 ac_status=$?
30180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30181 (exit $ac_status); }; } &&
30182 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30184 (eval $ac_try) 2>&5
30185 ac_status=$?
30186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30187 (exit $ac_status); }; }; then
30188 ac_cv_lib_socket_connect=yes
30189else
30190 echo "$as_me: failed program was:" >&5
30191sed 's/^/| /' conftest.$ac_ext >&5
30192
30193ac_cv_lib_socket_connect=no
30194fi
ac1cb8d3
VS
30195rm -f conftest.err conftest.$ac_objext \
30196 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30197LIBS=$ac_check_lib_save_LIBS
30198fi
30199echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30200echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30201if test $ac_cv_lib_socket_connect = yes; then
30202 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30203fi
30204
30205 fi
30206
30207 # Guillermo Gomez says -lposix is necessary on A/UX.
30208 echo "$as_me:$LINENO: checking for remove" >&5
30209echo $ECHO_N "checking for remove... $ECHO_C" >&6
30210if test "${ac_cv_func_remove+set}" = set; then
30211 echo $ECHO_N "(cached) $ECHO_C" >&6
30212else
30213 cat >conftest.$ac_ext <<_ACEOF
30214/* confdefs.h. */
30215_ACEOF
30216cat confdefs.h >>conftest.$ac_ext
30217cat >>conftest.$ac_ext <<_ACEOF
30218/* end confdefs.h. */
ac1cb8d3
VS
30219/* Define remove to an innocuous variant, in case <limits.h> declares remove.
30220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30221#define remove innocuous_remove
30222
a848cd7e
SC
30223/* System header to define __stub macros and hopefully few prototypes,
30224 which can conflict with char remove (); below.
30225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30226 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30227
a848cd7e
SC
30228#ifdef __STDC__
30229# include <limits.h>
30230#else
30231# include <assert.h>
30232#endif
ac1cb8d3
VS
30233
30234#undef remove
30235
a848cd7e
SC
30236/* Override any gcc2 internal prototype to avoid an error. */
30237#ifdef __cplusplus
30238extern "C"
30239{
30240#endif
30241/* We use char because int might match the return type of a gcc2
30242 builtin and then its argument prototype would still apply. */
30243char remove ();
30244/* The GNU C library defines this for functions which it implements
30245 to always fail with ENOSYS. Some functions are actually named
30246 something starting with __ and the normal name is an alias. */
30247#if defined (__stub_remove) || defined (__stub___remove)
30248choke me
30249#else
30250char (*f) () = remove;
30251#endif
30252#ifdef __cplusplus
30253}
30254#endif
30255
30256int
30257main ()
30258{
30259return f != remove;
30260 ;
30261 return 0;
30262}
30263_ACEOF
30264rm -f conftest.$ac_objext conftest$ac_exeext
30265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30266 (eval $ac_link) 2>conftest.er1
a848cd7e 30267 ac_status=$?
ac1cb8d3
VS
30268 grep -v '^ *+' conftest.er1 >conftest.err
30269 rm -f conftest.er1
30270 cat conftest.err >&5
a848cd7e
SC
30271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272 (exit $ac_status); } &&
ca5c6ac3 30273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30275 (eval $ac_try) 2>&5
30276 ac_status=$?
30277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278 (exit $ac_status); }; } &&
30279 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30281 (eval $ac_try) 2>&5
30282 ac_status=$?
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); }; }; then
30285 ac_cv_func_remove=yes
30286else
30287 echo "$as_me: failed program was:" >&5
30288sed 's/^/| /' conftest.$ac_ext >&5
30289
30290ac_cv_func_remove=no
30291fi
ac1cb8d3
VS
30292rm -f conftest.err conftest.$ac_objext \
30293 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30294fi
30295echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30296echo "${ECHO_T}$ac_cv_func_remove" >&6
30297
30298 if test $ac_cv_func_remove = no; then
30299 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30300echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30301if test "${ac_cv_lib_posix_remove+set}" = set; then
30302 echo $ECHO_N "(cached) $ECHO_C" >&6
30303else
30304 ac_check_lib_save_LIBS=$LIBS
30305LIBS="-lposix $LIBS"
30306cat >conftest.$ac_ext <<_ACEOF
30307/* confdefs.h. */
30308_ACEOF
30309cat confdefs.h >>conftest.$ac_ext
30310cat >>conftest.$ac_ext <<_ACEOF
30311/* end confdefs.h. */
30312
30313/* Override any gcc2 internal prototype to avoid an error. */
30314#ifdef __cplusplus
30315extern "C"
30316#endif
30317/* We use char because int might match the return type of a gcc2
30318 builtin and then its argument prototype would still apply. */
30319char remove ();
30320int
30321main ()
30322{
30323remove ();
30324 ;
30325 return 0;
30326}
30327_ACEOF
30328rm -f conftest.$ac_objext conftest$ac_exeext
30329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30330 (eval $ac_link) 2>conftest.er1
a848cd7e 30331 ac_status=$?
ac1cb8d3
VS
30332 grep -v '^ *+' conftest.er1 >conftest.err
30333 rm -f conftest.er1
30334 cat conftest.err >&5
a848cd7e
SC
30335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30336 (exit $ac_status); } &&
ca5c6ac3 30337 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30339 (eval $ac_try) 2>&5
30340 ac_status=$?
30341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30342 (exit $ac_status); }; } &&
30343 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30345 (eval $ac_try) 2>&5
30346 ac_status=$?
30347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30348 (exit $ac_status); }; }; then
30349 ac_cv_lib_posix_remove=yes
30350else
30351 echo "$as_me: failed program was:" >&5
30352sed 's/^/| /' conftest.$ac_ext >&5
30353
30354ac_cv_lib_posix_remove=no
30355fi
ac1cb8d3
VS
30356rm -f conftest.err conftest.$ac_objext \
30357 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30358LIBS=$ac_check_lib_save_LIBS
30359fi
30360echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30361echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30362if test $ac_cv_lib_posix_remove = yes; then
30363 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30364fi
30365
30366 fi
30367
30368 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30369 echo "$as_me:$LINENO: checking for shmat" >&5
30370echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30371if test "${ac_cv_func_shmat+set}" = set; then
30372 echo $ECHO_N "(cached) $ECHO_C" >&6
30373else
30374 cat >conftest.$ac_ext <<_ACEOF
30375/* confdefs.h. */
30376_ACEOF
30377cat confdefs.h >>conftest.$ac_ext
30378cat >>conftest.$ac_ext <<_ACEOF
30379/* end confdefs.h. */
ac1cb8d3
VS
30380/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30382#define shmat innocuous_shmat
30383
a848cd7e
SC
30384/* System header to define __stub macros and hopefully few prototypes,
30385 which can conflict with char shmat (); below.
30386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30387 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30388
a848cd7e
SC
30389#ifdef __STDC__
30390# include <limits.h>
30391#else
30392# include <assert.h>
30393#endif
ac1cb8d3
VS
30394
30395#undef shmat
30396
a848cd7e
SC
30397/* Override any gcc2 internal prototype to avoid an error. */
30398#ifdef __cplusplus
30399extern "C"
30400{
30401#endif
30402/* We use char because int might match the return type of a gcc2
30403 builtin and then its argument prototype would still apply. */
30404char shmat ();
30405/* The GNU C library defines this for functions which it implements
30406 to always fail with ENOSYS. Some functions are actually named
30407 something starting with __ and the normal name is an alias. */
30408#if defined (__stub_shmat) || defined (__stub___shmat)
30409choke me
30410#else
30411char (*f) () = shmat;
30412#endif
30413#ifdef __cplusplus
30414}
30415#endif
30416
30417int
30418main ()
30419{
30420return f != shmat;
30421 ;
30422 return 0;
30423}
30424_ACEOF
30425rm -f conftest.$ac_objext conftest$ac_exeext
30426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30427 (eval $ac_link) 2>conftest.er1
a848cd7e 30428 ac_status=$?
ac1cb8d3
VS
30429 grep -v '^ *+' conftest.er1 >conftest.err
30430 rm -f conftest.er1
30431 cat conftest.err >&5
a848cd7e
SC
30432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433 (exit $ac_status); } &&
ca5c6ac3 30434 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30436 (eval $ac_try) 2>&5
30437 ac_status=$?
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); }; } &&
30440 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30442 (eval $ac_try) 2>&5
30443 ac_status=$?
30444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445 (exit $ac_status); }; }; then
30446 ac_cv_func_shmat=yes
30447else
30448 echo "$as_me: failed program was:" >&5
30449sed 's/^/| /' conftest.$ac_ext >&5
30450
30451ac_cv_func_shmat=no
30452fi
ac1cb8d3
VS
30453rm -f conftest.err conftest.$ac_objext \
30454 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30455fi
30456echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30457echo "${ECHO_T}$ac_cv_func_shmat" >&6
30458
30459 if test $ac_cv_func_shmat = no; then
30460 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30461echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
30462if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30463 echo $ECHO_N "(cached) $ECHO_C" >&6
30464else
30465 ac_check_lib_save_LIBS=$LIBS
30466LIBS="-lipc $LIBS"
30467cat >conftest.$ac_ext <<_ACEOF
30468/* confdefs.h. */
30469_ACEOF
30470cat confdefs.h >>conftest.$ac_ext
30471cat >>conftest.$ac_ext <<_ACEOF
30472/* end confdefs.h. */
30473
30474/* Override any gcc2 internal prototype to avoid an error. */
30475#ifdef __cplusplus
30476extern "C"
30477#endif
30478/* We use char because int might match the return type of a gcc2
30479 builtin and then its argument prototype would still apply. */
30480char shmat ();
30481int
30482main ()
30483{
30484shmat ();
30485 ;
30486 return 0;
30487}
30488_ACEOF
30489rm -f conftest.$ac_objext conftest$ac_exeext
30490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30491 (eval $ac_link) 2>conftest.er1
a848cd7e 30492 ac_status=$?
ac1cb8d3
VS
30493 grep -v '^ *+' conftest.er1 >conftest.err
30494 rm -f conftest.er1
30495 cat conftest.err >&5
a848cd7e
SC
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); } &&
ca5c6ac3 30498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30500 (eval $ac_try) 2>&5
30501 ac_status=$?
30502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30503 (exit $ac_status); }; } &&
30504 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30506 (eval $ac_try) 2>&5
30507 ac_status=$?
30508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30509 (exit $ac_status); }; }; then
30510 ac_cv_lib_ipc_shmat=yes
30511else
30512 echo "$as_me: failed program was:" >&5
30513sed 's/^/| /' conftest.$ac_ext >&5
30514
30515ac_cv_lib_ipc_shmat=no
30516fi
ac1cb8d3
VS
30517rm -f conftest.err conftest.$ac_objext \
30518 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30519LIBS=$ac_check_lib_save_LIBS
30520fi
30521echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30522echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
30523if test $ac_cv_lib_ipc_shmat = yes; then
30524 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30525fi
30526
30527 fi
30528 fi
30529
30530 # Check for libraries that X11R6 Xt/Xaw programs need.
30531 ac_save_LDFLAGS=$LDFLAGS
30532 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30533 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30534 # check for ICE first), but we must link in the order -lSM -lICE or
30535 # we get undefined symbols. So assume we have SM if we have ICE.
30536 # These have to be linked with before -lX11, unlike the other
30537 # libraries we check for below, so use a different variable.
30538 # John Interrante, Karl Berry
30539 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30540echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
30541if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30542 echo $ECHO_N "(cached) $ECHO_C" >&6
30543else
30544 ac_check_lib_save_LIBS=$LIBS
30545LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30546cat >conftest.$ac_ext <<_ACEOF
30547/* confdefs.h. */
30548_ACEOF
30549cat confdefs.h >>conftest.$ac_ext
30550cat >>conftest.$ac_ext <<_ACEOF
30551/* end confdefs.h. */
30552
30553/* Override any gcc2 internal prototype to avoid an error. */
30554#ifdef __cplusplus
30555extern "C"
30556#endif
30557/* We use char because int might match the return type of a gcc2
30558 builtin and then its argument prototype would still apply. */
30559char IceConnectionNumber ();
30560int
30561main ()
30562{
30563IceConnectionNumber ();
30564 ;
30565 return 0;
30566}
30567_ACEOF
30568rm -f conftest.$ac_objext conftest$ac_exeext
30569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30570 (eval $ac_link) 2>conftest.er1
a848cd7e 30571 ac_status=$?
ac1cb8d3
VS
30572 grep -v '^ *+' conftest.er1 >conftest.err
30573 rm -f conftest.er1
30574 cat conftest.err >&5
a848cd7e
SC
30575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30576 (exit $ac_status); } &&
ca5c6ac3 30577 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30579 (eval $ac_try) 2>&5
30580 ac_status=$?
30581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582 (exit $ac_status); }; } &&
30583 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30585 (eval $ac_try) 2>&5
30586 ac_status=$?
30587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30588 (exit $ac_status); }; }; then
30589 ac_cv_lib_ICE_IceConnectionNumber=yes
30590else
30591 echo "$as_me: failed program was:" >&5
30592sed 's/^/| /' conftest.$ac_ext >&5
30593
30594ac_cv_lib_ICE_IceConnectionNumber=no
30595fi
ac1cb8d3
VS
30596rm -f conftest.err conftest.$ac_objext \
30597 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30598LIBS=$ac_check_lib_save_LIBS
30599fi
30600echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30601echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30602if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30603 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30604fi
30605
30606 LDFLAGS=$ac_save_LDFLAGS
30607
30608fi
30609
30610
30611 if test "$no_x" = "yes"; then
89d90d6d
VZ
30612 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30613echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30614 { (exit 1); exit 1; }; }
a848cd7e
SC
30615 fi
30616
74b84332
VS
30617 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30618 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
30619 AFMINSTALL=afminstall
30620 COMPILED_X_PROGRAM=0
30621
74b84332
VS
30622 fi
30623
30624 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
30625 if test "$wxUSE_NANOX" = "yes"; then
30626 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30627echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
30628 if test "x$MICROWIN" = x ; then
30629 echo "$as_me:$LINENO: result: not found" >&5
30630echo "${ECHO_T}not found" >&6
30631 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30632echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30633 { (exit 1); exit 1; }; }
30634 else
30635 echo "$as_me:$LINENO: result: $MICROWIN" >&5
30636echo "${ECHO_T}$MICROWIN" >&6
30637 cat >>confdefs.h <<\_ACEOF
30638#define wxUSE_NANOX 1
30639_ACEOF
30640
30641 fi
30642 fi
30643
30644 if test "$wxUSE_UNICODE" = "yes"; then
30645
3ecd9f92
MW
30646pkg_failed=no
30647echo "$as_me:$LINENO: checking for PANGOX" >&5
30648echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
a848cd7e 30649
3ecd9f92
MW
30650if test -n "$PKG_CONFIG"; then
30651 if test -n "$PANGOX_CFLAGS"; then
30652 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
30653 else
30654 if test -n "$PKG_CONFIG" && \
30655 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30656 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30657 ac_status=$?
30658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659 (exit $ac_status); }; then
30660 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
30661else
30662 pkg_failed=yes
30663fi
30664 fi
30665else
30666 pkg_failed=untried
30667fi
30668if test -n "$PKG_CONFIG"; then
30669 if test -n "$PANGOX_LIBS"; then
30670 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
30671 else
30672 if test -n "$PKG_CONFIG" && \
30673 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30674 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30675 ac_status=$?
30676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677 (exit $ac_status); }; then
30678 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
30679else
30680 pkg_failed=yes
30681fi
30682 fi
30683else
30684 pkg_failed=untried
30685fi
30686
30687
30688
30689if test $pkg_failed = yes; then
30690
30691if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30692 _pkg_short_errors_supported=yes
30693else
30694 _pkg_short_errors_supported=no
30695fi
30696 if test $_pkg_short_errors_supported = yes; then
30697 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
30698 else
30699 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
a848cd7e 30700 fi
3ecd9f92
MW
30701 # Put the nasty error message in config.log where it belongs
30702 echo "$PANGOX_PKG_ERRORS" >&5
a848cd7e
SC
30703
30704
3ecd9f92
MW
30705 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30706echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30707 { (exit 1); exit 1; }; }
a848cd7e 30708
a848cd7e 30709
3ecd9f92 30710elif test $pkg_failed = untried; then
a848cd7e 30711
3ecd9f92
MW
30712 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30713echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30714 { (exit 1); exit 1; }; }
30715
30716
30717else
30718 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
30719 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
30720 echo "$as_me:$LINENO: result: yes" >&5
30721echo "${ECHO_T}yes" >&6
30722
30723 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
30724 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
30725
30726fi
30727
30728pkg_failed=no
30729echo "$as_me:$LINENO: checking for PANGOFT2" >&5
30730echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
30731
30732if test -n "$PKG_CONFIG"; then
30733 if test -n "$PANGOFT2_CFLAGS"; then
30734 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
30735 else
30736 if test -n "$PKG_CONFIG" && \
30737 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30738 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30739 ac_status=$?
30740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30741 (exit $ac_status); }; then
30742 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30743else
30744 pkg_failed=yes
30745fi
30746 fi
30747else
30748 pkg_failed=untried
30749fi
30750if test -n "$PKG_CONFIG"; then
30751 if test -n "$PANGOFT2_LIBS"; then
30752 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
30753 else
30754 if test -n "$PKG_CONFIG" && \
30755 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30756 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30757 ac_status=$?
30758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30759 (exit $ac_status); }; then
30760 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30761else
30762 pkg_failed=yes
30763fi
30764 fi
30765else
30766 pkg_failed=untried
30767fi
30768
30769
30770
30771if test $pkg_failed = yes; then
30772
30773if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30774 _pkg_short_errors_supported=yes
30775else
30776 _pkg_short_errors_supported=no
30777fi
30778 if test $_pkg_short_errors_supported = yes; then
30779 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
30780 else
30781 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
30782 fi
30783 # Put the nasty error message in config.log where it belongs
30784 echo "$PANGOFT2_PKG_ERRORS" >&5
a848cd7e 30785
a848cd7e
SC
30786
30787 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30788echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30789 wxUSE_PRINTING_ARCHITECTURE="no"
30790
30791
3ecd9f92 30792elif test $pkg_failed = untried; then
a848cd7e 30793
3ecd9f92
MW
30794 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30795echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30796 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e 30797
a848cd7e 30798
a848cd7e 30799else
3ecd9f92
MW
30800 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
30801 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
30802 echo "$as_me:$LINENO: result: yes" >&5
30803echo "${ECHO_T}yes" >&6
30804
30805 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
30806 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
a848cd7e 30807
a848cd7e 30808fi
3ecd9f92
MW
30809
30810pkg_failed=no
30811echo "$as_me:$LINENO: checking for PANGOXFT" >&5
30812echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
a848cd7e
SC
30813
30814if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
30815 if test -n "$PANGOXFT_CFLAGS"; then
30816 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
30817 else
30818 if test -n "$PKG_CONFIG" && \
30819 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30820 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30821 ac_status=$?
30822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823 (exit $ac_status); }; then
30824 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
a848cd7e 30825else
3ecd9f92
MW
30826 pkg_failed=yes
30827fi
30828 fi
30829else
30830 pkg_failed=untried
30831fi
30832if test -n "$PKG_CONFIG"; then
30833 if test -n "$PANGOXFT_LIBS"; then
30834 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
30835 else
30836 if test -n "$PKG_CONFIG" && \
30837 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30838 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30839 ac_status=$?
30840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30841 (exit $ac_status); }; then
30842 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
30843else
30844 pkg_failed=yes
30845fi
30846 fi
30847else
30848 pkg_failed=untried
a848cd7e
SC
30849fi
30850
a848cd7e 30851
a848cd7e 30852
3ecd9f92 30853if test $pkg_failed = yes; then
a848cd7e 30854
3ecd9f92
MW
30855if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30856 _pkg_short_errors_supported=yes
30857else
30858 _pkg_short_errors_supported=no
30859fi
30860 if test $_pkg_short_errors_supported = yes; then
30861 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
30862 else
30863 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
a848cd7e 30864 fi
3ecd9f92
MW
30865 # Put the nasty error message in config.log where it belongs
30866 echo "$PANGOXFT_PKG_ERRORS" >&5
a848cd7e
SC
30867
30868
3ecd9f92
MW
30869 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30870echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30871
a848cd7e 30872
3ecd9f92 30873elif test $pkg_failed = untried; then
a848cd7e 30874
3ecd9f92
MW
30875 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30876echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30877
30878
30879else
30880 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
30881 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
30882 echo "$as_me:$LINENO: result: yes" >&5
30883echo "${ECHO_T}yes" >&6
a848cd7e 30884
4ae1af05
MB
30885 cat >>confdefs.h <<\_ACEOF
30886#define HAVE_PANGO_XFT 1
30887_ACEOF
30888
c92ad099 30889 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
30890 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
30891
3ecd9f92 30892fi
e56f4f9e 30893 save_CXXFLAGS="$CXXFLAGS"
304205f1 30894 save_LIBS="$LIBS"
e56f4f9e 30895 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
304205f1
VS
30896 LIBS="$LIBS $PANGOX_LIBS"
30897
30898for ac_func in pango_font_family_is_monospace
30899do
30900as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30901echo "$as_me:$LINENO: checking for $ac_func" >&5
30902echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30903if eval "test \"\${$as_ac_var+set}\" = set"; then
30904 echo $ECHO_N "(cached) $ECHO_C" >&6
30905else
30906 cat >conftest.$ac_ext <<_ACEOF
30907/* confdefs.h. */
30908_ACEOF
30909cat confdefs.h >>conftest.$ac_ext
30910cat >>conftest.$ac_ext <<_ACEOF
30911/* end confdefs.h. */
30912/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30914#define $ac_func innocuous_$ac_func
30915
30916/* System header to define __stub macros and hopefully few prototypes,
30917 which can conflict with char $ac_func (); below.
30918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30919 <limits.h> exists even on freestanding compilers. */
30920
30921#ifdef __STDC__
30922# include <limits.h>
30923#else
30924# include <assert.h>
30925#endif
30926
30927#undef $ac_func
30928
30929/* Override any gcc2 internal prototype to avoid an error. */
30930#ifdef __cplusplus
30931extern "C"
30932{
30933#endif
30934/* We use char because int might match the return type of a gcc2
30935 builtin and then its argument prototype would still apply. */
30936char $ac_func ();
30937/* The GNU C library defines this for functions which it implements
30938 to always fail with ENOSYS. Some functions are actually named
30939 something starting with __ and the normal name is an alias. */
30940#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30941choke me
30942#else
30943char (*f) () = $ac_func;
30944#endif
30945#ifdef __cplusplus
30946}
30947#endif
30948
30949int
30950main ()
30951{
30952return f != $ac_func;
30953 ;
30954 return 0;
30955}
30956_ACEOF
30957rm -f conftest.$ac_objext conftest$ac_exeext
30958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30959 (eval $ac_link) 2>conftest.er1
30960 ac_status=$?
30961 grep -v '^ *+' conftest.er1 >conftest.err
30962 rm -f conftest.er1
30963 cat conftest.err >&5
30964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30965 (exit $ac_status); } &&
ca5c6ac3 30966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
304205f1
VS
30967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30968 (eval $ac_try) 2>&5
30969 ac_status=$?
30970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30971 (exit $ac_status); }; } &&
30972 { ac_try='test -s conftest$ac_exeext'
30973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30974 (eval $ac_try) 2>&5
30975 ac_status=$?
30976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30977 (exit $ac_status); }; }; then
30978 eval "$as_ac_var=yes"
30979else
30980 echo "$as_me: failed program was:" >&5
30981sed 's/^/| /' conftest.$ac_ext >&5
30982
30983eval "$as_ac_var=no"
30984fi
30985rm -f conftest.err conftest.$ac_objext \
30986 conftest$ac_exeext conftest.$ac_ext
30987fi
30988echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30989echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30990if test `eval echo '${'$as_ac_var'}'` = yes; then
30991 cat >>confdefs.h <<_ACEOF
30992#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30993_ACEOF
30994
30995fi
30996done
30997
e56f4f9e 30998 CXXFLAGS="$save_CXXFLAGS"
304205f1 30999 LIBS="$save_LIBS"
a848cd7e
SC
31000 fi
31001
31002 wxUSE_UNIVERSAL="yes"
31003
31004 if test "$wxUSE_NANOX" = "yes"; then
31005 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31006 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"
31007 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31008 else
31009 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31010 fi
31011
a848cd7e
SC
31012 TOOLKIT=X11
31013 GUIDIST=X11_DIST
31014 fi
31015
31016 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
31017 if test "$wxUSE_UNICODE" = "yes"; then
31018 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
31019echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
31020 { (exit 1); exit 1; }; }
31021 fi
31022
74b84332
VS
31023 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31024echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 31025
74b84332
VS
31026ac_find_includes=
31027for ac_dir in $SEARCH_INCLUDE /usr/include;
31028 do
31029 if test -f "$ac_dir/Xm/Xm.h"; then
31030 ac_find_includes=$ac_dir
31031 break
31032 fi
31033 done
a848cd7e 31034
74b84332
VS
31035 if test "$ac_find_includes" != "" ; then
31036 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31037echo "${ECHO_T}found in $ac_find_includes" >&6
31038
31039 if test "x$ac_find_includes" = "x/usr/include"; then
31040 ac_path_to_include=""
31041 else
31042 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31043 result=$?
31044 if test $result = 0; then
31045 ac_path_to_include=""
31046 else
31047 ac_path_to_include=" -I$ac_find_includes"
31048 fi
a848cd7e
SC
31049 fi
31050
74b84332
VS
31051 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31052 else
e56f4f9e
VZ
31053 save_CXXFLAGS=$CXXFLAGS
31054 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 31055
74b84332 31056 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31057/* confdefs.h. */
31058_ACEOF
31059cat confdefs.h >>conftest.$ac_ext
31060cat >>conftest.$ac_ext <<_ACEOF
31061/* end confdefs.h. */
31062
74b84332
VS
31063 #include <Xm/Xm.h>
31064
a848cd7e
SC
31065int
31066main ()
31067{
31068
74b84332
VS
31069 int version;
31070 version = xmUseVersion;
31071
a848cd7e
SC
31072 ;
31073 return 0;
31074}
31075_ACEOF
74b84332
VS
31076rm -f conftest.$ac_objext
31077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31078 (eval $ac_compile) 2>conftest.er1
a848cd7e 31079 ac_status=$?
ac1cb8d3
VS
31080 grep -v '^ *+' conftest.er1 >conftest.err
31081 rm -f conftest.er1
31082 cat conftest.err >&5
a848cd7e
SC
31083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31084 (exit $ac_status); } &&
ca5c6ac3 31085 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31087 (eval $ac_try) 2>&5
31088 ac_status=$?
31089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31090 (exit $ac_status); }; } &&
74b84332 31091 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31093 (eval $ac_try) 2>&5
31094 ac_status=$?
31095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096 (exit $ac_status); }; }; then
74b84332
VS
31097
31098 echo "$as_me:$LINENO: result: found in default search path" >&5
31099echo "${ECHO_T}found in default search path" >&6
31100 COMPILED_X_PROGRAM=1
31101
a848cd7e
SC
31102else
31103 echo "$as_me: failed program was:" >&5
31104sed 's/^/| /' conftest.$ac_ext >&5
31105
a848cd7e 31106
74b84332
VS
31107 echo "$as_me:$LINENO: result: no" >&5
31108echo "${ECHO_T}no" >&6
e051b34e
MW
31109 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31110echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 31111 { (exit 1); exit 1; }; }
a848cd7e 31112
a848cd7e 31113
a848cd7e 31114fi
74b84332 31115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 31116
e56f4f9e 31117 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
31118 fi
31119
0ad5d837
VZ
31120
31121 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
31122echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
31123
0ad5d837
VZ
31124 ac_find_libraries=
31125 for ac_dir in $SEARCH_LIB;
74b84332 31126 do
3eca31dc 31127 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
31128 if test -f "$ac_dir/libXm.$ac_extension"; then
31129 ac_find_libraries=$ac_dir
31130 break 2
a848cd7e 31131 fi
74b84332
VS
31132 done
31133 done
a848cd7e 31134
0ad5d837
VZ
31135
31136 if test "x$ac_find_libraries" != "x" ; then
31137 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31138echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 31139
74b84332 31140
0ad5d837 31141 if test "$ac_find_libraries" = "default location"; then
74b84332 31142 ac_path_to_link=""
a848cd7e 31143 else
0ad5d837
VZ
31144 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31145 result=$?
31146 if test $result = 0; then
31147 ac_path_to_link=""
31148 else
31149 ac_path_to_link=" -L$ac_find_libraries"
31150 fi
74b84332
VS
31151 fi
31152
0ad5d837
VZ
31153 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31154 else
e56f4f9e
VZ
31155 save_CXXFLAGS=$CXXFLAGS
31156 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
31157 save_LIBS="$LIBS"
31158 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 31159
0ad5d837 31160 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31161/* confdefs.h. */
31162_ACEOF
31163cat confdefs.h >>conftest.$ac_ext
31164cat >>conftest.$ac_ext <<_ACEOF
31165/* end confdefs.h. */
31166
0ad5d837 31167 #include <Xm/Xm.h>
74b84332 31168
a848cd7e
SC
31169int
31170main ()
31171{
74b84332 31172
0ad5d837
VZ
31173 int version;
31174 version = xmUseVersion;
74b84332 31175
a848cd7e
SC
31176 ;
31177 return 0;
31178}
31179_ACEOF
0ad5d837
VZ
31180rm -f conftest.$ac_objext conftest$ac_exeext
31181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31182 (eval $ac_link) 2>conftest.er1
a848cd7e 31183 ac_status=$?
ac1cb8d3
VS
31184 grep -v '^ *+' conftest.er1 >conftest.err
31185 rm -f conftest.er1
31186 cat conftest.err >&5
a848cd7e
SC
31187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31188 (exit $ac_status); } &&
ca5c6ac3 31189 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31191 (eval $ac_try) 2>&5
31192 ac_status=$?
31193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31194 (exit $ac_status); }; } &&
0ad5d837 31195 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31197 (eval $ac_try) 2>&5
31198 ac_status=$?
31199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31200 (exit $ac_status); }; }; then
74b84332 31201
0ad5d837 31202 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 31203echo "${ECHO_T}found in default search path" >&6
0ad5d837 31204 COMPILED_X_PROGRAM=1
74b84332 31205
a848cd7e
SC
31206else
31207 echo "$as_me: failed program was:" >&5
31208sed 's/^/| /' conftest.$ac_ext >&5
31209
74b84332 31210
6f9cf1e6 31211 echo "$as_me:$LINENO: result: no" >&5
74b84332 31212echo "${ECHO_T}no" >&6
6f9cf1e6 31213 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
31214echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31215 { (exit 1); exit 1; }; }
31216
31217
31218fi
0ad5d837
VZ
31219rm -f conftest.err conftest.$ac_objext \
31220 conftest$ac_exeext conftest.$ac_ext
74b84332 31221
e56f4f9e 31222 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 31223 LIBS="$save_LIBS"
74b84332
VS
31224 fi
31225
31226 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31227echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
31228 libp_link=""
31229 libsm_ice_link=""
31230 libs_found=0
31231 for libp in "" " -lXp"; do
31232 if test "$libs_found" = "0"; then
31233 for libsm_ice in "" " -lSM -lICE"; do
31234 if test "$libs_found" = "0"; then
31235 save_LIBS="$LIBS"
31236 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
31237 save_CXXFLAGS=$CXXFLAGS
31238 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
31239
31240 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31241/* confdefs.h. */
31242_ACEOF
31243cat confdefs.h >>conftest.$ac_ext
31244cat >>conftest.$ac_ext <<_ACEOF
31245/* end confdefs.h. */
31246
74b84332
VS
31247 #include <Xm/Xm.h>
31248 #include <Xm/List.h>
31249
a848cd7e
SC
31250int
31251main ()
31252{
74b84332
VS
31253
31254 XmString string = NULL;
31255 Widget w = NULL;
31256 int position = 0;
31257 XmListAddItem(w, string, position);
31258
a848cd7e
SC
31259 ;
31260 return 0;
31261}
31262_ACEOF
31263rm -f conftest.$ac_objext conftest$ac_exeext
31264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31265 (eval $ac_link) 2>conftest.er1
a848cd7e 31266 ac_status=$?
ac1cb8d3
VS
31267 grep -v '^ *+' conftest.er1 >conftest.err
31268 rm -f conftest.er1
31269 cat conftest.err >&5
a848cd7e
SC
31270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31271 (exit $ac_status); } &&
ca5c6ac3 31272 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31274 (eval $ac_try) 2>&5
31275 ac_status=$?
31276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31277 (exit $ac_status); }; } &&
31278 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31280 (eval $ac_try) 2>&5
31281 ac_status=$?
31282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283 (exit $ac_status); }; }; then
31284
31285 libp_link="$libp"
31286 libsm_ice_link="$libsm_ice"
31287 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31288echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
31289 libs_found=1
31290
31291else
31292 echo "$as_me: failed program was:" >&5
31293sed 's/^/| /' conftest.$ac_ext >&5
31294
31295
31296
31297fi
ac1cb8d3
VS
31298rm -f conftest.err conftest.$ac_objext \
31299 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31300
31301 LIBS="$save_LIBS"
e56f4f9e 31302 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31303 fi
31304 done
31305 fi
31306 done
31307
31308 if test "$libs_found" = "0"; then
31309 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31310echo "${ECHO_T}can't find the right libraries" >&6
31311 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31312echo "$as_me: error: can't link a simple motif program" >&2;}
31313 { (exit 1); exit 1; }; }
31314 fi
31315
62fa8b3a
MW
31316 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31317echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
31318if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31319 echo $ECHO_N "(cached) $ECHO_C" >&6
31320else
31321 ac_check_lib_save_LIBS=$LIBS
31322LIBS="-lSgm $LIBS"
31323cat >conftest.$ac_ext <<_ACEOF
31324/* confdefs.h. */
31325_ACEOF
31326cat confdefs.h >>conftest.$ac_ext
31327cat >>conftest.$ac_ext <<_ACEOF
31328/* end confdefs.h. */
31329
31330/* Override any gcc2 internal prototype to avoid an error. */
31331#ifdef __cplusplus
31332extern "C"
31333#endif
31334/* We use char because int might match the return type of a gcc2
31335 builtin and then its argument prototype would still apply. */
31336char SgCreateList ();
31337int
31338main ()
31339{
31340SgCreateList ();
31341 ;
31342 return 0;
31343}
31344_ACEOF
31345rm -f conftest.$ac_objext conftest$ac_exeext
31346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31347 (eval $ac_link) 2>conftest.er1
31348 ac_status=$?
31349 grep -v '^ *+' conftest.er1 >conftest.err
31350 rm -f conftest.er1
31351 cat conftest.err >&5
31352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353 (exit $ac_status); } &&
ca5c6ac3 31354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
31355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31356 (eval $ac_try) 2>&5
31357 ac_status=$?
31358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31359 (exit $ac_status); }; } &&
31360 { ac_try='test -s conftest$ac_exeext'
31361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31362 (eval $ac_try) 2>&5
31363 ac_status=$?
31364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365 (exit $ac_status); }; }; then
31366 ac_cv_lib_Sgm_SgCreateList=yes
31367else
31368 echo "$as_me: failed program was:" >&5
31369sed 's/^/| /' conftest.$ac_ext >&5
31370
31371ac_cv_lib_Sgm_SgCreateList=no
31372fi
31373rm -f conftest.err conftest.$ac_objext \
31374 conftest$ac_exeext conftest.$ac_ext
31375LIBS=$ac_check_lib_save_LIBS
31376fi
31377echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
31378echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
31379if test $ac_cv_lib_Sgm_SgCreateList = yes; then
31380 libsgm_link=" -lSgm"
31381fi
31382
31383
e56f4f9e
VZ
31384 save_CXXFLAGS=$CXXFLAGS
31385 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 31386
a848cd7e
SC
31387 echo "$as_me:$LINENO: checking for Motif 2" >&5
31388echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
31389if test "${wx_cv_lib_motif2+set}" = set; then
31390 echo $ECHO_N "(cached) $ECHO_C" >&6
31391else
31392 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31393/* confdefs.h. */
31394_ACEOF
31395cat confdefs.h >>conftest.$ac_ext
31396cat >>conftest.$ac_ext <<_ACEOF
31397/* end confdefs.h. */
31398
0ad5d837 31399 #include <Xm/Xm.h>
a848cd7e
SC
31400
31401int
31402main ()
31403{
31404
0ad5d837
VZ
31405 #if XmVersion < 2000
31406 Not Motif 2
31407 #endif
a848cd7e
SC
31408
31409 ;
31410 return 0;
31411}
31412_ACEOF
31413rm -f conftest.$ac_objext
31414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31415 (eval $ac_compile) 2>conftest.er1
a848cd7e 31416 ac_status=$?
ac1cb8d3
VS
31417 grep -v '^ *+' conftest.er1 >conftest.err
31418 rm -f conftest.er1
31419 cat conftest.err >&5
a848cd7e
SC
31420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421 (exit $ac_status); } &&
ca5c6ac3 31422 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31424 (eval $ac_try) 2>&5
31425 ac_status=$?
31426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427 (exit $ac_status); }; } &&
31428 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31430 (eval $ac_try) 2>&5
31431 ac_status=$?
31432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433 (exit $ac_status); }; }; then
0ad5d837 31434 wx_cv_lib_motif2="yes"
a848cd7e
SC
31435else
31436 echo "$as_me: failed program was:" >&5
31437sed 's/^/| /' conftest.$ac_ext >&5
31438
0ad5d837
VZ
31439wx_cv_lib_motif2="no"
31440fi
31441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31442fi
31443echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
31444echo "${ECHO_T}$wx_cv_lib_motif2" >&6
31445 if test "$wx_cv_lib_motif2" = "yes"; then
31446 cat >>confdefs.h <<\_ACEOF
31447#define __WXMOTIF20__ 1
31448_ACEOF
a848cd7e 31449
0ad5d837
VZ
31450 else
31451 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31452#define __WXMOTIF20__ 0
31453_ACEOF
31454
0ad5d837 31455 fi
2113bc77
MW
31456
31457 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
31458echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
31459if test "${wx_cv_lib_lesstif+set}" = set; then
31460 echo $ECHO_N "(cached) $ECHO_C" >&6
31461else
31462 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
31463/* confdefs.h. */
31464_ACEOF
31465cat confdefs.h >>conftest.$ac_ext
31466cat >>conftest.$ac_ext <<_ACEOF
31467/* end confdefs.h. */
31468
0ad5d837 31469 #include <Xm/Xm.h>
2113bc77
MW
31470
31471int
31472main ()
31473{
31474
0ad5d837
VZ
31475 #if !defined(LesstifVersion) || LesstifVersion <= 0
31476 Not Lesstif
31477 #endif
2113bc77
MW
31478
31479 ;
31480 return 0;
31481}
31482_ACEOF
31483rm -f conftest.$ac_objext
31484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31485 (eval $ac_compile) 2>conftest.er1
31486 ac_status=$?
31487 grep -v '^ *+' conftest.er1 >conftest.err
31488 rm -f conftest.er1
31489 cat conftest.err >&5
31490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31491 (exit $ac_status); } &&
ca5c6ac3 31492 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2113bc77
MW
31493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31494 (eval $ac_try) 2>&5
31495 ac_status=$?
31496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31497 (exit $ac_status); }; } &&
31498 { ac_try='test -s conftest.$ac_objext'
31499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31500 (eval $ac_try) 2>&5
31501 ac_status=$?
31502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31503 (exit $ac_status); }; }; then
0ad5d837 31504 wx_cv_lib_lesstif="yes"
2113bc77
MW
31505else
31506 echo "$as_me: failed program was:" >&5
31507sed 's/^/| /' conftest.$ac_ext >&5
31508
0ad5d837
VZ
31509wx_cv_lib_lesstif="no"
31510fi
31511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 31512
0ad5d837
VZ
31513fi
31514echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31515echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
31516 if test "$wx_cv_lib_lesstif" = "yes"; then
31517 cat >>confdefs.h <<\_ACEOF
31518#define __WXLESSTIF__ 1
31519_ACEOF
31520
31521 else
31522 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
31523#define __WXLESSTIF__ 0
31524_ACEOF
31525
0ad5d837 31526 fi
2113bc77 31527
e56f4f9e 31528 CXXFLAGS=$save_CXXFLAGS
a848cd7e 31529
62fa8b3a 31530 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
31531 TOOLKIT=MOTIF
31532 GUIDIST=MOTIF_DIST
31533 fi
31534
74b84332 31535 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
31536 if test "$wxUSE_LIBXPM" = "sys"; then
31537 echo "$as_me:$LINENO: checking for Xpm library" >&5
31538echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
31539
0ad5d837
VZ
31540 ac_find_libraries=
31541 for ac_dir in $SEARCH_LIB;
a848cd7e 31542 do
3eca31dc 31543 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31544 if test -f "$ac_dir/libXpm.$ac_extension"; then
31545 ac_find_libraries=$ac_dir
31546 break 2
31547 fi
31548 done
31549 done
31550
31551 if test "$ac_find_libraries" != "" ; then
31552
0ad5d837 31553 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31554 ac_path_to_link=""
31555 else
0ad5d837
VZ
31556 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31557 result=$?
31558 if test $result = 0; then
31559 ac_path_to_link=""
31560 else
31561 ac_path_to_link=" -L$ac_find_libraries"
31562 fi
a848cd7e
SC
31563 fi
31564
31565 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
31566 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31567echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
31568
31569 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31570echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31571if test "${wx_cv_x11_xpm_h+set}" = set; then
31572 echo $ECHO_N "(cached) $ECHO_C" >&6
31573else
31574
e56f4f9e
VZ
31575 save_CXXFLAGS=$CXXFLAGS
31576 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31577
31578 cat >conftest.$ac_ext <<_ACEOF
31579/* confdefs.h. */
31580_ACEOF
31581cat confdefs.h >>conftest.$ac_ext
31582cat >>conftest.$ac_ext <<_ACEOF
31583/* end confdefs.h. */
31584
31585 #include <X11/xpm.h>
31586
31587int
31588main ()
31589{
31590
31591 int version;
31592 version = XpmLibraryVersion();
31593
31594 ;
31595 return 0;
31596}
31597_ACEOF
31598rm -f conftest.$ac_objext
31599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31600 (eval $ac_compile) 2>conftest.er1
a848cd7e 31601 ac_status=$?
ac1cb8d3
VS
31602 grep -v '^ *+' conftest.er1 >conftest.err
31603 rm -f conftest.er1
31604 cat conftest.err >&5
a848cd7e
SC
31605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31606 (exit $ac_status); } &&
ca5c6ac3 31607 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31609 (eval $ac_try) 2>&5
31610 ac_status=$?
31611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31612 (exit $ac_status); }; } &&
31613 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31615 (eval $ac_try) 2>&5
31616 ac_status=$?
31617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31618 (exit $ac_status); }; }; then
31619 wx_cv_x11_xpm_h=yes
31620else
31621 echo "$as_me: failed program was:" >&5
31622sed 's/^/| /' conftest.$ac_ext >&5
31623
31624wx_cv_x11_xpm_h=no
31625
31626fi
ac1cb8d3 31627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 31628
e56f4f9e 31629 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31630
31631
31632fi
31633echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31634echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31635
31636 if test $wx_cv_x11_xpm_h = "yes"; then
31637 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31638 cat >>confdefs.h <<\_ACEOF
31639#define wxHAVE_LIB_XPM 1
31640_ACEOF
31641
31642 else
31643 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31644echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31645 fi
31646 fi
31647
31648 fi
31649
31650 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31651echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31652if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31653 echo $ECHO_N "(cached) $ECHO_C" >&6
31654else
31655 ac_check_lib_save_LIBS=$LIBS
31656LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31657cat >conftest.$ac_ext <<_ACEOF
31658/* confdefs.h. */
31659_ACEOF
31660cat confdefs.h >>conftest.$ac_ext
31661cat >>conftest.$ac_ext <<_ACEOF
31662/* end confdefs.h. */
31663
31664/* Override any gcc2 internal prototype to avoid an error. */
31665#ifdef __cplusplus
31666extern "C"
31667#endif
31668/* We use char because int might match the return type of a gcc2
31669 builtin and then its argument prototype would still apply. */
31670char XShapeQueryExtension ();
31671int
31672main ()
31673{
31674XShapeQueryExtension ();
31675 ;
31676 return 0;
31677}
31678_ACEOF
31679rm -f conftest.$ac_objext conftest$ac_exeext
31680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31681 (eval $ac_link) 2>conftest.er1
a848cd7e 31682 ac_status=$?
ac1cb8d3
VS
31683 grep -v '^ *+' conftest.er1 >conftest.err
31684 rm -f conftest.er1
31685 cat conftest.err >&5
a848cd7e
SC
31686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31687 (exit $ac_status); } &&
ca5c6ac3 31688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31690 (eval $ac_try) 2>&5
31691 ac_status=$?
31692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693 (exit $ac_status); }; } &&
31694 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31696 (eval $ac_try) 2>&5
31697 ac_status=$?
31698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31699 (exit $ac_status); }; }; then
31700 ac_cv_lib_Xext_XShapeQueryExtension=yes
31701else
31702 echo "$as_me: failed program was:" >&5
31703sed 's/^/| /' conftest.$ac_ext >&5
31704
31705ac_cv_lib_Xext_XShapeQueryExtension=no
31706fi
ac1cb8d3
VS
31707rm -f conftest.err conftest.$ac_objext \
31708 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31709LIBS=$ac_check_lib_save_LIBS
31710fi
31711echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
31712echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
31713if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
31714
31715 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
31716 wxHAVE_XEXT_LIB=1
31717
31718fi
31719
31720
31721 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
31722 save_CXXFLAGS="$CXXFLAGS"
31723 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31724
31725 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
31726echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
31727 cat >conftest.$ac_ext <<_ACEOF
31728/* confdefs.h. */
31729_ACEOF
31730cat confdefs.h >>conftest.$ac_ext
31731cat >>conftest.$ac_ext <<_ACEOF
31732/* end confdefs.h. */
31733
31734 #include <X11/Xlib.h>
31735 #include <X11/extensions/shape.h>
31736
31737int
31738main ()
31739{
31740
31741 int dummy1, dummy2;
31742 XShapeQueryExtension((Display*)NULL,
31743 (int*)NULL, (int*)NULL);
31744
31745 ;
31746 return 0;
31747}
31748_ACEOF
31749rm -f conftest.$ac_objext
31750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31751 (eval $ac_compile) 2>conftest.er1
a848cd7e 31752 ac_status=$?
ac1cb8d3
VS
31753 grep -v '^ *+' conftest.er1 >conftest.err
31754 rm -f conftest.er1
31755 cat conftest.err >&5
a848cd7e
SC
31756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31757 (exit $ac_status); } &&
ca5c6ac3 31758 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31760 (eval $ac_try) 2>&5
31761 ac_status=$?
31762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31763 (exit $ac_status); }; } &&
31764 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31766 (eval $ac_try) 2>&5
31767 ac_status=$?
31768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769 (exit $ac_status); }; }; then
31770
31771 cat >>confdefs.h <<\_ACEOF
31772#define HAVE_XSHAPE 1
31773_ACEOF
31774
31775 echo "$as_me:$LINENO: result: found" >&5
31776echo "${ECHO_T}found" >&6
31777
31778else
31779 echo "$as_me: failed program was:" >&5
31780sed 's/^/| /' conftest.$ac_ext >&5
31781
31782
31783 echo "$as_me:$LINENO: result: not found" >&5
31784echo "${ECHO_T}not found" >&6
31785
31786fi
ac1cb8d3 31787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 31788 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
31789
31790 fi
31791 fi
31792
31793 if test "$wxUSE_MAC" = 1; then
31794 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31795echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31796 if test "$GCC" = yes; then
31797 echo "$as_me:$LINENO: result: gcc" >&5
31798echo "${ECHO_T}gcc" >&6
31799 CPPFLAGS_PASCAL="-fpascal-strings"
31800 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31801 echo "$as_me:$LINENO: result: xlc" >&5
31802echo "${ECHO_T}xlc" >&6
31803 CPPFLAGS_PASCAL="-qmacpstr"
31804 else
31805 echo "$as_me:$LINENO: result: none" >&5
31806echo "${ECHO_T}none" >&6
31807 fi
31808
1e9e8aba 31809 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 31810 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 31811 else
c92ad099 31812 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 31813 fi
a848cd7e 31814
a848cd7e
SC
31815 TOOLKIT=MAC
31816 GUIDIST=MACX_DIST
dd21ced8 31817 WXBASEPORT="_carbon"
a848cd7e
SC
31818 fi
31819
31820 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
31821 TOOLKIT=COCOA
31822 GUIDIST=COCOA_DIST
31823 fi
31824
31825 if test "$wxUSE_PM" = 1; then
31826 TOOLKIT=PM
de59c161
RD
31827 GUIDIST=PM_DIST
31828 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31829echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31830if test "${wx_cv_spbcdata+set}" = set; then
31831 echo $ECHO_N "(cached) $ECHO_C" >&6
31832else
31833
31834 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
31835/* confdefs.h. */
31836_ACEOF
31837cat confdefs.h >>conftest.$ac_ext
31838cat >>conftest.$ac_ext <<_ACEOF
31839/* end confdefs.h. */
31840
31841 #define INCL_PM
31842 #include <os2.h>
31843
31844int
31845main ()
31846{
31847
31848 SPBCDATA test;
31849
31850 ;
31851 return 0;
31852}
31853_ACEOF
31854rm -f conftest.$ac_objext
31855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31856 (eval $ac_compile) 2>conftest.er1
de59c161 31857 ac_status=$?
ac1cb8d3
VS
31858 grep -v '^ *+' conftest.er1 >conftest.err
31859 rm -f conftest.er1
31860 cat conftest.err >&5
de59c161
RD
31861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31862 (exit $ac_status); } &&
ca5c6ac3 31863 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31865 (eval $ac_try) 2>&5
31866 ac_status=$?
31867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31868 (exit $ac_status); }; } &&
31869 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
31870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31871 (eval $ac_try) 2>&5
31872 ac_status=$?
31873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31874 (exit $ac_status); }; }; then
31875 wx_cv_spbcdata=yes
31876else
31877 echo "$as_me: failed program was:" >&5
31878sed 's/^/| /' conftest.$ac_ext >&5
31879
31880wx_cv_spbcdata=no
31881
31882fi
ac1cb8d3 31883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
31884
31885
31886fi
31887echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
31888echo "${ECHO_T}$wx_cv_spbcdata" >&6
31889
31890 if test $wx_cv_spbcdata = "yes"; then
31891 cat >>confdefs.h <<\_ACEOF
31892#define HAVE_SPBCDATA 1
31893_ACEOF
31894
31895 fi
a848cd7e
SC
31896 fi
31897
31898 if test "$TOOLKIT" = "PM" ; then
31899 TOOLKIT_DIR="os2"
31900 else
31901 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
31902 fi
31903
a848cd7e 31904 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
31905 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
31906 WIDGET_SET=univ
a848cd7e
SC
31907 fi
31908
31909 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
31910 DISTDIR="wx\$(TOOLKIT)"
31911else
31912 USE_GUI=0
31913
31914 TOOLKIT_DIR="base"
31915
31916 if test "$USE_WIN32" = 1 ; then
a848cd7e 31917 TOOLKIT="MSW"
a848cd7e
SC
31918 fi
31919
a848cd7e
SC
31920 GUIDIST="BASE_DIST"
31921 DISTDIR="wxBase"
31922fi
31923
31924
d12aef51
VZ
31925if test "$wxUSE_GUI" = "yes"; then
31926 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
31927
31928for ac_header in X11/Xlib.h
31929do
31930as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31931if eval "test \"\${$as_ac_Header+set}\" = set"; then
31932 echo "$as_me:$LINENO: checking for $ac_header" >&5
31933echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31934if eval "test \"\${$as_ac_Header+set}\" = set"; then
31935 echo $ECHO_N "(cached) $ECHO_C" >&6
31936fi
31937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31938echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31939else
31940 # Is the header compilable?
31941echo "$as_me:$LINENO: checking $ac_header usability" >&5
31942echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31943cat >conftest.$ac_ext <<_ACEOF
31944/* confdefs.h. */
31945_ACEOF
31946cat confdefs.h >>conftest.$ac_ext
31947cat >>conftest.$ac_ext <<_ACEOF
31948/* end confdefs.h. */
31949$ac_includes_default
31950#include <$ac_header>
31951_ACEOF
31952rm -f conftest.$ac_objext
31953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31954 (eval $ac_compile) 2>conftest.er1
31955 ac_status=$?
31956 grep -v '^ *+' conftest.er1 >conftest.err
31957 rm -f conftest.er1
31958 cat conftest.err >&5
31959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31960 (exit $ac_status); } &&
ca5c6ac3 31961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
31962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31963 (eval $ac_try) 2>&5
31964 ac_status=$?
31965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966 (exit $ac_status); }; } &&
31967 { ac_try='test -s conftest.$ac_objext'
31968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31969 (eval $ac_try) 2>&5
31970 ac_status=$?
31971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31972 (exit $ac_status); }; }; then
31973 ac_header_compiler=yes
31974else
31975 echo "$as_me: failed program was:" >&5
31976sed 's/^/| /' conftest.$ac_ext >&5
31977
31978ac_header_compiler=no
31979fi
31980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31981echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31982echo "${ECHO_T}$ac_header_compiler" >&6
31983
31984# Is the header present?
31985echo "$as_me:$LINENO: checking $ac_header presence" >&5
31986echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31987cat >conftest.$ac_ext <<_ACEOF
31988/* confdefs.h. */
31989_ACEOF
31990cat confdefs.h >>conftest.$ac_ext
31991cat >>conftest.$ac_ext <<_ACEOF
31992/* end confdefs.h. */
31993#include <$ac_header>
31994_ACEOF
31995if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31997 ac_status=$?
31998 grep -v '^ *+' conftest.er1 >conftest.err
31999 rm -f conftest.er1
32000 cat conftest.err >&5
32001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32002 (exit $ac_status); } >/dev/null; then
32003 if test -s conftest.err; then
5d7b7554
VZ
32004 ac_cpp_err=$ac_cxx_preproc_warn_flag
32005 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
32006 else
32007 ac_cpp_err=
32008 fi
32009else
32010 ac_cpp_err=yes
32011fi
32012if test -z "$ac_cpp_err"; then
32013 ac_header_preproc=yes
32014else
32015 echo "$as_me: failed program was:" >&5
32016sed 's/^/| /' conftest.$ac_ext >&5
32017
32018 ac_header_preproc=no
32019fi
32020rm -f conftest.err conftest.$ac_ext
32021echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32022echo "${ECHO_T}$ac_header_preproc" >&6
32023
32024# So? What about this header?
5d7b7554 32025case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
32026 yes:no: )
32027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32028echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32030echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32031 ac_header_preproc=yes
32032 ;;
32033 no:yes:* )
32034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32035echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32037echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32039echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32041echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32043echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32045echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32046 (
32047 cat <<\_ASBOX
32048## ----------------------------------------- ##
32049## Report this to wx-dev@lists.wxwidgets.org ##
32050## ----------------------------------------- ##
32051_ASBOX
32052 ) |
32053 sed "s/^/$as_me: WARNING: /" >&2
32054 ;;
32055esac
32056echo "$as_me:$LINENO: checking for $ac_header" >&5
32057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32058if eval "test \"\${$as_ac_Header+set}\" = set"; then
32059 echo $ECHO_N "(cached) $ECHO_C" >&6
32060else
32061 eval "$as_ac_Header=\$ac_header_preproc"
32062fi
32063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32064echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32065
32066fi
32067if test `eval echo '${'$as_ac_Header'}'` = yes; then
32068 cat >>confdefs.h <<_ACEOF
32069#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32070_ACEOF
32071
32072fi
32073
32074done
32075
32076
32077for ac_header in X11/XKBlib.h
32078do
32079as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32080echo "$as_me:$LINENO: checking for $ac_header" >&5
32081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32082if eval "test \"\${$as_ac_Header+set}\" = set"; then
32083 echo $ECHO_N "(cached) $ECHO_C" >&6
32084else
32085 cat >conftest.$ac_ext <<_ACEOF
32086/* confdefs.h. */
32087_ACEOF
32088cat confdefs.h >>conftest.$ac_ext
32089cat >>conftest.$ac_ext <<_ACEOF
32090/* end confdefs.h. */
32091
32092 #if HAVE_X11_XLIB_H
32093 #include <X11/Xlib.h>
32094 #endif
32095
32096
32097#include <$ac_header>
32098_ACEOF
32099rm -f conftest.$ac_objext
32100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32101 (eval $ac_compile) 2>conftest.er1
32102 ac_status=$?
32103 grep -v '^ *+' conftest.er1 >conftest.err
32104 rm -f conftest.er1
32105 cat conftest.err >&5
32106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32107 (exit $ac_status); } &&
ca5c6ac3 32108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
32109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32110 (eval $ac_try) 2>&5
32111 ac_status=$?
32112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32113 (exit $ac_status); }; } &&
32114 { ac_try='test -s conftest.$ac_objext'
32115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32116 (eval $ac_try) 2>&5
32117 ac_status=$?
32118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119 (exit $ac_status); }; }; then
32120 eval "$as_ac_Header=yes"
32121else
32122 echo "$as_me: failed program was:" >&5
32123sed 's/^/| /' conftest.$ac_ext >&5
32124
32125eval "$as_ac_Header=no"
32126fi
32127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32128fi
32129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32130echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32131if test `eval echo '${'$as_ac_Header'}'` = yes; then
32132 cat >>confdefs.h <<_ACEOF
32133#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32134_ACEOF
32135
32136fi
32137
32138done
32139
32140 fi
32141fi
32142
a848cd7e
SC
32143
32144
32145IODBC_C_SRC=""
32146
32147
32148if test "$TOOLKIT" != "MSW" ; then
32149
32150 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
32151
32152 if test "${ac_cv_header_sql_h+set}" = set; then
32153 echo "$as_me:$LINENO: checking for sql.h" >&5
32154echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32155if test "${ac_cv_header_sql_h+set}" = set; then
32156 echo $ECHO_N "(cached) $ECHO_C" >&6
32157fi
32158echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32159echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32160else
32161 # Is the header compilable?
32162echo "$as_me:$LINENO: checking sql.h usability" >&5
32163echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
32164cat >conftest.$ac_ext <<_ACEOF
32165/* confdefs.h. */
32166_ACEOF
32167cat confdefs.h >>conftest.$ac_ext
32168cat >>conftest.$ac_ext <<_ACEOF
32169/* end confdefs.h. */
32170$ac_includes_default
32171#include <sql.h>
32172_ACEOF
32173rm -f conftest.$ac_objext
32174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32175 (eval $ac_compile) 2>conftest.er1
a848cd7e 32176 ac_status=$?
ac1cb8d3
VS
32177 grep -v '^ *+' conftest.er1 >conftest.err
32178 rm -f conftest.er1
32179 cat conftest.err >&5
a848cd7e
SC
32180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181 (exit $ac_status); } &&
ca5c6ac3 32182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32184 (eval $ac_try) 2>&5
32185 ac_status=$?
32186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32187 (exit $ac_status); }; } &&
32188 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32190 (eval $ac_try) 2>&5
32191 ac_status=$?
32192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32193 (exit $ac_status); }; }; then
32194 ac_header_compiler=yes
32195else
32196 echo "$as_me: failed program was:" >&5
32197sed 's/^/| /' conftest.$ac_ext >&5
32198
32199ac_header_compiler=no
32200fi
ac1cb8d3 32201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32202echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32203echo "${ECHO_T}$ac_header_compiler" >&6
32204
32205# Is the header present?
32206echo "$as_me:$LINENO: checking sql.h presence" >&5
32207echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
32208cat >conftest.$ac_ext <<_ACEOF
32209/* confdefs.h. */
32210_ACEOF
32211cat confdefs.h >>conftest.$ac_ext
32212cat >>conftest.$ac_ext <<_ACEOF
32213/* end confdefs.h. */
32214#include <sql.h>
32215_ACEOF
32216if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32218 ac_status=$?
32219 grep -v '^ *+' conftest.er1 >conftest.err
32220 rm -f conftest.er1
32221 cat conftest.err >&5
32222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32223 (exit $ac_status); } >/dev/null; then
32224 if test -s conftest.err; then
5d7b7554
VZ
32225 ac_cpp_err=$ac_cxx_preproc_warn_flag
32226 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32227 else
32228 ac_cpp_err=
32229 fi
32230else
32231 ac_cpp_err=yes
32232fi
32233if test -z "$ac_cpp_err"; then
32234 ac_header_preproc=yes
32235else
32236 echo "$as_me: failed program was:" >&5
32237sed 's/^/| /' conftest.$ac_ext >&5
32238
32239 ac_header_preproc=no
32240fi
32241rm -f conftest.err conftest.$ac_ext
32242echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32243echo "${ECHO_T}$ac_header_preproc" >&6
32244
32245# So? What about this header?
5d7b7554 32246case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32247 yes:no: )
a848cd7e
SC
32248 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
32249echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32250 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
32251echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
32252 ac_header_preproc=yes
a848cd7e 32253 ;;
ac1cb8d3 32254 no:yes:* )
a848cd7e
SC
32255 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
32256echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32257 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
32258echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
32259 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
32260echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
32261 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
32262echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32263 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
32264echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32265 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
32266echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32267 (
32268 cat <<\_ASBOX
ac1cb8d3
VS
32269## ----------------------------------------- ##
32270## Report this to wx-dev@lists.wxwidgets.org ##
32271## ----------------------------------------- ##
a848cd7e
SC
32272_ASBOX
32273 ) |
32274 sed "s/^/$as_me: WARNING: /" >&2
32275 ;;
32276esac
32277echo "$as_me:$LINENO: checking for sql.h" >&5
32278echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32279if test "${ac_cv_header_sql_h+set}" = set; then
32280 echo $ECHO_N "(cached) $ECHO_C" >&6
32281else
32282 ac_cv_header_sql_h=$ac_header_preproc
32283fi
32284echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32285echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32286
32287fi
32288if test $ac_cv_header_sql_h = yes; then
32289 found_sql_h=1
32290fi
32291
32292
32293 if test "x$found_sql_h" = "x1" ; then
32294 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
32295echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
32296if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
32297 echo $ECHO_N "(cached) $ECHO_C" >&6
32298else
32299 ac_check_lib_save_LIBS=$LIBS
32300LIBS="-liodbc $LIBS"
32301cat >conftest.$ac_ext <<_ACEOF
32302/* confdefs.h. */
32303_ACEOF
32304cat confdefs.h >>conftest.$ac_ext
32305cat >>conftest.$ac_ext <<_ACEOF
32306/* end confdefs.h. */
32307
32308/* Override any gcc2 internal prototype to avoid an error. */
32309#ifdef __cplusplus
32310extern "C"
32311#endif
32312/* We use char because int might match the return type of a gcc2
32313 builtin and then its argument prototype would still apply. */
32314char SQLAllocEnv ();
32315int
32316main ()
32317{
32318SQLAllocEnv ();
32319 ;
32320 return 0;
32321}
32322_ACEOF
32323rm -f conftest.$ac_objext conftest$ac_exeext
32324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32325 (eval $ac_link) 2>conftest.er1
a848cd7e 32326 ac_status=$?
ac1cb8d3
VS
32327 grep -v '^ *+' conftest.er1 >conftest.err
32328 rm -f conftest.er1
32329 cat conftest.err >&5
a848cd7e
SC
32330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32331 (exit $ac_status); } &&
ca5c6ac3 32332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32334 (eval $ac_try) 2>&5
32335 ac_status=$?
32336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32337 (exit $ac_status); }; } &&
32338 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32340 (eval $ac_try) 2>&5
32341 ac_status=$?
32342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32343 (exit $ac_status); }; }; then
32344 ac_cv_lib_iodbc_SQLAllocEnv=yes
32345else
32346 echo "$as_me: failed program was:" >&5
32347sed 's/^/| /' conftest.$ac_ext >&5
32348
32349ac_cv_lib_iodbc_SQLAllocEnv=no
32350fi
ac1cb8d3
VS
32351rm -f conftest.err conftest.$ac_objext \
32352 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32353LIBS=$ac_check_lib_save_LIBS
32354fi
32355echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
32356echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
32357if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
32358 ODBC_LINK=" -liodbc"
32359else
32360
32361 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
32362echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
32363if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
32364 echo $ECHO_N "(cached) $ECHO_C" >&6
32365else
32366 ac_check_lib_save_LIBS=$LIBS
32367LIBS="-lunixodbc $LIBS"
32368cat >conftest.$ac_ext <<_ACEOF
32369/* confdefs.h. */
32370_ACEOF
32371cat confdefs.h >>conftest.$ac_ext
32372cat >>conftest.$ac_ext <<_ACEOF
32373/* end confdefs.h. */
32374
32375/* Override any gcc2 internal prototype to avoid an error. */
32376#ifdef __cplusplus
32377extern "C"
32378#endif
32379/* We use char because int might match the return type of a gcc2
32380 builtin and then its argument prototype would still apply. */
32381char SQLAllocEnv ();
32382int
32383main ()
32384{
32385SQLAllocEnv ();
32386 ;
32387 return 0;
32388}
32389_ACEOF
32390rm -f conftest.$ac_objext conftest$ac_exeext
32391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32392 (eval $ac_link) 2>conftest.er1
a848cd7e 32393 ac_status=$?
ac1cb8d3
VS
32394 grep -v '^ *+' conftest.er1 >conftest.err
32395 rm -f conftest.er1
32396 cat conftest.err >&5
a848cd7e
SC
32397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32398 (exit $ac_status); } &&
ca5c6ac3 32399 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32401 (eval $ac_try) 2>&5
32402 ac_status=$?
32403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32404 (exit $ac_status); }; } &&
32405 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32407 (eval $ac_try) 2>&5
32408 ac_status=$?
32409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410 (exit $ac_status); }; }; then
32411 ac_cv_lib_unixodbc_SQLAllocEnv=yes
32412else
32413 echo "$as_me: failed program was:" >&5
32414sed 's/^/| /' conftest.$ac_ext >&5
32415
32416ac_cv_lib_unixodbc_SQLAllocEnv=no
32417fi
ac1cb8d3
VS
32418rm -f conftest.err conftest.$ac_objext \
32419 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32420LIBS=$ac_check_lib_save_LIBS
32421fi
32422echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
32423echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
32424if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
32425 ODBC_LINK=" -lunixodbc"
32426else
32427
32428 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
32429echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
32430if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
32431 echo $ECHO_N "(cached) $ECHO_C" >&6
32432else
32433 ac_check_lib_save_LIBS=$LIBS
32434LIBS="-lodbc $LIBS"
32435cat >conftest.$ac_ext <<_ACEOF
32436/* confdefs.h. */
32437_ACEOF
32438cat confdefs.h >>conftest.$ac_ext
32439cat >>conftest.$ac_ext <<_ACEOF
32440/* end confdefs.h. */
32441
32442/* Override any gcc2 internal prototype to avoid an error. */
32443#ifdef __cplusplus
32444extern "C"
32445#endif
32446/* We use char because int might match the return type of a gcc2
32447 builtin and then its argument prototype would still apply. */
32448char SQLAllocEnv ();
32449int
32450main ()
32451{
32452SQLAllocEnv ();
32453 ;
32454 return 0;
32455}
32456_ACEOF
32457rm -f conftest.$ac_objext conftest$ac_exeext
32458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32459 (eval $ac_link) 2>conftest.er1
a848cd7e 32460 ac_status=$?
ac1cb8d3
VS
32461 grep -v '^ *+' conftest.er1 >conftest.err
32462 rm -f conftest.er1
32463 cat conftest.err >&5
a848cd7e
SC
32464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465 (exit $ac_status); } &&
ca5c6ac3 32466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32468 (eval $ac_try) 2>&5
32469 ac_status=$?
32470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32471 (exit $ac_status); }; } &&
32472 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32474 (eval $ac_try) 2>&5
32475 ac_status=$?
32476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32477 (exit $ac_status); }; }; then
32478 ac_cv_lib_odbc_SQLAllocEnv=yes
32479else
32480 echo "$as_me: failed program was:" >&5
32481sed 's/^/| /' conftest.$ac_ext >&5
32482
32483ac_cv_lib_odbc_SQLAllocEnv=no
32484fi
ac1cb8d3
VS
32485rm -f conftest.err conftest.$ac_objext \
32486 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32487LIBS=$ac_check_lib_save_LIBS
32488fi
32489echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
32490echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
32491if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
32492 ODBC_LINK=" -lodbc"
32493fi
32494
32495
32496fi
32497
32498
32499fi
32500
32501 fi
32502 if test "x$ODBC_LINK" = "x" ; then
32503 if test "$wxUSE_ODBC" = "sys" ; then
32504 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
32505echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
32506 { (exit 1); exit 1; }; }
32507 else
32508 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
32509echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
32510 wxUSE_ODBC=builtin
32511 fi
32512 else
32513 wxUSE_ODBC=sys
32514 fi
32515 fi
a848cd7e 32516
2da0c077
RD
32517 if test "$wxUSE_ODBC" = "builtin" ; then
32518 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
32519#define wxUSE_BUILTIN_IODBC 1
32520_ACEOF
32521
a848cd7e
SC
32522 fi
32523fi
32524
2da0c077
RD
32525if test "$wxUSE_ODBC" != "no" ; then
32526 cat >>confdefs.h <<\_ACEOF
32527#define wxUSE_ODBC 1
32528_ACEOF
32529
32530 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32531
5ff751d6 32532 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 32533fi
a848cd7e 32534
01cb68df 32535
a848cd7e 32536if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 32537 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
32538 echo "$as_me:$LINENO: checking for Xinerama" >&5
32539echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32540
0ad5d837
VZ
32541 ac_find_libraries=
32542 for ac_dir in $SEARCH_LIB;
32543 do
32544 for ac_extension in a so sl dylib dll.a; do
32545 if test -f "$ac_dir/libXinerama.$ac_extension"; then
32546 ac_find_libraries=$ac_dir
32547 break 2
32548 fi
32549 done
32550 done
32551
a848cd7e
SC
32552 if test "$ac_find_libraries" != "" ; then
32553
0ad5d837 32554 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32555 ac_path_to_link=""
32556 else
0ad5d837
VZ
32557 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32558 result=$?
32559 if test $result = 0; then
32560 ac_path_to_link=""
32561 else
32562 ac_path_to_link=" -L$ac_find_libraries"
32563 fi
a848cd7e
SC
32564 fi
32565
32566 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32567 LDFLAGS="$LDFLAGS $ac_path_to_link"
32568 fi
32569 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32570 echo "$as_me:$LINENO: result: yes" >&5
32571echo "${ECHO_T}yes" >&6
32572
32573 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32574echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32575
0ad5d837
VZ
32576 ac_find_libraries=
32577 for ac_dir in $SEARCH_LIB;
a848cd7e 32578 do
3eca31dc 32579 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32580 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32581 ac_find_libraries=$ac_dir
32582 break 2
32583 fi
32584 done
32585 done
32586
32587 if test "$ac_find_libraries" != "" ; then
32588 echo "$as_me:$LINENO: result: yes" >&5
32589echo "${ECHO_T}yes" >&6
32590
32591for ac_header in X11/extensions/xf86vmode.h
32592do
32593as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32594echo "$as_me:$LINENO: checking for $ac_header" >&5
32595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32596if eval "test \"\${$as_ac_Header+set}\" = set"; then
32597 echo $ECHO_N "(cached) $ECHO_C" >&6
32598else
32599 cat >conftest.$ac_ext <<_ACEOF
32600/* confdefs.h. */
32601_ACEOF
32602cat confdefs.h >>conftest.$ac_ext
32603cat >>conftest.$ac_ext <<_ACEOF
32604/* end confdefs.h. */
32605
32606 #if HAVE_X11_XLIB_H
32607 #include <X11/Xlib.h>
32608 #endif
32609
32610
32611#include <$ac_header>
32612_ACEOF
32613rm -f conftest.$ac_objext
32614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32615 (eval $ac_compile) 2>conftest.er1
a848cd7e 32616 ac_status=$?
ac1cb8d3
VS
32617 grep -v '^ *+' conftest.er1 >conftest.err
32618 rm -f conftest.er1
32619 cat conftest.err >&5
a848cd7e
SC
32620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621 (exit $ac_status); } &&
ca5c6ac3 32622 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32624 (eval $ac_try) 2>&5
32625 ac_status=$?
32626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32627 (exit $ac_status); }; } &&
32628 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32630 (eval $ac_try) 2>&5
32631 ac_status=$?
32632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32633 (exit $ac_status); }; }; then
32634 eval "$as_ac_Header=yes"
32635else
32636 echo "$as_me: failed program was:" >&5
32637sed 's/^/| /' conftest.$ac_ext >&5
32638
32639eval "$as_ac_Header=no"
32640fi
ac1cb8d3 32641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32642fi
32643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32644echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32645if test `eval echo '${'$as_ac_Header'}'` = yes; then
32646 cat >>confdefs.h <<_ACEOF
32647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32648_ACEOF
32649
32650 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32651
32652fi
32653
32654done
32655
32656 else
32657 echo "$as_me:$LINENO: result: no" >&5
32658echo "${ECHO_T}no" >&6
32659 fi
32660
32661 else
32662 echo "$as_me:$LINENO: result: no" >&5
32663echo "${ECHO_T}no" >&6
dcc1b6ad
VS
32664 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32665echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
32666 wxUSE_DISPLAY="no"
32667 fi
01cb68df
RG
32668 elif test "$wxUSE_MSW" = 1; then
32669
e5efa97e 32670for ac_header in ddraw.h
01cb68df
RG
32671do
32672as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 32673echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
32674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32675if eval "test \"\${$as_ac_Header+set}\" = set"; then
32676 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 32677else
5294a27e 32678 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
32679/* confdefs.h. */
32680_ACEOF
32681cat confdefs.h >>conftest.$ac_ext
32682cat >>conftest.$ac_ext <<_ACEOF
32683/* end confdefs.h. */
5294a27e
VZ
32684#include <windows.h>
32685
01cb68df
RG
32686#include <$ac_header>
32687_ACEOF
32688rm -f conftest.$ac_objext
32689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32690 (eval $ac_compile) 2>conftest.er1
01cb68df 32691 ac_status=$?
ac1cb8d3
VS
32692 grep -v '^ *+' conftest.er1 >conftest.err
32693 rm -f conftest.er1
32694 cat conftest.err >&5
01cb68df
RG
32695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32696 (exit $ac_status); } &&
ca5c6ac3 32697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32699 (eval $ac_try) 2>&5
32700 ac_status=$?
32701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32702 (exit $ac_status); }; } &&
32703 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
32704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32705 (eval $ac_try) 2>&5
32706 ac_status=$?
32707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32708 (exit $ac_status); }; }; then
5294a27e 32709 eval "$as_ac_Header=yes"
01cb68df
RG
32710else
32711 echo "$as_me: failed program was:" >&5
32712sed 's/^/| /' conftest.$ac_ext >&5
32713
5294a27e 32714eval "$as_ac_Header=no"
01cb68df 32715fi
ac1cb8d3 32716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
32717fi
32718echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32719echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
32720if test `eval echo '${'$as_ac_Header'}'` = yes; then
32721 cat >>confdefs.h <<_ACEOF
32722#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32723_ACEOF
32724
01cb68df
RG
32725fi
32726
32727done
32728
a848cd7e
SC
32729 fi
32730fi
32731
32732
32733USE_OPENGL=0
32734if test "$wxUSE_OPENGL" = "yes"; then
32735 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
32736 OPENGL_LIBS="-framework OpenGL -framework AGL"
32737 elif test "$wxUSE_MSW" = 1; then
32738 OPENGL_LIBS="-lopengl32 -lglu32"
32739 else
32740
32741
32742ac_find_includes=
32743for ac_dir in $SEARCH_INCLUDE /usr/include;
32744 do
32745 if test -f "$ac_dir/GL/gl.h"; then
32746 ac_find_includes=$ac_dir
32747 break
32748 fi
32749 done
32750
32751 if test "$ac_find_includes" != "" ; then
32752 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32753echo "${ECHO_T}found in $ac_find_includes" >&6
32754
32755 if test "x$ac_find_includes" = "x/usr/include"; then
32756 ac_path_to_include=""
32757 else
32758 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32759 result=$?
32760 if test $result = 0; then
32761 ac_path_to_include=""
32762 else
32763 ac_path_to_include=" -I$ac_find_includes"
32764 fi
32765 fi
32766
c92ad099 32767 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
32768 fi
32769
32770 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32771 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32772echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32773if test "${ac_cv_header_GL_gl_h+set}" = set; then
32774 echo $ECHO_N "(cached) $ECHO_C" >&6
32775fi
32776echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32777echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32778else
32779 # Is the header compilable?
32780echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
32781echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
32782cat >conftest.$ac_ext <<_ACEOF
32783/* confdefs.h. */
32784_ACEOF
32785cat confdefs.h >>conftest.$ac_ext
32786cat >>conftest.$ac_ext <<_ACEOF
32787/* end confdefs.h. */
32788$ac_includes_default
32789#include <GL/gl.h>
32790_ACEOF
32791rm -f conftest.$ac_objext
32792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32793 (eval $ac_compile) 2>conftest.er1
a848cd7e 32794 ac_status=$?
ac1cb8d3
VS
32795 grep -v '^ *+' conftest.er1 >conftest.err
32796 rm -f conftest.er1
32797 cat conftest.err >&5
a848cd7e
SC
32798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32799 (exit $ac_status); } &&
ca5c6ac3 32800 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32802 (eval $ac_try) 2>&5
32803 ac_status=$?
32804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32805 (exit $ac_status); }; } &&
32806 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32808 (eval $ac_try) 2>&5
32809 ac_status=$?
32810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32811 (exit $ac_status); }; }; then
32812 ac_header_compiler=yes
32813else
32814 echo "$as_me: failed program was:" >&5
32815sed 's/^/| /' conftest.$ac_ext >&5
32816
32817ac_header_compiler=no
32818fi
ac1cb8d3 32819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32820echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32821echo "${ECHO_T}$ac_header_compiler" >&6
32822
32823# Is the header present?
32824echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32825echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32826cat >conftest.$ac_ext <<_ACEOF
32827/* confdefs.h. */
32828_ACEOF
32829cat confdefs.h >>conftest.$ac_ext
32830cat >>conftest.$ac_ext <<_ACEOF
32831/* end confdefs.h. */
32832#include <GL/gl.h>
32833_ACEOF
32834if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32836 ac_status=$?
32837 grep -v '^ *+' conftest.er1 >conftest.err
32838 rm -f conftest.er1
32839 cat conftest.err >&5
32840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841 (exit $ac_status); } >/dev/null; then
32842 if test -s conftest.err; then
5d7b7554
VZ
32843 ac_cpp_err=$ac_cxx_preproc_warn_flag
32844 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32845 else
32846 ac_cpp_err=
32847 fi
32848else
32849 ac_cpp_err=yes
32850fi
32851if test -z "$ac_cpp_err"; then
32852 ac_header_preproc=yes
32853else
32854 echo "$as_me: failed program was:" >&5
32855sed 's/^/| /' conftest.$ac_ext >&5
32856
32857 ac_header_preproc=no
32858fi
32859rm -f conftest.err conftest.$ac_ext
32860echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32861echo "${ECHO_T}$ac_header_preproc" >&6
32862
32863# So? What about this header?
5d7b7554 32864case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32865 yes:no: )
a848cd7e
SC
32866 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32867echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32868 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
32869echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
32870 ac_header_preproc=yes
a848cd7e 32871 ;;
ac1cb8d3 32872 no:yes:* )
a848cd7e
SC
32873 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
32874echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32875 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
32876echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
32877 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
32878echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
32879 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
32880echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32881 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
32882echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32883 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
32884echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32885 (
32886 cat <<\_ASBOX
ac1cb8d3
VS
32887## ----------------------------------------- ##
32888## Report this to wx-dev@lists.wxwidgets.org ##
32889## ----------------------------------------- ##
a848cd7e
SC
32890_ASBOX
32891 ) |
32892 sed "s/^/$as_me: WARNING: /" >&2
32893 ;;
32894esac
32895echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32896echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32897if test "${ac_cv_header_GL_gl_h+set}" = set; then
32898 echo $ECHO_N "(cached) $ECHO_C" >&6
32899else
32900 ac_cv_header_GL_gl_h=$ac_header_preproc
32901fi
32902echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32903echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32904
32905fi
32906if test $ac_cv_header_GL_gl_h = yes; then
32907
32908 found_gl=0
32909
32910 echo "$as_me:$LINENO: checking for -lGL" >&5
32911echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
32912
0ad5d837
VZ
32913 ac_find_libraries=
32914 for ac_dir in $SEARCH_LIB;
a848cd7e 32915 do
3eca31dc 32916 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32917 if test -f "$ac_dir/libGL.$ac_extension"; then
32918 ac_find_libraries=$ac_dir
32919 break 2
32920 fi
32921 done
32922 done
32923
32924 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
32925 echo "$as_me:$LINENO: result: yes" >&5
32926echo "${ECHO_T}yes" >&6
32927
a848cd7e 32928
0ad5d837 32929 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32930 ac_path_to_link=""
32931 else
0ad5d837
VZ
32932 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32933 result=$?
32934 if test $result = 0; then
32935 ac_path_to_link=""
32936 else
32937 ac_path_to_link=" -L$ac_find_libraries"
32938 fi
a848cd7e
SC
32939 fi
32940
32941 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32942 LDFLAGS_GL="$ac_path_to_link"
32943 fi
32944
69120ee4
VZ
32945 echo "$as_me:$LINENO: checking for -lGLU" >&5
32946echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 32947
0ad5d837
VZ
32948 ac_find_libraries=
32949 for ac_dir in $SEARCH_LIB;
32950 do
32951 for ac_extension in a so sl dylib dll.a; do
32952 if test -f "$ac_dir/libGLU.$ac_extension"; then
32953 ac_find_libraries=$ac_dir
32954 break 2
32955 fi
32956 done
32957 done
32958
a848cd7e
SC
32959 if test "$ac_find_libraries" != "" ; then
32960
0ad5d837 32961 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32962 ac_path_to_link=""
32963 else
0ad5d837
VZ
32964 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32965 result=$?
32966 if test $result = 0; then
32967 ac_path_to_link=""
32968 else
32969 ac_path_to_link=" -L$ac_find_libraries"
32970 fi
a848cd7e
SC
32971 fi
32972
32973 if test "$ac_path_to_link" != " -L/usr/lib" -a \
32974 "$ac_path_to_link" != "$LDFLAGS_GL"; then
32975 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
32976 fi
32977
32978 found_gl=1
32979 OPENGL_LIBS="-lGL -lGLU"
32980 echo "$as_me:$LINENO: result: yes" >&5
32981echo "${ECHO_T}yes" >&6
69120ee4
VZ
32982 else
32983 echo "$as_me:$LINENO: result: no" >&5
32984echo "${ECHO_T}no" >&6
a848cd7e 32985 fi
69120ee4
VZ
32986 else
32987 echo "$as_me:$LINENO: result: no" >&5
32988echo "${ECHO_T}no" >&6
a848cd7e
SC
32989 fi
32990
32991 if test "$found_gl" != 1; then
a848cd7e
SC
32992 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
32993echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
32994
0ad5d837
VZ
32995 ac_find_libraries=
32996 for ac_dir in $SEARCH_LIB;
a848cd7e 32997 do
3eca31dc 32998 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32999 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33000 ac_find_libraries=$ac_dir
33001 break 2
33002 fi
33003 done
33004 done
33005
33006 if test "$ac_find_libraries" != "" ; then
33007
0ad5d837 33008 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33009 ac_path_to_link=""
33010 else
0ad5d837
VZ
33011 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33012 result=$?
33013 if test $result = 0; then
33014 ac_path_to_link=""
33015 else
33016 ac_path_to_link=" -L$ac_find_libraries"
33017 fi
a848cd7e
SC
33018 fi
33019
33020 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33021 OPENGL_LIBS="-lMesaGL -lMesaGLU"
33022 echo "$as_me:$LINENO: result: yes" >&5
33023echo "${ECHO_T}yes" >&6
33024 else
33025 echo "$as_me:$LINENO: result: no" >&5
33026echo "${ECHO_T}no" >&6
33027 fi
33028 fi
33029
33030fi
33031
33032
33033
33034 if test "x$OPENGL_LIBS" = "x"; then
33035 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33036echo "$as_me: error: OpenGL libraries not available" >&2;}
33037 { (exit 1); exit 1; }; }
33038 fi
33039 fi
33040
33041 if test "$wxUSE_OPENGL" = "yes"; then
33042 USE_OPENGL=1
33043 cat >>confdefs.h <<\_ACEOF
33044#define wxUSE_OPENGL 1
33045_ACEOF
33046
33047 cat >>confdefs.h <<\_ACEOF
33048#define wxUSE_GLCANVAS 1
33049_ACEOF
33050
33051 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33052 fi
33053fi
33054
a848cd7e
SC
33055
33056if test -n "$TOOLKIT" ; then
33057 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33058fi
33059
a848cd7e
SC
33060
33061
33062if test "$wxUSE_SHARED" = "yes"; then
33063 case "${host}" in
33064 *-pc-msdosdjgpp )
33065 wxUSE_SHARED=no
33066 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33067echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33068 ;;
33069 esac
33070fi
33071
a848cd7e 33072if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
33073
33074
33075 found_versioning=no
33076
33077
33078 if test $found_versioning = no ; then
33079 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33080echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
33081if test "${wx_cv_version_script+set}" = set; then
33082 echo $ECHO_N "(cached) $ECHO_C" >&6
33083else
33084
33085 echo "VER_1 { *; };" >conftest.sym
33086 echo "int main() { return 0; }" >conftest.cpp
33087
33088 if { ac_try='
33089 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33090 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33092 (eval $ac_try) 2>&5
33093 ac_status=$?
33094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33095 (exit $ac_status); }; } ; then
33096 if test -s conftest.stderr ; then
33097 wx_cv_version_script=no
33098 else
33099 wx_cv_version_script=yes
33100 fi
33101 else
33102 wx_cv_version_script=no
33103 fi
e5d4b470
MW
33104
33105 if test $wx_cv_version_script = yes
33106 then
33107 echo "struct B { virtual ~B() { } }; \
33108 struct D : public B { }; \
33109 void F() { D d; }" > conftest.cpp
33110
33111 if { ac_try='
33112 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33113 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33115 (eval $ac_try) 2>&5
33116 ac_status=$?
33117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118 (exit $ac_status); }; } &&
33119 { ac_try='
33120 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33121 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33123 (eval $ac_try) 2>&5
33124 ac_status=$?
33125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33126 (exit $ac_status); }; }
33127 then
33128 if { ac_try='
33129 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33130 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33132 (eval $ac_try) 2>&5
33133 ac_status=$?
33134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33135 (exit $ac_status); }; }
33136 then
33137 wx_cv_version_script=yes
33138 else
33139 wx_cv_version_script=no
33140 fi
33141 fi
33142 fi
33143
a848cd7e 33144 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 33145 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
33146
33147fi
33148echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33149echo "${ECHO_T}$wx_cv_version_script" >&6
33150 if test $wx_cv_version_script = yes ; then
33151 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
33152 fi
33153 fi
33154
33155
33156 case "${host}" in
33157 *-*-linux* | *-*-gnu* )
33158 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33159 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 33160 ;;
a848cd7e
SC
33161
33162 *-*-solaris2* )
33163 if test "$GCC" = yes ; then
c92ad099 33164 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
33165
33166 saveLdflags="$LDFLAGS"
33167 LDFLAGS="$saveLdflags -Wl,-rpath,/"
33168 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33169echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
33170 cat >conftest.$ac_ext <<_ACEOF
33171/* confdefs.h. */
33172_ACEOF
33173cat confdefs.h >>conftest.$ac_ext
33174cat >>conftest.$ac_ext <<_ACEOF
33175/* end confdefs.h. */
33176
33177int
33178main ()
33179{
33180
33181 ;
33182 return 0;
33183}
33184_ACEOF
33185rm -f conftest.$ac_objext conftest$ac_exeext
33186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33187 (eval $ac_link) 2>conftest.er1
a848cd7e 33188 ac_status=$?
ac1cb8d3
VS
33189 grep -v '^ *+' conftest.er1 >conftest.err
33190 rm -f conftest.er1
33191 cat conftest.err >&5
a848cd7e
SC
33192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33193 (exit $ac_status); } &&
ca5c6ac3 33194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33196 (eval $ac_try) 2>&5
33197 ac_status=$?
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); }; } &&
33200 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33202 (eval $ac_try) 2>&5
33203 ac_status=$?
33204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33205 (exit $ac_status); }; }; then
33206
33207 echo "$as_me:$LINENO: result: yes" >&5
33208echo "${ECHO_T}yes" >&6
33209 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33210 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
33211
33212else
33213 echo "$as_me: failed program was:" >&5
33214sed 's/^/| /' conftest.$ac_ext >&5
33215
33216
33217 echo "$as_me:$LINENO: result: no" >&5
33218echo "${ECHO_T}no" >&6
33219 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33220echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
33221 LDFLAGS="$saveLdflags -Wl,-R,/"
33222 cat >conftest.$ac_ext <<_ACEOF
33223/* confdefs.h. */
33224_ACEOF
33225cat confdefs.h >>conftest.$ac_ext
33226cat >>conftest.$ac_ext <<_ACEOF
33227/* end confdefs.h. */
33228
33229int
33230main ()
33231{
33232
33233 ;
33234 return 0;
33235}
33236_ACEOF
33237rm -f conftest.$ac_objext conftest$ac_exeext
33238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33239 (eval $ac_link) 2>conftest.er1
a848cd7e 33240 ac_status=$?
ac1cb8d3
VS
33241 grep -v '^ *+' conftest.er1 >conftest.err
33242 rm -f conftest.er1
33243 cat conftest.err >&5
a848cd7e
SC
33244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33245 (exit $ac_status); } &&
ca5c6ac3 33246 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33248 (eval $ac_try) 2>&5
33249 ac_status=$?
33250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33251 (exit $ac_status); }; } &&
33252 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33254 (eval $ac_try) 2>&5
33255 ac_status=$?
33256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33257 (exit $ac_status); }; }; then
33258
ffa0583f 33259 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 33260echo "${ECHO_T}yes" >&6
ffa0583f
RL
33261 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
33262 WXCONFIG_RPATH="-Wl,-R,\$libdir"
33263
a848cd7e
SC
33264else
33265 echo "$as_me: failed program was:" >&5
33266sed 's/^/| /' conftest.$ac_ext >&5
33267
33268
33269 echo "$as_me:$LINENO: result: no" >&5
33270echo "${ECHO_T}no" >&6
33271
33272fi
ac1cb8d3
VS
33273rm -f conftest.err conftest.$ac_objext \
33274 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33275
33276fi
ac1cb8d3
VS
33277rm -f conftest.err conftest.$ac_objext \
33278 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33279 LDFLAGS="$saveLdflags"
33280 else
a848cd7e 33281 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 33282 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
33283 fi
33284 ;;
33285
cfda0ea8 33286 *-*-darwin* )
0caebc27
MW
33287 install_name_tool=`which install_name_tool`
33288 if test "$install_name_tool" -a -x "$install_name_tool"; then
33289 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33290 cat <<EOF >change-install-names
a848cd7e
SC
33291#!/bin/sh
33292libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33293inst_cmd="install_name_tool "
33294for i in \${libnames} ; do
33295 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33296done
33297\${inst_cmd} \${3}
33298EOF
0caebc27
MW
33299 chmod +x change-install-names
33300 fi
a848cd7e
SC
33301 ;;
33302
33303 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
33304 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33305 ;;
a848cd7e 33306
81f90336
MW
33307 *-*-hpux* )
33308 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
33309 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 33310 ;;
81f90336 33311
a848cd7e 33312 esac
ceec2216 33313
ffa0583f
RL
33314 if test $wxUSE_RPATH = "no"; then
33315 SAMPLES_RPATH_FLAG=''
33316 SAMPLES_RPATH_POSTLINK=''
33317 WXCONFIG_RPATH=''
33318 fi
33319
33320 SHARED=1
33321
33322else
33323
ceec2216
RL
33324 config_linkage_component="-static"
33325 SHARED=0
ffa0583f 33326
ceec2216 33327fi
a848cd7e 33328
a848cd7e 33329
ceec2216
RL
33330UNICODE=0
33331lib_unicode_suffix=
33332WX_CHARTYPE="ansi"
33333if test "$wxUSE_UNICODE" = "yes"; then
33334 lib_unicode_suffix=u
33335 WX_CHARTYPE="unicode"
33336 UNICODE=1
a848cd7e
SC
33337fi
33338
ceec2216
RL
33339lib_debug_suffix=
33340WX_DEBUGTYPE="release"
33341DEBUG_FLAG=0
33342if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33343 lib_debug_suffix=d
33344 WX_DEBUGTYPE="debug"
33345 DEBUG_FLAG=1
33346fi
a848cd7e 33347
ceec2216
RL
33348WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33349WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 33350
ceec2216
RL
33351DEBUG_INFO=0
33352if test "$wxUSE_DEBUG_INFO" = "yes"; then
33353 DEBUG_INFO=1
33354fi
a848cd7e 33355
ceec2216 33356WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 33357
ceec2216 33358TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 33359
ceec2216 33360TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 33361
ceec2216
RL
33362if test "$cross_compiling" = "yes"; then
33363 HOST_SUFFIX="-$host_alias"
33364 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33365 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
33366fi
33367
dd21ced8 33368WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
33369if test "${TOOLKIT_DIR}" = "os2"; then
33370 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33371else
33372 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33373fi
ceec2216
RL
33374
33375
33376
1d1af5ea
DE
33377if test "$wxUSE_COCOA" = 1; then
33378
33379
33380 ac_ext=c
33381ac_cpp='$CPP $CPPFLAGS'
33382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33384ac_compiler_gnu=$ac_cv_c_compiler_gnu
33385
33386ac_ext=m
33387
33388 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33389echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
33390 cat >conftest.$ac_ext <<_ACEOF
33391/* confdefs.h. */
33392_ACEOF
33393cat confdefs.h >>conftest.$ac_ext
33394cat >>conftest.$ac_ext <<_ACEOF
33395/* end confdefs.h. */
33396#include <AppKit/NSEvent.h>
33397#include <CoreFoundation/CoreFoundation.h>
33398
33399int
33400main ()
33401{
33402
33403 ;
33404 return 0;
33405}
33406_ACEOF
33407rm -f conftest.$ac_objext
33408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33409 (eval $ac_compile) 2>conftest.er1
33410 ac_status=$?
33411 grep -v '^ *+' conftest.er1 >conftest.err
33412 rm -f conftest.er1
33413 cat conftest.err >&5
33414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415 (exit $ac_status); } &&
ca5c6ac3 33416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
33417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33418 (eval $ac_try) 2>&5
33419 ac_status=$?
33420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33421 (exit $ac_status); }; } &&
33422 { ac_try='test -s conftest.$ac_objext'
33423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33424 (eval $ac_try) 2>&5
33425 ac_status=$?
33426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33427 (exit $ac_status); }; }; then
33428 echo "$as_me:$LINENO: result: no" >&5
33429echo "${ECHO_T}no" >&6
33430else
33431 echo "$as_me: failed program was:" >&5
33432sed 's/^/| /' conftest.$ac_ext >&5
33433
33434echo "$as_me:$LINENO: result: yes" >&5
33435echo "${ECHO_T}yes" >&6
33436 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
33437echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
33438 cat >conftest.$ac_ext <<_ACEOF
33439/* confdefs.h. */
33440_ACEOF
33441cat confdefs.h >>conftest.$ac_ext
33442cat >>conftest.$ac_ext <<_ACEOF
33443/* end confdefs.h. */
33444#define __Point__ 1
33445#include <AppKit/NSEvent.h>
33446#include <CoreFoundation/CoreFoundation.h>
33447
33448int
33449main ()
33450{
33451
33452 ;
33453 return 0;
33454}
33455_ACEOF
33456rm -f conftest.$ac_objext
33457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33458 (eval $ac_compile) 2>conftest.er1
33459 ac_status=$?
33460 grep -v '^ *+' conftest.er1 >conftest.err
33461 rm -f conftest.er1
33462 cat conftest.err >&5
33463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33464 (exit $ac_status); } &&
ca5c6ac3 33465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
33466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33467 (eval $ac_try) 2>&5
33468 ac_status=$?
33469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470 (exit $ac_status); }; } &&
33471 { ac_try='test -s conftest.$ac_objext'
33472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33473 (eval $ac_try) 2>&5
33474 ac_status=$?
33475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33476 (exit $ac_status); }; }; then
33477 echo "$as_me:$LINENO: result: yes" >&5
33478echo "${ECHO_T}yes" >&6
33479 cat >>confdefs.h <<\_ACEOF
33480#define __Point__ 1
33481_ACEOF
33482
33483
33484else
33485 echo "$as_me: failed program was:" >&5
33486sed 's/^/| /' conftest.$ac_ext >&5
33487
33488{ { echo "$as_me:$LINENO: error: no
33489See \`config.log' for more details." >&5
33490echo "$as_me: error: no
33491See \`config.log' for more details." >&2;}
33492 { (exit 1); exit 1; }; }
33493
33494fi
33495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33496
33497fi
33498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
33499 ac_ext=cc
33500ac_cpp='$CXXCPP $CPPFLAGS'
33501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
33504
33505fi
33506
a848cd7e 33507if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
33508 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
33509 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 33510
a848cd7e 33511 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
33512
33513 # Extract the first word of "Rez", so it can be a program name with args.
33514set dummy Rez; ac_word=$2
33515echo "$as_me:$LINENO: checking for $ac_word" >&5
33516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 33517if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
33518 echo $ECHO_N "(cached) $ECHO_C" >&6
33519else
8ced02f6
DE
33520 if test -n "$REZ"; then
33521 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
33522else
33523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33524for as_dir in $PATH
33525do
33526 IFS=$as_save_IFS
33527 test -z "$as_dir" && as_dir=.
33528 for ac_exec_ext in '' $ac_executable_extensions; do
33529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 33530 ac_cv_prog_REZ="Rez"
a848cd7e
SC
33531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33532 break 2
33533 fi
33534done
33535done
33536
8ced02f6 33537 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
33538fi
33539fi
8ced02f6
DE
33540REZ=$ac_cv_prog_REZ
33541if test -n "$REZ"; then
33542 echo "$as_me:$LINENO: result: $REZ" >&5
33543echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
33544else
33545 echo "$as_me:$LINENO: result: no" >&5
33546echo "${ECHO_T}no" >&6
33547fi
33548
33549 # Extract the first word of "DeRez", so it can be a program name with args.
33550set dummy DeRez; ac_word=$2
33551echo "$as_me:$LINENO: checking for $ac_word" >&5
33552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33553if test "${ac_cv_prog_DEREZ+set}" = set; then
33554 echo $ECHO_N "(cached) $ECHO_C" >&6
33555else
33556 if test -n "$DEREZ"; then
33557 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33558else
33559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33560for as_dir in $PATH
33561do
33562 IFS=$as_save_IFS
33563 test -z "$as_dir" && as_dir=.
33564 for ac_exec_ext in '' $ac_executable_extensions; do
33565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33566 ac_cv_prog_DEREZ="DeRez"
33567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33568 break 2
33569 fi
33570done
33571done
33572
33573 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33574fi
33575fi
33576DEREZ=$ac_cv_prog_DEREZ
33577if test -n "$DEREZ"; then
33578 echo "$as_me:$LINENO: result: $DEREZ" >&5
33579echo "${ECHO_T}$DEREZ" >&6
33580else
33581 echo "$as_me:$LINENO: result: no" >&5
33582echo "${ECHO_T}no" >&6
33583fi
33584
33585 # Extract the first word of "SetFile", so it can be a program name with args.
33586set dummy SetFile; ac_word=$2
33587echo "$as_me:$LINENO: checking for $ac_word" >&5
33588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33589if test "${ac_cv_prog_SETFILE+set}" = set; then
33590 echo $ECHO_N "(cached) $ECHO_C" >&6
33591else
33592 if test -n "$SETFILE"; then
33593 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33594else
33595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33596for as_dir in $PATH
33597do
33598 IFS=$as_save_IFS
33599 test -z "$as_dir" && as_dir=.
33600 for ac_exec_ext in '' $ac_executable_extensions; do
33601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33602 ac_cv_prog_SETFILE="SetFile"
33603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33604 break 2
33605 fi
33606done
33607done
33608
33609 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33610fi
33611fi
33612SETFILE=$ac_cv_prog_SETFILE
33613if test -n "$SETFILE"; then
33614 echo "$as_me:$LINENO: result: $SETFILE" >&5
33615echo "${ECHO_T}$SETFILE" >&6
33616else
33617 echo "$as_me:$LINENO: result: no" >&5
33618echo "${ECHO_T}no" >&6
33619fi
33620
33621
33622 MACSETFILE="\$(SETFILE)"
33623
33624 if test "$wxUSE_MAC" = 1; then
8ced02f6 33625 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
33626 RESCOMP="$REZ"
33627 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 33628 else
004ee6da
RL
33629 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33630 RESCOMP="echo -n \| $REZ"
33631 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 33632 fi
004ee6da 33633
a848cd7e 33634else
ffa0583f 33635 MACSETFILE="@true"
a848cd7e 33636
8ced02f6 33637 if test "$wxUSE_PM" = 1; then
004ee6da
RL
33638 RESCOMP="emxbind"
33639 WXCONFIG_RESFLAGS="-ep"
33640
33641 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 33642 else
8ced02f6 33643 POSTLINK_COMMAND="@true"
a848cd7e 33644 fi
004ee6da 33645
a848cd7e
SC
33646fi
33647
33648
33649
33650echo "$as_me:$LINENO: checking for mode_t" >&5
33651echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33652if test "${ac_cv_type_mode_t+set}" = set; then
33653 echo $ECHO_N "(cached) $ECHO_C" >&6
33654else
33655 cat >conftest.$ac_ext <<_ACEOF
33656/* confdefs.h. */
33657_ACEOF
33658cat confdefs.h >>conftest.$ac_ext
33659cat >>conftest.$ac_ext <<_ACEOF
33660/* end confdefs.h. */
33661$ac_includes_default
33662int
33663main ()
33664{
33665if ((mode_t *) 0)
33666 return 0;
33667if (sizeof (mode_t))
33668 return 0;
33669 ;
33670 return 0;
33671}
33672_ACEOF
33673rm -f conftest.$ac_objext
33674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33675 (eval $ac_compile) 2>conftest.er1
a848cd7e 33676 ac_status=$?
ac1cb8d3
VS
33677 grep -v '^ *+' conftest.er1 >conftest.err
33678 rm -f conftest.er1
33679 cat conftest.err >&5
a848cd7e
SC
33680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33681 (exit $ac_status); } &&
ca5c6ac3 33682 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33684 (eval $ac_try) 2>&5
33685 ac_status=$?
33686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687 (exit $ac_status); }; } &&
33688 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33690 (eval $ac_try) 2>&5
33691 ac_status=$?
33692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33693 (exit $ac_status); }; }; then
33694 ac_cv_type_mode_t=yes
33695else
33696 echo "$as_me: failed program was:" >&5
33697sed 's/^/| /' conftest.$ac_ext >&5
33698
33699ac_cv_type_mode_t=no
33700fi
ac1cb8d3 33701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33702fi
33703echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33704echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33705if test $ac_cv_type_mode_t = yes; then
33706 :
33707else
33708
33709cat >>confdefs.h <<_ACEOF
33710#define mode_t int
33711_ACEOF
33712
33713fi
33714
33715echo "$as_me:$LINENO: checking for off_t" >&5
33716echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33717if test "${ac_cv_type_off_t+set}" = set; then
33718 echo $ECHO_N "(cached) $ECHO_C" >&6
33719else
33720 cat >conftest.$ac_ext <<_ACEOF
33721/* confdefs.h. */
33722_ACEOF
33723cat confdefs.h >>conftest.$ac_ext
33724cat >>conftest.$ac_ext <<_ACEOF
33725/* end confdefs.h. */
33726$ac_includes_default
33727int
33728main ()
33729{
33730if ((off_t *) 0)
33731 return 0;
33732if (sizeof (off_t))
33733 return 0;
33734 ;
33735 return 0;
33736}
33737_ACEOF
33738rm -f conftest.$ac_objext
33739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33740 (eval $ac_compile) 2>conftest.er1
a848cd7e 33741 ac_status=$?
ac1cb8d3
VS
33742 grep -v '^ *+' conftest.er1 >conftest.err
33743 rm -f conftest.er1
33744 cat conftest.err >&5
a848cd7e
SC
33745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33746 (exit $ac_status); } &&
ca5c6ac3 33747 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33749 (eval $ac_try) 2>&5
33750 ac_status=$?
33751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33752 (exit $ac_status); }; } &&
33753 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33755 (eval $ac_try) 2>&5
33756 ac_status=$?
33757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758 (exit $ac_status); }; }; then
33759 ac_cv_type_off_t=yes
33760else
33761 echo "$as_me: failed program was:" >&5
33762sed 's/^/| /' conftest.$ac_ext >&5
33763
33764ac_cv_type_off_t=no
33765fi
ac1cb8d3 33766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33767fi
33768echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33769echo "${ECHO_T}$ac_cv_type_off_t" >&6
33770if test $ac_cv_type_off_t = yes; then
33771 :
33772else
33773
33774cat >>confdefs.h <<_ACEOF
33775#define off_t long
33776_ACEOF
33777
33778fi
33779
33780echo "$as_me:$LINENO: checking for pid_t" >&5
33781echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33782if test "${ac_cv_type_pid_t+set}" = set; then
33783 echo $ECHO_N "(cached) $ECHO_C" >&6
33784else
33785 cat >conftest.$ac_ext <<_ACEOF
33786/* confdefs.h. */
33787_ACEOF
33788cat confdefs.h >>conftest.$ac_ext
33789cat >>conftest.$ac_ext <<_ACEOF
33790/* end confdefs.h. */
33791$ac_includes_default
33792int
33793main ()
33794{
33795if ((pid_t *) 0)
33796 return 0;
33797if (sizeof (pid_t))
33798 return 0;
33799 ;
33800 return 0;
33801}
33802_ACEOF
33803rm -f conftest.$ac_objext
33804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33805 (eval $ac_compile) 2>conftest.er1
a848cd7e 33806 ac_status=$?
ac1cb8d3
VS
33807 grep -v '^ *+' conftest.er1 >conftest.err
33808 rm -f conftest.er1
33809 cat conftest.err >&5
a848cd7e
SC
33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 (exit $ac_status); } &&
ca5c6ac3 33812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33814 (eval $ac_try) 2>&5
33815 ac_status=$?
33816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33817 (exit $ac_status); }; } &&
33818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33820 (eval $ac_try) 2>&5
33821 ac_status=$?
33822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33823 (exit $ac_status); }; }; then
33824 ac_cv_type_pid_t=yes
33825else
33826 echo "$as_me: failed program was:" >&5
33827sed 's/^/| /' conftest.$ac_ext >&5
33828
33829ac_cv_type_pid_t=no
33830fi
ac1cb8d3 33831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33832fi
33833echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33834echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33835if test $ac_cv_type_pid_t = yes; then
33836 :
33837else
33838
33839cat >>confdefs.h <<_ACEOF
33840#define pid_t int
33841_ACEOF
33842
33843fi
33844
33845echo "$as_me:$LINENO: checking for size_t" >&5
33846echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33847if test "${ac_cv_type_size_t+set}" = set; then
33848 echo $ECHO_N "(cached) $ECHO_C" >&6
33849else
33850 cat >conftest.$ac_ext <<_ACEOF
33851/* confdefs.h. */
33852_ACEOF
33853cat confdefs.h >>conftest.$ac_ext
33854cat >>conftest.$ac_ext <<_ACEOF
33855/* end confdefs.h. */
33856$ac_includes_default
33857int
33858main ()
33859{
33860if ((size_t *) 0)
33861 return 0;
33862if (sizeof (size_t))
33863 return 0;
33864 ;
33865 return 0;
33866}
33867_ACEOF
33868rm -f conftest.$ac_objext
33869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33870 (eval $ac_compile) 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); } &&
ca5c6ac3 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_objext'
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 ac_cv_type_size_t=yes
33890else
33891 echo "$as_me: failed program was:" >&5
33892sed 's/^/| /' conftest.$ac_ext >&5
33893
33894ac_cv_type_size_t=no
33895fi
ac1cb8d3 33896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33897fi
33898echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33899echo "${ECHO_T}$ac_cv_type_size_t" >&6
33900if test $ac_cv_type_size_t = yes; then
33901 :
33902else
33903
33904cat >>confdefs.h <<_ACEOF
33905#define size_t unsigned
33906_ACEOF
33907
33908fi
33909
33910echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33911echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
33912if test "${ac_cv_type_uid_t+set}" = set; then
33913 echo $ECHO_N "(cached) $ECHO_C" >&6
33914else
33915 cat >conftest.$ac_ext <<_ACEOF
33916/* confdefs.h. */
33917_ACEOF
33918cat confdefs.h >>conftest.$ac_ext
33919cat >>conftest.$ac_ext <<_ACEOF
33920/* end confdefs.h. */
33921#include <sys/types.h>
33922
33923_ACEOF
33924if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33925 $EGREP "uid_t" >/dev/null 2>&1; then
33926 ac_cv_type_uid_t=yes
33927else
33928 ac_cv_type_uid_t=no
33929fi
33930rm -f conftest*
33931
33932fi
33933echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33934echo "${ECHO_T}$ac_cv_type_uid_t" >&6
33935if test $ac_cv_type_uid_t = no; then
33936
33937cat >>confdefs.h <<\_ACEOF
33938#define uid_t int
33939_ACEOF
33940
33941
33942cat >>confdefs.h <<\_ACEOF
33943#define gid_t int
33944_ACEOF
33945
33946fi
33947
33948
d51253e8
RL
33949echo "$as_me:$LINENO: checking for ssize_t" >&5
33950echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33951if test "${ac_cv_type_ssize_t+set}" = set; then
33952 echo $ECHO_N "(cached) $ECHO_C" >&6
33953else
33954 cat >conftest.$ac_ext <<_ACEOF
33955/* confdefs.h. */
33956_ACEOF
33957cat confdefs.h >>conftest.$ac_ext
33958cat >>conftest.$ac_ext <<_ACEOF
33959/* end confdefs.h. */
33960$ac_includes_default
33961int
33962main ()
33963{
33964if ((ssize_t *) 0)
33965 return 0;
33966if (sizeof (ssize_t))
33967 return 0;
33968 ;
33969 return 0;
33970}
33971_ACEOF
33972rm -f conftest.$ac_objext
33973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33974 (eval $ac_compile) 2>conftest.er1
33975 ac_status=$?
33976 grep -v '^ *+' conftest.er1 >conftest.err
33977 rm -f conftest.er1
33978 cat conftest.err >&5
33979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33980 (exit $ac_status); } &&
ca5c6ac3 33981 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d51253e8
RL
33982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33983 (eval $ac_try) 2>&5
33984 ac_status=$?
33985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33986 (exit $ac_status); }; } &&
33987 { ac_try='test -s conftest.$ac_objext'
33988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33989 (eval $ac_try) 2>&5
33990 ac_status=$?
33991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33992 (exit $ac_status); }; }; then
33993 ac_cv_type_ssize_t=yes
33994else
33995 echo "$as_me: failed program was:" >&5
33996sed 's/^/| /' conftest.$ac_ext >&5
33997
33998ac_cv_type_ssize_t=no
33999fi
34000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34001fi
34002echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34003echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34004if test $ac_cv_type_ssize_t = yes; then
34005
34006cat >>confdefs.h <<_ACEOF
34007#define HAVE_SSIZE_T 1
34008_ACEOF
34009
34010
34011fi
34012
34013
a848cd7e
SC
34014echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34015echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
34016if test "${wx_cv_size_t_is_uint+set}" = set; then
34017 echo $ECHO_N "(cached) $ECHO_C" >&6
34018else
34019
34020 cat >conftest.$ac_ext <<_ACEOF
34021/* confdefs.h. */
34022_ACEOF
34023cat confdefs.h >>conftest.$ac_ext
34024cat >>conftest.$ac_ext <<_ACEOF
34025/* end confdefs.h. */
34026#include <stddef.h>
34027int
34028main ()
34029{
34030
34031 return 0; }
34032
34033 struct Foo { void foo(size_t); void foo(unsigned int); };
34034
34035 int bar() {
34036
34037 ;
34038 return 0;
34039}
34040_ACEOF
34041rm -f conftest.$ac_objext
34042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34043 (eval $ac_compile) 2>conftest.er1
a848cd7e 34044 ac_status=$?
ac1cb8d3
VS
34045 grep -v '^ *+' conftest.er1 >conftest.err
34046 rm -f conftest.er1
34047 cat conftest.err >&5
a848cd7e
SC
34048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34049 (exit $ac_status); } &&
ca5c6ac3 34050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34052 (eval $ac_try) 2>&5
34053 ac_status=$?
34054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34055 (exit $ac_status); }; } &&
34056 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34058 (eval $ac_try) 2>&5
34059 ac_status=$?
34060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34061 (exit $ac_status); }; }; then
34062 wx_cv_size_t_is_uint=no
34063else
34064 echo "$as_me: failed program was:" >&5
34065sed 's/^/| /' conftest.$ac_ext >&5
34066
34067wx_cv_size_t_is_uint=yes
34068
34069fi
ac1cb8d3 34070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34071
34072
34073fi
34074echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34075echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
34076
34077if test "$wx_cv_size_t_is_uint" = "yes"; then
34078 cat >>confdefs.h <<\_ACEOF
34079#define wxSIZE_T_IS_UINT 1
34080_ACEOF
34081
34082else
34083 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34084echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
34085if test "${wx_cv_size_t_is_ulong+set}" = set; then
34086 echo $ECHO_N "(cached) $ECHO_C" >&6
34087else
34088 cat >conftest.$ac_ext <<_ACEOF
34089/* confdefs.h. */
34090_ACEOF
34091cat confdefs.h >>conftest.$ac_ext
34092cat >>conftest.$ac_ext <<_ACEOF
34093/* end confdefs.h. */
34094#include <stddef.h>
34095int
34096main ()
34097{
34098
34099 return 0; }
34100
34101 struct Foo { void foo(size_t); void foo(unsigned long); };
34102
34103 int bar() {
34104
34105 ;
34106 return 0;
34107}
34108_ACEOF
34109rm -f conftest.$ac_objext
34110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34111 (eval $ac_compile) 2>conftest.er1
a848cd7e 34112 ac_status=$?
ac1cb8d3
VS
34113 grep -v '^ *+' conftest.er1 >conftest.err
34114 rm -f conftest.er1
34115 cat conftest.err >&5
a848cd7e
SC
34116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34117 (exit $ac_status); } &&
ca5c6ac3 34118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34120 (eval $ac_try) 2>&5
34121 ac_status=$?
34122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34123 (exit $ac_status); }; } &&
34124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34126 (eval $ac_try) 2>&5
34127 ac_status=$?
34128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34129 (exit $ac_status); }; }; then
34130 wx_cv_size_t_is_ulong=no
34131else
34132 echo "$as_me: failed program was:" >&5
34133sed 's/^/| /' conftest.$ac_ext >&5
34134
34135wx_cv_size_t_is_ulong=yes
34136
34137fi
ac1cb8d3 34138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34139
34140fi
34141echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34142echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
34143
34144 if test "$wx_cv_size_t_is_ulong" = "yes"; then
34145 cat >>confdefs.h <<\_ACEOF
34146#define wxSIZE_T_IS_ULONG 1
34147_ACEOF
34148
34149 fi
34150fi
34151
a848cd7e
SC
34152
34153echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34154echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
34155if test "${wx_cv_struct_pw_gecos+set}" = set; then
34156 echo $ECHO_N "(cached) $ECHO_C" >&6
34157else
34158
34159 cat >conftest.$ac_ext <<_ACEOF
34160/* confdefs.h. */
34161_ACEOF
34162cat confdefs.h >>conftest.$ac_ext
34163cat >>conftest.$ac_ext <<_ACEOF
34164/* end confdefs.h. */
34165#include <pwd.h>
34166int
34167main ()
34168{
34169
34170 char *p;
34171 struct passwd *pw;
34172 p = pw->pw_gecos;
34173
34174 ;
34175 return 0;
34176}
34177_ACEOF
34178rm -f conftest.$ac_objext
34179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34180 (eval $ac_compile) 2>conftest.er1
a848cd7e 34181 ac_status=$?
ac1cb8d3
VS
34182 grep -v '^ *+' conftest.er1 >conftest.err
34183 rm -f conftest.er1
34184 cat conftest.err >&5
a848cd7e
SC
34185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34186 (exit $ac_status); } &&
ca5c6ac3 34187 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34189 (eval $ac_try) 2>&5
34190 ac_status=$?
34191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34192 (exit $ac_status); }; } &&
34193 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34195 (eval $ac_try) 2>&5
34196 ac_status=$?
34197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34198 (exit $ac_status); }; }; then
34199
34200 wx_cv_struct_pw_gecos=yes
34201
34202else
34203 echo "$as_me: failed program was:" >&5
34204sed 's/^/| /' conftest.$ac_ext >&5
34205
34206
34207 wx_cv_struct_pw_gecos=no
34208
34209
34210fi
ac1cb8d3 34211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34212
34213
34214fi
34215echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34216echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
34217
34218if test "$wx_cv_struct_pw_gecos" = "yes"; then
34219 cat >>confdefs.h <<\_ACEOF
34220#define HAVE_PW_GECOS 1
34221_ACEOF
34222
34223fi
34224
34225
47a7e797 34226if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
34227 cat >>confdefs.h <<\_ACEOF
34228#define wxUSE_WCHAR_T 1
34229_ACEOF
34230
34231
34232 WCSLEN_FOUND=0
34233 WCHAR_LINK=
34234
34235for ac_func in wcslen
34236do
34237as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34238echo "$as_me:$LINENO: checking for $ac_func" >&5
34239echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34240if eval "test \"\${$as_ac_var+set}\" = set"; then
34241 echo $ECHO_N "(cached) $ECHO_C" >&6
34242else
34243 cat >conftest.$ac_ext <<_ACEOF
34244/* confdefs.h. */
34245_ACEOF
34246cat confdefs.h >>conftest.$ac_ext
34247cat >>conftest.$ac_ext <<_ACEOF
34248/* end confdefs.h. */
ac1cb8d3
VS
34249/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34251#define $ac_func innocuous_$ac_func
34252
a848cd7e
SC
34253/* System header to define __stub macros and hopefully few prototypes,
34254 which can conflict with char $ac_func (); below.
34255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34256 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34257
a848cd7e
SC
34258#ifdef __STDC__
34259# include <limits.h>
34260#else
34261# include <assert.h>
34262#endif
ac1cb8d3
VS
34263
34264#undef $ac_func
34265
a848cd7e
SC
34266/* Override any gcc2 internal prototype to avoid an error. */
34267#ifdef __cplusplus
34268extern "C"
34269{
34270#endif
34271/* We use char because int might match the return type of a gcc2
34272 builtin and then its argument prototype would still apply. */
34273char $ac_func ();
34274/* The GNU C library defines this for functions which it implements
34275 to always fail with ENOSYS. Some functions are actually named
34276 something starting with __ and the normal name is an alias. */
34277#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34278choke me
34279#else
34280char (*f) () = $ac_func;
34281#endif
34282#ifdef __cplusplus
34283}
34284#endif
34285
34286int
34287main ()
34288{
34289return f != $ac_func;
34290 ;
34291 return 0;
34292}
34293_ACEOF
34294rm -f conftest.$ac_objext conftest$ac_exeext
34295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34296 (eval $ac_link) 2>conftest.er1
a848cd7e 34297 ac_status=$?
ac1cb8d3
VS
34298 grep -v '^ *+' conftest.er1 >conftest.err
34299 rm -f conftest.er1
34300 cat conftest.err >&5
a848cd7e
SC
34301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34302 (exit $ac_status); } &&
ca5c6ac3 34303 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34305 (eval $ac_try) 2>&5
34306 ac_status=$?
34307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34308 (exit $ac_status); }; } &&
34309 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34311 (eval $ac_try) 2>&5
34312 ac_status=$?
34313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34314 (exit $ac_status); }; }; then
34315 eval "$as_ac_var=yes"
34316else
34317 echo "$as_me: failed program was:" >&5
34318sed 's/^/| /' conftest.$ac_ext >&5
34319
34320eval "$as_ac_var=no"
34321fi
ac1cb8d3
VS
34322rm -f conftest.err conftest.$ac_objext \
34323 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34324fi
34325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34326echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34327if test `eval echo '${'$as_ac_var'}'` = yes; then
34328 cat >>confdefs.h <<_ACEOF
34329#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34330_ACEOF
34331 WCSLEN_FOUND=1
34332fi
34333done
34334
34335
34336 if test "$WCSLEN_FOUND" = 0; then
34337 if test "$TOOLKIT" = "MSW"; then
34338 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34339echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
34340if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34341 echo $ECHO_N "(cached) $ECHO_C" >&6
34342else
34343 ac_check_lib_save_LIBS=$LIBS
34344LIBS="-lmsvcrt $LIBS"
34345cat >conftest.$ac_ext <<_ACEOF
34346/* confdefs.h. */
34347_ACEOF
34348cat confdefs.h >>conftest.$ac_ext
34349cat >>conftest.$ac_ext <<_ACEOF
34350/* end confdefs.h. */
34351
34352/* Override any gcc2 internal prototype to avoid an error. */
34353#ifdef __cplusplus
34354extern "C"
34355#endif
34356/* We use char because int might match the return type of a gcc2
34357 builtin and then its argument prototype would still apply. */
34358char wcslen ();
34359int
34360main ()
34361{
34362wcslen ();
34363 ;
34364 return 0;
34365}
34366_ACEOF
34367rm -f conftest.$ac_objext conftest$ac_exeext
34368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34369 (eval $ac_link) 2>conftest.er1
a848cd7e 34370 ac_status=$?
ac1cb8d3
VS
34371 grep -v '^ *+' conftest.er1 >conftest.err
34372 rm -f conftest.er1
34373 cat conftest.err >&5
a848cd7e
SC
34374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34375 (exit $ac_status); } &&
ca5c6ac3 34376 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34378 (eval $ac_try) 2>&5
34379 ac_status=$?
34380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34381 (exit $ac_status); }; } &&
34382 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34384 (eval $ac_try) 2>&5
34385 ac_status=$?
34386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34387 (exit $ac_status); }; }; then
34388 ac_cv_lib_msvcrt_wcslen=yes
34389else
34390 echo "$as_me: failed program was:" >&5
34391sed 's/^/| /' conftest.$ac_ext >&5
34392
34393ac_cv_lib_msvcrt_wcslen=no
34394fi
ac1cb8d3
VS
34395rm -f conftest.err conftest.$ac_objext \
34396 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34397LIBS=$ac_check_lib_save_LIBS
34398fi
34399echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34400echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
34401if test $ac_cv_lib_msvcrt_wcslen = yes; then
34402 WCHAR_OK=1
34403fi
34404
34405 else
34406 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34407echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
34408if test "${ac_cv_lib_w_wcslen+set}" = set; then
34409 echo $ECHO_N "(cached) $ECHO_C" >&6
34410else
34411 ac_check_lib_save_LIBS=$LIBS
34412LIBS="-lw $LIBS"
34413cat >conftest.$ac_ext <<_ACEOF
34414/* confdefs.h. */
34415_ACEOF
34416cat confdefs.h >>conftest.$ac_ext
34417cat >>conftest.$ac_ext <<_ACEOF
34418/* end confdefs.h. */
34419
34420/* Override any gcc2 internal prototype to avoid an error. */
34421#ifdef __cplusplus
34422extern "C"
34423#endif
34424/* We use char because int might match the return type of a gcc2
34425 builtin and then its argument prototype would still apply. */
34426char wcslen ();
34427int
34428main ()
34429{
34430wcslen ();
34431 ;
34432 return 0;
34433}
34434_ACEOF
34435rm -f conftest.$ac_objext conftest$ac_exeext
34436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34437 (eval $ac_link) 2>conftest.er1
a848cd7e 34438 ac_status=$?
ac1cb8d3
VS
34439 grep -v '^ *+' conftest.er1 >conftest.err
34440 rm -f conftest.er1
34441 cat conftest.err >&5
a848cd7e
SC
34442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34443 (exit $ac_status); } &&
ca5c6ac3 34444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34446 (eval $ac_try) 2>&5
34447 ac_status=$?
34448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34449 (exit $ac_status); }; } &&
34450 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34452 (eval $ac_try) 2>&5
34453 ac_status=$?
34454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34455 (exit $ac_status); }; }; then
34456 ac_cv_lib_w_wcslen=yes
34457else
34458 echo "$as_me: failed program was:" >&5
34459sed 's/^/| /' conftest.$ac_ext >&5
34460
34461ac_cv_lib_w_wcslen=no
34462fi
ac1cb8d3
VS
34463rm -f conftest.err conftest.$ac_objext \
34464 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34465LIBS=$ac_check_lib_save_LIBS
34466fi
34467echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34468echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
34469if test $ac_cv_lib_w_wcslen = yes; then
34470
34471 WCHAR_LINK=" -lw"
34472 WCSLEN_FOUND=1
34473
34474fi
34475
34476 fi
34477 fi
34478
34479 if test "$WCSLEN_FOUND" = 1; then
34480 cat >>confdefs.h <<\_ACEOF
34481#define HAVE_WCSLEN 1
34482_ACEOF
34483
34484 fi
34485
efdf6afe 34486 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 34487 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
34488 fi
34489
efdf6afe
VZ
34490 echo "$as_me:$LINENO: checking for mbstate_t" >&5
34491echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
34492if test "${ac_cv_type_mbstate_t+set}" = set; then
34493 echo $ECHO_N "(cached) $ECHO_C" >&6
34494else
34495 cat >conftest.$ac_ext <<_ACEOF
34496/* confdefs.h. */
34497_ACEOF
34498cat confdefs.h >>conftest.$ac_ext
34499cat >>conftest.$ac_ext <<_ACEOF
34500/* end confdefs.h. */
34501#include <wchar.h>
34502
34503int
34504main ()
34505{
34506if ((mbstate_t *) 0)
34507 return 0;
34508if (sizeof (mbstate_t))
34509 return 0;
34510 ;
34511 return 0;
34512}
34513_ACEOF
34514rm -f conftest.$ac_objext
34515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34516 (eval $ac_compile) 2>conftest.er1
34517 ac_status=$?
34518 grep -v '^ *+' conftest.er1 >conftest.err
34519 rm -f conftest.er1
34520 cat conftest.err >&5
34521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34522 (exit $ac_status); } &&
ca5c6ac3 34523 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
34524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34525 (eval $ac_try) 2>&5
34526 ac_status=$?
34527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34528 (exit $ac_status); }; } &&
34529 { ac_try='test -s conftest.$ac_objext'
34530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34531 (eval $ac_try) 2>&5
34532 ac_status=$?
34533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34534 (exit $ac_status); }; }; then
34535 ac_cv_type_mbstate_t=yes
34536else
34537 echo "$as_me: failed program was:" >&5
34538sed 's/^/| /' conftest.$ac_ext >&5
34539
34540ac_cv_type_mbstate_t=no
34541fi
34542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34543fi
34544echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34545echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34546if test $ac_cv_type_mbstate_t = yes; then
34547
34548cat >>confdefs.h <<_ACEOF
34549#define HAVE_MBSTATE_T 1
34550_ACEOF
34551
a848cd7e
SC
34552
34553for ac_func in wcsrtombs
34554do
34555as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34556echo "$as_me:$LINENO: checking for $ac_func" >&5
34557echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34558if eval "test \"\${$as_ac_var+set}\" = set"; then
34559 echo $ECHO_N "(cached) $ECHO_C" >&6
34560else
34561 cat >conftest.$ac_ext <<_ACEOF
34562/* confdefs.h. */
34563_ACEOF
34564cat confdefs.h >>conftest.$ac_ext
34565cat >>conftest.$ac_ext <<_ACEOF
34566/* end confdefs.h. */
ac1cb8d3
VS
34567/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34569#define $ac_func innocuous_$ac_func
34570
a848cd7e
SC
34571/* System header to define __stub macros and hopefully few prototypes,
34572 which can conflict with char $ac_func (); below.
34573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34574 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34575
a848cd7e
SC
34576#ifdef __STDC__
34577# include <limits.h>
34578#else
34579# include <assert.h>
34580#endif
ac1cb8d3
VS
34581
34582#undef $ac_func
34583
a848cd7e
SC
34584/* Override any gcc2 internal prototype to avoid an error. */
34585#ifdef __cplusplus
34586extern "C"
34587{
34588#endif
34589/* We use char because int might match the return type of a gcc2
34590 builtin and then its argument prototype would still apply. */
34591char $ac_func ();
34592/* The GNU C library defines this for functions which it implements
34593 to always fail with ENOSYS. Some functions are actually named
34594 something starting with __ and the normal name is an alias. */
34595#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34596choke me
34597#else
34598char (*f) () = $ac_func;
34599#endif
34600#ifdef __cplusplus
34601}
34602#endif
34603
34604int
34605main ()
34606{
34607return f != $ac_func;
34608 ;
34609 return 0;
34610}
34611_ACEOF
34612rm -f conftest.$ac_objext conftest$ac_exeext
34613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34614 (eval $ac_link) 2>conftest.er1
a848cd7e 34615 ac_status=$?
ac1cb8d3
VS
34616 grep -v '^ *+' conftest.er1 >conftest.err
34617 rm -f conftest.er1
34618 cat conftest.err >&5
a848cd7e
SC
34619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34620 (exit $ac_status); } &&
ca5c6ac3 34621 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34623 (eval $ac_try) 2>&5
34624 ac_status=$?
34625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34626 (exit $ac_status); }; } &&
34627 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34629 (eval $ac_try) 2>&5
34630 ac_status=$?
34631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34632 (exit $ac_status); }; }; then
34633 eval "$as_ac_var=yes"
34634else
34635 echo "$as_me: failed program was:" >&5
34636sed 's/^/| /' conftest.$ac_ext >&5
34637
34638eval "$as_ac_var=no"
34639fi
ac1cb8d3
VS
34640rm -f conftest.err conftest.$ac_objext \
34641 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34642fi
34643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34644echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34645if test `eval echo '${'$as_ac_var'}'` = yes; then
34646 cat >>confdefs.h <<_ACEOF
34647#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34648_ACEOF
34649
34650fi
34651done
34652
efdf6afe
VZ
34653fi
34654
a848cd7e
SC
34655else
34656 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34657echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34658fi
34659
a848cd7e 34660
4a767dd5
VZ
34661
34662for ac_func in snprintf vsnprintf
a848cd7e
SC
34663do
34664as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34665echo "$as_me:$LINENO: checking for $ac_func" >&5
34666echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34667if eval "test \"\${$as_ac_var+set}\" = set"; then
34668 echo $ECHO_N "(cached) $ECHO_C" >&6
34669else
34670 cat >conftest.$ac_ext <<_ACEOF
34671/* confdefs.h. */
34672_ACEOF
34673cat confdefs.h >>conftest.$ac_ext
34674cat >>conftest.$ac_ext <<_ACEOF
34675/* end confdefs.h. */
ac1cb8d3
VS
34676/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34678#define $ac_func innocuous_$ac_func
34679
a848cd7e
SC
34680/* System header to define __stub macros and hopefully few prototypes,
34681 which can conflict with char $ac_func (); below.
34682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34683 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34684
a848cd7e
SC
34685#ifdef __STDC__
34686# include <limits.h>
34687#else
34688# include <assert.h>
34689#endif
ac1cb8d3
VS
34690
34691#undef $ac_func
34692
a848cd7e
SC
34693/* Override any gcc2 internal prototype to avoid an error. */
34694#ifdef __cplusplus
34695extern "C"
34696{
34697#endif
34698/* We use char because int might match the return type of a gcc2
34699 builtin and then its argument prototype would still apply. */
34700char $ac_func ();
34701/* The GNU C library defines this for functions which it implements
34702 to always fail with ENOSYS. Some functions are actually named
34703 something starting with __ and the normal name is an alias. */
34704#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34705choke me
34706#else
34707char (*f) () = $ac_func;
34708#endif
34709#ifdef __cplusplus
34710}
34711#endif
34712
34713int
34714main ()
34715{
34716return f != $ac_func;
34717 ;
34718 return 0;
34719}
34720_ACEOF
34721rm -f conftest.$ac_objext conftest$ac_exeext
34722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34723 (eval $ac_link) 2>conftest.er1
a848cd7e 34724 ac_status=$?
ac1cb8d3
VS
34725 grep -v '^ *+' conftest.er1 >conftest.err
34726 rm -f conftest.er1
34727 cat conftest.err >&5
a848cd7e
SC
34728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34729 (exit $ac_status); } &&
ca5c6ac3 34730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34732 (eval $ac_try) 2>&5
34733 ac_status=$?
34734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34735 (exit $ac_status); }; } &&
34736 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34738 (eval $ac_try) 2>&5
34739 ac_status=$?
34740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34741 (exit $ac_status); }; }; then
34742 eval "$as_ac_var=yes"
34743else
34744 echo "$as_me: failed program was:" >&5
34745sed 's/^/| /' conftest.$ac_ext >&5
34746
34747eval "$as_ac_var=no"
34748fi
ac1cb8d3
VS
34749rm -f conftest.err conftest.$ac_objext \
34750 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34751fi
34752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34753echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34754if test `eval echo '${'$as_ac_var'}'` = yes; then
34755 cat >>confdefs.h <<_ACEOF
34756#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34757_ACEOF
34758
34759fi
34760done
34761
34762
34763if test "$ac_cv_func_vsnprintf" = "yes"; then
34764 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34765echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
34766if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34767 echo $ECHO_N "(cached) $ECHO_C" >&6
34768else
34769
efdf6afe 34770 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
34771/* confdefs.h. */
34772_ACEOF
34773cat confdefs.h >>conftest.$ac_ext
34774cat >>conftest.$ac_ext <<_ACEOF
34775/* end confdefs.h. */
34776
34777 #include <stdio.h>
34778 #include <stdarg.h>
efdf6afe
VZ
34779 #ifdef __MSL__
34780 #if __MSL__ >= 0x6000
34781 namespace std {}
34782 using namespace std;
34783 #endif
34784 #endif
a848cd7e
SC
34785
34786int
34787main ()
34788{
34789
34790 char *buf;
34791 va_list ap;
62fa8b3a 34792 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
34793
34794 ;
34795 return 0;
34796}
34797_ACEOF
34798rm -f conftest.$ac_objext
34799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34800 (eval $ac_compile) 2>conftest.er1
34801 ac_status=$?
34802 grep -v '^ *+' conftest.er1 >conftest.err
34803 rm -f conftest.er1
34804 cat conftest.err >&5
34805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34806 (exit $ac_status); } &&
ca5c6ac3 34807 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
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); }; } &&
34813 { ac_try='test -s conftest.$ac_objext'
34814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34815 (eval $ac_try) 2>&5
34816 ac_status=$?
34817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34818 (exit $ac_status); }; }; then
34819 wx_cv_func_vsnprintf_decl=yes
34820else
34821 echo "$as_me: failed program was:" >&5
34822sed 's/^/| /' conftest.$ac_ext >&5
34823
a848cd7e
SC
34824wx_cv_func_vsnprintf_decl=no
34825
34826fi
ac1cb8d3 34827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34828
34829
34830fi
34831echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34832echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
34833
34834 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34835 cat >>confdefs.h <<\_ACEOF
34836#define HAVE_VSNPRINTF_DECL 1
34837_ACEOF
34838
62fa8b3a
MW
34839
34840 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34841echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
34842if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34843 echo $ECHO_N "(cached) $ECHO_C" >&6
34844else
34845
34846 cat >conftest.$ac_ext <<_ACEOF
34847/* confdefs.h. */
34848_ACEOF
34849cat confdefs.h >>conftest.$ac_ext
34850cat >>conftest.$ac_ext <<_ACEOF
34851/* end confdefs.h. */
34852
34853 #include <stdio.h>
34854 #include <stdarg.h>
34855 #ifdef __MSL__
34856 #if __MSL__ >= 0x6000
34857 namespace std {}
34858 using namespace std;
34859 #endif
34860 #endif
34861
34862int
34863main ()
34864{
34865
34866 char *buf;
34867 va_list ap;
34868 const char *fmt = "%s";
34869 vsnprintf(buf, 10u, fmt, ap);
34870
34871 ;
34872 return 0;
34873}
34874_ACEOF
34875rm -f conftest.$ac_objext
34876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34877 (eval $ac_compile) 2>conftest.er1
34878 ac_status=$?
34879 grep -v '^ *+' conftest.er1 >conftest.err
34880 rm -f conftest.er1
34881 cat conftest.err >&5
34882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34883 (exit $ac_status); } &&
ca5c6ac3 34884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
34885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34886 (eval $ac_try) 2>&5
34887 ac_status=$?
34888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889 (exit $ac_status); }; } &&
34890 { ac_try='test -s conftest.$ac_objext'
34891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34892 (eval $ac_try) 2>&5
34893 ac_status=$?
34894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895 (exit $ac_status); }; }; then
34896 wx_cv_func_broken_vsnprintf_decl=no
34897else
34898 echo "$as_me: failed program was:" >&5
34899sed 's/^/| /' conftest.$ac_ext >&5
34900
34901wx_cv_func_broken_vsnprintf_decl=yes
34902
34903fi
34904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34905
34906
34907fi
34908echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
34909echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
34910
34911 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
34912 cat >>confdefs.h <<\_ACEOF
34913#define HAVE_BROKEN_VSNPRINTF_DECL 1
34914_ACEOF
34915
34916 fi
a848cd7e
SC
34917 fi
34918fi
34919
4a767dd5
VZ
34920if test "$ac_cv_func_snprintf" = "yes"; then
34921 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
34922echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
34923if test "${wx_cv_func_snprintf_decl+set}" = set; then
34924 echo $ECHO_N "(cached) $ECHO_C" >&6
34925else
34926
34927 cat >conftest.$ac_ext <<_ACEOF
34928/* confdefs.h. */
34929_ACEOF
34930cat confdefs.h >>conftest.$ac_ext
34931cat >>conftest.$ac_ext <<_ACEOF
34932/* end confdefs.h. */
34933
34934 #include <stdio.h>
34935 #include <stdarg.h>
34936 #ifdef __MSL__
34937 #if __MSL__ >= 0x6000
34938 namespace std {}
34939 using namespace std;
34940 #endif
34941 #endif
34942
34943int
34944main ()
34945{
34946
34947 char *buf;
62fa8b3a 34948 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
34949
34950 ;
34951 return 0;
34952}
34953_ACEOF
34954rm -f conftest.$ac_objext
34955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34956 (eval $ac_compile) 2>conftest.er1
34957 ac_status=$?
34958 grep -v '^ *+' conftest.er1 >conftest.err
34959 rm -f conftest.er1
34960 cat conftest.err >&5
34961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34962 (exit $ac_status); } &&
ca5c6ac3 34963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
34964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34965 (eval $ac_try) 2>&5
34966 ac_status=$?
34967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34968 (exit $ac_status); }; } &&
34969 { ac_try='test -s conftest.$ac_objext'
34970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34971 (eval $ac_try) 2>&5
34972 ac_status=$?
34973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34974 (exit $ac_status); }; }; then
34975 wx_cv_func_snprintf_decl=yes
34976else
34977 echo "$as_me: failed program was:" >&5
34978sed 's/^/| /' conftest.$ac_ext >&5
34979
34980wx_cv_func_snprintf_decl=no
34981
34982fi
34983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34984
34985
34986fi
34987echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
34988echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
34989
34990 if test "$wx_cv_func_snprintf_decl" = "yes"; then
34991 cat >>confdefs.h <<\_ACEOF
34992#define HAVE_SNPRINTF_DECL 1
34993_ACEOF
34994
62fa8b3a
MW
34995
34996 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
34997echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
34998if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
34999 echo $ECHO_N "(cached) $ECHO_C" >&6
35000else
35001
35002 cat >conftest.$ac_ext <<_ACEOF
35003/* confdefs.h. */
35004_ACEOF
35005cat confdefs.h >>conftest.$ac_ext
35006cat >>conftest.$ac_ext <<_ACEOF
35007/* end confdefs.h. */
35008
35009 #include <stdio.h>
35010 #include <stdarg.h>
35011 #ifdef __MSL__
35012 #if __MSL__ >= 0x6000
35013 namespace std {}
35014 using namespace std;
35015 #endif
35016 #endif
35017
35018int
35019main ()
35020{
35021
35022 char *buf;
35023 const char *fmt = "%s";
35024 snprintf(buf, 10u, fmt, "wx");
35025
35026 ;
35027 return 0;
35028}
35029_ACEOF
35030rm -f conftest.$ac_objext
35031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35032 (eval $ac_compile) 2>conftest.er1
35033 ac_status=$?
35034 grep -v '^ *+' conftest.er1 >conftest.err
35035 rm -f conftest.er1
35036 cat conftest.err >&5
35037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35038 (exit $ac_status); } &&
ca5c6ac3 35039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
35040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35041 (eval $ac_try) 2>&5
35042 ac_status=$?
35043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35044 (exit $ac_status); }; } &&
35045 { ac_try='test -s conftest.$ac_objext'
35046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35047 (eval $ac_try) 2>&5
35048 ac_status=$?
35049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35050 (exit $ac_status); }; }; then
35051 wx_cv_func_broken_snprintf_decl=no
35052else
35053 echo "$as_me: failed program was:" >&5
35054sed 's/^/| /' conftest.$ac_ext >&5
35055
35056wx_cv_func_broken_snprintf_decl=yes
35057
35058fi
35059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35060
35061
35062fi
35063echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
35064echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
35065
35066 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
35067 cat >>confdefs.h <<\_ACEOF
35068#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
35069_ACEOF
35070
35071 fi
35072 fi
35073
35074 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35075
35076 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35077echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
35078if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35079 echo $ECHO_N "(cached) $ECHO_C" >&6
35080else
35081
35082 if test "$cross_compiling" = yes; then
5039a2df
VZ
35083
35084 { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35085define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35086echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35087define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35088 wx_cv_func_snprintf_pos_params=no
35089
35090
8b6682b9
JS
35091else
35092 cat >conftest.$ac_ext <<_ACEOF
35093/* confdefs.h. */
35094_ACEOF
35095cat confdefs.h >>conftest.$ac_ext
35096cat >>conftest.$ac_ext <<_ACEOF
35097/* end confdefs.h. */
35098
35099 #include <stdio.h>
35100
35101 int main (void)
35102 {
35103 char buffer[128];
35104 snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
35105 if (strcmp ("2 3 1", buffer) == 0)
35106 exit (0);
35107 exit (1);
35108 }
35109
35110_ACEOF
35111rm -f conftest$ac_exeext
35112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35113 (eval $ac_link) 2>&5
35114 ac_status=$?
35115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35118 (eval $ac_try) 2>&5
35119 ac_status=$?
35120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35121 (exit $ac_status); }; }; then
35122 wx_cv_func_snprintf_pos_params=no
35123else
35124 echo "$as_me: program exited with status $ac_status" >&5
35125echo "$as_me: failed program was:" >&5
35126sed 's/^/| /' conftest.$ac_ext >&5
35127
35128( exit $ac_status )
35129wx_cv_func_snprintf_pos_params=yes
8b6682b9
JS
35130fi
35131rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35132fi
35133
35134
35135fi
35136echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35137echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
35138
35139 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35140 cat >>confdefs.h <<\_ACEOF
35141#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
35142_ACEOF
35143
35144 fi
4a767dd5
VZ
35145 fi
35146fi
35147
a848cd7e
SC
35148if test "$wxUSE_UNICODE" = yes; then
35149
35150
6a5c9b3f
RR
35151for ac_func in swprintf
35152do
35153as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35154echo "$as_me:$LINENO: checking for $ac_func" >&5
35155echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35156if eval "test \"\${$as_ac_var+set}\" = set"; then
35157 echo $ECHO_N "(cached) $ECHO_C" >&6
35158else
35159 cat >conftest.$ac_ext <<_ACEOF
35160/* confdefs.h. */
35161_ACEOF
35162cat confdefs.h >>conftest.$ac_ext
35163cat >>conftest.$ac_ext <<_ACEOF
35164/* end confdefs.h. */
35165/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35167#define $ac_func innocuous_$ac_func
35168
35169/* System header to define __stub macros and hopefully few prototypes,
35170 which can conflict with char $ac_func (); below.
35171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35172 <limits.h> exists even on freestanding compilers. */
35173
35174#ifdef __STDC__
35175# include <limits.h>
35176#else
35177# include <assert.h>
35178#endif
35179
35180#undef $ac_func
35181
35182/* Override any gcc2 internal prototype to avoid an error. */
35183#ifdef __cplusplus
35184extern "C"
35185{
35186#endif
35187/* We use char because int might match the return type of a gcc2
35188 builtin and then its argument prototype would still apply. */
35189char $ac_func ();
35190/* The GNU C library defines this for functions which it implements
35191 to always fail with ENOSYS. Some functions are actually named
35192 something starting with __ and the normal name is an alias. */
35193#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35194choke me
35195#else
35196char (*f) () = $ac_func;
35197#endif
35198#ifdef __cplusplus
35199}
35200#endif
35201
35202int
35203main ()
35204{
35205return f != $ac_func;
35206 ;
35207 return 0;
35208}
35209_ACEOF
35210rm -f conftest.$ac_objext conftest$ac_exeext
35211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35212 (eval $ac_link) 2>conftest.er1
35213 ac_status=$?
35214 grep -v '^ *+' conftest.er1 >conftest.err
35215 rm -f conftest.er1
35216 cat conftest.err >&5
35217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35218 (exit $ac_status); } &&
ca5c6ac3 35219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
35220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35221 (eval $ac_try) 2>&5
35222 ac_status=$?
35223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35224 (exit $ac_status); }; } &&
35225 { ac_try='test -s conftest$ac_exeext'
35226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35227 (eval $ac_try) 2>&5
35228 ac_status=$?
35229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35230 (exit $ac_status); }; }; then
35231 eval "$as_ac_var=yes"
35232else
35233 echo "$as_me: failed program was:" >&5
35234sed 's/^/| /' conftest.$ac_ext >&5
35235
35236eval "$as_ac_var=no"
35237fi
35238rm -f conftest.err conftest.$ac_objext \
35239 conftest$ac_exeext conftest.$ac_ext
35240fi
35241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35242echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35243if test `eval echo '${'$as_ac_var'}'` = yes; then
35244 cat >>confdefs.h <<_ACEOF
35245#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35246_ACEOF
35247
35248fi
35249done
35250
35251
35252 if test "$ac_cv_func_swprintf" = "yes"; then
35253 echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
35254echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6
35255if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
35256 echo $ECHO_N "(cached) $ECHO_C" >&6
35257else
35258
35259 cat >conftest.$ac_ext <<_ACEOF
35260/* confdefs.h. */
35261_ACEOF
35262cat confdefs.h >>conftest.$ac_ext
35263cat >>conftest.$ac_ext <<_ACEOF
35264/* end confdefs.h. */
35265
35266 #include <stdio.h>
35267 #include <stdarg.h>
35268 #include <wchar.h>
35269
35270int
35271main ()
35272{
35273
35274 wchar_t *buf;
35275 const wchar_t *fmt = L"test";
35276 swprintf(buf, 10u, fmt);
35277
35278 ;
35279 return 0;
35280}
35281_ACEOF
35282rm -f conftest.$ac_objext
35283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35284 (eval $ac_compile) 2>conftest.er1
35285 ac_status=$?
35286 grep -v '^ *+' conftest.er1 >conftest.err
35287 rm -f conftest.er1
35288 cat conftest.err >&5
35289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35290 (exit $ac_status); } &&
ca5c6ac3 35291 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
35292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35293 (eval $ac_try) 2>&5
35294 ac_status=$?
35295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35296 (exit $ac_status); }; } &&
35297 { ac_try='test -s conftest.$ac_objext'
35298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35299 (eval $ac_try) 2>&5
35300 ac_status=$?
35301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35302 (exit $ac_status); }; }; then
35303 wx_cv_func_broken_swprintf_decl=no
35304else
35305 echo "$as_me: failed program was:" >&5
35306sed 's/^/| /' conftest.$ac_ext >&5
35307
35308wx_cv_func_broken_swprintf_decl=yes
35309
35310fi
35311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35312
35313
35314fi
35315echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
35316echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6
35317
35318 if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
35319 cat >>confdefs.h <<\_ACEOF
35320#define HAVE_BROKEN_SWPRINTF_DECL 1
35321_ACEOF
35322
35323 fi
35324 fi
35325
35326
35327
a848cd7e 35328
fbe47c7b
VS
35329
35330
35331
35332for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
35333do
35334as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35335echo "$as_me:$LINENO: checking for $ac_func" >&5
35336echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35337if eval "test \"\${$as_ac_var+set}\" = set"; then
35338 echo $ECHO_N "(cached) $ECHO_C" >&6
35339else
35340 cat >conftest.$ac_ext <<_ACEOF
35341/* confdefs.h. */
35342_ACEOF
35343cat confdefs.h >>conftest.$ac_ext
35344cat >>conftest.$ac_ext <<_ACEOF
35345/* end confdefs.h. */
ac1cb8d3
VS
35346/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35348#define $ac_func innocuous_$ac_func
35349
a848cd7e
SC
35350/* System header to define __stub macros and hopefully few prototypes,
35351 which can conflict with char $ac_func (); below.
35352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35353 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35354
a848cd7e
SC
35355#ifdef __STDC__
35356# include <limits.h>
35357#else
35358# include <assert.h>
35359#endif
ac1cb8d3
VS
35360
35361#undef $ac_func
35362
a848cd7e
SC
35363/* Override any gcc2 internal prototype to avoid an error. */
35364#ifdef __cplusplus
35365extern "C"
35366{
35367#endif
35368/* We use char because int might match the return type of a gcc2
35369 builtin and then its argument prototype would still apply. */
35370char $ac_func ();
35371/* The GNU C library defines this for functions which it implements
35372 to always fail with ENOSYS. Some functions are actually named
35373 something starting with __ and the normal name is an alias. */
35374#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35375choke me
35376#else
35377char (*f) () = $ac_func;
35378#endif
35379#ifdef __cplusplus
35380}
35381#endif
35382
35383int
35384main ()
35385{
35386return f != $ac_func;
35387 ;
35388 return 0;
35389}
35390_ACEOF
35391rm -f conftest.$ac_objext conftest$ac_exeext
35392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35393 (eval $ac_link) 2>conftest.er1
a848cd7e 35394 ac_status=$?
ac1cb8d3
VS
35395 grep -v '^ *+' conftest.er1 >conftest.err
35396 rm -f conftest.er1
35397 cat conftest.err >&5
a848cd7e
SC
35398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35399 (exit $ac_status); } &&
ca5c6ac3 35400 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35402 (eval $ac_try) 2>&5
35403 ac_status=$?
35404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35405 (exit $ac_status); }; } &&
35406 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35408 (eval $ac_try) 2>&5
35409 ac_status=$?
35410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35411 (exit $ac_status); }; }; then
35412 eval "$as_ac_var=yes"
35413else
35414 echo "$as_me: failed program was:" >&5
35415sed 's/^/| /' conftest.$ac_ext >&5
35416
35417eval "$as_ac_var=no"
35418fi
ac1cb8d3
VS
35419rm -f conftest.err conftest.$ac_objext \
35420 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35421fi
35422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35423echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35424if test `eval echo '${'$as_ac_var'}'` = yes; then
35425 cat >>confdefs.h <<_ACEOF
35426#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35427_ACEOF
35428
35429fi
35430done
35431
35432
35433 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35434echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
35435 cat >conftest.$ac_ext <<_ACEOF
35436/* confdefs.h. */
35437_ACEOF
35438cat confdefs.h >>conftest.$ac_ext
35439cat >>conftest.$ac_ext <<_ACEOF
35440/* end confdefs.h. */
35441#include <wchar.h>
35442int
35443main ()
35444{
35445&_vsnwprintf;
35446 ;
35447 return 0;
35448}
35449_ACEOF
35450rm -f conftest.$ac_objext
35451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35452 (eval $ac_compile) 2>conftest.er1
a848cd7e 35453 ac_status=$?
ac1cb8d3
VS
35454 grep -v '^ *+' conftest.er1 >conftest.err
35455 rm -f conftest.er1
35456 cat conftest.err >&5
a848cd7e
SC
35457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35458 (exit $ac_status); } &&
ca5c6ac3 35459 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35461 (eval $ac_try) 2>&5
35462 ac_status=$?
35463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35464 (exit $ac_status); }; } &&
35465 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35467 (eval $ac_try) 2>&5
35468 ac_status=$?
35469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35470 (exit $ac_status); }; }; then
35471 echo "$as_me:$LINENO: result: yes" >&5
35472echo "${ECHO_T}yes" >&6
35473 cat >>confdefs.h <<\_ACEOF
35474#define HAVE__VSNWPRINTF 1
35475_ACEOF
35476
35477else
35478 echo "$as_me: failed program was:" >&5
35479sed 's/^/| /' conftest.$ac_ext >&5
35480
35481echo "$as_me:$LINENO: result: no" >&5
35482echo "${ECHO_T}no" >&6
35483fi
ac1cb8d3 35484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
35485fi
35486
6ebeb4c7
VZ
35487if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
35488
35489for ac_func in fnmatch
35490do
35491as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35492echo "$as_me:$LINENO: checking for $ac_func" >&5
35493echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35494if eval "test \"\${$as_ac_var+set}\" = set"; then
35495 echo $ECHO_N "(cached) $ECHO_C" >&6
35496else
35497 cat >conftest.$ac_ext <<_ACEOF
35498/* confdefs.h. */
35499_ACEOF
35500cat confdefs.h >>conftest.$ac_ext
35501cat >>conftest.$ac_ext <<_ACEOF
35502/* end confdefs.h. */
35503/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35505#define $ac_func innocuous_$ac_func
35506
35507/* System header to define __stub macros and hopefully few prototypes,
35508 which can conflict with char $ac_func (); below.
35509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35510 <limits.h> exists even on freestanding compilers. */
35511
35512#ifdef __STDC__
35513# include <limits.h>
35514#else
35515# include <assert.h>
35516#endif
35517
35518#undef $ac_func
35519
35520/* Override any gcc2 internal prototype to avoid an error. */
35521#ifdef __cplusplus
35522extern "C"
35523{
35524#endif
35525/* We use char because int might match the return type of a gcc2
35526 builtin and then its argument prototype would still apply. */
35527char $ac_func ();
35528/* The GNU C library defines this for functions which it implements
35529 to always fail with ENOSYS. Some functions are actually named
35530 something starting with __ and the normal name is an alias. */
35531#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35532choke me
35533#else
35534char (*f) () = $ac_func;
35535#endif
35536#ifdef __cplusplus
35537}
35538#endif
35539
35540int
35541main ()
35542{
35543return f != $ac_func;
35544 ;
35545 return 0;
35546}
35547_ACEOF
35548rm -f conftest.$ac_objext conftest$ac_exeext
35549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35550 (eval $ac_link) 2>conftest.er1
35551 ac_status=$?
35552 grep -v '^ *+' conftest.er1 >conftest.err
35553 rm -f conftest.er1
35554 cat conftest.err >&5
35555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35556 (exit $ac_status); } &&
ca5c6ac3 35557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
35558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35559 (eval $ac_try) 2>&5
35560 ac_status=$?
35561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35562 (exit $ac_status); }; } &&
35563 { ac_try='test -s conftest$ac_exeext'
35564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35565 (eval $ac_try) 2>&5
35566 ac_status=$?
35567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35568 (exit $ac_status); }; }; then
35569 eval "$as_ac_var=yes"
35570else
35571 echo "$as_me: failed program was:" >&5
35572sed 's/^/| /' conftest.$ac_ext >&5
35573
35574eval "$as_ac_var=no"
35575fi
35576rm -f conftest.err conftest.$ac_objext \
35577 conftest$ac_exeext conftest.$ac_ext
35578fi
35579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35580echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35581if test `eval echo '${'$as_ac_var'}'` = yes; then
35582 cat >>confdefs.h <<_ACEOF
35583#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35584_ACEOF
35585
35586fi
35587done
35588
35589fi
35590
35591if test "$wxUSE_FILE" = "yes"; then
35592
35593for ac_func in fsync
35594do
35595as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35596echo "$as_me:$LINENO: checking for $ac_func" >&5
35597echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35598if eval "test \"\${$as_ac_var+set}\" = set"; then
35599 echo $ECHO_N "(cached) $ECHO_C" >&6
35600else
35601 cat >conftest.$ac_ext <<_ACEOF
35602/* confdefs.h. */
35603_ACEOF
35604cat confdefs.h >>conftest.$ac_ext
35605cat >>conftest.$ac_ext <<_ACEOF
35606/* end confdefs.h. */
35607/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35609#define $ac_func innocuous_$ac_func
35610
35611/* System header to define __stub macros and hopefully few prototypes,
35612 which can conflict with char $ac_func (); below.
35613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35614 <limits.h> exists even on freestanding compilers. */
35615
35616#ifdef __STDC__
35617# include <limits.h>
35618#else
35619# include <assert.h>
35620#endif
35621
35622#undef $ac_func
35623
35624/* Override any gcc2 internal prototype to avoid an error. */
35625#ifdef __cplusplus
35626extern "C"
35627{
35628#endif
35629/* We use char because int might match the return type of a gcc2
35630 builtin and then its argument prototype would still apply. */
35631char $ac_func ();
35632/* The GNU C library defines this for functions which it implements
35633 to always fail with ENOSYS. Some functions are actually named
35634 something starting with __ and the normal name is an alias. */
35635#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35636choke me
35637#else
35638char (*f) () = $ac_func;
35639#endif
35640#ifdef __cplusplus
35641}
35642#endif
35643
35644int
35645main ()
35646{
35647return f != $ac_func;
35648 ;
35649 return 0;
35650}
35651_ACEOF
35652rm -f conftest.$ac_objext conftest$ac_exeext
35653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35654 (eval $ac_link) 2>conftest.er1
35655 ac_status=$?
35656 grep -v '^ *+' conftest.er1 >conftest.err
35657 rm -f conftest.er1
35658 cat conftest.err >&5
35659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35660 (exit $ac_status); } &&
ca5c6ac3 35661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
35662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35663 (eval $ac_try) 2>&5
35664 ac_status=$?
35665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35666 (exit $ac_status); }; } &&
35667 { ac_try='test -s conftest$ac_exeext'
35668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35669 (eval $ac_try) 2>&5
35670 ac_status=$?
35671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35672 (exit $ac_status); }; }; then
35673 eval "$as_ac_var=yes"
35674else
35675 echo "$as_me: failed program was:" >&5
35676sed 's/^/| /' conftest.$ac_ext >&5
35677
35678eval "$as_ac_var=no"
35679fi
35680rm -f conftest.err conftest.$ac_objext \
35681 conftest$ac_exeext conftest.$ac_ext
35682fi
35683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35684echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35685if test `eval echo '${'$as_ac_var'}'` = yes; then
35686 cat >>confdefs.h <<_ACEOF
35687#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35688_ACEOF
35689
35690fi
35691done
35692
35693fi
a848cd7e
SC
35694
35695
c2e9ada4
VZ
35696for ac_func in round
35697do
35698as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35699echo "$as_me:$LINENO: checking for $ac_func" >&5
35700echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35701if eval "test \"\${$as_ac_var+set}\" = set"; then
35702 echo $ECHO_N "(cached) $ECHO_C" >&6
35703else
35704 cat >conftest.$ac_ext <<_ACEOF
35705/* confdefs.h. */
35706_ACEOF
35707cat confdefs.h >>conftest.$ac_ext
35708cat >>conftest.$ac_ext <<_ACEOF
35709/* end confdefs.h. */
35710/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35712#define $ac_func innocuous_$ac_func
35713
35714/* System header to define __stub macros and hopefully few prototypes,
35715 which can conflict with char $ac_func (); below.
35716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35717 <limits.h> exists even on freestanding compilers. */
35718
35719#ifdef __STDC__
35720# include <limits.h>
35721#else
35722# include <assert.h>
35723#endif
35724
35725#undef $ac_func
35726
35727/* Override any gcc2 internal prototype to avoid an error. */
35728#ifdef __cplusplus
35729extern "C"
35730{
35731#endif
35732/* We use char because int might match the return type of a gcc2
35733 builtin and then its argument prototype would still apply. */
35734char $ac_func ();
35735/* The GNU C library defines this for functions which it implements
35736 to always fail with ENOSYS. Some functions are actually named
35737 something starting with __ and the normal name is an alias. */
35738#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35739choke me
35740#else
35741char (*f) () = $ac_func;
35742#endif
35743#ifdef __cplusplus
35744}
35745#endif
35746
35747int
35748main ()
35749{
35750return f != $ac_func;
35751 ;
35752 return 0;
35753}
35754_ACEOF
35755rm -f conftest.$ac_objext conftest$ac_exeext
35756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35757 (eval $ac_link) 2>conftest.er1
35758 ac_status=$?
35759 grep -v '^ *+' conftest.er1 >conftest.err
35760 rm -f conftest.er1
35761 cat conftest.err >&5
35762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35763 (exit $ac_status); } &&
ca5c6ac3 35764 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
35765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35766 (eval $ac_try) 2>&5
35767 ac_status=$?
35768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35769 (exit $ac_status); }; } &&
35770 { ac_try='test -s conftest$ac_exeext'
35771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35772 (eval $ac_try) 2>&5
35773 ac_status=$?
35774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35775 (exit $ac_status); }; }; then
35776 eval "$as_ac_var=yes"
35777else
35778 echo "$as_me: failed program was:" >&5
35779sed 's/^/| /' conftest.$ac_ext >&5
35780
35781eval "$as_ac_var=no"
35782fi
35783rm -f conftest.err conftest.$ac_objext \
35784 conftest$ac_exeext conftest.$ac_ext
35785fi
35786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35787echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35788if test `eval echo '${'$as_ac_var'}'` = yes; then
35789 cat >>confdefs.h <<_ACEOF
35790#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35791_ACEOF
35792
35793fi
35794done
35795
35796if test "$ac_cv_func_round" = yes; then
35797 echo "$as_me:$LINENO: checking whether round is declared" >&5
35798echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6
35799if test "${ac_cv_have_decl_round+set}" = set; then
35800 echo $ECHO_N "(cached) $ECHO_C" >&6
35801else
35802 cat >conftest.$ac_ext <<_ACEOF
35803/* confdefs.h. */
35804_ACEOF
35805cat confdefs.h >>conftest.$ac_ext
35806cat >>conftest.$ac_ext <<_ACEOF
35807/* end confdefs.h. */
35808#include <math.h>
35809
35810int
35811main ()
35812{
35813#ifndef round
35814 char *p = (char *) round;
35815#endif
35816
35817 ;
35818 return 0;
35819}
35820_ACEOF
35821rm -f conftest.$ac_objext
35822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35823 (eval $ac_compile) 2>conftest.er1
35824 ac_status=$?
35825 grep -v '^ *+' conftest.er1 >conftest.err
35826 rm -f conftest.er1
35827 cat conftest.err >&5
35828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35829 (exit $ac_status); } &&
ca5c6ac3 35830 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
35831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35832 (eval $ac_try) 2>&5
35833 ac_status=$?
35834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35835 (exit $ac_status); }; } &&
35836 { ac_try='test -s conftest.$ac_objext'
35837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35838 (eval $ac_try) 2>&5
35839 ac_status=$?
35840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35841 (exit $ac_status); }; }; then
35842 ac_cv_have_decl_round=yes
35843else
35844 echo "$as_me: failed program was:" >&5
35845sed 's/^/| /' conftest.$ac_ext >&5
35846
35847ac_cv_have_decl_round=no
35848fi
35849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35850fi
35851echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5
35852echo "${ECHO_T}$ac_cv_have_decl_round" >&6
35853if test $ac_cv_have_decl_round = yes; then
35854
35855cat >>confdefs.h <<_ACEOF
35856#define HAVE_DECL_ROUND 1
35857_ACEOF
35858
35859
35860else
35861 cat >>confdefs.h <<_ACEOF
35862#define HAVE_DECL_ROUND 0
35863_ACEOF
35864
35865
35866fi
35867
35868
35869fi
35870
35871
a848cd7e
SC
35872if test "$TOOLKIT" != "MSW"; then
35873
35874
a848cd7e
SC
35875
35876
35877
35878# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
35879if test "${with_libiconv_prefix+set}" = set; then
35880 withval="$with_libiconv_prefix"
35881
35882 for dir in `echo "$withval" | tr : ' '`; do
35883 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
35884 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
35885 done
35886
35887fi;
35888
35889 echo "$as_me:$LINENO: checking for iconv" >&5
35890echo $ECHO_N "checking for iconv... $ECHO_C" >&6
35891if test "${am_cv_func_iconv+set}" = set; then
35892 echo $ECHO_N "(cached) $ECHO_C" >&6
35893else
35894
35895 am_cv_func_iconv="no, consider installing GNU libiconv"
35896 am_cv_lib_iconv=no
35897 cat >conftest.$ac_ext <<_ACEOF
35898/* confdefs.h. */
35899_ACEOF
35900cat confdefs.h >>conftest.$ac_ext
35901cat >>conftest.$ac_ext <<_ACEOF
35902/* end confdefs.h. */
35903#include <stdlib.h>
35904#include <iconv.h>
35905int
35906main ()
35907{
35908iconv_t cd = iconv_open("","");
35909 iconv(cd,NULL,NULL,NULL,NULL);
35910 iconv_close(cd);
35911 ;
35912 return 0;
35913}
35914_ACEOF
35915rm -f conftest.$ac_objext conftest$ac_exeext
35916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35917 (eval $ac_link) 2>conftest.er1
a848cd7e 35918 ac_status=$?
ac1cb8d3
VS
35919 grep -v '^ *+' conftest.er1 >conftest.err
35920 rm -f conftest.er1
35921 cat conftest.err >&5
a848cd7e
SC
35922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35923 (exit $ac_status); } &&
ca5c6ac3 35924 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35926 (eval $ac_try) 2>&5
35927 ac_status=$?
35928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35929 (exit $ac_status); }; } &&
35930 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35932 (eval $ac_try) 2>&5
35933 ac_status=$?
35934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35935 (exit $ac_status); }; }; then
35936 am_cv_func_iconv=yes
35937else
35938 echo "$as_me: failed program was:" >&5
35939sed 's/^/| /' conftest.$ac_ext >&5
35940
35941fi
ac1cb8d3
VS
35942rm -f conftest.err conftest.$ac_objext \
35943 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35944 if test "$am_cv_func_iconv" != yes; then
35945 am_save_LIBS="$LIBS"
35946 LIBS="$LIBS -liconv"
35947 cat >conftest.$ac_ext <<_ACEOF
35948/* confdefs.h. */
35949_ACEOF
35950cat confdefs.h >>conftest.$ac_ext
35951cat >>conftest.$ac_ext <<_ACEOF
35952/* end confdefs.h. */
35953#include <stdlib.h>
35954#include <iconv.h>
35955int
35956main ()
35957{
35958iconv_t cd = iconv_open("","");
35959 iconv(cd,NULL,NULL,NULL,NULL);
35960 iconv_close(cd);
35961 ;
35962 return 0;
35963}
35964_ACEOF
35965rm -f conftest.$ac_objext conftest$ac_exeext
35966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35967 (eval $ac_link) 2>conftest.er1
a848cd7e 35968 ac_status=$?
ac1cb8d3
VS
35969 grep -v '^ *+' conftest.er1 >conftest.err
35970 rm -f conftest.er1
35971 cat conftest.err >&5
a848cd7e
SC
35972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35973 (exit $ac_status); } &&
ca5c6ac3 35974 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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_exeext'
a848cd7e
SC
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 am_cv_lib_iconv=yes
35987 am_cv_func_iconv=yes
35988else
35989 echo "$as_me: failed program was:" >&5
35990sed 's/^/| /' conftest.$ac_ext >&5
35991
35992fi
ac1cb8d3
VS
35993rm -f conftest.err conftest.$ac_objext \
35994 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35995 LIBS="$am_save_LIBS"
35996 fi
35997
35998fi
35999echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36000echo "${ECHO_T}$am_cv_func_iconv" >&6
36001 if test "$am_cv_func_iconv" = yes; then
36002
36003cat >>confdefs.h <<\_ACEOF
36004#define HAVE_ICONV 1
36005_ACEOF
36006
36007 echo "$as_me:$LINENO: checking if iconv needs const" >&5
36008echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
36009if test "${wx_cv_func_iconv_const+set}" = set; then
36010 echo $ECHO_N "(cached) $ECHO_C" >&6
36011else
36012 cat >conftest.$ac_ext <<_ACEOF
36013/* confdefs.h. */
36014_ACEOF
36015cat confdefs.h >>conftest.$ac_ext
36016cat >>conftest.$ac_ext <<_ACEOF
36017/* end confdefs.h. */
36018
36019#include <stdlib.h>
36020#include <iconv.h>
36021extern
36022#ifdef __cplusplus
36023"C"
36024#endif
36025#if defined(__STDC__) || defined(__cplusplus)
36026size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36027#else
36028size_t iconv();
36029#endif
36030
36031int
36032main ()
36033{
36034
36035 ;
36036 return 0;
36037}
36038_ACEOF
36039rm -f conftest.$ac_objext
36040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36041 (eval $ac_compile) 2>conftest.er1
a848cd7e 36042 ac_status=$?
ac1cb8d3
VS
36043 grep -v '^ *+' conftest.er1 >conftest.err
36044 rm -f conftest.er1
36045 cat conftest.err >&5
a848cd7e
SC
36046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36047 (exit $ac_status); } &&
ca5c6ac3 36048 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36050 (eval $ac_try) 2>&5
36051 ac_status=$?
36052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36053 (exit $ac_status); }; } &&
36054 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36056 (eval $ac_try) 2>&5
36057 ac_status=$?
36058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36059 (exit $ac_status); }; }; then
36060 wx_cv_func_iconv_const="no"
36061else
36062 echo "$as_me: failed program was:" >&5
36063sed 's/^/| /' conftest.$ac_ext >&5
36064
36065wx_cv_func_iconv_const="yes"
36066
36067fi
ac1cb8d3 36068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36069
36070fi
36071echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36072echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
36073
36074 iconv_const=
36075 if test "x$wx_cv_func_iconv_const" = "xyes"; then
36076 iconv_const="const"
36077 fi
36078
36079
36080cat >>confdefs.h <<_ACEOF
36081#define ICONV_CONST $iconv_const
36082_ACEOF
36083
36084 fi
36085 LIBICONV=
36086 if test "$am_cv_lib_iconv" = yes; then
36087 LIBICONV="-liconv"
36088 fi
36089
36090
36091LIBS="$LIBICONV $LIBS"
a848cd7e
SC
36092
36093if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36094
36095for ac_func in sigaction
36096do
36097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36098echo "$as_me:$LINENO: checking for $ac_func" >&5
36099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36100if eval "test \"\${$as_ac_var+set}\" = set"; then
36101 echo $ECHO_N "(cached) $ECHO_C" >&6
36102else
36103 cat >conftest.$ac_ext <<_ACEOF
36104/* confdefs.h. */
36105_ACEOF
36106cat confdefs.h >>conftest.$ac_ext
36107cat >>conftest.$ac_ext <<_ACEOF
36108/* end confdefs.h. */
ac1cb8d3
VS
36109/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36111#define $ac_func innocuous_$ac_func
36112
a848cd7e
SC
36113/* System header to define __stub macros and hopefully few prototypes,
36114 which can conflict with char $ac_func (); below.
36115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36116 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36117
a848cd7e
SC
36118#ifdef __STDC__
36119# include <limits.h>
36120#else
36121# include <assert.h>
36122#endif
ac1cb8d3
VS
36123
36124#undef $ac_func
36125
a848cd7e
SC
36126/* Override any gcc2 internal prototype to avoid an error. */
36127#ifdef __cplusplus
36128extern "C"
36129{
36130#endif
36131/* We use char because int might match the return type of a gcc2
36132 builtin and then its argument prototype would still apply. */
36133char $ac_func ();
36134/* The GNU C library defines this for functions which it implements
36135 to always fail with ENOSYS. Some functions are actually named
36136 something starting with __ and the normal name is an alias. */
36137#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36138choke me
36139#else
36140char (*f) () = $ac_func;
36141#endif
36142#ifdef __cplusplus
36143}
36144#endif
36145
36146int
36147main ()
36148{
36149return f != $ac_func;
36150 ;
36151 return 0;
36152}
36153_ACEOF
36154rm -f conftest.$ac_objext conftest$ac_exeext
36155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36156 (eval $ac_link) 2>conftest.er1
a848cd7e 36157 ac_status=$?
ac1cb8d3
VS
36158 grep -v '^ *+' conftest.er1 >conftest.err
36159 rm -f conftest.er1
36160 cat conftest.err >&5
a848cd7e
SC
36161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36162 (exit $ac_status); } &&
ca5c6ac3 36163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36165 (eval $ac_try) 2>&5
36166 ac_status=$?
36167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36168 (exit $ac_status); }; } &&
36169 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36171 (eval $ac_try) 2>&5
36172 ac_status=$?
36173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36174 (exit $ac_status); }; }; then
36175 eval "$as_ac_var=yes"
36176else
36177 echo "$as_me: failed program was:" >&5
36178sed 's/^/| /' conftest.$ac_ext >&5
36179
36180eval "$as_ac_var=no"
36181fi
ac1cb8d3
VS
36182rm -f conftest.err conftest.$ac_objext \
36183 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36184fi
36185echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36186echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36187if test `eval echo '${'$as_ac_var'}'` = yes; then
36188 cat >>confdefs.h <<_ACEOF
36189#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36190_ACEOF
36191
36192fi
36193done
36194
36195
36196 if test "$ac_cv_func_sigaction" = "no"; then
36197 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36198echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36199 wxUSE_ON_FATAL_EXCEPTION=no
36200 fi
36201
36202 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
36203 echo "$as_me:$LINENO: checking for sa_handler type" >&5
36204echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
36205if test "${wx_cv_type_sa_handler+set}" = set; then
36206 echo $ECHO_N "(cached) $ECHO_C" >&6
36207else
36208
36209 cat >conftest.$ac_ext <<_ACEOF
36210/* confdefs.h. */
36211_ACEOF
36212cat confdefs.h >>conftest.$ac_ext
36213cat >>conftest.$ac_ext <<_ACEOF
36214/* end confdefs.h. */
36215#include <signal.h>
36216int
36217main ()
36218{
36219
36220 extern void testSigHandler(int);
36221
36222 struct sigaction sa;
36223 sa.sa_handler = testSigHandler;
36224
36225 ;
36226 return 0;
36227}
36228_ACEOF
36229rm -f conftest.$ac_objext
36230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36231 (eval $ac_compile) 2>conftest.er1
a848cd7e 36232 ac_status=$?
ac1cb8d3
VS
36233 grep -v '^ *+' conftest.er1 >conftest.err
36234 rm -f conftest.er1
36235 cat conftest.err >&5
a848cd7e
SC
36236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36237 (exit $ac_status); } &&
ca5c6ac3 36238 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36240 (eval $ac_try) 2>&5
36241 ac_status=$?
36242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36243 (exit $ac_status); }; } &&
36244 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36246 (eval $ac_try) 2>&5
36247 ac_status=$?
36248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36249 (exit $ac_status); }; }; then
36250
36251 wx_cv_type_sa_handler=int
36252
36253else
36254 echo "$as_me: failed program was:" >&5
36255sed 's/^/| /' conftest.$ac_ext >&5
36256
36257
36258 wx_cv_type_sa_handler=void
36259
36260fi
ac1cb8d3 36261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36262
36263fi
36264echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36265echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
36266
a848cd7e
SC
36267 cat >>confdefs.h <<_ACEOF
36268#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36269_ACEOF
36270
36271 fi
36272fi
36273
eaff0f0d 36274if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
36275 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36276echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
36277if test "${wx_cv_func_backtrace+set}" = set; then
36278 echo $ECHO_N "(cached) $ECHO_C" >&6
36279else
36280
36281 cat >conftest.$ac_ext <<_ACEOF
36282/* confdefs.h. */
36283_ACEOF
36284cat confdefs.h >>conftest.$ac_ext
36285cat >>conftest.$ac_ext <<_ACEOF
36286/* end confdefs.h. */
36287#include <execinfo.h>
36288int
36289main ()
36290{
36291
36292 void *trace[1];
36293 char **messages;
36294
36295 backtrace(trace, 1);
36296 messages = backtrace_symbols(trace, 1);
36297
36298 ;
36299 return 0;
36300}
36301_ACEOF
36302rm -f conftest.$ac_objext
36303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36304 (eval $ac_compile) 2>conftest.er1
36305 ac_status=$?
36306 grep -v '^ *+' conftest.er1 >conftest.err
36307 rm -f conftest.er1
36308 cat conftest.err >&5
36309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36310 (exit $ac_status); } &&
ca5c6ac3 36311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
36312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36313 (eval $ac_try) 2>&5
36314 ac_status=$?
36315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36316 (exit $ac_status); }; } &&
36317 { ac_try='test -s conftest.$ac_objext'
36318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36319 (eval $ac_try) 2>&5
36320 ac_status=$?
36321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36322 (exit $ac_status); }; }; then
36323 wx_cv_func_backtrace=yes
36324else
36325 echo "$as_me: failed program was:" >&5
36326sed 's/^/| /' conftest.$ac_ext >&5
36327
36328wx_cv_func_backtrace=no
36329
36330fi
36331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36332
36333
36334fi
36335echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36336echo "${ECHO_T}$wx_cv_func_backtrace" >&6
36337
36338
36339 if test "$wx_cv_func_backtrace" = "no"; then
36340 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36341echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36342 wxUSE_STACKWALKER=no
36343 else
36344 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36345echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
36346if test "${wx_cv_func_cxa_demangle+set}" = set; then
36347 echo $ECHO_N "(cached) $ECHO_C" >&6
36348else
36349
36350 cat >conftest.$ac_ext <<_ACEOF
36351/* confdefs.h. */
36352_ACEOF
36353cat confdefs.h >>conftest.$ac_ext
36354cat >>conftest.$ac_ext <<_ACEOF
36355/* end confdefs.h. */
36356#include <cxxabi.h>
36357int
36358main ()
36359{
36360
36361 int rc;
36362 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36363
36364 ;
36365 return 0;
36366}
36367_ACEOF
dfe0c803
JS
36368rm -f conftest.$ac_objext conftest$ac_exeext
36369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36370 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
36371 ac_status=$?
36372 grep -v '^ *+' conftest.er1 >conftest.err
36373 rm -f conftest.er1
36374 cat conftest.err >&5
36375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36376 (exit $ac_status); } &&
ca5c6ac3 36377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
36378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36379 (eval $ac_try) 2>&5
36380 ac_status=$?
36381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36382 (exit $ac_status); }; } &&
dfe0c803 36383 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
36384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36385 (eval $ac_try) 2>&5
36386 ac_status=$?
36387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36388 (exit $ac_status); }; }; then
36389 wx_cv_func_cxa_demangle=yes
36390else
36391 echo "$as_me: failed program was:" >&5
36392sed 's/^/| /' conftest.$ac_ext >&5
36393
36394wx_cv_func_cxa_demangle=no
36395
36396fi
dfe0c803
JS
36397rm -f conftest.err conftest.$ac_objext \
36398 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
36399
36400
36401fi
36402echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36403echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
36404
36405 if test "$wx_cv_func_cxa_demangle" = "yes"; then
36406 cat >>confdefs.h <<\_ACEOF
36407#define HAVE_CXA_DEMANGLE 1
36408_ACEOF
36409
36410 fi
36411 fi
eaff0f0d
VZ
36412fi
36413
898beab1
DE
36414if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
36415 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36416echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36417 wxUSE_STACKWALKER=no
36418fi
36419
36420
a848cd7e
SC
36421
36422
36423for ac_func in mkstemp mktemp
36424do
36425as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36426echo "$as_me:$LINENO: checking for $ac_func" >&5
36427echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36428if eval "test \"\${$as_ac_var+set}\" = set"; then
36429 echo $ECHO_N "(cached) $ECHO_C" >&6
36430else
36431 cat >conftest.$ac_ext <<_ACEOF
36432/* confdefs.h. */
36433_ACEOF
36434cat confdefs.h >>conftest.$ac_ext
36435cat >>conftest.$ac_ext <<_ACEOF
36436/* end confdefs.h. */
ac1cb8d3
VS
36437/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36439#define $ac_func innocuous_$ac_func
36440
a848cd7e
SC
36441/* System header to define __stub macros and hopefully few prototypes,
36442 which can conflict with char $ac_func (); below.
36443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36444 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36445
a848cd7e
SC
36446#ifdef __STDC__
36447# include <limits.h>
36448#else
36449# include <assert.h>
36450#endif
ac1cb8d3
VS
36451
36452#undef $ac_func
36453
a848cd7e
SC
36454/* Override any gcc2 internal prototype to avoid an error. */
36455#ifdef __cplusplus
36456extern "C"
36457{
36458#endif
36459/* We use char because int might match the return type of a gcc2
36460 builtin and then its argument prototype would still apply. */
36461char $ac_func ();
36462/* The GNU C library defines this for functions which it implements
36463 to always fail with ENOSYS. Some functions are actually named
36464 something starting with __ and the normal name is an alias. */
36465#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36466choke me
36467#else
36468char (*f) () = $ac_func;
36469#endif
36470#ifdef __cplusplus
36471}
36472#endif
36473
36474int
36475main ()
36476{
36477return f != $ac_func;
36478 ;
36479 return 0;
36480}
36481_ACEOF
36482rm -f conftest.$ac_objext conftest$ac_exeext
36483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36484 (eval $ac_link) 2>conftest.er1
a848cd7e 36485 ac_status=$?
ac1cb8d3
VS
36486 grep -v '^ *+' conftest.er1 >conftest.err
36487 rm -f conftest.er1
36488 cat conftest.err >&5
a848cd7e
SC
36489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36490 (exit $ac_status); } &&
ca5c6ac3 36491 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36493 (eval $ac_try) 2>&5
36494 ac_status=$?
36495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36496 (exit $ac_status); }; } &&
36497 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36499 (eval $ac_try) 2>&5
36500 ac_status=$?
36501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36502 (exit $ac_status); }; }; then
36503 eval "$as_ac_var=yes"
36504else
36505 echo "$as_me: failed program was:" >&5
36506sed 's/^/| /' conftest.$ac_ext >&5
36507
36508eval "$as_ac_var=no"
36509fi
ac1cb8d3
VS
36510rm -f conftest.err conftest.$ac_objext \
36511 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36512fi
36513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36514echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36515if test `eval echo '${'$as_ac_var'}'` = yes; then
36516 cat >>confdefs.h <<_ACEOF
36517#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36518_ACEOF
36519 break
36520fi
36521done
36522
36523
36524echo "$as_me:$LINENO: checking for statfs" >&5
36525echo $ECHO_N "checking for statfs... $ECHO_C" >&6
36526if test "${wx_cv_func_statfs+set}" = set; then
36527 echo $ECHO_N "(cached) $ECHO_C" >&6
36528else
36529 cat >conftest.$ac_ext <<_ACEOF
36530/* confdefs.h. */
36531_ACEOF
36532cat confdefs.h >>conftest.$ac_ext
36533cat >>conftest.$ac_ext <<_ACEOF
36534/* end confdefs.h. */
36535
36536 #if defined(__BSD__)
84ae7ca4
VZ
36537 #include <sys/param.h>
36538 #include <sys/mount.h>
a848cd7e 36539 #else
84ae7ca4 36540 #include <sys/vfs.h>
a848cd7e
SC
36541 #endif
36542
36543int
36544main ()
36545{
36546
36547 long l;
36548 struct statfs fs;
36549 statfs("/", &fs);
36550 l = fs.f_bsize;
36551 l += fs.f_blocks;
36552 l += fs.f_bavail;
36553
36554 ;
36555 return 0;
36556}
36557_ACEOF
36558rm -f conftest.$ac_objext
36559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36560 (eval $ac_compile) 2>conftest.er1
a848cd7e 36561 ac_status=$?
ac1cb8d3
VS
36562 grep -v '^ *+' conftest.er1 >conftest.err
36563 rm -f conftest.er1
36564 cat conftest.err >&5
a848cd7e
SC
36565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36566 (exit $ac_status); } &&
ca5c6ac3 36567 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36569 (eval $ac_try) 2>&5
36570 ac_status=$?
36571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36572 (exit $ac_status); }; } &&
36573 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36575 (eval $ac_try) 2>&5
36576 ac_status=$?
36577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36578 (exit $ac_status); }; }; then
84ae7ca4 36579 wx_cv_func_statfs=yes
a848cd7e
SC
36580else
36581 echo "$as_me: failed program was:" >&5
36582sed 's/^/| /' conftest.$ac_ext >&5
36583
84ae7ca4 36584wx_cv_func_statfs=no
a848cd7e
SC
36585
36586fi
ac1cb8d3 36587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36588
36589fi
36590echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36591echo "${ECHO_T}$wx_cv_func_statfs" >&6
36592
36593if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 36594 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
36595echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
36596if test "${wx_cv_func_statfs_decl+set}" = set; then
36597 echo $ECHO_N "(cached) $ECHO_C" >&6
36598else
0683aca6
VZ
36599 cat >conftest.$ac_ext <<_ACEOF
36600/* confdefs.h. */
36601_ACEOF
36602cat confdefs.h >>conftest.$ac_ext
36603cat >>conftest.$ac_ext <<_ACEOF
36604/* end confdefs.h. */
84ae7ca4 36605
0683aca6
VZ
36606 #if defined(__BSD__)
36607 #include <sys/param.h>
36608 #include <sys/mount.h>
36609 #else
36610 #include <sys/vfs.h>
36611 #endif
36612
36613int
36614main ()
36615{
36616
36617 struct statfs fs;
36618 statfs("", &fs);
36619
36620 ;
36621 return 0;
36622}
36623_ACEOF
36624rm -f conftest.$ac_objext
36625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36626 (eval $ac_compile) 2>conftest.er1
36627 ac_status=$?
36628 grep -v '^ *+' conftest.er1 >conftest.err
36629 rm -f conftest.er1
36630 cat conftest.err >&5
36631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36632 (exit $ac_status); } &&
ca5c6ac3 36633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
36634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36635 (eval $ac_try) 2>&5
36636 ac_status=$?
36637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36638 (exit $ac_status); }; } &&
36639 { ac_try='test -s conftest.$ac_objext'
36640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36641 (eval $ac_try) 2>&5
36642 ac_status=$?
36643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36644 (exit $ac_status); }; }; then
36645 wx_cv_func_statfs_decl=yes
36646else
36647 echo "$as_me: failed program was:" >&5
36648sed 's/^/| /' conftest.$ac_ext >&5
36649
36650wx_cv_func_statfs_decl=no
36651
36652fi
36653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
36654
36655fi
36656echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36657echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
36658
36659 if test "$wx_cv_func_statfs_decl" = "yes"; then
36660 cat >>confdefs.h <<\_ACEOF
36661#define HAVE_STATFS_DECL 1
36662_ACEOF
36663
36664 fi
36665
a848cd7e
SC
36666 wx_cv_type_statvfs_t="struct statfs"
36667 cat >>confdefs.h <<\_ACEOF
36668#define HAVE_STATFS 1
36669_ACEOF
36670
36671else
36672 echo "$as_me:$LINENO: checking for statvfs" >&5
36673echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
36674if test "${wx_cv_func_statvfs+set}" = set; then
36675 echo $ECHO_N "(cached) $ECHO_C" >&6
36676else
36677 cat >conftest.$ac_ext <<_ACEOF
36678/* confdefs.h. */
36679_ACEOF
36680cat confdefs.h >>conftest.$ac_ext
36681cat >>conftest.$ac_ext <<_ACEOF
36682/* end confdefs.h. */
36683
36684 #include <stddef.h>
36685 #include <sys/statvfs.h>
36686
36687int
36688main ()
36689{
36690
36691 statvfs("/", NULL);
36692
36693 ;
36694 return 0;
36695}
36696_ACEOF
36697rm -f conftest.$ac_objext
36698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36699 (eval $ac_compile) 2>conftest.er1
a848cd7e 36700 ac_status=$?
ac1cb8d3
VS
36701 grep -v '^ *+' conftest.er1 >conftest.err
36702 rm -f conftest.er1
36703 cat conftest.err >&5
a848cd7e
SC
36704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36705 (exit $ac_status); } &&
ca5c6ac3 36706 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36708 (eval $ac_try) 2>&5
36709 ac_status=$?
36710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36711 (exit $ac_status); }; } &&
36712 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36714 (eval $ac_try) 2>&5
36715 ac_status=$?
36716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36717 (exit $ac_status); }; }; then
36718 wx_cv_func_statvfs=yes
36719else
36720 echo "$as_me: failed program was:" >&5
36721sed 's/^/| /' conftest.$ac_ext >&5
36722
36723wx_cv_func_statvfs=no
36724
36725fi
ac1cb8d3 36726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36727
36728fi
36729echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36730echo "${ECHO_T}$wx_cv_func_statvfs" >&6
36731
36732 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 36733 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
36734echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
36735if test "${wx_cv_type_statvfs_t+set}" = set; then
36736 echo $ECHO_N "(cached) $ECHO_C" >&6
36737else
36738 cat >conftest.$ac_ext <<_ACEOF
36739/* confdefs.h. */
36740_ACEOF
36741cat confdefs.h >>conftest.$ac_ext
36742cat >>conftest.$ac_ext <<_ACEOF
36743/* end confdefs.h. */
36744
36745 #include <sys/statvfs.h>
36746
36747int
36748main ()
36749{
36750
36751 long l;
36752 statvfs_t fs;
36753 statvfs("/", &fs);
36754 l = fs.f_bsize;
36755 l += fs.f_blocks;
36756 l += fs.f_bavail;
36757
36758 ;
36759 return 0;
36760}
36761_ACEOF
36762rm -f conftest.$ac_objext
36763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36764 (eval $ac_compile) 2>conftest.er1
a848cd7e 36765 ac_status=$?
ac1cb8d3
VS
36766 grep -v '^ *+' conftest.er1 >conftest.err
36767 rm -f conftest.er1
36768 cat conftest.err >&5
a848cd7e
SC
36769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36770 (exit $ac_status); } &&
ca5c6ac3 36771 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36773 (eval $ac_try) 2>&5
36774 ac_status=$?
36775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36776 (exit $ac_status); }; } &&
36777 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36779 (eval $ac_try) 2>&5
36780 ac_status=$?
36781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36782 (exit $ac_status); }; }; then
36783 wx_cv_type_statvfs_t=statvfs_t
36784else
36785 echo "$as_me: failed program was:" >&5
36786sed 's/^/| /' conftest.$ac_ext >&5
36787
36788
36789 cat >conftest.$ac_ext <<_ACEOF
36790/* confdefs.h. */
36791_ACEOF
36792cat confdefs.h >>conftest.$ac_ext
36793cat >>conftest.$ac_ext <<_ACEOF
36794/* end confdefs.h. */
36795
36796 #include <sys/statvfs.h>
36797
36798int
36799main ()
36800{
36801
36802 long l;
36803 struct statvfs fs;
36804 statvfs("/", &fs);
36805 l = fs.f_bsize;
36806 l += fs.f_blocks;
36807 l += fs.f_bavail;
36808
36809 ;
36810 return 0;
36811}
36812_ACEOF
36813rm -f conftest.$ac_objext
36814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36815 (eval $ac_compile) 2>conftest.er1
a848cd7e 36816 ac_status=$?
ac1cb8d3
VS
36817 grep -v '^ *+' conftest.er1 >conftest.err
36818 rm -f conftest.er1
36819 cat conftest.err >&5
a848cd7e
SC
36820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36821 (exit $ac_status); } &&
ca5c6ac3 36822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36824 (eval $ac_try) 2>&5
36825 ac_status=$?
36826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36827 (exit $ac_status); }; } &&
36828 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36830 (eval $ac_try) 2>&5
36831 ac_status=$?
36832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36833 (exit $ac_status); }; }; then
36834 wx_cv_type_statvfs_t="struct statvfs"
36835else
36836 echo "$as_me: failed program was:" >&5
36837sed 's/^/| /' conftest.$ac_ext >&5
36838
36839wx_cv_type_statvfs_t="unknown"
36840
36841fi
ac1cb8d3 36842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36843
36844
36845fi
ac1cb8d3 36846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36847
36848fi
36849echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
36850echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
36851
a848cd7e
SC
36852 if test "$wx_cv_type_statvfs_t" != "unknown"; then
36853 cat >>confdefs.h <<\_ACEOF
36854#define HAVE_STATVFS 1
36855_ACEOF
36856
36857 fi
36858 else
36859 wx_cv_type_statvfs_t="unknown"
36860 fi
36861fi
36862
36863if test "$wx_cv_type_statvfs_t" != "unknown"; then
36864 cat >>confdefs.h <<_ACEOF
36865#define WX_STATFS_T $wx_cv_type_statvfs_t
36866_ACEOF
36867
36868else
36869 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
36870echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
36871fi
36872
36873if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36874
36875
36876for ac_func in fcntl flock
36877do
36878as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36879echo "$as_me:$LINENO: checking for $ac_func" >&5
36880echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36881if eval "test \"\${$as_ac_var+set}\" = set"; then
36882 echo $ECHO_N "(cached) $ECHO_C" >&6
36883else
36884 cat >conftest.$ac_ext <<_ACEOF
36885/* confdefs.h. */
36886_ACEOF
36887cat confdefs.h >>conftest.$ac_ext
36888cat >>conftest.$ac_ext <<_ACEOF
36889/* end confdefs.h. */
ac1cb8d3
VS
36890/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36892#define $ac_func innocuous_$ac_func
36893
a848cd7e
SC
36894/* System header to define __stub macros and hopefully few prototypes,
36895 which can conflict with char $ac_func (); below.
36896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36897 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36898
a848cd7e
SC
36899#ifdef __STDC__
36900# include <limits.h>
36901#else
36902# include <assert.h>
36903#endif
ac1cb8d3
VS
36904
36905#undef $ac_func
36906
a848cd7e
SC
36907/* Override any gcc2 internal prototype to avoid an error. */
36908#ifdef __cplusplus
36909extern "C"
36910{
36911#endif
36912/* We use char because int might match the return type of a gcc2
36913 builtin and then its argument prototype would still apply. */
36914char $ac_func ();
36915/* The GNU C library defines this for functions which it implements
36916 to always fail with ENOSYS. Some functions are actually named
36917 something starting with __ and the normal name is an alias. */
36918#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36919choke me
36920#else
36921char (*f) () = $ac_func;
36922#endif
36923#ifdef __cplusplus
36924}
36925#endif
36926
36927int
36928main ()
36929{
36930return f != $ac_func;
36931 ;
36932 return 0;
36933}
36934_ACEOF
36935rm -f conftest.$ac_objext conftest$ac_exeext
36936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36937 (eval $ac_link) 2>conftest.er1
a848cd7e 36938 ac_status=$?
ac1cb8d3
VS
36939 grep -v '^ *+' conftest.er1 >conftest.err
36940 rm -f conftest.er1
36941 cat conftest.err >&5
a848cd7e
SC
36942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36943 (exit $ac_status); } &&
ca5c6ac3 36944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36946 (eval $ac_try) 2>&5
36947 ac_status=$?
36948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36949 (exit $ac_status); }; } &&
36950 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36952 (eval $ac_try) 2>&5
36953 ac_status=$?
36954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36955 (exit $ac_status); }; }; then
36956 eval "$as_ac_var=yes"
36957else
36958 echo "$as_me: failed program was:" >&5
36959sed 's/^/| /' conftest.$ac_ext >&5
36960
36961eval "$as_ac_var=no"
36962fi
ac1cb8d3
VS
36963rm -f conftest.err conftest.$ac_objext \
36964 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36965fi
36966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36967echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36968if test `eval echo '${'$as_ac_var'}'` = yes; then
36969 cat >>confdefs.h <<_ACEOF
36970#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36971_ACEOF
36972 break
36973fi
36974done
36975
36976
36977 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
36978 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
36979echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
36980 wxUSE_SNGLINST_CHECKER=no
36981 fi
36982fi
36983
36984
36985for ac_func in timegm
36986do
36987as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36988echo "$as_me:$LINENO: checking for $ac_func" >&5
36989echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36990if eval "test \"\${$as_ac_var+set}\" = set"; then
36991 echo $ECHO_N "(cached) $ECHO_C" >&6
36992else
36993 cat >conftest.$ac_ext <<_ACEOF
36994/* confdefs.h. */
36995_ACEOF
36996cat confdefs.h >>conftest.$ac_ext
36997cat >>conftest.$ac_ext <<_ACEOF
36998/* end confdefs.h. */
ac1cb8d3
VS
36999/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37001#define $ac_func innocuous_$ac_func
37002
a848cd7e
SC
37003/* System header to define __stub macros and hopefully few prototypes,
37004 which can conflict with char $ac_func (); below.
37005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37006 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37007
a848cd7e
SC
37008#ifdef __STDC__
37009# include <limits.h>
37010#else
37011# include <assert.h>
37012#endif
ac1cb8d3
VS
37013
37014#undef $ac_func
37015
a848cd7e
SC
37016/* Override any gcc2 internal prototype to avoid an error. */
37017#ifdef __cplusplus
37018extern "C"
37019{
37020#endif
37021/* We use char because int might match the return type of a gcc2
37022 builtin and then its argument prototype would still apply. */
37023char $ac_func ();
37024/* The GNU C library defines this for functions which it implements
37025 to always fail with ENOSYS. Some functions are actually named
37026 something starting with __ and the normal name is an alias. */
37027#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37028choke me
37029#else
37030char (*f) () = $ac_func;
37031#endif
37032#ifdef __cplusplus
37033}
37034#endif
37035
37036int
37037main ()
37038{
37039return f != $ac_func;
37040 ;
37041 return 0;
37042}
37043_ACEOF
37044rm -f conftest.$ac_objext conftest$ac_exeext
37045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37046 (eval $ac_link) 2>conftest.er1
a848cd7e 37047 ac_status=$?
ac1cb8d3
VS
37048 grep -v '^ *+' conftest.er1 >conftest.err
37049 rm -f conftest.er1
37050 cat conftest.err >&5
a848cd7e
SC
37051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37052 (exit $ac_status); } &&
ca5c6ac3 37053 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37055 (eval $ac_try) 2>&5
37056 ac_status=$?
37057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37058 (exit $ac_status); }; } &&
37059 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37061 (eval $ac_try) 2>&5
37062 ac_status=$?
37063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37064 (exit $ac_status); }; }; then
37065 eval "$as_ac_var=yes"
37066else
37067 echo "$as_me: failed program was:" >&5
37068sed 's/^/| /' conftest.$ac_ext >&5
37069
37070eval "$as_ac_var=no"
37071fi
ac1cb8d3
VS
37072rm -f conftest.err conftest.$ac_objext \
37073 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37074fi
37075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37076echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37077if test `eval echo '${'$as_ac_var'}'` = yes; then
37078 cat >>confdefs.h <<_ACEOF
37079#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37080_ACEOF
37081
37082fi
37083done
37084
37085
37086
37087
37088for ac_func in putenv setenv
37089do
37090as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37091echo "$as_me:$LINENO: checking for $ac_func" >&5
37092echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37093if eval "test \"\${$as_ac_var+set}\" = set"; then
37094 echo $ECHO_N "(cached) $ECHO_C" >&6
37095else
37096 cat >conftest.$ac_ext <<_ACEOF
37097/* confdefs.h. */
37098_ACEOF
37099cat confdefs.h >>conftest.$ac_ext
37100cat >>conftest.$ac_ext <<_ACEOF
37101/* end confdefs.h. */
ac1cb8d3
VS
37102/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37104#define $ac_func innocuous_$ac_func
37105
a848cd7e
SC
37106/* System header to define __stub macros and hopefully few prototypes,
37107 which can conflict with char $ac_func (); below.
37108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37109 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37110
a848cd7e
SC
37111#ifdef __STDC__
37112# include <limits.h>
37113#else
37114# include <assert.h>
37115#endif
ac1cb8d3
VS
37116
37117#undef $ac_func
37118
a848cd7e
SC
37119/* Override any gcc2 internal prototype to avoid an error. */
37120#ifdef __cplusplus
37121extern "C"
37122{
37123#endif
37124/* We use char because int might match the return type of a gcc2
37125 builtin and then its argument prototype would still apply. */
37126char $ac_func ();
37127/* The GNU C library defines this for functions which it implements
37128 to always fail with ENOSYS. Some functions are actually named
37129 something starting with __ and the normal name is an alias. */
37130#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37131choke me
37132#else
37133char (*f) () = $ac_func;
37134#endif
37135#ifdef __cplusplus
37136}
37137#endif
37138
37139int
37140main ()
37141{
37142return f != $ac_func;
37143 ;
37144 return 0;
37145}
37146_ACEOF
37147rm -f conftest.$ac_objext conftest$ac_exeext
37148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37149 (eval $ac_link) 2>conftest.er1
a848cd7e 37150 ac_status=$?
ac1cb8d3
VS
37151 grep -v '^ *+' conftest.er1 >conftest.err
37152 rm -f conftest.er1
37153 cat conftest.err >&5
a848cd7e
SC
37154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37155 (exit $ac_status); } &&
ca5c6ac3 37156 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37158 (eval $ac_try) 2>&5
37159 ac_status=$?
37160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37161 (exit $ac_status); }; } &&
37162 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37164 (eval $ac_try) 2>&5
37165 ac_status=$?
37166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37167 (exit $ac_status); }; }; then
37168 eval "$as_ac_var=yes"
37169else
37170 echo "$as_me: failed program was:" >&5
37171sed 's/^/| /' conftest.$ac_ext >&5
37172
37173eval "$as_ac_var=no"
37174fi
ac1cb8d3
VS
37175rm -f conftest.err conftest.$ac_objext \
37176 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37177fi
37178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37179echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37180if test `eval echo '${'$as_ac_var'}'` = yes; then
37181 cat >>confdefs.h <<_ACEOF
37182#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37183_ACEOF
37184 break
37185fi
37186done
37187
37188
37189HAVE_SOME_SLEEP_FUNC=0
37190if test "$USE_BEOS" = 1; then
37191 cat >>confdefs.h <<\_ACEOF
37192#define HAVE_SLEEP 1
37193_ACEOF
37194
37195 HAVE_SOME_SLEEP_FUNC=1
37196fi
37197
37198if test "$USE_DARWIN" = 1; then
37199 cat >>confdefs.h <<\_ACEOF
37200#define HAVE_USLEEP 1
37201_ACEOF
37202
37203 HAVE_SOME_SLEEP_FUNC=1
37204fi
37205
37206if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37207 POSIX4_LINK=
37208
37209for ac_func in nanosleep
37210do
37211as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37212echo "$as_me:$LINENO: checking for $ac_func" >&5
37213echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37214if eval "test \"\${$as_ac_var+set}\" = set"; then
37215 echo $ECHO_N "(cached) $ECHO_C" >&6
37216else
37217 cat >conftest.$ac_ext <<_ACEOF
37218/* confdefs.h. */
37219_ACEOF
37220cat confdefs.h >>conftest.$ac_ext
37221cat >>conftest.$ac_ext <<_ACEOF
37222/* end confdefs.h. */
ac1cb8d3
VS
37223/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37225#define $ac_func innocuous_$ac_func
37226
a848cd7e
SC
37227/* System header to define __stub macros and hopefully few prototypes,
37228 which can conflict with char $ac_func (); below.
37229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37230 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37231
a848cd7e
SC
37232#ifdef __STDC__
37233# include <limits.h>
37234#else
37235# include <assert.h>
37236#endif
ac1cb8d3
VS
37237
37238#undef $ac_func
37239
a848cd7e
SC
37240/* Override any gcc2 internal prototype to avoid an error. */
37241#ifdef __cplusplus
37242extern "C"
37243{
37244#endif
37245/* We use char because int might match the return type of a gcc2
37246 builtin and then its argument prototype would still apply. */
37247char $ac_func ();
37248/* The GNU C library defines this for functions which it implements
37249 to always fail with ENOSYS. Some functions are actually named
37250 something starting with __ and the normal name is an alias. */
37251#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37252choke me
37253#else
37254char (*f) () = $ac_func;
37255#endif
37256#ifdef __cplusplus
37257}
37258#endif
37259
37260int
37261main ()
37262{
37263return f != $ac_func;
37264 ;
37265 return 0;
37266}
37267_ACEOF
37268rm -f conftest.$ac_objext conftest$ac_exeext
37269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37270 (eval $ac_link) 2>conftest.er1
a848cd7e 37271 ac_status=$?
ac1cb8d3
VS
37272 grep -v '^ *+' conftest.er1 >conftest.err
37273 rm -f conftest.er1
37274 cat conftest.err >&5
a848cd7e
SC
37275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37276 (exit $ac_status); } &&
ca5c6ac3 37277 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37279 (eval $ac_try) 2>&5
37280 ac_status=$?
37281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37282 (exit $ac_status); }; } &&
37283 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37285 (eval $ac_try) 2>&5
37286 ac_status=$?
37287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37288 (exit $ac_status); }; }; then
37289 eval "$as_ac_var=yes"
37290else
37291 echo "$as_me: failed program was:" >&5
37292sed 's/^/| /' conftest.$ac_ext >&5
37293
37294eval "$as_ac_var=no"
37295fi
ac1cb8d3
VS
37296rm -f conftest.err conftest.$ac_objext \
37297 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37298fi
37299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37300echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37301if test `eval echo '${'$as_ac_var'}'` = yes; then
37302 cat >>confdefs.h <<_ACEOF
37303#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37304_ACEOF
37305 cat >>confdefs.h <<\_ACEOF
37306#define HAVE_NANOSLEEP 1
37307_ACEOF
37308
37309else
37310
37311 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37312echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
37313if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37314 echo $ECHO_N "(cached) $ECHO_C" >&6
37315else
37316 ac_check_lib_save_LIBS=$LIBS
37317LIBS="-lposix4 $LIBS"
37318cat >conftest.$ac_ext <<_ACEOF
37319/* confdefs.h. */
37320_ACEOF
37321cat confdefs.h >>conftest.$ac_ext
37322cat >>conftest.$ac_ext <<_ACEOF
37323/* end confdefs.h. */
37324
37325/* Override any gcc2 internal prototype to avoid an error. */
37326#ifdef __cplusplus
37327extern "C"
37328#endif
37329/* We use char because int might match the return type of a gcc2
37330 builtin and then its argument prototype would still apply. */
37331char nanosleep ();
37332int
37333main ()
37334{
37335nanosleep ();
37336 ;
37337 return 0;
37338}
37339_ACEOF
37340rm -f conftest.$ac_objext conftest$ac_exeext
37341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37342 (eval $ac_link) 2>conftest.er1
a848cd7e 37343 ac_status=$?
ac1cb8d3
VS
37344 grep -v '^ *+' conftest.er1 >conftest.err
37345 rm -f conftest.er1
37346 cat conftest.err >&5
a848cd7e
SC
37347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37348 (exit $ac_status); } &&
ca5c6ac3 37349 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37351 (eval $ac_try) 2>&5
37352 ac_status=$?
37353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37354 (exit $ac_status); }; } &&
37355 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37357 (eval $ac_try) 2>&5
37358 ac_status=$?
37359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37360 (exit $ac_status); }; }; then
37361 ac_cv_lib_posix4_nanosleep=yes
37362else
37363 echo "$as_me: failed program was:" >&5
37364sed 's/^/| /' conftest.$ac_ext >&5
37365
37366ac_cv_lib_posix4_nanosleep=no
37367fi
ac1cb8d3
VS
37368rm -f conftest.err conftest.$ac_objext \
37369 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37370LIBS=$ac_check_lib_save_LIBS
37371fi
37372echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37373echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
37374if test $ac_cv_lib_posix4_nanosleep = yes; then
37375
37376 cat >>confdefs.h <<\_ACEOF
37377#define HAVE_NANOSLEEP 1
37378_ACEOF
37379
37380 POSIX4_LINK=" -lposix4"
37381
37382else
37383
37384
37385for ac_func in usleep
37386do
37387as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37388echo "$as_me:$LINENO: checking for $ac_func" >&5
37389echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37390if eval "test \"\${$as_ac_var+set}\" = set"; then
37391 echo $ECHO_N "(cached) $ECHO_C" >&6
37392else
37393 cat >conftest.$ac_ext <<_ACEOF
37394/* confdefs.h. */
37395_ACEOF
37396cat confdefs.h >>conftest.$ac_ext
37397cat >>conftest.$ac_ext <<_ACEOF
37398/* end confdefs.h. */
ac1cb8d3
VS
37399/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37401#define $ac_func innocuous_$ac_func
37402
a848cd7e
SC
37403/* System header to define __stub macros and hopefully few prototypes,
37404 which can conflict with char $ac_func (); below.
37405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37406 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37407
a848cd7e
SC
37408#ifdef __STDC__
37409# include <limits.h>
37410#else
37411# include <assert.h>
37412#endif
ac1cb8d3
VS
37413
37414#undef $ac_func
37415
a848cd7e
SC
37416/* Override any gcc2 internal prototype to avoid an error. */
37417#ifdef __cplusplus
37418extern "C"
37419{
37420#endif
37421/* We use char because int might match the return type of a gcc2
37422 builtin and then its argument prototype would still apply. */
37423char $ac_func ();
37424/* The GNU C library defines this for functions which it implements
37425 to always fail with ENOSYS. Some functions are actually named
37426 something starting with __ and the normal name is an alias. */
37427#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37428choke me
37429#else
37430char (*f) () = $ac_func;
37431#endif
37432#ifdef __cplusplus
37433}
37434#endif
37435
37436int
37437main ()
37438{
37439return f != $ac_func;
37440 ;
37441 return 0;
37442}
37443_ACEOF
37444rm -f conftest.$ac_objext conftest$ac_exeext
37445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37446 (eval $ac_link) 2>conftest.er1
a848cd7e 37447 ac_status=$?
ac1cb8d3
VS
37448 grep -v '^ *+' conftest.er1 >conftest.err
37449 rm -f conftest.er1
37450 cat conftest.err >&5
a848cd7e
SC
37451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37452 (exit $ac_status); } &&
ca5c6ac3 37453 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37455 (eval $ac_try) 2>&5
37456 ac_status=$?
37457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37458 (exit $ac_status); }; } &&
37459 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37461 (eval $ac_try) 2>&5
37462 ac_status=$?
37463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37464 (exit $ac_status); }; }; then
37465 eval "$as_ac_var=yes"
37466else
37467 echo "$as_me: failed program was:" >&5
37468sed 's/^/| /' conftest.$ac_ext >&5
37469
37470eval "$as_ac_var=no"
37471fi
ac1cb8d3
VS
37472rm -f conftest.err conftest.$ac_objext \
37473 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37474fi
37475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37476echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37477if test `eval echo '${'$as_ac_var'}'` = yes; then
37478 cat >>confdefs.h <<_ACEOF
37479#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37480_ACEOF
37481 cat >>confdefs.h <<\_ACEOF
37482#define HAVE_USLEEP 1
37483_ACEOF
37484
37485else
37486 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37487echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37488
37489fi
37490done
37491
37492
37493
37494fi
37495
37496
37497
37498fi
37499done
37500
37501fi
37502
37503
37504
37505for ac_func in uname gethostname
37506do
37507as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37508echo "$as_me:$LINENO: checking for $ac_func" >&5
37509echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37510if eval "test \"\${$as_ac_var+set}\" = set"; then
37511 echo $ECHO_N "(cached) $ECHO_C" >&6
37512else
37513 cat >conftest.$ac_ext <<_ACEOF
37514/* confdefs.h. */
37515_ACEOF
37516cat confdefs.h >>conftest.$ac_ext
37517cat >>conftest.$ac_ext <<_ACEOF
37518/* end confdefs.h. */
ac1cb8d3
VS
37519/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37521#define $ac_func innocuous_$ac_func
37522
a848cd7e
SC
37523/* System header to define __stub macros and hopefully few prototypes,
37524 which can conflict with char $ac_func (); below.
37525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37526 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37527
a848cd7e
SC
37528#ifdef __STDC__
37529# include <limits.h>
37530#else
37531# include <assert.h>
37532#endif
ac1cb8d3
VS
37533
37534#undef $ac_func
37535
a848cd7e
SC
37536/* Override any gcc2 internal prototype to avoid an error. */
37537#ifdef __cplusplus
37538extern "C"
37539{
37540#endif
37541/* We use char because int might match the return type of a gcc2
37542 builtin and then its argument prototype would still apply. */
37543char $ac_func ();
37544/* The GNU C library defines this for functions which it implements
37545 to always fail with ENOSYS. Some functions are actually named
37546 something starting with __ and the normal name is an alias. */
37547#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37548choke me
37549#else
37550char (*f) () = $ac_func;
37551#endif
37552#ifdef __cplusplus
37553}
37554#endif
37555
37556int
37557main ()
37558{
37559return f != $ac_func;
37560 ;
37561 return 0;
37562}
37563_ACEOF
37564rm -f conftest.$ac_objext conftest$ac_exeext
37565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37566 (eval $ac_link) 2>conftest.er1
a848cd7e 37567 ac_status=$?
ac1cb8d3
VS
37568 grep -v '^ *+' conftest.er1 >conftest.err
37569 rm -f conftest.er1
37570 cat conftest.err >&5
a848cd7e
SC
37571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37572 (exit $ac_status); } &&
ca5c6ac3 37573 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37575 (eval $ac_try) 2>&5
37576 ac_status=$?
37577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37578 (exit $ac_status); }; } &&
37579 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37581 (eval $ac_try) 2>&5
37582 ac_status=$?
37583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37584 (exit $ac_status); }; }; then
37585 eval "$as_ac_var=yes"
37586else
37587 echo "$as_me: failed program was:" >&5
37588sed 's/^/| /' conftest.$ac_ext >&5
37589
37590eval "$as_ac_var=no"
37591fi
ac1cb8d3
VS
37592rm -f conftest.err conftest.$ac_objext \
37593 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37594fi
37595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37596echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37597if test `eval echo '${'$as_ac_var'}'` = yes; then
37598 cat >>confdefs.h <<_ACEOF
37599#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37600_ACEOF
37601 break
37602fi
37603done
37604
37605
56632e81
MW
37606
37607 for wx_func in strtok_r
37608 do
37609 echo "$as_me:$LINENO: checking for $wx_func" >&5
37610echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
37611if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
37612 echo $ECHO_N "(cached) $ECHO_C" >&6
37613else
56632e81
MW
37614
37615 cat >conftest.$ac_ext <<_ACEOF
37616
37617 /* confdefs.h. */
a848cd7e
SC
37618_ACEOF
37619cat confdefs.h >>conftest.$ac_ext
37620cat >>conftest.$ac_ext <<_ACEOF
37621/* end confdefs.h. */
56632e81
MW
37622
37623 #define _REENTRANT
37624 $ac_includes_default
37625
a848cd7e
SC
37626int
37627main ()
37628{
56632e81
MW
37629
37630 #ifndef $wx_func
37631 &$wx_func;
37632 #endif
37633
5acfd58d 37634
a848cd7e
SC
37635 ;
37636 return 0;
37637}
56632e81 37638
a848cd7e 37639_ACEOF
56632e81
MW
37640rm -f conftest.$ac_objext conftest$ac_exeext
37641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37642 (eval $ac_link) 2>conftest.er1
a848cd7e 37643 ac_status=$?
ac1cb8d3
VS
37644 grep -v '^ *+' conftest.er1 >conftest.err
37645 rm -f conftest.er1
37646 cat conftest.err >&5
a848cd7e
SC
37647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37648 (exit $ac_status); } &&
ca5c6ac3 37649 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37651 (eval $ac_try) 2>&5
37652 ac_status=$?
37653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37654 (exit $ac_status); }; } &&
56632e81 37655 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37657 (eval $ac_try) 2>&5
37658 ac_status=$?
37659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37660 (exit $ac_status); }; }; then
56632e81 37661 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
37662else
37663 echo "$as_me: failed program was:" >&5
37664sed 's/^/| /' conftest.$ac_ext >&5
37665
56632e81 37666eval wx_cv_func_$wx_func=no
a848cd7e 37667fi
56632e81
MW
37668rm -f conftest.err conftest.$ac_objext \
37669 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37670
56632e81
MW
37671fi
37672echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
37673echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
a848cd7e 37674
56632e81
MW
37675 if eval test \$wx_cv_func_$wx_func = yes
37676 then
37677 cat >>confdefs.h <<_ACEOF
37678#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
82a2636b
MW
37679_ACEOF
37680
37681
56632e81
MW
37682 else
37683 :
5acfd58d 37684
56632e81
MW
37685 fi
37686 done
5acfd58d 37687
a848cd7e 37688
a848cd7e
SC
37689INET_LINK=
37690
37691for ac_func in inet_addr
37692do
37693as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37694echo "$as_me:$LINENO: checking for $ac_func" >&5
37695echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37696if eval "test \"\${$as_ac_var+set}\" = set"; then
37697 echo $ECHO_N "(cached) $ECHO_C" >&6
37698else
37699 cat >conftest.$ac_ext <<_ACEOF
37700/* confdefs.h. */
37701_ACEOF
37702cat confdefs.h >>conftest.$ac_ext
37703cat >>conftest.$ac_ext <<_ACEOF
37704/* end confdefs.h. */
ac1cb8d3
VS
37705/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37707#define $ac_func innocuous_$ac_func
37708
a848cd7e
SC
37709/* System header to define __stub macros and hopefully few prototypes,
37710 which can conflict with char $ac_func (); below.
37711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37712 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37713
a848cd7e
SC
37714#ifdef __STDC__
37715# include <limits.h>
37716#else
37717# include <assert.h>
37718#endif
ac1cb8d3
VS
37719
37720#undef $ac_func
37721
a848cd7e
SC
37722/* Override any gcc2 internal prototype to avoid an error. */
37723#ifdef __cplusplus
37724extern "C"
37725{
37726#endif
37727/* We use char because int might match the return type of a gcc2
37728 builtin and then its argument prototype would still apply. */
37729char $ac_func ();
37730/* The GNU C library defines this for functions which it implements
37731 to always fail with ENOSYS. Some functions are actually named
37732 something starting with __ and the normal name is an alias. */
37733#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37734choke me
37735#else
37736char (*f) () = $ac_func;
37737#endif
37738#ifdef __cplusplus
37739}
37740#endif
37741
37742int
37743main ()
37744{
37745return f != $ac_func;
37746 ;
37747 return 0;
37748}
37749_ACEOF
37750rm -f conftest.$ac_objext conftest$ac_exeext
37751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37752 (eval $ac_link) 2>conftest.er1
a848cd7e 37753 ac_status=$?
ac1cb8d3
VS
37754 grep -v '^ *+' conftest.er1 >conftest.err
37755 rm -f conftest.er1
37756 cat conftest.err >&5
a848cd7e
SC
37757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37758 (exit $ac_status); } &&
ca5c6ac3 37759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37761 (eval $ac_try) 2>&5
37762 ac_status=$?
37763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37764 (exit $ac_status); }; } &&
37765 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37767 (eval $ac_try) 2>&5
37768 ac_status=$?
37769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37770 (exit $ac_status); }; }; then
37771 eval "$as_ac_var=yes"
37772else
37773 echo "$as_me: failed program was:" >&5
37774sed 's/^/| /' conftest.$ac_ext >&5
37775
37776eval "$as_ac_var=no"
37777fi
ac1cb8d3
VS
37778rm -f conftest.err conftest.$ac_objext \
37779 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37780fi
37781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37782echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37783if test `eval echo '${'$as_ac_var'}'` = yes; then
37784 cat >>confdefs.h <<_ACEOF
37785#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37786_ACEOF
37787 cat >>confdefs.h <<\_ACEOF
37788#define HAVE_INET_ADDR 1
37789_ACEOF
37790
37791else
37792
37793 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
37794echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
37795if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
37796 echo $ECHO_N "(cached) $ECHO_C" >&6
37797else
37798 ac_check_lib_save_LIBS=$LIBS
37799LIBS="-lnsl $LIBS"
37800cat >conftest.$ac_ext <<_ACEOF
37801/* confdefs.h. */
37802_ACEOF
37803cat confdefs.h >>conftest.$ac_ext
37804cat >>conftest.$ac_ext <<_ACEOF
37805/* end confdefs.h. */
37806
37807/* Override any gcc2 internal prototype to avoid an error. */
37808#ifdef __cplusplus
37809extern "C"
37810#endif
37811/* We use char because int might match the return type of a gcc2
37812 builtin and then its argument prototype would still apply. */
37813char inet_addr ();
37814int
37815main ()
37816{
37817inet_addr ();
37818 ;
37819 return 0;
37820}
37821_ACEOF
37822rm -f conftest.$ac_objext conftest$ac_exeext
37823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37824 (eval $ac_link) 2>conftest.er1
a848cd7e 37825 ac_status=$?
ac1cb8d3
VS
37826 grep -v '^ *+' conftest.er1 >conftest.err
37827 rm -f conftest.er1
37828 cat conftest.err >&5
a848cd7e
SC
37829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37830 (exit $ac_status); } &&
ca5c6ac3 37831 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37833 (eval $ac_try) 2>&5
37834 ac_status=$?
37835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37836 (exit $ac_status); }; } &&
37837 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37839 (eval $ac_try) 2>&5
37840 ac_status=$?
37841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37842 (exit $ac_status); }; }; then
37843 ac_cv_lib_nsl_inet_addr=yes
37844else
37845 echo "$as_me: failed program was:" >&5
37846sed 's/^/| /' conftest.$ac_ext >&5
37847
37848ac_cv_lib_nsl_inet_addr=no
37849fi
ac1cb8d3
VS
37850rm -f conftest.err conftest.$ac_objext \
37851 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37852LIBS=$ac_check_lib_save_LIBS
37853fi
37854echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
37855echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
37856if test $ac_cv_lib_nsl_inet_addr = yes; then
37857 INET_LINK="nsl"
37858else
37859
37860 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
37861echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
37862if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
37863 echo $ECHO_N "(cached) $ECHO_C" >&6
37864else
37865 ac_check_lib_save_LIBS=$LIBS
37866LIBS="-lresolv $LIBS"
37867cat >conftest.$ac_ext <<_ACEOF
37868/* confdefs.h. */
37869_ACEOF
37870cat confdefs.h >>conftest.$ac_ext
37871cat >>conftest.$ac_ext <<_ACEOF
37872/* end confdefs.h. */
37873
37874/* Override any gcc2 internal prototype to avoid an error. */
37875#ifdef __cplusplus
37876extern "C"
37877#endif
37878/* We use char because int might match the return type of a gcc2
37879 builtin and then its argument prototype would still apply. */
37880char inet_addr ();
37881int
37882main ()
37883{
37884inet_addr ();
37885 ;
37886 return 0;
37887}
37888_ACEOF
37889rm -f conftest.$ac_objext conftest$ac_exeext
37890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37891 (eval $ac_link) 2>conftest.er1
a848cd7e 37892 ac_status=$?
ac1cb8d3
VS
37893 grep -v '^ *+' conftest.er1 >conftest.err
37894 rm -f conftest.er1
37895 cat conftest.err >&5
a848cd7e
SC
37896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37897 (exit $ac_status); } &&
ca5c6ac3 37898 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37900 (eval $ac_try) 2>&5
37901 ac_status=$?
37902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37903 (exit $ac_status); }; } &&
37904 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37906 (eval $ac_try) 2>&5
37907 ac_status=$?
37908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37909 (exit $ac_status); }; }; then
37910 ac_cv_lib_resolv_inet_addr=yes
37911else
37912 echo "$as_me: failed program was:" >&5
37913sed 's/^/| /' conftest.$ac_ext >&5
37914
37915ac_cv_lib_resolv_inet_addr=no
37916fi
ac1cb8d3
VS
37917rm -f conftest.err conftest.$ac_objext \
37918 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37919LIBS=$ac_check_lib_save_LIBS
37920fi
37921echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
37922echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
37923if test $ac_cv_lib_resolv_inet_addr = yes; then
37924 INET_LINK="resolv"
37925else
37926
37927 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
37928echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
37929if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
37930 echo $ECHO_N "(cached) $ECHO_C" >&6
37931else
37932 ac_check_lib_save_LIBS=$LIBS
37933LIBS="-lsocket $LIBS"
37934cat >conftest.$ac_ext <<_ACEOF
37935/* confdefs.h. */
37936_ACEOF
37937cat confdefs.h >>conftest.$ac_ext
37938cat >>conftest.$ac_ext <<_ACEOF
37939/* end confdefs.h. */
37940
37941/* Override any gcc2 internal prototype to avoid an error. */
37942#ifdef __cplusplus
37943extern "C"
37944#endif
37945/* We use char because int might match the return type of a gcc2
37946 builtin and then its argument prototype would still apply. */
37947char inet_addr ();
37948int
37949main ()
37950{
37951inet_addr ();
37952 ;
37953 return 0;
37954}
37955_ACEOF
37956rm -f conftest.$ac_objext conftest$ac_exeext
37957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37958 (eval $ac_link) 2>conftest.er1
a848cd7e 37959 ac_status=$?
ac1cb8d3
VS
37960 grep -v '^ *+' conftest.er1 >conftest.err
37961 rm -f conftest.er1
37962 cat conftest.err >&5
a848cd7e
SC
37963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37964 (exit $ac_status); } &&
ca5c6ac3 37965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37967 (eval $ac_try) 2>&5
37968 ac_status=$?
37969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37970 (exit $ac_status); }; } &&
37971 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37973 (eval $ac_try) 2>&5
37974 ac_status=$?
37975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37976 (exit $ac_status); }; }; then
37977 ac_cv_lib_socket_inet_addr=yes
37978else
37979 echo "$as_me: failed program was:" >&5
37980sed 's/^/| /' conftest.$ac_ext >&5
37981
37982ac_cv_lib_socket_inet_addr=no
37983fi
ac1cb8d3
VS
37984rm -f conftest.err conftest.$ac_objext \
37985 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37986LIBS=$ac_check_lib_save_LIBS
37987fi
37988echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
37989echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
37990if test $ac_cv_lib_socket_inet_addr = yes; then
37991 INET_LINK="socket"
37992
37993fi
37994
37995
37996
37997fi
37998
37999
38000
38001fi
38002
38003
38004
38005fi
38006done
38007
38008
38009
38010for ac_func in inet_aton
38011do
38012as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38013echo "$as_me:$LINENO: checking for $ac_func" >&5
38014echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38015if eval "test \"\${$as_ac_var+set}\" = set"; then
38016 echo $ECHO_N "(cached) $ECHO_C" >&6
38017else
38018 cat >conftest.$ac_ext <<_ACEOF
38019/* confdefs.h. */
38020_ACEOF
38021cat confdefs.h >>conftest.$ac_ext
38022cat >>conftest.$ac_ext <<_ACEOF
38023/* end confdefs.h. */
ac1cb8d3
VS
38024/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38026#define $ac_func innocuous_$ac_func
38027
a848cd7e
SC
38028/* System header to define __stub macros and hopefully few prototypes,
38029 which can conflict with char $ac_func (); below.
38030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38031 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38032
a848cd7e
SC
38033#ifdef __STDC__
38034# include <limits.h>
38035#else
38036# include <assert.h>
38037#endif
ac1cb8d3
VS
38038
38039#undef $ac_func
38040
a848cd7e
SC
38041/* Override any gcc2 internal prototype to avoid an error. */
38042#ifdef __cplusplus
38043extern "C"
38044{
38045#endif
38046/* We use char because int might match the return type of a gcc2
38047 builtin and then its argument prototype would still apply. */
38048char $ac_func ();
38049/* The GNU C library defines this for functions which it implements
38050 to always fail with ENOSYS. Some functions are actually named
38051 something starting with __ and the normal name is an alias. */
38052#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38053choke me
38054#else
38055char (*f) () = $ac_func;
38056#endif
38057#ifdef __cplusplus
38058}
38059#endif
38060
38061int
38062main ()
38063{
38064return f != $ac_func;
38065 ;
38066 return 0;
38067}
38068_ACEOF
38069rm -f conftest.$ac_objext conftest$ac_exeext
38070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38071 (eval $ac_link) 2>conftest.er1
a848cd7e 38072 ac_status=$?
ac1cb8d3
VS
38073 grep -v '^ *+' conftest.er1 >conftest.err
38074 rm -f conftest.er1
38075 cat conftest.err >&5
a848cd7e
SC
38076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38077 (exit $ac_status); } &&
ca5c6ac3 38078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38080 (eval $ac_try) 2>&5
38081 ac_status=$?
38082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38083 (exit $ac_status); }; } &&
38084 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38086 (eval $ac_try) 2>&5
38087 ac_status=$?
38088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38089 (exit $ac_status); }; }; then
38090 eval "$as_ac_var=yes"
38091else
38092 echo "$as_me: failed program was:" >&5
38093sed 's/^/| /' conftest.$ac_ext >&5
38094
38095eval "$as_ac_var=no"
38096fi
ac1cb8d3
VS
38097rm -f conftest.err conftest.$ac_objext \
38098 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38099fi
38100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38101echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38102if test `eval echo '${'$as_ac_var'}'` = yes; then
38103 cat >>confdefs.h <<_ACEOF
38104#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38105_ACEOF
38106 cat >>confdefs.h <<\_ACEOF
38107#define HAVE_INET_ATON 1
38108_ACEOF
38109
38110else
38111
38112 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38113echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38114echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
38115if eval "test \"\${$as_ac_Lib+set}\" = set"; then
38116 echo $ECHO_N "(cached) $ECHO_C" >&6
38117else
38118 ac_check_lib_save_LIBS=$LIBS
38119LIBS="-l$INET_LINK $LIBS"
38120cat >conftest.$ac_ext <<_ACEOF
38121/* confdefs.h. */
38122_ACEOF
38123cat confdefs.h >>conftest.$ac_ext
38124cat >>conftest.$ac_ext <<_ACEOF
38125/* end confdefs.h. */
38126
38127/* Override any gcc2 internal prototype to avoid an error. */
38128#ifdef __cplusplus
38129extern "C"
38130#endif
38131/* We use char because int might match the return type of a gcc2
38132 builtin and then its argument prototype would still apply. */
38133char inet_aton ();
38134int
38135main ()
38136{
38137inet_aton ();
38138 ;
38139 return 0;
38140}
38141_ACEOF
38142rm -f conftest.$ac_objext conftest$ac_exeext
38143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38144 (eval $ac_link) 2>conftest.er1
a848cd7e 38145 ac_status=$?
ac1cb8d3
VS
38146 grep -v '^ *+' conftest.er1 >conftest.err
38147 rm -f conftest.er1
38148 cat conftest.err >&5
a848cd7e
SC
38149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38150 (exit $ac_status); } &&
ca5c6ac3 38151 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38153 (eval $ac_try) 2>&5
38154 ac_status=$?
38155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38156 (exit $ac_status); }; } &&
38157 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38159 (eval $ac_try) 2>&5
38160 ac_status=$?
38161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38162 (exit $ac_status); }; }; then
38163 eval "$as_ac_Lib=yes"
38164else
38165 echo "$as_me: failed program was:" >&5
38166sed 's/^/| /' conftest.$ac_ext >&5
38167
38168eval "$as_ac_Lib=no"
38169fi
ac1cb8d3
VS
38170rm -f conftest.err conftest.$ac_objext \
38171 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38172LIBS=$ac_check_lib_save_LIBS
38173fi
38174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
38175echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
38176if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38177 cat >>confdefs.h <<\_ACEOF
38178#define HAVE_INET_ATON 1
38179_ACEOF
38180
38181fi
38182
38183
38184fi
38185done
38186
38187
38188if test "x$INET_LINK" != "x"; then
38189 cat >>confdefs.h <<\_ACEOF
38190#define HAVE_INET_ADDR 1
38191_ACEOF
38192
38193 INET_LINK=" -l$INET_LINK"
38194fi
38195
38196fi
38197
38198
38199
38200EXTRALIBS_ESD=
38201echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
38202echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
38203if test "${ac_cv_lib_esd_esd_close+set}" = set; then
38204 echo $ECHO_N "(cached) $ECHO_C" >&6
38205else
38206 ac_check_lib_save_LIBS=$LIBS
38207LIBS="-lesd $LIBS"
38208cat >conftest.$ac_ext <<_ACEOF
38209/* confdefs.h. */
38210_ACEOF
38211cat confdefs.h >>conftest.$ac_ext
38212cat >>conftest.$ac_ext <<_ACEOF
38213/* end confdefs.h. */
38214
38215/* Override any gcc2 internal prototype to avoid an error. */
38216#ifdef __cplusplus
38217extern "C"
38218#endif
38219/* We use char because int might match the return type of a gcc2
38220 builtin and then its argument prototype would still apply. */
38221char esd_close ();
38222int
38223main ()
38224{
38225esd_close ();
38226 ;
38227 return 0;
38228}
38229_ACEOF
38230rm -f conftest.$ac_objext conftest$ac_exeext
38231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38232 (eval $ac_link) 2>conftest.er1
a848cd7e 38233 ac_status=$?
ac1cb8d3
VS
38234 grep -v '^ *+' conftest.er1 >conftest.err
38235 rm -f conftest.er1
38236 cat conftest.err >&5
a848cd7e
SC
38237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38238 (exit $ac_status); } &&
ca5c6ac3 38239 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38241 (eval $ac_try) 2>&5
38242 ac_status=$?
38243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38244 (exit $ac_status); }; } &&
38245 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38247 (eval $ac_try) 2>&5
38248 ac_status=$?
38249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38250 (exit $ac_status); }; }; then
38251 ac_cv_lib_esd_esd_close=yes
38252else
38253 echo "$as_me: failed program was:" >&5
38254sed 's/^/| /' conftest.$ac_ext >&5
38255
38256ac_cv_lib_esd_esd_close=no
38257fi
ac1cb8d3
VS
38258rm -f conftest.err conftest.$ac_objext \
38259 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38260LIBS=$ac_check_lib_save_LIBS
38261fi
38262echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
38263echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
38264if test $ac_cv_lib_esd_esd_close = yes; then
38265
38266
38267for ac_header in esd.h
38268do
38269as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38270if eval "test \"\${$as_ac_Header+set}\" = set"; then
38271 echo "$as_me:$LINENO: checking for $ac_header" >&5
38272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38273if eval "test \"\${$as_ac_Header+set}\" = set"; then
38274 echo $ECHO_N "(cached) $ECHO_C" >&6
38275fi
38276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38278else
38279 # Is the header compilable?
38280echo "$as_me:$LINENO: checking $ac_header usability" >&5
38281echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38282cat >conftest.$ac_ext <<_ACEOF
38283/* confdefs.h. */
38284_ACEOF
38285cat confdefs.h >>conftest.$ac_ext
38286cat >>conftest.$ac_ext <<_ACEOF
38287/* end confdefs.h. */
38288$ac_includes_default
38289#include <$ac_header>
38290_ACEOF
38291rm -f conftest.$ac_objext
38292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38293 (eval $ac_compile) 2>conftest.er1
a848cd7e 38294 ac_status=$?
ac1cb8d3
VS
38295 grep -v '^ *+' conftest.er1 >conftest.err
38296 rm -f conftest.er1
38297 cat conftest.err >&5
a848cd7e
SC
38298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38299 (exit $ac_status); } &&
ca5c6ac3 38300 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38302 (eval $ac_try) 2>&5
38303 ac_status=$?
38304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38305 (exit $ac_status); }; } &&
38306 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38308 (eval $ac_try) 2>&5
38309 ac_status=$?
38310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38311 (exit $ac_status); }; }; then
38312 ac_header_compiler=yes
38313else
38314 echo "$as_me: failed program was:" >&5
38315sed 's/^/| /' conftest.$ac_ext >&5
38316
38317ac_header_compiler=no
38318fi
ac1cb8d3 38319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38320echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38321echo "${ECHO_T}$ac_header_compiler" >&6
38322
38323# Is the header present?
38324echo "$as_me:$LINENO: checking $ac_header presence" >&5
38325echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38326cat >conftest.$ac_ext <<_ACEOF
38327/* confdefs.h. */
38328_ACEOF
38329cat confdefs.h >>conftest.$ac_ext
38330cat >>conftest.$ac_ext <<_ACEOF
38331/* end confdefs.h. */
38332#include <$ac_header>
38333_ACEOF
38334if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38336 ac_status=$?
38337 grep -v '^ *+' conftest.er1 >conftest.err
38338 rm -f conftest.er1
38339 cat conftest.err >&5
38340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38341 (exit $ac_status); } >/dev/null; then
38342 if test -s conftest.err; then
5d7b7554
VZ
38343 ac_cpp_err=$ac_cxx_preproc_warn_flag
38344 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
38345 else
38346 ac_cpp_err=
38347 fi
38348else
38349 ac_cpp_err=yes
38350fi
38351if test -z "$ac_cpp_err"; then
38352 ac_header_preproc=yes
38353else
38354 echo "$as_me: failed program was:" >&5
38355sed 's/^/| /' conftest.$ac_ext >&5
38356
38357 ac_header_preproc=no
38358fi
38359rm -f conftest.err conftest.$ac_ext
38360echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38361echo "${ECHO_T}$ac_header_preproc" >&6
38362
38363# So? What about this header?
5d7b7554 38364case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 38365 yes:no: )
a848cd7e
SC
38366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38367echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38369echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38370 ac_header_preproc=yes
a848cd7e 38371 ;;
ac1cb8d3 38372 no:yes:* )
a848cd7e
SC
38373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38374echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38376echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38378echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38380echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38382echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38384echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38385 (
38386 cat <<\_ASBOX
ac1cb8d3
VS
38387## ----------------------------------------- ##
38388## Report this to wx-dev@lists.wxwidgets.org ##
38389## ----------------------------------------- ##
a848cd7e
SC
38390_ASBOX
38391 ) |
38392 sed "s/^/$as_me: WARNING: /" >&2
38393 ;;
38394esac
38395echo "$as_me:$LINENO: checking for $ac_header" >&5
38396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38397if eval "test \"\${$as_ac_Header+set}\" = set"; then
38398 echo $ECHO_N "(cached) $ECHO_C" >&6
38399else
ac1cb8d3 38400 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38401fi
38402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38403echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38404
38405fi
38406if test `eval echo '${'$as_ac_Header'}'` = yes; then
38407 cat >>confdefs.h <<_ACEOF
38408#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38409_ACEOF
38410
38411 EXTRALIBS_ESD="-lesd"
38412
38413fi
38414
38415done
38416
38417
38418fi
38419
38420
38421
38422echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
38423echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
38424cat >conftest.$ac_ext <<_ACEOF
38425/* confdefs.h. */
38426_ACEOF
38427cat confdefs.h >>conftest.$ac_ext
38428cat >>conftest.$ac_ext <<_ACEOF
38429/* end confdefs.h. */
38430#ifdef __linux__
38431 #include <linux/cdrom.h>
38432 #else
38433 /* For Solaris */
38434 #include <sys/cdio.h>
38435 #endif
38436
38437int
38438main ()
38439{
38440struct cdrom_tocentry entry, old_entry;
38441 ;
38442 return 0;
38443}
38444_ACEOF
38445rm -f conftest.$ac_objext
38446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38447 (eval $ac_compile) 2>conftest.er1
a848cd7e 38448 ac_status=$?
ac1cb8d3
VS
38449 grep -v '^ *+' conftest.er1 >conftest.err
38450 rm -f conftest.er1
38451 cat conftest.err >&5
a848cd7e
SC
38452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38453 (exit $ac_status); } &&
ca5c6ac3 38454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38456 (eval $ac_try) 2>&5
38457 ac_status=$?
38458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38459 (exit $ac_status); }; } &&
38460 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38462 (eval $ac_try) 2>&5
38463 ac_status=$?
38464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38465 (exit $ac_status); }; }; then
38466 echo "$as_me:$LINENO: result: yes" >&5
38467echo "${ECHO_T}yes" >&6
38468 cat >>confdefs.h <<\_ACEOF
38469#define HAVE_KNOWN_CDROM_INTERFACE 1
38470_ACEOF
38471
38472else
38473 echo "$as_me: failed program was:" >&5
38474sed 's/^/| /' conftest.$ac_ext >&5
38475
38476echo "$as_me:$LINENO: result: no" >&5
38477echo "${ECHO_T}no" >&6
38478fi
ac1cb8d3 38479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38480
38481
38482cat >confcache <<\_ACEOF
38483# This file is a shell script that caches the results of configure
38484# tests run on this system so they can be shared between configure
38485# scripts and configure runs, see configure's option --config-cache.
38486# It is not useful on other systems. If it contains results you don't
38487# want to keep, you may remove or edit it.
38488#
38489# config.status only pays attention to the cache file if you give it
38490# the --recheck option to rerun configure.
38491#
38492# `ac_cv_env_foo' variables (set or unset) will be overridden when
38493# loading this file, other *unset* `ac_cv_foo' will be assigned the
38494# following values.
38495
38496_ACEOF
38497
38498# The following way of writing the cache mishandles newlines in values,
38499# but we know of no workaround that is simple, portable, and efficient.
38500# So, don't put newlines in cache variables' values.
38501# Ultrix sh set writes to stderr and can't be redirected directly,
38502# and sets the high bit in the cache file unless we assign to the vars.
38503{
38504 (set) 2>&1 |
38505 case `(ac_space=' '; set | grep ac_space) 2>&1` in
38506 *ac_space=\ *)
38507 # `set' does not quote correctly, so add quotes (double-quote
38508 # substitution turns \\\\ into \\, and sed turns \\ into \).
38509 sed -n \
ac1cb8d3
VS
38510 "s/'/'\\\\''/g;
38511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
38512 ;;
38513 *)
38514 # `set' quotes correctly as required by POSIX, so do not add quotes.
38515 sed -n \
ac1cb8d3 38516 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
38517 ;;
38518 esac;
38519} |
38520 sed '
38521 t clear
38522 : clear
38523 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38524 t end
38525 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38526 : end' >>confcache
38527if diff $cache_file confcache >/dev/null 2>&1; then :; else
38528 if test -w $cache_file; then
38529 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
38530 cat confcache >$cache_file
38531 else
38532 echo "not updating unwritable cache $cache_file"
38533 fi
38534fi
38535rm -f confcache
38536
38537
a848cd7e
SC
38538if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38539
38540
38541 THREADS_LINK=
e56f4f9e 38542 THREADS_CXXFLAGS=
a848cd7e
SC
38543
38544 if test "$wxUSE_THREADS" = "yes" ; then
38545 if test "$USE_BEOS" = 1; then
38546 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38547echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38548 wxUSE_THREADS="no"
38549 fi
38550 fi
38551
38552 if test "$wxUSE_THREADS" = "yes" ; then
38553
38554
38555 THREAD_OPTS="-pthread"
38556 case "${host}" in
38557 *-*-solaris2* | *-*-sunos4* )
38558 if test "x$GCC" = "xyes"; then
38559 THREAD_OPTS="-pthreads $THREAD_OPTS"
38560 else
38561 THREAD_OPTS="-mt $THREAD_OPTS"
38562 fi
38563 ;;
38564 *-*-freebsd*)
38565 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38566 ;;
38567 *-*-darwin* | *-*-cygwin* )
38568 THREAD_OPTS=""
38569 ;;
38570 *-*-aix*)
38571 THREAD_OPTS="pthreads"
38572 ;;
38573 *-hp-hpux* )
00421666
MW
38574 if test "x$GCC" = "xyes"; then
38575 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38576 THREAD_OPTS=""
38577 else
0093c2fc 38578 THREAD_OPTS="-mt"
a848cd7e
SC
38579 fi
38580 ;;
38581
38582 *-*-irix* )
38583 if test "x$GCC" = "xyes"; then
38584 THREAD_OPTS=""
38585 fi
38586 ;;
38587
38588 *-*-*UnixWare*)
38589 if test "x$GCC" != "xyes"; then
38590 THREAD_OPTS="-Ethread"
38591 fi
38592 ;;
38593 esac
38594
38595 THREAD_OPTS="$THREAD_OPTS pthread none"
38596
38597 THREADS_OK=no
38598 for flag in $THREAD_OPTS; do
38599 case $flag in
38600 none)
38601 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38602echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
38603 ;;
38604
38605 -*)
38606 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38607echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 38608 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
38609 ;;
38610
38611 *)
38612 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38613echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
38614 THREADS_LINK="-l$flag"
38615 ;;
38616 esac
38617
38618 save_LIBS="$LIBS"
e56f4f9e 38619 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 38620 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 38621 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
38622
38623 cat >conftest.$ac_ext <<_ACEOF
38624/* confdefs.h. */
38625_ACEOF
38626cat confdefs.h >>conftest.$ac_ext
38627cat >>conftest.$ac_ext <<_ACEOF
38628/* end confdefs.h. */
38629#include <pthread.h>
38630int
38631main ()
38632{
38633pthread_create(0,0,0,0);
38634 ;
38635 return 0;
38636}
38637_ACEOF
38638rm -f conftest.$ac_objext conftest$ac_exeext
38639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38640 (eval $ac_link) 2>conftest.er1
a848cd7e 38641 ac_status=$?
ac1cb8d3
VS
38642 grep -v '^ *+' conftest.er1 >conftest.err
38643 rm -f conftest.er1
38644 cat conftest.err >&5
a848cd7e
SC
38645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38646 (exit $ac_status); } &&
ca5c6ac3 38647 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38649 (eval $ac_try) 2>&5
38650 ac_status=$?
38651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38652 (exit $ac_status); }; } &&
38653 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38655 (eval $ac_try) 2>&5
38656 ac_status=$?
38657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38658 (exit $ac_status); }; }; then
38659 THREADS_OK=yes
38660else
38661 echo "$as_me: failed program was:" >&5
38662sed 's/^/| /' conftest.$ac_ext >&5
38663
38664fi
ac1cb8d3
VS
38665rm -f conftest.err conftest.$ac_objext \
38666 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38667
38668 LIBS="$save_LIBS"
e56f4f9e 38669 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
38670
38671 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38672echo "${ECHO_T}$THREADS_OK" >&6
38673 if test "x$THREADS_OK" = "xyes"; then
38674 break;
38675 fi
38676
38677 THREADS_LINK=""
e56f4f9e 38678 THREADS_CXXFLAGS=""
a848cd7e
SC
38679 done
38680
38681 if test "x$THREADS_OK" != "xyes"; then
38682 wxUSE_THREADS=no
38683 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
38684echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
38685 else
e56f4f9e 38686 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
38687 LIBS="$THREADS_LINK $LIBS"
38688
38689 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
38690echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
38691 flag=no
38692 case "${host}" in
38693 *-aix*)
38694 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
38695 flag="-D_THREAD_SAFE"
38696 ;;
38697 *-freebsd*)
38698 flag="-D_THREAD_SAFE"
38699 ;;
38700 *-hp-hpux* )
38701 flag="-D_REENTRANT"
38702 if test "x$GCC" != "xyes"; then
38703 flag="$flag -D_RWSTD_MULTI_THREAD"
38704 fi
38705 ;;
38706 *solaris* | alpha*-osf*)
38707 flag="-D_REENTRANT"
38708 ;;
38709 esac
38710 echo "$as_me:$LINENO: result: ${flag}" >&5
38711echo "${ECHO_T}${flag}" >&6
38712 if test "x$flag" != xno; then
e56f4f9e 38713 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
38714 fi
38715
e56f4f9e 38716 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
38717 fi
38718 fi
38719
38720 if test "$wxUSE_THREADS" = "yes" ; then
38721
38722for ac_func in thr_setconcurrency
38723do
38724as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38725echo "$as_me:$LINENO: checking for $ac_func" >&5
38726echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38727if eval "test \"\${$as_ac_var+set}\" = set"; then
38728 echo $ECHO_N "(cached) $ECHO_C" >&6
38729else
38730 cat >conftest.$ac_ext <<_ACEOF
38731/* confdefs.h. */
38732_ACEOF
38733cat confdefs.h >>conftest.$ac_ext
38734cat >>conftest.$ac_ext <<_ACEOF
38735/* end confdefs.h. */
ac1cb8d3
VS
38736/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38738#define $ac_func innocuous_$ac_func
38739
a848cd7e
SC
38740/* System header to define __stub macros and hopefully few prototypes,
38741 which can conflict with char $ac_func (); below.
38742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38743 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38744
a848cd7e
SC
38745#ifdef __STDC__
38746# include <limits.h>
38747#else
38748# include <assert.h>
38749#endif
ac1cb8d3
VS
38750
38751#undef $ac_func
38752
a848cd7e
SC
38753/* Override any gcc2 internal prototype to avoid an error. */
38754#ifdef __cplusplus
38755extern "C"
38756{
38757#endif
38758/* We use char because int might match the return type of a gcc2
38759 builtin and then its argument prototype would still apply. */
38760char $ac_func ();
38761/* The GNU C library defines this for functions which it implements
38762 to always fail with ENOSYS. Some functions are actually named
38763 something starting with __ and the normal name is an alias. */
38764#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38765choke me
38766#else
38767char (*f) () = $ac_func;
38768#endif
38769#ifdef __cplusplus
38770}
38771#endif
38772
38773int
38774main ()
38775{
38776return f != $ac_func;
38777 ;
38778 return 0;
38779}
38780_ACEOF
38781rm -f conftest.$ac_objext conftest$ac_exeext
38782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38783 (eval $ac_link) 2>conftest.er1
a848cd7e 38784 ac_status=$?
ac1cb8d3
VS
38785 grep -v '^ *+' conftest.er1 >conftest.err
38786 rm -f conftest.er1
38787 cat conftest.err >&5
a848cd7e
SC
38788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38789 (exit $ac_status); } &&
ca5c6ac3 38790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38792 (eval $ac_try) 2>&5
38793 ac_status=$?
38794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38795 (exit $ac_status); }; } &&
38796 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38798 (eval $ac_try) 2>&5
38799 ac_status=$?
38800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38801 (exit $ac_status); }; }; then
38802 eval "$as_ac_var=yes"
38803else
38804 echo "$as_me: failed program was:" >&5
38805sed 's/^/| /' conftest.$ac_ext >&5
38806
38807eval "$as_ac_var=no"
38808fi
ac1cb8d3
VS
38809rm -f conftest.err conftest.$ac_objext \
38810 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38811fi
38812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38813echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38814if test `eval echo '${'$as_ac_var'}'` = yes; then
38815 cat >>confdefs.h <<_ACEOF
38816#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38817_ACEOF
38818
38819fi
38820done
38821
38822
6ebeb4c7
VZ
38823 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
38824echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
38825if test "${wx_cv_func_pthread_cleanup+set}" = set; then
38826 echo $ECHO_N "(cached) $ECHO_C" >&6
38827else
38828
38829 cat >conftest.$ac_ext <<_ACEOF
38830/* confdefs.h. */
38831_ACEOF
38832cat confdefs.h >>conftest.$ac_ext
38833cat >>conftest.$ac_ext <<_ACEOF
38834/* end confdefs.h. */
38835#include <pthread.h>
38836 void ThreadCleanupFunc(void *p);
38837
38838int
38839main ()
38840{
38841
38842 void *p;
38843 pthread_cleanup_push(ThreadCleanupFunc, p);
38844 pthread_cleanup_pop(0);
38845
38846 ;
38847 return 0;
38848}
38849_ACEOF
38850rm -f conftest.$ac_objext
38851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38852 (eval $ac_compile) 2>conftest.er1
38853 ac_status=$?
38854 grep -v '^ *+' conftest.er1 >conftest.err
38855 rm -f conftest.er1
38856 cat conftest.err >&5
38857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38858 (exit $ac_status); } &&
ca5c6ac3 38859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
38860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38861 (eval $ac_try) 2>&5
38862 ac_status=$?
38863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38864 (exit $ac_status); }; } &&
38865 { ac_try='test -s conftest.$ac_objext'
38866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38867 (eval $ac_try) 2>&5
38868 ac_status=$?
38869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38870 (exit $ac_status); }; }; then
38871
38872 wx_cv_func_pthread_cleanup=yes
38873
38874else
38875 echo "$as_me: failed program was:" >&5
38876sed 's/^/| /' conftest.$ac_ext >&5
38877
38878
38879 wx_cv_func_pthread_cleanup=no
38880
38881
38882fi
38883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38884
38885fi
38886echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
38887echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
38888 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
38889 cat >>confdefs.h <<\_ACEOF
38890#define wxHAVE_PTHREAD_CLEANUP 1
38891_ACEOF
38892
38893 fi
38894
a848cd7e
SC
38895
38896for ac_header in sched.h
38897do
38898as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38899if eval "test \"\${$as_ac_Header+set}\" = set"; then
38900 echo "$as_me:$LINENO: checking for $ac_header" >&5
38901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38902if eval "test \"\${$as_ac_Header+set}\" = set"; then
38903 echo $ECHO_N "(cached) $ECHO_C" >&6
38904fi
38905echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38906echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38907else
38908 # Is the header compilable?
38909echo "$as_me:$LINENO: checking $ac_header usability" >&5
38910echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38911cat >conftest.$ac_ext <<_ACEOF
38912/* confdefs.h. */
38913_ACEOF
38914cat confdefs.h >>conftest.$ac_ext
38915cat >>conftest.$ac_ext <<_ACEOF
38916/* end confdefs.h. */
38917$ac_includes_default
38918#include <$ac_header>
38919_ACEOF
38920rm -f conftest.$ac_objext
38921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38922 (eval $ac_compile) 2>conftest.er1
a848cd7e 38923 ac_status=$?
ac1cb8d3
VS
38924 grep -v '^ *+' conftest.er1 >conftest.err
38925 rm -f conftest.er1
38926 cat conftest.err >&5
a848cd7e
SC
38927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38928 (exit $ac_status); } &&
ca5c6ac3 38929 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38931 (eval $ac_try) 2>&5
38932 ac_status=$?
38933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38934 (exit $ac_status); }; } &&
38935 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38937 (eval $ac_try) 2>&5
38938 ac_status=$?
38939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38940 (exit $ac_status); }; }; then
38941 ac_header_compiler=yes
38942else
38943 echo "$as_me: failed program was:" >&5
38944sed 's/^/| /' conftest.$ac_ext >&5
38945
38946ac_header_compiler=no
38947fi
ac1cb8d3 38948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38949echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38950echo "${ECHO_T}$ac_header_compiler" >&6
38951
38952# Is the header present?
38953echo "$as_me:$LINENO: checking $ac_header presence" >&5
38954echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38955cat >conftest.$ac_ext <<_ACEOF
38956/* confdefs.h. */
38957_ACEOF
38958cat confdefs.h >>conftest.$ac_ext
38959cat >>conftest.$ac_ext <<_ACEOF
38960/* end confdefs.h. */
38961#include <$ac_header>
38962_ACEOF
38963if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38965 ac_status=$?
38966 grep -v '^ *+' conftest.er1 >conftest.err
38967 rm -f conftest.er1
38968 cat conftest.err >&5
38969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38970 (exit $ac_status); } >/dev/null; then
38971 if test -s conftest.err; then
5d7b7554
VZ
38972 ac_cpp_err=$ac_cxx_preproc_warn_flag
38973 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
38974 else
38975 ac_cpp_err=
38976 fi
38977else
38978 ac_cpp_err=yes
38979fi
38980if test -z "$ac_cpp_err"; then
38981 ac_header_preproc=yes
38982else
38983 echo "$as_me: failed program was:" >&5
38984sed 's/^/| /' conftest.$ac_ext >&5
38985
38986 ac_header_preproc=no
38987fi
38988rm -f conftest.err conftest.$ac_ext
38989echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38990echo "${ECHO_T}$ac_header_preproc" >&6
38991
38992# So? What about this header?
5d7b7554 38993case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 38994 yes:no: )
a848cd7e
SC
38995 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38996echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38998echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38999 ac_header_preproc=yes
a848cd7e 39000 ;;
ac1cb8d3 39001 no:yes:* )
a848cd7e
SC
39002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39003echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39005echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39006 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39007echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39008 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39009echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39011echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39012 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39013echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39014 (
39015 cat <<\_ASBOX
ac1cb8d3
VS
39016## ----------------------------------------- ##
39017## Report this to wx-dev@lists.wxwidgets.org ##
39018## ----------------------------------------- ##
a848cd7e
SC
39019_ASBOX
39020 ) |
39021 sed "s/^/$as_me: WARNING: /" >&2
39022 ;;
39023esac
39024echo "$as_me:$LINENO: checking for $ac_header" >&5
39025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39026if eval "test \"\${$as_ac_Header+set}\" = set"; then
39027 echo $ECHO_N "(cached) $ECHO_C" >&6
39028else
ac1cb8d3 39029 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39030fi
39031echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39032echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39033
39034fi
39035if test `eval echo '${'$as_ac_Header'}'` = yes; then
39036 cat >>confdefs.h <<_ACEOF
39037#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39038_ACEOF
39039
39040fi
39041
39042done
39043
39044 if test "$ac_cv_header_sched_h" = "yes"; then
39045 echo "$as_me:$LINENO: checking for sched_yield" >&5
39046echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
39047if test "${ac_cv_func_sched_yield+set}" = set; then
39048 echo $ECHO_N "(cached) $ECHO_C" >&6
39049else
39050 cat >conftest.$ac_ext <<_ACEOF
39051/* confdefs.h. */
39052_ACEOF
39053cat confdefs.h >>conftest.$ac_ext
39054cat >>conftest.$ac_ext <<_ACEOF
39055/* end confdefs.h. */
ac1cb8d3
VS
39056/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39058#define sched_yield innocuous_sched_yield
39059
a848cd7e
SC
39060/* System header to define __stub macros and hopefully few prototypes,
39061 which can conflict with char sched_yield (); below.
39062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39063 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39064
a848cd7e
SC
39065#ifdef __STDC__
39066# include <limits.h>
39067#else
39068# include <assert.h>
39069#endif
ac1cb8d3
VS
39070
39071#undef sched_yield
39072
a848cd7e
SC
39073/* Override any gcc2 internal prototype to avoid an error. */
39074#ifdef __cplusplus
39075extern "C"
39076{
39077#endif
39078/* We use char because int might match the return type of a gcc2
39079 builtin and then its argument prototype would still apply. */
39080char sched_yield ();
39081/* The GNU C library defines this for functions which it implements
39082 to always fail with ENOSYS. Some functions are actually named
39083 something starting with __ and the normal name is an alias. */
39084#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
39085choke me
39086#else
39087char (*f) () = sched_yield;
39088#endif
39089#ifdef __cplusplus
39090}
39091#endif
39092
39093int
39094main ()
39095{
39096return f != sched_yield;
39097 ;
39098 return 0;
39099}
39100_ACEOF
39101rm -f conftest.$ac_objext conftest$ac_exeext
39102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39103 (eval $ac_link) 2>conftest.er1
a848cd7e 39104 ac_status=$?
ac1cb8d3
VS
39105 grep -v '^ *+' conftest.er1 >conftest.err
39106 rm -f conftest.er1
39107 cat conftest.err >&5
a848cd7e
SC
39108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39109 (exit $ac_status); } &&
ca5c6ac3 39110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39112 (eval $ac_try) 2>&5
39113 ac_status=$?
39114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39115 (exit $ac_status); }; } &&
39116 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39118 (eval $ac_try) 2>&5
39119 ac_status=$?
39120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39121 (exit $ac_status); }; }; then
39122 ac_cv_func_sched_yield=yes
39123else
39124 echo "$as_me: failed program was:" >&5
39125sed 's/^/| /' conftest.$ac_ext >&5
39126
39127ac_cv_func_sched_yield=no
39128fi
ac1cb8d3
VS
39129rm -f conftest.err conftest.$ac_objext \
39130 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39131fi
39132echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39133echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
39134if test $ac_cv_func_sched_yield = yes; then
39135 cat >>confdefs.h <<\_ACEOF
39136#define HAVE_SCHED_YIELD 1
39137_ACEOF
39138
39139else
39140
39141 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39142echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
39143if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39144 echo $ECHO_N "(cached) $ECHO_C" >&6
39145else
39146 ac_check_lib_save_LIBS=$LIBS
39147LIBS="-lposix4 $LIBS"
39148cat >conftest.$ac_ext <<_ACEOF
39149/* confdefs.h. */
39150_ACEOF
39151cat confdefs.h >>conftest.$ac_ext
39152cat >>conftest.$ac_ext <<_ACEOF
39153/* end confdefs.h. */
39154
39155/* Override any gcc2 internal prototype to avoid an error. */
39156#ifdef __cplusplus
39157extern "C"
39158#endif
39159/* We use char because int might match the return type of a gcc2
39160 builtin and then its argument prototype would still apply. */
39161char sched_yield ();
39162int
39163main ()
39164{
39165sched_yield ();
39166 ;
39167 return 0;
39168}
39169_ACEOF
39170rm -f conftest.$ac_objext conftest$ac_exeext
39171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39172 (eval $ac_link) 2>conftest.er1
a848cd7e 39173 ac_status=$?
ac1cb8d3
VS
39174 grep -v '^ *+' conftest.er1 >conftest.err
39175 rm -f conftest.er1
39176 cat conftest.err >&5
a848cd7e
SC
39177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39178 (exit $ac_status); } &&
ca5c6ac3 39179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39181 (eval $ac_try) 2>&5
39182 ac_status=$?
39183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39184 (exit $ac_status); }; } &&
39185 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39187 (eval $ac_try) 2>&5
39188 ac_status=$?
39189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39190 (exit $ac_status); }; }; then
39191 ac_cv_lib_posix4_sched_yield=yes
39192else
39193 echo "$as_me: failed program was:" >&5
39194sed 's/^/| /' conftest.$ac_ext >&5
39195
39196ac_cv_lib_posix4_sched_yield=no
39197fi
ac1cb8d3
VS
39198rm -f conftest.err conftest.$ac_objext \
39199 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39200LIBS=$ac_check_lib_save_LIBS
39201fi
39202echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39203echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
39204if test $ac_cv_lib_posix4_sched_yield = yes; then
39205 cat >>confdefs.h <<\_ACEOF
39206#define HAVE_SCHED_YIELD 1
39207_ACEOF
39208 POSIX4_LINK=" -lposix4"
39209else
39210 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39211echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39212
39213fi
39214
39215
39216
39217fi
39218
39219 fi
39220
39221 HAVE_PRIOR_FUNCS=0
39222 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39223echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
39224if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39225 echo $ECHO_N "(cached) $ECHO_C" >&6
39226else
39227 cat >conftest.$ac_ext <<_ACEOF
39228/* confdefs.h. */
39229_ACEOF
39230cat confdefs.h >>conftest.$ac_ext
39231cat >>conftest.$ac_ext <<_ACEOF
39232/* end confdefs.h. */
ac1cb8d3
VS
39233/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39235#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39236
a848cd7e
SC
39237/* System header to define __stub macros and hopefully few prototypes,
39238 which can conflict with char pthread_attr_getschedpolicy (); below.
39239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39240 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39241
a848cd7e
SC
39242#ifdef __STDC__
39243# include <limits.h>
39244#else
39245# include <assert.h>
39246#endif
ac1cb8d3
VS
39247
39248#undef pthread_attr_getschedpolicy
39249
a848cd7e
SC
39250/* Override any gcc2 internal prototype to avoid an error. */
39251#ifdef __cplusplus
39252extern "C"
39253{
39254#endif
39255/* We use char because int might match the return type of a gcc2
39256 builtin and then its argument prototype would still apply. */
39257char pthread_attr_getschedpolicy ();
39258/* The GNU C library defines this for functions which it implements
39259 to always fail with ENOSYS. Some functions are actually named
39260 something starting with __ and the normal name is an alias. */
39261#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
39262choke me
39263#else
39264char (*f) () = pthread_attr_getschedpolicy;
39265#endif
39266#ifdef __cplusplus
39267}
39268#endif
39269
39270int
39271main ()
39272{
39273return f != pthread_attr_getschedpolicy;
39274 ;
39275 return 0;
39276}
39277_ACEOF
39278rm -f conftest.$ac_objext conftest$ac_exeext
39279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39280 (eval $ac_link) 2>conftest.er1
a848cd7e 39281 ac_status=$?
ac1cb8d3
VS
39282 grep -v '^ *+' conftest.er1 >conftest.err
39283 rm -f conftest.er1
39284 cat conftest.err >&5
a848cd7e
SC
39285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39286 (exit $ac_status); } &&
ca5c6ac3 39287 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39289 (eval $ac_try) 2>&5
39290 ac_status=$?
39291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39292 (exit $ac_status); }; } &&
39293 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39295 (eval $ac_try) 2>&5
39296 ac_status=$?
39297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39298 (exit $ac_status); }; }; then
39299 ac_cv_func_pthread_attr_getschedpolicy=yes
39300else
39301 echo "$as_me: failed program was:" >&5
39302sed 's/^/| /' conftest.$ac_ext >&5
39303
39304ac_cv_func_pthread_attr_getschedpolicy=no
39305fi
ac1cb8d3
VS
39306rm -f conftest.err conftest.$ac_objext \
39307 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39308fi
39309echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39310echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
39311if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39312 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39313echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
39314if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39315 echo $ECHO_N "(cached) $ECHO_C" >&6
39316else
39317 cat >conftest.$ac_ext <<_ACEOF
39318/* confdefs.h. */
39319_ACEOF
39320cat confdefs.h >>conftest.$ac_ext
39321cat >>conftest.$ac_ext <<_ACEOF
39322/* end confdefs.h. */
ac1cb8d3
VS
39323/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39325#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39326
a848cd7e
SC
39327/* System header to define __stub macros and hopefully few prototypes,
39328 which can conflict with char pthread_attr_setschedparam (); below.
39329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39330 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39331
a848cd7e
SC
39332#ifdef __STDC__
39333# include <limits.h>
39334#else
39335# include <assert.h>
39336#endif
ac1cb8d3
VS
39337
39338#undef pthread_attr_setschedparam
39339
a848cd7e
SC
39340/* Override any gcc2 internal prototype to avoid an error. */
39341#ifdef __cplusplus
39342extern "C"
39343{
39344#endif
39345/* We use char because int might match the return type of a gcc2
39346 builtin and then its argument prototype would still apply. */
39347char pthread_attr_setschedparam ();
39348/* The GNU C library defines this for functions which it implements
39349 to always fail with ENOSYS. Some functions are actually named
39350 something starting with __ and the normal name is an alias. */
39351#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
39352choke me
39353#else
39354char (*f) () = pthread_attr_setschedparam;
39355#endif
39356#ifdef __cplusplus
39357}
39358#endif
39359
39360int
39361main ()
39362{
39363return f != pthread_attr_setschedparam;
39364 ;
39365 return 0;
39366}
39367_ACEOF
39368rm -f conftest.$ac_objext conftest$ac_exeext
39369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39370 (eval $ac_link) 2>conftest.er1
a848cd7e 39371 ac_status=$?
ac1cb8d3
VS
39372 grep -v '^ *+' conftest.er1 >conftest.err
39373 rm -f conftest.er1
39374 cat conftest.err >&5
a848cd7e
SC
39375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39376 (exit $ac_status); } &&
ca5c6ac3 39377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39379 (eval $ac_try) 2>&5
39380 ac_status=$?
39381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39382 (exit $ac_status); }; } &&
39383 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39385 (eval $ac_try) 2>&5
39386 ac_status=$?
39387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39388 (exit $ac_status); }; }; then
39389 ac_cv_func_pthread_attr_setschedparam=yes
39390else
39391 echo "$as_me: failed program was:" >&5
39392sed 's/^/| /' conftest.$ac_ext >&5
39393
39394ac_cv_func_pthread_attr_setschedparam=no
39395fi
ac1cb8d3
VS
39396rm -f conftest.err conftest.$ac_objext \
39397 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39398fi
39399echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39400echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
39401if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39402 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39403echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
39404if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39405 echo $ECHO_N "(cached) $ECHO_C" >&6
39406else
39407 cat >conftest.$ac_ext <<_ACEOF
39408/* confdefs.h. */
39409_ACEOF
39410cat confdefs.h >>conftest.$ac_ext
39411cat >>conftest.$ac_ext <<_ACEOF
39412/* end confdefs.h. */
ac1cb8d3
VS
39413/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39415#define sched_get_priority_max innocuous_sched_get_priority_max
39416
a848cd7e
SC
39417/* System header to define __stub macros and hopefully few prototypes,
39418 which can conflict with char sched_get_priority_max (); below.
39419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39420 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39421
a848cd7e
SC
39422#ifdef __STDC__
39423# include <limits.h>
39424#else
39425# include <assert.h>
39426#endif
ac1cb8d3
VS
39427
39428#undef sched_get_priority_max
39429
a848cd7e
SC
39430/* Override any gcc2 internal prototype to avoid an error. */
39431#ifdef __cplusplus
39432extern "C"
39433{
39434#endif
39435/* We use char because int might match the return type of a gcc2
39436 builtin and then its argument prototype would still apply. */
39437char sched_get_priority_max ();
39438/* The GNU C library defines this for functions which it implements
39439 to always fail with ENOSYS. Some functions are actually named
39440 something starting with __ and the normal name is an alias. */
39441#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
39442choke me
39443#else
39444char (*f) () = sched_get_priority_max;
39445#endif
39446#ifdef __cplusplus
39447}
39448#endif
39449
39450int
39451main ()
39452{
39453return f != sched_get_priority_max;
39454 ;
39455 return 0;
39456}
39457_ACEOF
39458rm -f conftest.$ac_objext conftest$ac_exeext
39459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39460 (eval $ac_link) 2>conftest.er1
a848cd7e 39461 ac_status=$?
ac1cb8d3
VS
39462 grep -v '^ *+' conftest.er1 >conftest.err
39463 rm -f conftest.er1
39464 cat conftest.err >&5
a848cd7e
SC
39465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39466 (exit $ac_status); } &&
ca5c6ac3 39467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39469 (eval $ac_try) 2>&5
39470 ac_status=$?
39471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39472 (exit $ac_status); }; } &&
39473 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39475 (eval $ac_try) 2>&5
39476 ac_status=$?
39477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39478 (exit $ac_status); }; }; then
39479 ac_cv_func_sched_get_priority_max=yes
39480else
39481 echo "$as_me: failed program was:" >&5
39482sed 's/^/| /' conftest.$ac_ext >&5
39483
39484ac_cv_func_sched_get_priority_max=no
39485fi
ac1cb8d3
VS
39486rm -f conftest.err conftest.$ac_objext \
39487 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39488fi
39489echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39490echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
39491if test $ac_cv_func_sched_get_priority_max = yes; then
39492 HAVE_PRIOR_FUNCS=1
39493else
39494 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39495echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
39496if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39497 echo $ECHO_N "(cached) $ECHO_C" >&6
39498else
39499 ac_check_lib_save_LIBS=$LIBS
39500LIBS="-lposix4 $LIBS"
39501cat >conftest.$ac_ext <<_ACEOF
39502/* confdefs.h. */
39503_ACEOF
39504cat confdefs.h >>conftest.$ac_ext
39505cat >>conftest.$ac_ext <<_ACEOF
39506/* end confdefs.h. */
39507
39508/* Override any gcc2 internal prototype to avoid an error. */
39509#ifdef __cplusplus
39510extern "C"
39511#endif
39512/* We use char because int might match the return type of a gcc2
39513 builtin and then its argument prototype would still apply. */
39514char sched_get_priority_max ();
39515int
39516main ()
39517{
39518sched_get_priority_max ();
39519 ;
39520 return 0;
39521}
39522_ACEOF
39523rm -f conftest.$ac_objext conftest$ac_exeext
39524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39525 (eval $ac_link) 2>conftest.er1
a848cd7e 39526 ac_status=$?
ac1cb8d3
VS
39527 grep -v '^ *+' conftest.er1 >conftest.err
39528 rm -f conftest.er1
39529 cat conftest.err >&5
a848cd7e
SC
39530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39531 (exit $ac_status); } &&
ca5c6ac3 39532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39534 (eval $ac_try) 2>&5
39535 ac_status=$?
39536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39537 (exit $ac_status); }; } &&
39538 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39540 (eval $ac_try) 2>&5
39541 ac_status=$?
39542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39543 (exit $ac_status); }; }; then
39544 ac_cv_lib_posix4_sched_get_priority_max=yes
39545else
39546 echo "$as_me: failed program was:" >&5
39547sed 's/^/| /' conftest.$ac_ext >&5
39548
39549ac_cv_lib_posix4_sched_get_priority_max=no
39550fi
ac1cb8d3
VS
39551rm -f conftest.err conftest.$ac_objext \
39552 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39553LIBS=$ac_check_lib_save_LIBS
39554fi
39555echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39556echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
39557if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39558
39559 HAVE_PRIOR_FUNCS=1
39560 POSIX4_LINK=" -lposix4"
39561
39562fi
39563
39564
39565fi
39566
39567
39568fi
39569
39570
39571fi
39572
39573
39574 if test "$HAVE_PRIOR_FUNCS" = 1; then
39575 cat >>confdefs.h <<\_ACEOF
39576#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39577_ACEOF
39578
39579 else
39580 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39581echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39582 fi
39583
39584 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39585echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
39586if test "${ac_cv_func_pthread_cancel+set}" = set; then
39587 echo $ECHO_N "(cached) $ECHO_C" >&6
39588else
39589 cat >conftest.$ac_ext <<_ACEOF
39590/* confdefs.h. */
39591_ACEOF
39592cat confdefs.h >>conftest.$ac_ext
39593cat >>conftest.$ac_ext <<_ACEOF
39594/* end confdefs.h. */
ac1cb8d3
VS
39595/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39597#define pthread_cancel innocuous_pthread_cancel
39598
a848cd7e
SC
39599/* System header to define __stub macros and hopefully few prototypes,
39600 which can conflict with char pthread_cancel (); below.
39601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39602 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39603
a848cd7e
SC
39604#ifdef __STDC__
39605# include <limits.h>
39606#else
39607# include <assert.h>
39608#endif
ac1cb8d3
VS
39609
39610#undef pthread_cancel
39611
a848cd7e
SC
39612/* Override any gcc2 internal prototype to avoid an error. */
39613#ifdef __cplusplus
39614extern "C"
39615{
39616#endif
39617/* We use char because int might match the return type of a gcc2
39618 builtin and then its argument prototype would still apply. */
39619char pthread_cancel ();
39620/* The GNU C library defines this for functions which it implements
39621 to always fail with ENOSYS. Some functions are actually named
39622 something starting with __ and the normal name is an alias. */
39623#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
39624choke me
39625#else
39626char (*f) () = pthread_cancel;
39627#endif
39628#ifdef __cplusplus
39629}
39630#endif
39631
39632int
39633main ()
39634{
39635return f != pthread_cancel;
39636 ;
39637 return 0;
39638}
39639_ACEOF
39640rm -f conftest.$ac_objext conftest$ac_exeext
39641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39642 (eval $ac_link) 2>conftest.er1
a848cd7e 39643 ac_status=$?
ac1cb8d3
VS
39644 grep -v '^ *+' conftest.er1 >conftest.err
39645 rm -f conftest.er1
39646 cat conftest.err >&5
a848cd7e
SC
39647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39648 (exit $ac_status); } &&
ca5c6ac3 39649 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39651 (eval $ac_try) 2>&5
39652 ac_status=$?
39653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39654 (exit $ac_status); }; } &&
39655 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39657 (eval $ac_try) 2>&5
39658 ac_status=$?
39659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39660 (exit $ac_status); }; }; then
39661 ac_cv_func_pthread_cancel=yes
39662else
39663 echo "$as_me: failed program was:" >&5
39664sed 's/^/| /' conftest.$ac_ext >&5
39665
39666ac_cv_func_pthread_cancel=no
39667fi
ac1cb8d3
VS
39668rm -f conftest.err conftest.$ac_objext \
39669 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39670fi
39671echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39672echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
39673if test $ac_cv_func_pthread_cancel = yes; then
39674 cat >>confdefs.h <<\_ACEOF
39675#define HAVE_PTHREAD_CANCEL 1
39676_ACEOF
39677
39678else
39679 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39680echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39681fi
39682
39683
abc736fd
MW
39684 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39685echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
39686if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39687 echo $ECHO_N "(cached) $ECHO_C" >&6
39688else
39689 cat >conftest.$ac_ext <<_ACEOF
39690/* confdefs.h. */
39691_ACEOF
39692cat confdefs.h >>conftest.$ac_ext
39693cat >>conftest.$ac_ext <<_ACEOF
39694/* end confdefs.h. */
39695/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39697#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39698
39699/* System header to define __stub macros and hopefully few prototypes,
39700 which can conflict with char pthread_attr_setstacksize (); below.
39701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39702 <limits.h> exists even on freestanding compilers. */
39703
39704#ifdef __STDC__
39705# include <limits.h>
39706#else
39707# include <assert.h>
39708#endif
39709
39710#undef pthread_attr_setstacksize
39711
39712/* Override any gcc2 internal prototype to avoid an error. */
39713#ifdef __cplusplus
39714extern "C"
39715{
39716#endif
39717/* We use char because int might match the return type of a gcc2
39718 builtin and then its argument prototype would still apply. */
39719char pthread_attr_setstacksize ();
39720/* The GNU C library defines this for functions which it implements
39721 to always fail with ENOSYS. Some functions are actually named
39722 something starting with __ and the normal name is an alias. */
39723#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
39724choke me
39725#else
39726char (*f) () = pthread_attr_setstacksize;
39727#endif
39728#ifdef __cplusplus
39729}
39730#endif
39731
39732int
39733main ()
39734{
39735return f != pthread_attr_setstacksize;
39736 ;
39737 return 0;
39738}
39739_ACEOF
39740rm -f conftest.$ac_objext conftest$ac_exeext
39741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39742 (eval $ac_link) 2>conftest.er1
39743 ac_status=$?
39744 grep -v '^ *+' conftest.er1 >conftest.err
39745 rm -f conftest.er1
39746 cat conftest.err >&5
39747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39748 (exit $ac_status); } &&
ca5c6ac3 39749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
abc736fd
MW
39750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39751 (eval $ac_try) 2>&5
39752 ac_status=$?
39753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39754 (exit $ac_status); }; } &&
39755 { ac_try='test -s conftest$ac_exeext'
39756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39757 (eval $ac_try) 2>&5
39758 ac_status=$?
39759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39760 (exit $ac_status); }; }; then
39761 ac_cv_func_pthread_attr_setstacksize=yes
39762else
39763 echo "$as_me: failed program was:" >&5
39764sed 's/^/| /' conftest.$ac_ext >&5
39765
39766ac_cv_func_pthread_attr_setstacksize=no
39767fi
39768rm -f conftest.err conftest.$ac_objext \
39769 conftest$ac_exeext conftest.$ac_ext
39770fi
39771echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
39772echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
39773if test $ac_cv_func_pthread_attr_setstacksize = yes; then
39774 cat >>confdefs.h <<\_ACEOF
39775#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
39776_ACEOF
39777
39778fi
39779
a848cd7e
SC
39780
39781
39782 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
39783echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
39784if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
39785 echo $ECHO_N "(cached) $ECHO_C" >&6
39786else
39787
39788 cat >conftest.$ac_ext <<_ACEOF
39789/* confdefs.h. */
39790_ACEOF
39791cat confdefs.h >>conftest.$ac_ext
39792cat >>conftest.$ac_ext <<_ACEOF
39793/* end confdefs.h. */
39794#include <pthread.h>
39795int
39796main ()
39797{
39798
39799 pthread_mutexattr_t attr;
39800 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39801
39802 ;
39803 return 0;
39804}
39805_ACEOF
39806rm -f conftest.$ac_objext
39807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39808 (eval $ac_compile) 2>conftest.er1
a848cd7e 39809 ac_status=$?
ac1cb8d3
VS
39810 grep -v '^ *+' conftest.er1 >conftest.err
39811 rm -f conftest.er1
39812 cat conftest.err >&5
a848cd7e
SC
39813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39814 (exit $ac_status); } &&
ca5c6ac3 39815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39817 (eval $ac_try) 2>&5
39818 ac_status=$?
39819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39820 (exit $ac_status); }; } &&
39821 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39823 (eval $ac_try) 2>&5
39824 ac_status=$?
39825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39826 (exit $ac_status); }; }; then
123dca7d 39827 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
39828else
39829 echo "$as_me: failed program was:" >&5
39830sed 's/^/| /' conftest.$ac_ext >&5
39831
123dca7d 39832wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
39833
39834fi
ac1cb8d3 39835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39836
39837fi
39838echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
39839echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
39840
39841 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
39842 cat >>confdefs.h <<\_ACEOF
39843#define HAVE_PTHREAD_MUTEXATTR_T 1
39844_ACEOF
39845
123dca7d
VZ
39846
39847 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
39848echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
39849if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
39850 echo $ECHO_N "(cached) $ECHO_C" >&6
39851else
39852
39853 cat >conftest.$ac_ext <<_ACEOF
39854/* confdefs.h. */
39855_ACEOF
39856cat confdefs.h >>conftest.$ac_ext
39857cat >>conftest.$ac_ext <<_ACEOF
39858/* end confdefs.h. */
39859#include <pthread.h>
39860int
39861main ()
39862{
39863
39864 pthread_mutexattr_t attr;
39865 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39866
39867 ;
39868 return 0;
39869}
39870_ACEOF
39871rm -f conftest.$ac_objext
39872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39873 (eval $ac_compile) 2>conftest.er1
39874 ac_status=$?
39875 grep -v '^ *+' conftest.er1 >conftest.err
39876 rm -f conftest.er1
39877 cat conftest.err >&5
39878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39879 (exit $ac_status); } &&
ca5c6ac3 39880 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
39881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39882 (eval $ac_try) 2>&5
39883 ac_status=$?
39884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39885 (exit $ac_status); }; } &&
39886 { ac_try='test -s conftest.$ac_objext'
39887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39888 (eval $ac_try) 2>&5
39889 ac_status=$?
39890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39891 (exit $ac_status); }; }; then
39892 wx_cv_func_pthread_mutexattr_settype_decl=yes
39893else
39894 echo "$as_me: failed program was:" >&5
39895sed 's/^/| /' conftest.$ac_ext >&5
39896
39897wx_cv_func_pthread_mutexattr_settype_decl=no
39898
39899fi
39900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39901
39902fi
39903echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
39904echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
39905 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
39906 cat >>confdefs.h <<\_ACEOF
39907#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
39908_ACEOF
39909
39910 fi
a848cd7e
SC
39911 else
39912 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
39913echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
39914if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
39915 echo $ECHO_N "(cached) $ECHO_C" >&6
39916else
39917
39918 cat >conftest.$ac_ext <<_ACEOF
39919/* confdefs.h. */
39920_ACEOF
39921cat confdefs.h >>conftest.$ac_ext
39922cat >>conftest.$ac_ext <<_ACEOF
39923/* end confdefs.h. */
39924#include <pthread.h>
39925int
39926main ()
39927{
39928
39929 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
39930
39931 ;
39932 return 0;
39933}
39934_ACEOF
39935rm -f conftest.$ac_objext
39936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39937 (eval $ac_compile) 2>conftest.er1
a848cd7e 39938 ac_status=$?
ac1cb8d3
VS
39939 grep -v '^ *+' conftest.er1 >conftest.err
39940 rm -f conftest.er1
39941 cat conftest.err >&5
a848cd7e
SC
39942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39943 (exit $ac_status); } &&
ca5c6ac3 39944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39946 (eval $ac_try) 2>&5
39947 ac_status=$?
39948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39949 (exit $ac_status); }; } &&
39950 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39952 (eval $ac_try) 2>&5
39953 ac_status=$?
39954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39955 (exit $ac_status); }; }; then
39956
39957 wx_cv_type_pthread_rec_mutex_init=yes
39958
39959else
39960 echo "$as_me: failed program was:" >&5
39961sed 's/^/| /' conftest.$ac_ext >&5
39962
39963
39964 wx_cv_type_pthread_rec_mutex_init=no
39965
39966
39967fi
ac1cb8d3 39968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39969
39970fi
39971echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
39972echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
39973 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
39974 cat >>confdefs.h <<\_ACEOF
39975#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
39976_ACEOF
39977
39978 else
39979 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
39980echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
39981 fi
39982 fi
39983 fi
39984
39985else
39986 if test "$wxUSE_THREADS" = "yes" ; then
39987 case "${host}" in
39988 *-*-mingw32* )
39989 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
39990echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
39991if test "${wx_cv_cflags_mthread+set}" = set; then
39992 echo $ECHO_N "(cached) $ECHO_C" >&6
39993else
39994
e56f4f9e
VZ
39995 CXXFLAGS_OLD="$CXXFLAGS"
39996 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
39997 cat >conftest.$ac_ext <<_ACEOF
39998/* confdefs.h. */
39999_ACEOF
40000cat confdefs.h >>conftest.$ac_ext
40001cat >>conftest.$ac_ext <<_ACEOF
40002/* end confdefs.h. */
40003
40004int
40005main ()
40006{
40007
40008 ;
40009 return 0;
40010}
40011_ACEOF
40012rm -f conftest.$ac_objext
40013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40014 (eval $ac_compile) 2>conftest.er1
a848cd7e 40015 ac_status=$?
ac1cb8d3
VS
40016 grep -v '^ *+' conftest.er1 >conftest.err
40017 rm -f conftest.er1
40018 cat conftest.err >&5
a848cd7e
SC
40019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40020 (exit $ac_status); } &&
ca5c6ac3 40021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40023 (eval $ac_try) 2>&5
40024 ac_status=$?
40025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40026 (exit $ac_status); }; } &&
40027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40029 (eval $ac_try) 2>&5
40030 ac_status=$?
40031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40032 (exit $ac_status); }; }; then
40033 wx_cv_cflags_mthread=yes
40034else
40035 echo "$as_me: failed program was:" >&5
40036sed 's/^/| /' conftest.$ac_ext >&5
40037
40038wx_cv_cflags_mthread=no
40039
40040fi
ac1cb8d3 40041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40042
40043
40044fi
40045echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40046echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
40047
40048 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 40049 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
40050 LDFLAGS="$LDFLAGS -mthreads"
40051 else
e56f4f9e 40052 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
40053 fi
40054 ;;
40055 *-pc-os2*emx )
5ff751d6
VZ
40056 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40057 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
40058 LDFLAGS="$LDFLAGS -Zmt"
40059 ;;
40060 esac
40061 fi
40062fi
40063
004ee6da
RL
40064echo "$as_me:$LINENO: checking for localtime_r" >&5
40065echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
40066if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
40067 echo $ECHO_N "(cached) $ECHO_C" >&6
40068else
40069 cat >conftest.$ac_ext <<_ACEOF
40070/* confdefs.h. */
40071_ACEOF
40072cat confdefs.h >>conftest.$ac_ext
40073cat >>conftest.$ac_ext <<_ACEOF
40074/* end confdefs.h. */
004ee6da 40075/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 40076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 40077#define localtime_r innocuous_localtime_r
ac1cb8d3 40078
a848cd7e 40079/* System header to define __stub macros and hopefully few prototypes,
004ee6da 40080 which can conflict with char localtime_r (); below.
a848cd7e
SC
40081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40082 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40083
a848cd7e
SC
40084#ifdef __STDC__
40085# include <limits.h>
40086#else
40087# include <assert.h>
40088#endif
ac1cb8d3 40089
004ee6da 40090#undef localtime_r
ac1cb8d3 40091
a848cd7e
SC
40092/* Override any gcc2 internal prototype to avoid an error. */
40093#ifdef __cplusplus
40094extern "C"
40095{
40096#endif
40097/* We use char because int might match the return type of a gcc2
40098 builtin and then its argument prototype would still apply. */
004ee6da 40099char localtime_r ();
a848cd7e
SC
40100/* The GNU C library defines this for functions which it implements
40101 to always fail with ENOSYS. Some functions are actually named
40102 something starting with __ and the normal name is an alias. */
004ee6da 40103#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
40104choke me
40105#else
004ee6da 40106char (*f) () = localtime_r;
a848cd7e
SC
40107#endif
40108#ifdef __cplusplus
40109}
40110#endif
40111
40112int
40113main ()
40114{
004ee6da
RL
40115return f != localtime_r;
40116 ;
40117 return 0;
40118}
40119_ACEOF
40120rm -f conftest.$ac_objext conftest$ac_exeext
40121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40122 (eval $ac_link) 2>conftest.er1
40123 ac_status=$?
40124 grep -v '^ *+' conftest.er1 >conftest.err
40125 rm -f conftest.er1
40126 cat conftest.err >&5
40127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40128 (exit $ac_status); } &&
ca5c6ac3 40129 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40131 (eval $ac_try) 2>&5
40132 ac_status=$?
40133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40134 (exit $ac_status); }; } &&
40135 { ac_try='test -s conftest$ac_exeext'
40136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40137 (eval $ac_try) 2>&5
40138 ac_status=$?
40139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40140 (exit $ac_status); }; }; then
40141 ac_cv_func_localtime_r=yes
40142else
40143 echo "$as_me: failed program was:" >&5
40144sed 's/^/| /' conftest.$ac_ext >&5
40145
40146ac_cv_func_localtime_r=no
40147fi
40148rm -f conftest.err conftest.$ac_objext \
40149 conftest$ac_exeext conftest.$ac_ext
40150fi
40151echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40152echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
40153if test $ac_cv_func_localtime_r = yes; then
40154 cat >>confdefs.h <<\_ACEOF
40155#define HAVE_LOCALTIME_R 1
40156_ACEOF
40157
40158fi
40159
40160echo "$as_me:$LINENO: checking for gmtime_r" >&5
40161echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
40162if test "${ac_cv_func_gmtime_r+set}" = set; then
40163 echo $ECHO_N "(cached) $ECHO_C" >&6
40164else
40165 cat >conftest.$ac_ext <<_ACEOF
40166/* confdefs.h. */
40167_ACEOF
40168cat confdefs.h >>conftest.$ac_ext
40169cat >>conftest.$ac_ext <<_ACEOF
40170/* end confdefs.h. */
40171/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40173#define gmtime_r innocuous_gmtime_r
40174
40175/* System header to define __stub macros and hopefully few prototypes,
40176 which can conflict with char gmtime_r (); below.
40177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40178 <limits.h> exists even on freestanding compilers. */
40179
40180#ifdef __STDC__
40181# include <limits.h>
40182#else
40183# include <assert.h>
40184#endif
40185
40186#undef gmtime_r
40187
40188/* Override any gcc2 internal prototype to avoid an error. */
40189#ifdef __cplusplus
40190extern "C"
40191{
40192#endif
40193/* We use char because int might match the return type of a gcc2
40194 builtin and then its argument prototype would still apply. */
40195char gmtime_r ();
40196/* The GNU C library defines this for functions which it implements
40197 to always fail with ENOSYS. Some functions are actually named
40198 something starting with __ and the normal name is an alias. */
40199#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
40200choke me
40201#else
40202char (*f) () = gmtime_r;
40203#endif
40204#ifdef __cplusplus
40205}
40206#endif
40207
40208int
40209main ()
40210{
40211return f != gmtime_r;
40212 ;
40213 return 0;
40214}
40215_ACEOF
40216rm -f conftest.$ac_objext conftest$ac_exeext
40217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40218 (eval $ac_link) 2>conftest.er1
40219 ac_status=$?
40220 grep -v '^ *+' conftest.er1 >conftest.err
40221 rm -f conftest.er1
40222 cat conftest.err >&5
40223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40224 (exit $ac_status); } &&
ca5c6ac3 40225 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40227 (eval $ac_try) 2>&5
40228 ac_status=$?
40229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40230 (exit $ac_status); }; } &&
40231 { ac_try='test -s conftest$ac_exeext'
40232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40233 (eval $ac_try) 2>&5
40234 ac_status=$?
40235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40236 (exit $ac_status); }; }; then
40237 ac_cv_func_gmtime_r=yes
40238else
40239 echo "$as_me: failed program was:" >&5
40240sed 's/^/| /' conftest.$ac_ext >&5
40241
40242ac_cv_func_gmtime_r=no
40243fi
40244rm -f conftest.err conftest.$ac_objext \
40245 conftest$ac_exeext conftest.$ac_ext
40246fi
40247echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40248echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
40249if test $ac_cv_func_gmtime_r = yes; then
40250 cat >>confdefs.h <<\_ACEOF
40251#define HAVE_GMTIME_R 1
40252_ACEOF
40253
40254fi
40255
40256echo "$as_me:$LINENO: checking for readdir_r" >&5
40257echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
40258if test "${ac_cv_func_readdir_r+set}" = set; then
40259 echo $ECHO_N "(cached) $ECHO_C" >&6
40260else
40261 cat >conftest.$ac_ext <<_ACEOF
40262/* confdefs.h. */
40263_ACEOF
40264cat confdefs.h >>conftest.$ac_ext
40265cat >>conftest.$ac_ext <<_ACEOF
40266/* end confdefs.h. */
40267/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
40268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40269#define readdir_r innocuous_readdir_r
40270
40271/* System header to define __stub macros and hopefully few prototypes,
40272 which can conflict with char readdir_r (); below.
40273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40274 <limits.h> exists even on freestanding compilers. */
40275
40276#ifdef __STDC__
40277# include <limits.h>
40278#else
40279# include <assert.h>
40280#endif
40281
40282#undef readdir_r
40283
40284/* Override any gcc2 internal prototype to avoid an error. */
40285#ifdef __cplusplus
40286extern "C"
40287{
40288#endif
40289/* We use char because int might match the return type of a gcc2
40290 builtin and then its argument prototype would still apply. */
40291char readdir_r ();
40292/* The GNU C library defines this for functions which it implements
40293 to always fail with ENOSYS. Some functions are actually named
40294 something starting with __ and the normal name is an alias. */
40295#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
40296choke me
40297#else
40298char (*f) () = readdir_r;
40299#endif
40300#ifdef __cplusplus
40301}
40302#endif
40303
40304int
40305main ()
40306{
40307return f != readdir_r;
40308 ;
40309 return 0;
40310}
40311_ACEOF
40312rm -f conftest.$ac_objext conftest$ac_exeext
40313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40314 (eval $ac_link) 2>conftest.er1
40315 ac_status=$?
40316 grep -v '^ *+' conftest.er1 >conftest.err
40317 rm -f conftest.er1
40318 cat conftest.err >&5
40319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40320 (exit $ac_status); } &&
ca5c6ac3 40321 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40323 (eval $ac_try) 2>&5
40324 ac_status=$?
40325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40326 (exit $ac_status); }; } &&
40327 { ac_try='test -s conftest$ac_exeext'
40328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40329 (eval $ac_try) 2>&5
40330 ac_status=$?
40331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40332 (exit $ac_status); }; }; then
40333 ac_cv_func_readdir_r=yes
40334else
40335 echo "$as_me: failed program was:" >&5
40336sed 's/^/| /' conftest.$ac_ext >&5
40337
40338ac_cv_func_readdir_r=no
40339fi
40340rm -f conftest.err conftest.$ac_objext \
40341 conftest$ac_exeext conftest.$ac_ext
40342fi
40343echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
40344echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
40345if test $ac_cv_func_readdir_r = yes; then
40346 cat >>confdefs.h <<\_ACEOF
40347#define HAVE_READDIR_R 1
40348_ACEOF
40349
40350fi
40351
004ee6da 40352
004ee6da
RL
40353
40354
40355 ac_ext=c
40356ac_cpp='$CPP $CPPFLAGS'
40357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40359ac_compiler_gnu=$ac_cv_c_compiler_gnu
40360
40361 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40362echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
40363
40364 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40365 echo $ECHO_N "(cached) $ECHO_C" >&6
40366else
40367
40368
2f6c5bb5 40369################################################################
004ee6da
RL
40370
40371ac_cv_func_which_gethostbyname_r=unknown
40372
40373#
40374# ONE ARGUMENT (sanity check)
40375#
40376
40377# This should fail, as there is no variant of gethostbyname_r() that takes
40378# a single argument. If it actually compiles, then we can assume that
40379# netdb.h is not declaring the function, and the compiler is thereby
40380# assuming an implicit prototype. In which case, we're out of luck.
40381#
40382cat >conftest.$ac_ext <<_ACEOF
40383/* confdefs.h. */
40384_ACEOF
40385cat confdefs.h >>conftest.$ac_ext
40386cat >>conftest.$ac_ext <<_ACEOF
40387/* end confdefs.h. */
40388#include <netdb.h>
40389int
40390main ()
40391{
40392
40393 char *name = "www.gnu.org";
40394 (void)gethostbyname_r(name) /* ; */
40395
40396 ;
40397 return 0;
40398}
40399_ACEOF
40400rm -f conftest.$ac_objext
40401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40402 (eval $ac_compile) 2>conftest.er1
40403 ac_status=$?
40404 grep -v '^ *+' conftest.er1 >conftest.err
40405 rm -f conftest.er1
40406 cat conftest.err >&5
40407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40408 (exit $ac_status); } &&
ca5c6ac3 40409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40411 (eval $ac_try) 2>&5
40412 ac_status=$?
40413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40414 (exit $ac_status); }; } &&
40415 { ac_try='test -s conftest.$ac_objext'
40416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40417 (eval $ac_try) 2>&5
40418 ac_status=$?
40419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40420 (exit $ac_status); }; }; then
40421 ac_cv_func_which_gethostbyname_r=no
40422else
40423 echo "$as_me: failed program was:" >&5
40424sed 's/^/| /' conftest.$ac_ext >&5
40425
40426fi
40427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40428
40429#
40430# SIX ARGUMENTS
40431# (e.g. Linux)
40432#
40433
40434if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40435
40436cat >conftest.$ac_ext <<_ACEOF
40437/* confdefs.h. */
40438_ACEOF
40439cat confdefs.h >>conftest.$ac_ext
40440cat >>conftest.$ac_ext <<_ACEOF
40441/* end confdefs.h. */
40442#include <netdb.h>
40443int
40444main ()
40445{
40446
40447 char *name = "www.gnu.org";
40448 struct hostent ret, *retp;
40449 char buf[1024];
40450 int buflen = 1024;
40451 int my_h_errno;
40452 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40453
40454 ;
40455 return 0;
40456}
40457_ACEOF
40458rm -f conftest.$ac_objext
40459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40460 (eval $ac_compile) 2>conftest.er1
40461 ac_status=$?
40462 grep -v '^ *+' conftest.er1 >conftest.err
40463 rm -f conftest.er1
40464 cat conftest.err >&5
40465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40466 (exit $ac_status); } &&
ca5c6ac3 40467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40469 (eval $ac_try) 2>&5
40470 ac_status=$?
40471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40472 (exit $ac_status); }; } &&
40473 { ac_try='test -s conftest.$ac_objext'
40474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40475 (eval $ac_try) 2>&5
40476 ac_status=$?
40477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40478 (exit $ac_status); }; }; then
40479 ac_cv_func_which_gethostbyname_r=six
40480else
40481 echo "$as_me: failed program was:" >&5
40482sed 's/^/| /' conftest.$ac_ext >&5
40483
40484fi
40485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40486
40487fi
40488
40489#
40490# FIVE ARGUMENTS
40491# (e.g. Solaris)
40492#
40493
40494if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40495
40496cat >conftest.$ac_ext <<_ACEOF
40497/* confdefs.h. */
40498_ACEOF
40499cat confdefs.h >>conftest.$ac_ext
40500cat >>conftest.$ac_ext <<_ACEOF
40501/* end confdefs.h. */
40502#include <netdb.h>
40503int
40504main ()
40505{
40506
40507 char *name = "www.gnu.org";
40508 struct hostent ret;
40509 char buf[1024];
40510 int buflen = 1024;
40511 int my_h_errno;
40512 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40513
40514 ;
40515 return 0;
40516}
40517_ACEOF
40518rm -f conftest.$ac_objext
40519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40520 (eval $ac_compile) 2>conftest.er1
40521 ac_status=$?
40522 grep -v '^ *+' conftest.er1 >conftest.err
40523 rm -f conftest.er1
40524 cat conftest.err >&5
40525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40526 (exit $ac_status); } &&
ca5c6ac3 40527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40529 (eval $ac_try) 2>&5
40530 ac_status=$?
40531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40532 (exit $ac_status); }; } &&
40533 { ac_try='test -s conftest.$ac_objext'
40534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40535 (eval $ac_try) 2>&5
40536 ac_status=$?
40537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40538 (exit $ac_status); }; }; then
40539 ac_cv_func_which_gethostbyname_r=five
40540else
40541 echo "$as_me: failed program was:" >&5
40542sed 's/^/| /' conftest.$ac_ext >&5
40543
40544fi
40545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40546
40547fi
40548
40549#
40550# THREE ARGUMENTS
40551# (e.g. AIX, HP-UX, Tru64)
40552#
40553
40554if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40555
40556cat >conftest.$ac_ext <<_ACEOF
40557/* confdefs.h. */
40558_ACEOF
40559cat confdefs.h >>conftest.$ac_ext
40560cat >>conftest.$ac_ext <<_ACEOF
40561/* end confdefs.h. */
40562#include <netdb.h>
40563int
40564main ()
40565{
40566
40567 char *name = "www.gnu.org";
40568 struct hostent ret;
40569 struct hostent_data data;
40570 (void)gethostbyname_r(name, &ret, &data) /* ; */
40571
40572 ;
40573 return 0;
40574}
40575_ACEOF
40576rm -f conftest.$ac_objext
40577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40578 (eval $ac_compile) 2>conftest.er1
40579 ac_status=$?
40580 grep -v '^ *+' conftest.er1 >conftest.err
40581 rm -f conftest.er1
40582 cat conftest.err >&5
40583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40584 (exit $ac_status); } &&
ca5c6ac3 40585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40587 (eval $ac_try) 2>&5
40588 ac_status=$?
40589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40590 (exit $ac_status); }; } &&
40591 { ac_try='test -s conftest.$ac_objext'
40592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40593 (eval $ac_try) 2>&5
40594 ac_status=$?
40595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40596 (exit $ac_status); }; }; then
40597 ac_cv_func_which_gethostbyname_r=three
40598else
40599 echo "$as_me: failed program was:" >&5
40600sed 's/^/| /' conftest.$ac_ext >&5
40601
40602fi
40603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40604
40605fi
40606
2f6c5bb5 40607################################################################
004ee6da
RL
40608
40609
40610fi
40611
40612case "$ac_cv_func_which_gethostbyname_r" in
40613 three)
40614 echo "$as_me:$LINENO: result: three" >&5
40615echo "${ECHO_T}three" >&6
40616 cat >>confdefs.h <<\_ACEOF
40617#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40618_ACEOF
40619
40620 ;;
40621
40622 five)
40623 echo "$as_me:$LINENO: result: five" >&5
40624echo "${ECHO_T}five" >&6
40625 cat >>confdefs.h <<\_ACEOF
40626#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40627_ACEOF
40628
40629 ;;
40630
40631 six)
40632 echo "$as_me:$LINENO: result: six" >&5
40633echo "${ECHO_T}six" >&6
40634 cat >>confdefs.h <<\_ACEOF
40635#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40636_ACEOF
40637
40638 ;;
40639
40640 no)
40641 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40642echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
40643 ;;
40644
40645 unknown)
40646 echo "$as_me:$LINENO: result: can't tell" >&5
40647echo "${ECHO_T}can't tell" >&6
40648 ;;
40649
40650 *)
40651 { { echo "$as_me:$LINENO: error: internal error" >&5
40652echo "$as_me: error: internal error" >&2;}
40653 { (exit 1); exit 1; }; }
40654 ;;
40655esac
40656
5ec3bc43
JS
40657ac_ext=cc
40658ac_cpp='$CXXCPP $CPPFLAGS'
40659ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40660ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40661ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
40662
40663
40664
40665 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40666 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40667 echo "$as_me:$LINENO: checking for gethostbyname" >&5
40668echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
40669if test "${ac_cv_func_gethostbyname+set}" = set; then
40670 echo $ECHO_N "(cached) $ECHO_C" >&6
40671else
40672 cat >conftest.$ac_ext <<_ACEOF
40673/* confdefs.h. */
40674_ACEOF
40675cat confdefs.h >>conftest.$ac_ext
40676cat >>conftest.$ac_ext <<_ACEOF
40677/* end confdefs.h. */
40678/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
40679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40680#define gethostbyname innocuous_gethostbyname
40681
40682/* System header to define __stub macros and hopefully few prototypes,
40683 which can conflict with char gethostbyname (); below.
40684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40685 <limits.h> exists even on freestanding compilers. */
40686
40687#ifdef __STDC__
40688# include <limits.h>
40689#else
40690# include <assert.h>
40691#endif
40692
40693#undef gethostbyname
40694
40695/* Override any gcc2 internal prototype to avoid an error. */
40696#ifdef __cplusplus
40697extern "C"
40698{
40699#endif
40700/* We use char because int might match the return type of a gcc2
40701 builtin and then its argument prototype would still apply. */
40702char gethostbyname ();
40703/* The GNU C library defines this for functions which it implements
40704 to always fail with ENOSYS. Some functions are actually named
40705 something starting with __ and the normal name is an alias. */
40706#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
40707choke me
40708#else
40709char (*f) () = gethostbyname;
40710#endif
40711#ifdef __cplusplus
40712}
40713#endif
40714
40715int
40716main ()
40717{
40718return f != gethostbyname;
40719 ;
40720 return 0;
40721}
40722_ACEOF
40723rm -f conftest.$ac_objext conftest$ac_exeext
40724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40725 (eval $ac_link) 2>conftest.er1
40726 ac_status=$?
40727 grep -v '^ *+' conftest.er1 >conftest.err
40728 rm -f conftest.er1
40729 cat conftest.err >&5
40730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40731 (exit $ac_status); } &&
ca5c6ac3 40732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40734 (eval $ac_try) 2>&5
40735 ac_status=$?
40736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40737 (exit $ac_status); }; } &&
40738 { ac_try='test -s conftest$ac_exeext'
40739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40740 (eval $ac_try) 2>&5
40741 ac_status=$?
40742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40743 (exit $ac_status); }; }; then
40744 ac_cv_func_gethostbyname=yes
40745else
40746 echo "$as_me: failed program was:" >&5
40747sed 's/^/| /' conftest.$ac_ext >&5
40748
40749ac_cv_func_gethostbyname=no
40750fi
40751rm -f conftest.err conftest.$ac_objext \
40752 conftest$ac_exeext conftest.$ac_ext
40753fi
40754echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
40755echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
40756if test $ac_cv_func_gethostbyname = yes; then
40757 cat >>confdefs.h <<\_ACEOF
40758#define HAVE_GETHOSTBYNAME 1
40759_ACEOF
40760
40761fi
40762
40763 fi
3ecd9f92 40764
81c330c6
VZ
40765echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
40766echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6
40767if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
004ee6da
RL
40768 echo $ECHO_N "(cached) $ECHO_C" >&6
40769else
3ecd9f92
MW
40770
40771 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40772/* confdefs.h. */
40773_ACEOF
40774cat confdefs.h >>conftest.$ac_ext
40775cat >>conftest.$ac_ext <<_ACEOF
40776/* end confdefs.h. */
81c330c6 40777#include <netdb.h>
004ee6da
RL
40778int
40779main ()
40780{
40781
81c330c6
VZ
40782 char *name;
40783 char *proto;
40784 struct servent *se, *res;
40785 char buffer[2048];
40786 int buflen = 2048;
40787 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
004ee6da
RL
40788
40789 ;
40790 return 0;
40791}
40792_ACEOF
40793rm -f conftest.$ac_objext
40794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40795 (eval $ac_compile) 2>conftest.er1
40796 ac_status=$?
40797 grep -v '^ *+' conftest.er1 >conftest.err
40798 rm -f conftest.er1
40799 cat conftest.err >&5
40800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40801 (exit $ac_status); } &&
ca5c6ac3 40802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40804 (eval $ac_try) 2>&5
40805 ac_status=$?
40806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40807 (exit $ac_status); }; } &&
40808 { ac_try='test -s conftest.$ac_objext'
40809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40810 (eval $ac_try) 2>&5
40811 ac_status=$?
40812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40813 (exit $ac_status); }; }; then
81c330c6 40814 ac_cv_func_which_getservbyname_r=six
004ee6da
RL
40815else
40816 echo "$as_me: failed program was:" >&5
40817sed 's/^/| /' conftest.$ac_ext >&5
40818
3ecd9f92 40819
81c330c6 40820 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40821/* confdefs.h. */
40822_ACEOF
40823cat confdefs.h >>conftest.$ac_ext
40824cat >>conftest.$ac_ext <<_ACEOF
40825/* end confdefs.h. */
81c330c6 40826#include <netdb.h>
004ee6da
RL
40827int
40828main ()
40829{
40830
81c330c6
VZ
40831 char *name;
40832 char *proto;
40833 struct servent *se;
40834 char buffer[2048];
40835 int buflen = 2048;
40836 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
40837
40838 ;
40839 return 0;
40840}
40841_ACEOF
40842rm -f conftest.$ac_objext
40843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40844 (eval $ac_compile) 2>conftest.er1
40845 ac_status=$?
40846 grep -v '^ *+' conftest.er1 >conftest.err
40847 rm -f conftest.er1
40848 cat conftest.err >&5
40849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40850 (exit $ac_status); } &&
ca5c6ac3 40851 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40853 (eval $ac_try) 2>&5
40854 ac_status=$?
40855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40856 (exit $ac_status); }; } &&
40857 { ac_try='test -s conftest.$ac_objext'
40858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40859 (eval $ac_try) 2>&5
40860 ac_status=$?
40861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40862 (exit $ac_status); }; }; then
81c330c6 40863 ac_cv_func_which_getservbyname_r=five
004ee6da
RL
40864else
40865 echo "$as_me: failed program was:" >&5
40866sed 's/^/| /' conftest.$ac_ext >&5
40867
3ecd9f92 40868
81c330c6 40869 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40870/* confdefs.h. */
40871_ACEOF
40872cat confdefs.h >>conftest.$ac_ext
40873cat >>conftest.$ac_ext <<_ACEOF
40874/* end confdefs.h. */
81c330c6 40875#include <netdb.h>
004ee6da
RL
40876int
40877main ()
40878{
40879
81c330c6
VZ
40880 char *name;
40881 char *proto;
40882 struct servent *se;
40883 struct servent_data data;
40884 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
40885
40886 ;
40887 return 0;
40888}
40889_ACEOF
40890rm -f conftest.$ac_objext
40891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40892 (eval $ac_compile) 2>conftest.er1
40893 ac_status=$?
40894 grep -v '^ *+' conftest.er1 >conftest.err
40895 rm -f conftest.er1
40896 cat conftest.err >&5
40897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40898 (exit $ac_status); } &&
ca5c6ac3 40899 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40901 (eval $ac_try) 2>&5
40902 ac_status=$?
40903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40904 (exit $ac_status); }; } &&
40905 { ac_try='test -s conftest.$ac_objext'
40906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40907 (eval $ac_try) 2>&5
40908 ac_status=$?
40909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40910 (exit $ac_status); }; }; then
81c330c6 40911 ac_cv_func_which_getservbyname_r=four
004ee6da
RL
40912else
40913 echo "$as_me: failed program was:" >&5
40914sed 's/^/| /' conftest.$ac_ext >&5
40915
40916ac_cv_func_which_getservbyname_r=no
81c330c6 40917
004ee6da
RL
40918fi
40919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40920
3ecd9f92 40921
004ee6da
RL
40922fi
40923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40924
3ecd9f92 40925
004ee6da
RL
40926fi
40927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3ecd9f92 40928
004ee6da 40929
3ecd9f92
MW
40930fi
40931echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
40932echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
004ee6da
RL
40933
40934if test $ac_cv_func_which_getservbyname_r = six; then
40935 cat >>confdefs.h <<\_ACEOF
40936#define HAVE_FUNC_GETSERVBYNAME_R_6 1
40937_ACEOF
40938
40939elif test $ac_cv_func_which_getservbyname_r = five; then
40940 cat >>confdefs.h <<\_ACEOF
40941#define HAVE_FUNC_GETSERVBYNAME_R_5 1
40942_ACEOF
40943
40944elif test $ac_cv_func_which_getservbyname_r = four; then
40945 cat >>confdefs.h <<\_ACEOF
40946#define HAVE_FUNC_GETSERVBYNAME_R_4 1
40947_ACEOF
40948
004ee6da
RL
40949fi
40950
40951
40952 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
40953 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
40954
40955for ac_func in getservbyname
40956do
40957as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40958echo "$as_me:$LINENO: checking for $ac_func" >&5
40959echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40960if eval "test \"\${$as_ac_var+set}\" = set"; then
40961 echo $ECHO_N "(cached) $ECHO_C" >&6
40962else
40963 cat >conftest.$ac_ext <<_ACEOF
40964/* confdefs.h. */
40965_ACEOF
40966cat confdefs.h >>conftest.$ac_ext
40967cat >>conftest.$ac_ext <<_ACEOF
40968/* end confdefs.h. */
40969/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40971#define $ac_func innocuous_$ac_func
40972
40973/* System header to define __stub macros and hopefully few prototypes,
40974 which can conflict with char $ac_func (); below.
40975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40976 <limits.h> exists even on freestanding compilers. */
40977
40978#ifdef __STDC__
40979# include <limits.h>
40980#else
40981# include <assert.h>
40982#endif
40983
40984#undef $ac_func
40985
40986/* Override any gcc2 internal prototype to avoid an error. */
40987#ifdef __cplusplus
40988extern "C"
40989{
40990#endif
40991/* We use char because int might match the return type of a gcc2
40992 builtin and then its argument prototype would still apply. */
40993char $ac_func ();
40994/* The GNU C library defines this for functions which it implements
40995 to always fail with ENOSYS. Some functions are actually named
40996 something starting with __ and the normal name is an alias. */
40997#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40998choke me
40999#else
41000char (*f) () = $ac_func;
41001#endif
41002#ifdef __cplusplus
41003}
41004#endif
41005
41006int
41007main ()
41008{
41009return f != $ac_func;
41010 ;
41011 return 0;
41012}
41013_ACEOF
41014rm -f conftest.$ac_objext conftest$ac_exeext
41015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41016 (eval $ac_link) 2>conftest.er1
41017 ac_status=$?
41018 grep -v '^ *+' conftest.er1 >conftest.err
41019 rm -f conftest.er1
41020 cat conftest.err >&5
41021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41022 (exit $ac_status); } &&
ca5c6ac3 41023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41025 (eval $ac_try) 2>&5
41026 ac_status=$?
41027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41028 (exit $ac_status); }; } &&
41029 { ac_try='test -s conftest$ac_exeext'
41030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41031 (eval $ac_try) 2>&5
41032 ac_status=$?
41033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41034 (exit $ac_status); }; }; then
41035 eval "$as_ac_var=yes"
41036else
41037 echo "$as_me: failed program was:" >&5
41038sed 's/^/| /' conftest.$ac_ext >&5
41039
41040eval "$as_ac_var=no"
41041fi
41042rm -f conftest.err conftest.$ac_objext \
41043 conftest$ac_exeext conftest.$ac_ext
41044fi
41045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41046echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41047if test `eval echo '${'$as_ac_var'}'` = yes; then
41048 cat >>confdefs.h <<_ACEOF
41049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41050_ACEOF
41051 cat >>confdefs.h <<\_ACEOF
41052#define HAVE_GETSERVBYNAME 1
41053_ACEOF
41054
41055fi
41056done
41057
41058 fi
41059
004ee6da
RL
41060if test "$wxUSE_THREADS" = "yes"; then
41061 cat >>confdefs.h <<\_ACEOF
41062#define wxUSE_THREADS 1
41063_ACEOF
41064
41065
41066 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41067else
56632e81 41068 if test "$wx_cv_func_strtok_r" = "yes"; then
004ee6da
RL
41069 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41070echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
41071 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41072 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41073 echo "$as_me:$LINENO: result: yes" >&5
41074echo "${ECHO_T}yes" >&6
41075 else
41076 echo "$as_me:$LINENO: result: no" >&5
41077echo "${ECHO_T}no" >&6
41078 fi
41079 fi
41080fi
41081
41082if test "$WXGTK20" = 1 ; then
41083 cat >>confdefs.h <<_ACEOF
41084#define __WXGTK20__ $WXGTK20
41085_ACEOF
41086
41087 WXGTK12=1
41088fi
41089
41090if test "$WXGTK12" = 1 ; then
41091 cat >>confdefs.h <<_ACEOF
41092#define __WXGTK12__ $WXGTK12
41093_ACEOF
41094
41095fi
41096
41097if test "$WXGTK127" = 1 ; then
41098 cat >>confdefs.h <<_ACEOF
41099#define __WXGTK127__ $WXGTK127
41100_ACEOF
41101
41102fi
41103
41104if test "$WXGPE" = 1 ; then
41105 cat >>confdefs.h <<_ACEOF
41106#define __WXGPE__ $WXGPE
41107_ACEOF
41108
41109fi
41110
41111DEBUG_CFLAGS=
41112if test "$wxUSE_DEBUG_INFO" = "yes" ; then
41113 DEBUG_CFLAGS="-g"
41114 wxUSE_OPTIMISE=no
41115fi
41116
41117if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41118 wxUSE_DEBUG_INFO=yes
41119 if test "$GCC" = yes; then
41120 DEBUG_CFLAGS="-ggdb"
41121 fi
41122fi
41123
41124if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41125 cat >>confdefs.h <<\_ACEOF
41126#define WXDEBUG 1
41127_ACEOF
41128
41129 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41130else
41131 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
41132 if test "x$wxGTK_VERSION" = "x1" ; then
41133 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41134 fi
004ee6da
RL
41135 fi
41136fi
41137
41138if test "$wxUSE_MEM_TRACING" = "yes" ; then
41139 cat >>confdefs.h <<\_ACEOF
41140#define wxUSE_MEMORY_TRACING 1
41141_ACEOF
41142
41143 cat >>confdefs.h <<\_ACEOF
41144#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41145_ACEOF
41146
41147 cat >>confdefs.h <<\_ACEOF
41148#define wxUSE_DEBUG_NEW_ALWAYS 1
41149_ACEOF
41150
41151 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41152fi
41153
41154if test "$wxUSE_DMALLOC" = "yes" ; then
41155 DMALLOC_LIBS="-ldmallocthcxx"
41156fi
41157
41158PROFILE_FLAGS=
41159if test "$wxUSE_PROFILE" = "yes" ; then
41160 PROFILE_FLAGS=" -pg"
41161fi
41162
41163if test "$GCC" = "yes" ; then
41164 if test "$wxUSE_NO_RTTI" = "yes" ; then
41165 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41166 fi
41167 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41168 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41169 fi
41170 if test "$wxUSE_PERMISSIVE" = "yes" ; then
41171 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41172 fi
41173
41174 case "${host}" in
41175 powerpc*-*-aix* )
41176 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41177 ;;
41178 *-hppa* )
41179 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41180 ;;
41181 esac
41182fi
41183
41184OPTIMISE_CFLAGS=
41185if test "$wxUSE_OPTIMISE" = "no" ; then
41186 if test "$GCC" = yes ; then
41187 OPTIMISE_CFLAGS="-O0"
41188 fi
41189else
41190 if test "$GCC" = yes ; then
e5efa97e
VZ
41191 case "${host}" in
41192 *-pc-os2_emx | *-pc-os2-emx )
41193 OPTIMISE_CFLAGS="-O2"
41194 ;;
41195 *)
41196 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41197 ;;
41198 esac
004ee6da
RL
41199 else
41200 OPTIMISE_CFLAGS="-O"
41201 fi
41202fi
41203
41204
41205if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
41206 cat >>confdefs.h <<\_ACEOF
41207#define WXWIN_COMPATIBILITY_2_4 1
41208_ACEOF
41209
41210
41211 WXWIN_COMPATIBILITY_2_6="yes"
41212fi
41213
41214if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
41215 cat >>confdefs.h <<\_ACEOF
41216#define WXWIN_COMPATIBILITY_2_6 1
41217_ACEOF
41218
41219fi
41220
41221
41222if test "$wxUSE_GUI" = "yes"; then
41223 cat >>confdefs.h <<\_ACEOF
41224#define wxUSE_GUI 1
41225_ACEOF
41226
41227
41228 fi
41229
41230
41231if test "$wxUSE_UNIX" = "yes"; then
41232 cat >>confdefs.h <<\_ACEOF
41233#define wxUSE_UNIX 1
41234_ACEOF
41235
41236fi
41237
41238
41239if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41240
41241 HAVE_DL_FUNCS=0
41242 HAVE_SHL_FUNCS=0
41243 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41244 if test "$USE_DARWIN" = 1; then
41245 HAVE_DL_FUNCS=1
41246 elif test "$USE_DOS" = 1; then
41247 HAVE_DL_FUNCS=0
41248 else
41249
41250for ac_func in dlopen
41251do
41252as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41253echo "$as_me:$LINENO: checking for $ac_func" >&5
41254echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41255if eval "test \"\${$as_ac_var+set}\" = set"; then
41256 echo $ECHO_N "(cached) $ECHO_C" >&6
41257else
41258 cat >conftest.$ac_ext <<_ACEOF
41259/* confdefs.h. */
41260_ACEOF
41261cat confdefs.h >>conftest.$ac_ext
41262cat >>conftest.$ac_ext <<_ACEOF
41263/* end confdefs.h. */
41264/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41266#define $ac_func innocuous_$ac_func
41267
41268/* System header to define __stub macros and hopefully few prototypes,
41269 which can conflict with char $ac_func (); below.
41270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41271 <limits.h> exists even on freestanding compilers. */
41272
41273#ifdef __STDC__
41274# include <limits.h>
41275#else
41276# include <assert.h>
41277#endif
41278
41279#undef $ac_func
41280
41281/* Override any gcc2 internal prototype to avoid an error. */
41282#ifdef __cplusplus
41283extern "C"
41284{
41285#endif
41286/* We use char because int might match the return type of a gcc2
41287 builtin and then its argument prototype would still apply. */
41288char $ac_func ();
41289/* The GNU C library defines this for functions which it implements
41290 to always fail with ENOSYS. Some functions are actually named
41291 something starting with __ and the normal name is an alias. */
41292#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41293choke me
41294#else
41295char (*f) () = $ac_func;
41296#endif
41297#ifdef __cplusplus
41298}
41299#endif
41300
41301int
41302main ()
41303{
41304return f != $ac_func;
a848cd7e
SC
41305 ;
41306 return 0;
41307}
41308_ACEOF
41309rm -f conftest.$ac_objext conftest$ac_exeext
41310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41311 (eval $ac_link) 2>conftest.er1
a848cd7e 41312 ac_status=$?
ac1cb8d3
VS
41313 grep -v '^ *+' conftest.er1 >conftest.err
41314 rm -f conftest.er1
41315 cat conftest.err >&5
a848cd7e
SC
41316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41317 (exit $ac_status); } &&
ca5c6ac3 41318 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41320 (eval $ac_try) 2>&5
41321 ac_status=$?
41322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41323 (exit $ac_status); }; } &&
41324 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41326 (eval $ac_try) 2>&5
41327 ac_status=$?
41328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41329 (exit $ac_status); }; }; then
41330 eval "$as_ac_var=yes"
41331else
41332 echo "$as_me: failed program was:" >&5
41333sed 's/^/| /' conftest.$ac_ext >&5
41334
41335eval "$as_ac_var=no"
41336fi
ac1cb8d3
VS
41337rm -f conftest.err conftest.$ac_objext \
41338 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41339fi
41340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41341echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41342if test `eval echo '${'$as_ac_var'}'` = yes; then
41343 cat >>confdefs.h <<_ACEOF
41344#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41345_ACEOF
41346
41347 cat >>confdefs.h <<\_ACEOF
41348#define HAVE_DLOPEN 1
41349_ACEOF
41350
41351 HAVE_DL_FUNCS=1
41352
41353else
41354
41355 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41356echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
41357if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41358 echo $ECHO_N "(cached) $ECHO_C" >&6
41359else
41360 ac_check_lib_save_LIBS=$LIBS
41361LIBS="-ldl $LIBS"
41362cat >conftest.$ac_ext <<_ACEOF
41363/* confdefs.h. */
41364_ACEOF
41365cat confdefs.h >>conftest.$ac_ext
41366cat >>conftest.$ac_ext <<_ACEOF
41367/* end confdefs.h. */
41368
41369/* Override any gcc2 internal prototype to avoid an error. */
41370#ifdef __cplusplus
41371extern "C"
41372#endif
41373/* We use char because int might match the return type of a gcc2
41374 builtin and then its argument prototype would still apply. */
41375char dlopen ();
41376int
41377main ()
41378{
41379dlopen ();
41380 ;
41381 return 0;
41382}
41383_ACEOF
41384rm -f conftest.$ac_objext conftest$ac_exeext
41385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41386 (eval $ac_link) 2>conftest.er1
a848cd7e 41387 ac_status=$?
ac1cb8d3
VS
41388 grep -v '^ *+' conftest.er1 >conftest.err
41389 rm -f conftest.er1
41390 cat conftest.err >&5
a848cd7e
SC
41391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41392 (exit $ac_status); } &&
ca5c6ac3 41393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41395 (eval $ac_try) 2>&5
41396 ac_status=$?
41397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41398 (exit $ac_status); }; } &&
41399 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41401 (eval $ac_try) 2>&5
41402 ac_status=$?
41403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41404 (exit $ac_status); }; }; then
41405 ac_cv_lib_dl_dlopen=yes
41406else
41407 echo "$as_me: failed program was:" >&5
41408sed 's/^/| /' conftest.$ac_ext >&5
41409
41410ac_cv_lib_dl_dlopen=no
41411fi
ac1cb8d3
VS
41412rm -f conftest.err conftest.$ac_objext \
41413 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41414LIBS=$ac_check_lib_save_LIBS
41415fi
41416echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41417echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
41418if test $ac_cv_lib_dl_dlopen = yes; then
41419
41420 cat >>confdefs.h <<\_ACEOF
41421#define HAVE_DLOPEN 1
41422_ACEOF
41423
41424 HAVE_DL_FUNCS=1
41425 DL_LINK=" -ldl$DL_LINK"
41426
41427else
41428
41429
41430for ac_func in shl_load
41431do
41432as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41433echo "$as_me:$LINENO: checking for $ac_func" >&5
41434echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41435if eval "test \"\${$as_ac_var+set}\" = set"; then
41436 echo $ECHO_N "(cached) $ECHO_C" >&6
41437else
41438 cat >conftest.$ac_ext <<_ACEOF
41439/* confdefs.h. */
41440_ACEOF
41441cat confdefs.h >>conftest.$ac_ext
41442cat >>conftest.$ac_ext <<_ACEOF
41443/* end confdefs.h. */
ac1cb8d3
VS
41444/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41446#define $ac_func innocuous_$ac_func
41447
a848cd7e
SC
41448/* System header to define __stub macros and hopefully few prototypes,
41449 which can conflict with char $ac_func (); below.
41450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41451 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41452
a848cd7e
SC
41453#ifdef __STDC__
41454# include <limits.h>
41455#else
41456# include <assert.h>
41457#endif
ac1cb8d3
VS
41458
41459#undef $ac_func
41460
a848cd7e
SC
41461/* Override any gcc2 internal prototype to avoid an error. */
41462#ifdef __cplusplus
41463extern "C"
41464{
41465#endif
41466/* We use char because int might match the return type of a gcc2
41467 builtin and then its argument prototype would still apply. */
41468char $ac_func ();
41469/* The GNU C library defines this for functions which it implements
41470 to always fail with ENOSYS. Some functions are actually named
41471 something starting with __ and the normal name is an alias. */
41472#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41473choke me
41474#else
41475char (*f) () = $ac_func;
41476#endif
41477#ifdef __cplusplus
41478}
41479#endif
41480
41481int
41482main ()
41483{
41484return f != $ac_func;
41485 ;
41486 return 0;
41487}
41488_ACEOF
41489rm -f conftest.$ac_objext conftest$ac_exeext
41490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41491 (eval $ac_link) 2>conftest.er1
a848cd7e 41492 ac_status=$?
ac1cb8d3
VS
41493 grep -v '^ *+' conftest.er1 >conftest.err
41494 rm -f conftest.er1
41495 cat conftest.err >&5
a848cd7e
SC
41496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41497 (exit $ac_status); } &&
ca5c6ac3 41498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41500 (eval $ac_try) 2>&5
41501 ac_status=$?
41502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41503 (exit $ac_status); }; } &&
41504 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41506 (eval $ac_try) 2>&5
41507 ac_status=$?
41508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41509 (exit $ac_status); }; }; then
41510 eval "$as_ac_var=yes"
41511else
41512 echo "$as_me: failed program was:" >&5
41513sed 's/^/| /' conftest.$ac_ext >&5
41514
41515eval "$as_ac_var=no"
41516fi
ac1cb8d3
VS
41517rm -f conftest.err conftest.$ac_objext \
41518 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41519fi
41520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41521echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41522if test `eval echo '${'$as_ac_var'}'` = yes; then
41523 cat >>confdefs.h <<_ACEOF
41524#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41525_ACEOF
41526
41527 cat >>confdefs.h <<\_ACEOF
41528#define HAVE_SHL_LOAD 1
41529_ACEOF
41530
41531 HAVE_SHL_FUNCS=1
41532
41533else
41534
41535 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41536echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
41537if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41538 echo $ECHO_N "(cached) $ECHO_C" >&6
41539else
41540 ac_check_lib_save_LIBS=$LIBS
41541LIBS="-lshl_load $LIBS"
41542cat >conftest.$ac_ext <<_ACEOF
41543/* confdefs.h. */
41544_ACEOF
41545cat confdefs.h >>conftest.$ac_ext
41546cat >>conftest.$ac_ext <<_ACEOF
41547/* end confdefs.h. */
41548
41549/* Override any gcc2 internal prototype to avoid an error. */
41550#ifdef __cplusplus
41551extern "C"
41552#endif
41553/* We use char because int might match the return type of a gcc2
41554 builtin and then its argument prototype would still apply. */
41555char dld ();
41556int
41557main ()
41558{
41559dld ();
41560 ;
41561 return 0;
41562}
41563_ACEOF
41564rm -f conftest.$ac_objext conftest$ac_exeext
41565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41566 (eval $ac_link) 2>conftest.er1
a848cd7e 41567 ac_status=$?
ac1cb8d3
VS
41568 grep -v '^ *+' conftest.er1 >conftest.err
41569 rm -f conftest.er1
41570 cat conftest.err >&5
a848cd7e
SC
41571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41572 (exit $ac_status); } &&
ca5c6ac3 41573 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41575 (eval $ac_try) 2>&5
41576 ac_status=$?
41577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41578 (exit $ac_status); }; } &&
41579 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41581 (eval $ac_try) 2>&5
41582 ac_status=$?
41583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41584 (exit $ac_status); }; }; then
41585 ac_cv_lib_shl_load_dld=yes
41586else
41587 echo "$as_me: failed program was:" >&5
41588sed 's/^/| /' conftest.$ac_ext >&5
41589
41590ac_cv_lib_shl_load_dld=no
41591fi
ac1cb8d3
VS
41592rm -f conftest.err conftest.$ac_objext \
41593 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41594LIBS=$ac_check_lib_save_LIBS
41595fi
41596echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41597echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
41598if test $ac_cv_lib_shl_load_dld = yes; then
41599
41600 HAVE_SHL_FUNCS=1
41601 DL_LINK=" -ldld$DL_LINK"
41602
41603fi
41604
41605
41606fi
41607done
41608
41609
41610fi
41611
41612
41613fi
41614done
41615
41616
41617 if test "$HAVE_DL_FUNCS" = 1; then
41618
41619for ac_func in dlerror
41620do
41621as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41622echo "$as_me:$LINENO: checking for $ac_func" >&5
41623echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41624if eval "test \"\${$as_ac_var+set}\" = set"; then
41625 echo $ECHO_N "(cached) $ECHO_C" >&6
41626else
41627 cat >conftest.$ac_ext <<_ACEOF
41628/* confdefs.h. */
41629_ACEOF
41630cat confdefs.h >>conftest.$ac_ext
41631cat >>conftest.$ac_ext <<_ACEOF
41632/* end confdefs.h. */
ac1cb8d3
VS
41633/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41635#define $ac_func innocuous_$ac_func
41636
a848cd7e
SC
41637/* System header to define __stub macros and hopefully few prototypes,
41638 which can conflict with char $ac_func (); below.
41639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41640 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41641
a848cd7e
SC
41642#ifdef __STDC__
41643# include <limits.h>
41644#else
41645# include <assert.h>
41646#endif
ac1cb8d3
VS
41647
41648#undef $ac_func
41649
a848cd7e
SC
41650/* Override any gcc2 internal prototype to avoid an error. */
41651#ifdef __cplusplus
41652extern "C"
41653{
41654#endif
41655/* We use char because int might match the return type of a gcc2
41656 builtin and then its argument prototype would still apply. */
41657char $ac_func ();
41658/* The GNU C library defines this for functions which it implements
41659 to always fail with ENOSYS. Some functions are actually named
41660 something starting with __ and the normal name is an alias. */
41661#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41662choke me
41663#else
41664char (*f) () = $ac_func;
41665#endif
41666#ifdef __cplusplus
41667}
41668#endif
41669
41670int
41671main ()
41672{
41673return f != $ac_func;
41674 ;
41675 return 0;
41676}
41677_ACEOF
41678rm -f conftest.$ac_objext conftest$ac_exeext
41679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41680 (eval $ac_link) 2>conftest.er1
a848cd7e 41681 ac_status=$?
ac1cb8d3
VS
41682 grep -v '^ *+' conftest.er1 >conftest.err
41683 rm -f conftest.er1
41684 cat conftest.err >&5
a848cd7e
SC
41685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41686 (exit $ac_status); } &&
ca5c6ac3 41687 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41689 (eval $ac_try) 2>&5
41690 ac_status=$?
41691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41692 (exit $ac_status); }; } &&
41693 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41695 (eval $ac_try) 2>&5
41696 ac_status=$?
41697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41698 (exit $ac_status); }; }; then
41699 eval "$as_ac_var=yes"
41700else
41701 echo "$as_me: failed program was:" >&5
41702sed 's/^/| /' conftest.$ac_ext >&5
41703
41704eval "$as_ac_var=no"
41705fi
ac1cb8d3
VS
41706rm -f conftest.err conftest.$ac_objext \
41707 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41708fi
41709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41710echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41711if test `eval echo '${'$as_ac_var'}'` = yes; then
41712 cat >>confdefs.h <<_ACEOF
41713#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41714_ACEOF
41715 cat >>confdefs.h <<\_ACEOF
41716#define HAVE_DLERROR 1
41717_ACEOF
41718
41719else
41720
41721 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
41722echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
41723if test "${ac_cv_lib_dl_dlerror+set}" = set; then
41724 echo $ECHO_N "(cached) $ECHO_C" >&6
41725else
41726 ac_check_lib_save_LIBS=$LIBS
41727LIBS="-ldl $LIBS"
41728cat >conftest.$ac_ext <<_ACEOF
41729/* confdefs.h. */
41730_ACEOF
41731cat confdefs.h >>conftest.$ac_ext
41732cat >>conftest.$ac_ext <<_ACEOF
41733/* end confdefs.h. */
41734
41735/* Override any gcc2 internal prototype to avoid an error. */
41736#ifdef __cplusplus
41737extern "C"
41738#endif
41739/* We use char because int might match the return type of a gcc2
41740 builtin and then its argument prototype would still apply. */
41741char dlerror ();
41742int
41743main ()
41744{
41745dlerror ();
41746 ;
41747 return 0;
41748}
41749_ACEOF
41750rm -f conftest.$ac_objext conftest$ac_exeext
41751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41752 (eval $ac_link) 2>conftest.er1
a848cd7e 41753 ac_status=$?
ac1cb8d3
VS
41754 grep -v '^ *+' conftest.er1 >conftest.err
41755 rm -f conftest.er1
41756 cat conftest.err >&5
a848cd7e
SC
41757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41758 (exit $ac_status); } &&
ca5c6ac3 41759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41761 (eval $ac_try) 2>&5
41762 ac_status=$?
41763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41764 (exit $ac_status); }; } &&
41765 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41767 (eval $ac_try) 2>&5
41768 ac_status=$?
41769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41770 (exit $ac_status); }; }; then
41771 ac_cv_lib_dl_dlerror=yes
41772else
41773 echo "$as_me: failed program was:" >&5
41774sed 's/^/| /' conftest.$ac_ext >&5
41775
41776ac_cv_lib_dl_dlerror=no
41777fi
ac1cb8d3
VS
41778rm -f conftest.err conftest.$ac_objext \
41779 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41780LIBS=$ac_check_lib_save_LIBS
41781fi
41782echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41783echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
41784if test $ac_cv_lib_dl_dlerror = yes; then
41785 cat >>confdefs.h <<\_ACEOF
41786#define HAVE_DLERROR 1
41787_ACEOF
41788
41789fi
41790
41791
41792
41793fi
41794done
41795
41796 fi
41797 fi
41798
41799 if test "$HAVE_DL_FUNCS" = 0; then
41800 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 41801 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
41802 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41803echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41804 wxUSE_DYNAMIC_LOADER=no
41805 wxUSE_DYNLIB_CLASS=no
41806 else
41807 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41808echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41809 fi
41810 fi
41811 fi
41812 fi
41813fi
41814
41815if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41816 cat >>confdefs.h <<\_ACEOF
41817#define wxUSE_DYNAMIC_LOADER 1
41818_ACEOF
41819
41820fi
41821if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41822 cat >>confdefs.h <<\_ACEOF
41823#define wxUSE_DYNLIB_CLASS 1
41824_ACEOF
41825
41826fi
41827
41828
41829
41830if test "$wxUSE_PLUGINS" = "yes" ; then
41831 if test "$wxUSE_SHARED" = "no" ; then
41832 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41833echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41834 wxUSE_PLUGINS=no
41835 fi
41836 if test "$wxUSE_MONOLITHIC" = "yes" ; then
41837 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41838echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41839 wxUSE_PLUGINS=no
41840 fi
41841 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41842 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41843echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
41844 wxUSE_PLUGINS=no
41845 fi
41846 if test "$wxUSE_PLUGINS" = "yes" ; then
41847 cat >>confdefs.h <<\_ACEOF
41848#define wxUSE_PLUGINS 1
41849_ACEOF
41850
41851 fi
41852fi
41853
41854
41855if test "$wxUSE_STL" = "yes"; then
41856 cat >>confdefs.h <<\_ACEOF
41857#define wxUSE_STL 1
41858_ACEOF
41859
41860fi
41861
41862if test "$wxUSE_APPLE_IEEE" = "yes"; then
41863 cat >>confdefs.h <<\_ACEOF
41864#define wxUSE_APPLE_IEEE 1
41865_ACEOF
41866
41867fi
41868
41869if test "$wxUSE_TIMER" = "yes"; then
41870 cat >>confdefs.h <<\_ACEOF
41871#define wxUSE_TIMER 1
41872_ACEOF
41873
41874fi
41875
9c112555 41876if test "$USE_UNIX" = "1" ; then
31714590
VZ
41877 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
41878echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
d12aef51 41879if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 41880 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 41881else
d12aef51
VZ
41882
41883 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
41884/* confdefs.h. */
41885_ACEOF
41886cat confdefs.h >>conftest.$ac_ext
41887cat >>conftest.$ac_ext <<_ACEOF
41888/* end confdefs.h. */
d12aef51 41889
31714590 41890 #include <sys/ioctl.h>
d12aef51
VZ
41891 #include <sys/soundcard.h>
41892
41893int
41894main ()
41895{
41896
31714590 41897 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
41898
41899 ;
41900 return 0;
41901}
a848cd7e 41902_ACEOF
d12aef51
VZ
41903rm -f conftest.$ac_objext conftest$ac_exeext
41904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41905 (eval $ac_link) 2>conftest.er1
a848cd7e 41906 ac_status=$?
ac1cb8d3
VS
41907 grep -v '^ *+' conftest.er1 >conftest.err
41908 rm -f conftest.er1
41909 cat conftest.err >&5
a848cd7e
SC
41910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41911 (exit $ac_status); } &&
ca5c6ac3 41912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41914 (eval $ac_try) 2>&5
41915 ac_status=$?
41916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41917 (exit $ac_status); }; } &&
d12aef51 41918 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41920 (eval $ac_try) 2>&5
41921 ac_status=$?
41922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41923 (exit $ac_status); }; }; then
d12aef51 41924 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
41925else
41926 echo "$as_me: failed program was:" >&5
41927sed 's/^/| /' conftest.$ac_ext >&5
41928
a848cd7e 41929
d12aef51
VZ
41930 saveLibs="$LIBS"
41931 LIBS="$saveLibs -lossaudio"
41932 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
41933/* confdefs.h. */
41934_ACEOF
41935cat confdefs.h >>conftest.$ac_ext
41936cat >>conftest.$ac_ext <<_ACEOF
41937/* end confdefs.h. */
d12aef51 41938
31714590 41939 #include <sys/ioctl.h>
d12aef51
VZ
41940 #include <sys/soundcard.h>
41941
41942int
41943main ()
41944{
41945
31714590 41946 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
41947
41948 ;
41949 return 0;
41950}
a848cd7e 41951_ACEOF
d12aef51
VZ
41952rm -f conftest.$ac_objext conftest$ac_exeext
41953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41954 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
41955 ac_status=$?
41956 grep -v '^ *+' conftest.er1 >conftest.err
41957 rm -f conftest.er1
41958 cat conftest.err >&5
41959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 41960 (exit $ac_status); } &&
ca5c6ac3 41961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
41962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41963 (eval $ac_try) 2>&5
41964 ac_status=$?
41965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41966 (exit $ac_status); }; } &&
41967 { ac_try='test -s conftest$ac_exeext'
41968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41969 (eval $ac_try) 2>&5
41970 ac_status=$?
41971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41972 (exit $ac_status); }; }; then
41973 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
41974else
41975 echo "$as_me: failed program was:" >&5
41976sed 's/^/| /' conftest.$ac_ext >&5
41977
a848cd7e 41978
d12aef51
VZ
41979 LIBS="$saveLibs"
41980 ac_cv_header_sys_soundcard=no
41981
41982
a848cd7e 41983fi
d12aef51
VZ
41984rm -f conftest.err conftest.$ac_objext \
41985 conftest$ac_exeext conftest.$ac_ext
41986
a848cd7e
SC
41987
41988fi
d12aef51
VZ
41989rm -f conftest.err conftest.$ac_objext \
41990 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41991
41992fi
d12aef51
VZ
41993echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
41994echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 41995
d12aef51
VZ
41996 if test "$ac_cv_header_sys_soundcard" = "yes"; then
41997 cat >>confdefs.h <<\_ACEOF
41998#define HAVE_SYS_SOUNDCARD_H 1
41999_ACEOF
a848cd7e 42000
d12aef51
VZ
42001 else
42002 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
42003 fi
9c112555
MW
42004fi
42005WITH_PLUGIN_SDL=0
42006if test "$wxUSE_SOUND" = "yes"; then
42007 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
42008 if test "$wxUSE_LIBSDL" != "no"; then
42009
42010# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
42011if test "${with_sdl_prefix+set}" = set; then
42012 withval="$with_sdl_prefix"
42013 sdl_prefix="$withval"
42014else
42015 sdl_prefix=""
42016fi;
42017
42018# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
42019if test "${with_sdl_exec_prefix+set}" = set; then
42020 withval="$with_sdl_exec_prefix"
42021 sdl_exec_prefix="$withval"
42022else
42023 sdl_exec_prefix=""
42024fi;
42025# Check whether --enable-sdltest or --disable-sdltest was given.
42026if test "${enable_sdltest+set}" = set; then
42027 enableval="$enable_sdltest"
42028
42029else
42030 enable_sdltest=yes
42031fi;
42032
42033 if test x$sdl_exec_prefix != x ; then
3ecd9f92
MW
42034 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42035 if test x${SDL_CONFIG+set} != xset ; then
42036 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42037 fi
a848cd7e
SC
42038 fi
42039 if test x$sdl_prefix != x ; then
3ecd9f92
MW
42040 sdl_args="$sdl_args --prefix=$sdl_prefix"
42041 if test x${SDL_CONFIG+set} != xset ; then
42042 SDL_CONFIG=$sdl_prefix/bin/sdl-config
42043 fi
a848cd7e
SC
42044 fi
42045
3ecd9f92
MW
42046 if test "x$prefix" != xNONE; then
42047 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42048 fi
a848cd7e
SC
42049 # Extract the first word of "sdl-config", so it can be a program name with args.
42050set dummy sdl-config; ac_word=$2
42051echo "$as_me:$LINENO: checking for $ac_word" >&5
42052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42053if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42054 echo $ECHO_N "(cached) $ECHO_C" >&6
42055else
42056 case $SDL_CONFIG in
42057 [\\/]* | ?:[\\/]*)
42058 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42059 ;;
42060 *)
42061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42062for as_dir in $PATH
42063do
42064 IFS=$as_save_IFS
42065 test -z "$as_dir" && as_dir=.
42066 for ac_exec_ext in '' $ac_executable_extensions; do
42067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42068 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42070 break 2
42071 fi
42072done
42073done
42074
42075 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42076 ;;
42077esac
42078fi
42079SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42080
42081if test -n "$SDL_CONFIG"; then
42082 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42083echo "${ECHO_T}$SDL_CONFIG" >&6
42084else
42085 echo "$as_me:$LINENO: result: no" >&5
42086echo "${ECHO_T}no" >&6
42087fi
42088
42089 min_sdl_version=1.2.0
42090 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42091echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
42092 no_sdl=""
42093 if test "$SDL_CONFIG" = "no" ; then
42094 no_sdl=yes
42095 else
42096 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42097 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42098
42099 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42100 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42101 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42102 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42103 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42104 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42105 if test "x$enable_sdltest" = "xyes" ; then
42106 ac_save_CFLAGS="$CFLAGS"
94acd38e 42107 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
42108 ac_save_LIBS="$LIBS"
42109 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 42110 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
42111 LIBS="$LIBS $SDL_LIBS"
42112 rm -f conf.sdltest
42113 if test "$cross_compiling" = yes; then
42114 echo $ac_n "cross compiling; assumed OK... $ac_c"
42115else
42116 cat >conftest.$ac_ext <<_ACEOF
42117/* confdefs.h. */
42118_ACEOF
42119cat confdefs.h >>conftest.$ac_ext
42120cat >>conftest.$ac_ext <<_ACEOF
42121/* end confdefs.h. */
42122
42123#include <stdio.h>
42124#include <stdlib.h>
42125#include <string.h>
42126#include "SDL.h"
42127
42128char*
42129my_strdup (char *str)
42130{
42131 char *new_str;
42132
42133 if (str)
42134 {
42135 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42136 strcpy (new_str, str);
42137 }
42138 else
42139 new_str = NULL;
42140
42141 return new_str;
42142}
42143
42144int main (int argc, char *argv[])
42145{
42146 int major, minor, micro;
42147 char *tmp_version;
42148
42149 /* This hangs on some systems (?)
42150 system ("touch conf.sdltest");
42151 */
42152 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42153
42154 /* HP/UX 9 (%@#!) writes to sscanf strings */
42155 tmp_version = my_strdup("$min_sdl_version");
42156 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42157 printf("%s, bad version string\n", "$min_sdl_version");
42158 exit(1);
42159 }
42160
42161 if (($sdl_major_version > major) ||
42162 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42163 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42164 {
42165 return 0;
42166 }
42167 else
42168 {
42169 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42170 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42171 printf("*** best to upgrade to the required version.\n");
42172 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42173 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42174 printf("*** config.cache before re-running configure\n");
42175 return 1;
42176 }
42177}
42178
42179
42180_ACEOF
42181rm -f conftest$ac_exeext
42182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42183 (eval $ac_link) 2>&5
42184 ac_status=$?
42185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42188 (eval $ac_try) 2>&5
42189 ac_status=$?
42190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42191 (exit $ac_status); }; }; then
42192 :
42193else
42194 echo "$as_me: program exited with status $ac_status" >&5
42195echo "$as_me: failed program was:" >&5
42196sed 's/^/| /' conftest.$ac_ext >&5
42197
42198( exit $ac_status )
42199no_sdl=yes
42200fi
ac1cb8d3 42201rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42202fi
42203 CFLAGS="$ac_save_CFLAGS"
94acd38e 42204 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
42205 LIBS="$ac_save_LIBS"
42206 fi
42207 fi
42208 if test "x$no_sdl" = x ; then
42209 echo "$as_me:$LINENO: result: yes" >&5
42210echo "${ECHO_T}yes" >&6
42211
42212 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 42213 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
42214 cat >>confdefs.h <<\_ACEOF
42215#define wxUSE_LIBSDL 1
42216_ACEOF
42217
42218
42219 else
42220 echo "$as_me:$LINENO: result: no" >&5
42221echo "${ECHO_T}no" >&6
42222 if test "$SDL_CONFIG" = "no" ; then
42223 echo "*** The sdl-config script installed by SDL could not be found"
42224 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42225 echo "*** your path, or set the SDL_CONFIG environment variable to the"
42226 echo "*** full path to sdl-config."
42227 else
42228 if test -f conf.sdltest ; then
42229 :
42230 else
42231 echo "*** Could not run SDL test program, checking why..."
42232 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 42233 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
42234 LIBS="$LIBS $SDL_LIBS"
42235 cat >conftest.$ac_ext <<_ACEOF
42236/* confdefs.h. */
42237_ACEOF
42238cat confdefs.h >>conftest.$ac_ext
42239cat >>conftest.$ac_ext <<_ACEOF
42240/* end confdefs.h. */
42241
42242#include <stdio.h>
42243#include "SDL.h"
42244
42245int main(int argc, char *argv[])
42246{ return 0; }
42247#undef main
42248#define main K_and_R_C_main
42249
42250int
42251main ()
42252{
42253 return 0;
42254 ;
42255 return 0;
42256}
42257_ACEOF
42258rm -f conftest.$ac_objext conftest$ac_exeext
42259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42260 (eval $ac_link) 2>conftest.er1
a848cd7e 42261 ac_status=$?
ac1cb8d3
VS
42262 grep -v '^ *+' conftest.er1 >conftest.err
42263 rm -f conftest.er1
42264 cat conftest.err >&5
a848cd7e
SC
42265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42266 (exit $ac_status); } &&
ca5c6ac3 42267 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42269 (eval $ac_try) 2>&5
42270 ac_status=$?
42271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42272 (exit $ac_status); }; } &&
42273 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42275 (eval $ac_try) 2>&5
42276 ac_status=$?
42277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42278 (exit $ac_status); }; }; then
42279 echo "*** The test program compiled, but did not run. This usually means"
42280 echo "*** that the run-time linker is not finding SDL or finding the wrong"
42281 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42282 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42283 echo "*** to the installed location Also, make sure you have run ldconfig if that"
42284 echo "*** is required on your system"
42285 echo "***"
42286 echo "*** If you have an old version installed, it is best to remove it, although"
42287 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42288else
42289 echo "$as_me: failed program was:" >&5
42290sed 's/^/| /' conftest.$ac_ext >&5
42291
42292 echo "*** The test program failed to compile or link. See the file config.log for the"
42293 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42294 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42295 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42296fi
ac1cb8d3
VS
42297rm -f conftest.err conftest.$ac_objext \
42298 conftest$ac_exeext conftest.$ac_ext
a848cd7e 42299 CFLAGS="$ac_save_CFLAGS"
94acd38e 42300 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
42301 LIBS="$ac_save_LIBS"
42302 fi
42303 fi
42304 SDL_CFLAGS=""
42305 SDL_LIBS=""
42306 wxUSE_LIBSDL="no"
42307 fi
42308
42309
42310 rm -f conf.sdltest
42311
42312 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42313 WITH_PLUGIN_SDL=1
42314 fi
42315 fi
42316 fi
42317
42318 cat >>confdefs.h <<\_ACEOF
42319#define wxUSE_SOUND 1
42320_ACEOF
42321
42322 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42323fi
42324
d1c38808
VZ
42325if test "$WXGTK20" = 1; then
42326 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42327 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42328
42329
3ecd9f92
MW
42330pkg_failed=no
42331echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42332echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
d1c38808 42333
3ecd9f92
MW
42334if test -n "$PKG_CONFIG"; then
42335 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42336 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42337 else
42338 if test -n "$PKG_CONFIG" && \
42339 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42340 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42341 ac_status=$?
42342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42343 (exit $ac_status); }; then
42344 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 42345else
3ecd9f92
MW
42346 pkg_failed=yes
42347fi
42348 fi
42349else
42350 pkg_failed=untried
d1c38808 42351fi
d1c38808 42352if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42353 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42354 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42355 else
42356 if test -n "$PKG_CONFIG" && \
42357 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42358 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42359 ac_status=$?
42360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42361 (exit $ac_status); }; then
42362 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 42363else
3ecd9f92
MW
42364 pkg_failed=yes
42365fi
42366 fi
42367else
42368 pkg_failed=untried
d1c38808
VZ
42369fi
42370
d1c38808 42371
d1c38808 42372
3ecd9f92 42373if test $pkg_failed = yes; then
d1c38808 42374
3ecd9f92
MW
42375if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42376 _pkg_short_errors_supported=yes
42377else
42378 _pkg_short_errors_supported=no
42379fi
42380 if test $_pkg_short_errors_supported = yes; then
42381 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42382 else
42383 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808 42384 fi
3ecd9f92
MW
42385 # Put the nasty error message in config.log where it belongs
42386 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
d1c38808
VZ
42387
42388
3ecd9f92
MW
42389 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42390echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42391 wxUSE_LIBGNOMEPRINT="no"
d1c38808
VZ
42392
42393
3ecd9f92 42394elif test $pkg_failed = untried; then
d1c38808
VZ
42395
42396 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42397echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42398 wxUSE_LIBGNOMEPRINT="no"
42399
42400
3ecd9f92
MW
42401else
42402 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42403 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42404 echo "$as_me:$LINENO: result: yes" >&5
42405echo "${ECHO_T}yes" >&6
d1c38808 42406
3ecd9f92
MW
42407 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42408 cat >>confdefs.h <<\_ACEOF
42409#define wxUSE_LIBGNOMEPRINT 1
42410_ACEOF
42411
42412
42413fi
d1c38808
VZ
42414 fi
42415 fi
42416fi
42417
2b850ae1
RR
42418if test "$WXGTK20" = 1; then
42419 if test "$wxUSE_MIMETYPE" = "yes" ; then
42420 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42421
42422
3ecd9f92
MW
42423pkg_failed=no
42424echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42425echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
2b850ae1 42426
3ecd9f92
MW
42427if test -n "$PKG_CONFIG"; then
42428 if test -n "$GNOMEVFS_CFLAGS"; then
42429 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42430 else
42431 if test -n "$PKG_CONFIG" && \
42432 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42433 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42434 ac_status=$?
42435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42436 (exit $ac_status); }; then
42437 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 42438else
3ecd9f92
MW
42439 pkg_failed=yes
42440fi
42441 fi
42442else
42443 pkg_failed=untried
2b850ae1 42444fi
2b850ae1 42445if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42446 if test -n "$GNOMEVFS_LIBS"; then
42447 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42448 else
42449 if test -n "$PKG_CONFIG" && \
42450 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42451 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42452 ac_status=$?
42453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42454 (exit $ac_status); }; then
42455 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 42456else
3ecd9f92
MW
42457 pkg_failed=yes
42458fi
42459 fi
42460else
42461 pkg_failed=untried
2b850ae1
RR
42462fi
42463
2b850ae1 42464
2b850ae1 42465
3ecd9f92 42466if test $pkg_failed = yes; then
2b850ae1 42467
3ecd9f92
MW
42468if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42469 _pkg_short_errors_supported=yes
42470else
42471 _pkg_short_errors_supported=no
42472fi
42473 if test $_pkg_short_errors_supported = yes; then
42474 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42475 else
42476 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
2b850ae1 42477 fi
3ecd9f92
MW
42478 # Put the nasty error message in config.log where it belongs
42479 echo "$GNOMEVFS_PKG_ERRORS" >&5
2b850ae1
RR
42480
42481
3ecd9f92
MW
42482 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42483echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42484 wxUSE_LIBGNOMEVFS="no"
2b850ae1
RR
42485
42486
3ecd9f92 42487elif test $pkg_failed = untried; then
2b850ae1
RR
42488
42489 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42490echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42491 wxUSE_LIBGNOMEVFS="no"
42492
42493
3ecd9f92
MW
42494else
42495 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
42496 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
42497 echo "$as_me:$LINENO: result: yes" >&5
42498echo "${ECHO_T}yes" >&6
2b850ae1 42499
3ecd9f92
MW
42500 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
42501 cat >>confdefs.h <<\_ACEOF
42502#define wxUSE_LIBGNOMEVFS 1
42503_ACEOF
42504
42505
42506fi
2b850ae1
RR
42507 fi
42508 fi
42509fi
42510
3565d135
RR
42511if test "$WXGTK20" = 1; then
42512 if test "$wxUSE_LIBHILDON" = "yes" ; then
42513
3ecd9f92
MW
42514pkg_failed=no
42515echo "$as_me:$LINENO: checking for HILDON" >&5
42516echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
3565d135 42517
3ecd9f92
MW
42518if test -n "$PKG_CONFIG"; then
42519 if test -n "$HILDON_CFLAGS"; then
42520 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
42521 else
42522 if test -n "$PKG_CONFIG" && \
42523 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42524 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42525 ac_status=$?
42526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42527 (exit $ac_status); }; then
42528 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 42529else
3ecd9f92
MW
42530 pkg_failed=yes
42531fi
42532 fi
42533else
42534 pkg_failed=untried
3565d135 42535fi
3565d135 42536if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42537 if test -n "$HILDON_LIBS"; then
42538 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
42539 else
42540 if test -n "$PKG_CONFIG" && \
42541 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42542 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42543 ac_status=$?
42544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42545 (exit $ac_status); }; then
42546 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 42547else
3ecd9f92
MW
42548 pkg_failed=yes
42549fi
42550 fi
42551else
42552 pkg_failed=untried
3565d135
RR
42553fi
42554
3565d135 42555
3565d135 42556
3ecd9f92 42557if test $pkg_failed = yes; then
3565d135 42558
3ecd9f92
MW
42559if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42560 _pkg_short_errors_supported=yes
42561else
42562 _pkg_short_errors_supported=no
42563fi
42564 if test $_pkg_short_errors_supported = yes; then
42565 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42566 else
42567 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
3565d135 42568 fi
3ecd9f92
MW
42569 # Put the nasty error message in config.log where it belongs
42570 echo "$HILDON_PKG_ERRORS" >&5
3565d135
RR
42571
42572
3ecd9f92
MW
42573 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42574echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42575 wxUSE_LIBHILDON="no"
3565d135 42576
3565d135 42577
3ecd9f92
MW
42578elif test $pkg_failed = untried; then
42579
42580 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42581echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42582 wxUSE_LIBHILDON="no"
42583
42584
42585else
42586 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
42587 HILDON_LIBS=$pkg_cv_HILDON_LIBS
42588 echo "$as_me:$LINENO: result: yes" >&5
42589echo "${ECHO_T}yes" >&6
3565d135
RR
42590
42591 EXTRALIBS_HILDON="$HILDON_LIBS"
42592 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
42593 cat >>confdefs.h <<\_ACEOF
42594#define wxUSE_LIBHILDON 1
42595_ACEOF
42596
42597
3ecd9f92 42598fi
3565d135
RR
42599 fi
42600fi
d1c38808 42601
a848cd7e
SC
42602if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42603 cat >>confdefs.h <<\_ACEOF
42604#define wxUSE_CMDLINE_PARSER 1
42605_ACEOF
42606
42607fi
42608
42609if test "$wxUSE_STOPWATCH" = "yes"; then
42610 cat >>confdefs.h <<\_ACEOF
42611#define wxUSE_STOPWATCH 1
42612_ACEOF
42613
42614fi
42615
42616if test "$wxUSE_DATETIME" = "yes"; then
42617 cat >>confdefs.h <<\_ACEOF
42618#define wxUSE_DATETIME 1
42619_ACEOF
42620
42621fi
42622
42623if test "$wxUSE_FILE" = "yes"; then
42624 cat >>confdefs.h <<\_ACEOF
42625#define wxUSE_FILE 1
42626_ACEOF
42627
42628fi
42629
42630if test "$wxUSE_FFILE" = "yes"; then
42631 cat >>confdefs.h <<\_ACEOF
42632#define wxUSE_FFILE 1
42633_ACEOF
42634
42635fi
42636
42637if test "$wxUSE_FILESYSTEM" = "yes"; then
42638 cat >>confdefs.h <<\_ACEOF
42639#define wxUSE_FILESYSTEM 1
42640_ACEOF
42641
42642fi
42643
42644if test "$wxUSE_FS_ZIP" = "yes"; then
42645 cat >>confdefs.h <<\_ACEOF
42646#define wxUSE_FS_ZIP 1
42647_ACEOF
42648
42649fi
42650
9e8e867f 42651if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 42652 cat >>confdefs.h <<\_ACEOF
9e8e867f 42653#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
42654_ACEOF
42655
42656fi
42657
42658if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 42659 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
42660 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
42661echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
42662 elif test "$wxUSE_ZLIB" = "no"; then
42663 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
42664echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
42665 else
42666 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42667#define wxUSE_ZIPSTREAM 1
42668_ACEOF
42669
81f90336 42670 fi
a848cd7e
SC
42671fi
42672
a848cd7e 42673if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
42674 if test "$USE_UNIX" != 1; then
42675 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
42676echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
42677 wxUSE_ON_FATAL_EXCEPTION=no
42678 else
42679 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42680#define wxUSE_ON_FATAL_EXCEPTION 1
42681_ACEOF
42682
18228ab4 42683 fi
a848cd7e
SC
42684fi
42685
eaff0f0d
VZ
42686if test "$wxUSE_STACKWALKER" = "yes"; then
42687 cat >>confdefs.h <<\_ACEOF
42688#define wxUSE_STACKWALKER 1
42689_ACEOF
42690
42691fi
42692
36b6448c 42693if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
42694 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
42695 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
42696echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
42697 wxUSE_DEBUGREPORT=no
42698 else
42699 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
42700#define wxUSE_DEBUGREPORT 1
42701_ACEOF
42702
21dfc162
MW
42703 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42704 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
42705 fi
dfe0c803 42706 fi
36b6448c
VZ
42707fi
42708
a848cd7e
SC
42709if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42710 cat >>confdefs.h <<\_ACEOF
42711#define wxUSE_SNGLINST_CHECKER 1
42712_ACEOF
42713
42714fi
42715
42716if test "$wxUSE_BUSYINFO" = "yes"; then
42717 cat >>confdefs.h <<\_ACEOF
42718#define wxUSE_BUSYINFO 1
42719_ACEOF
42720
42721fi
42722
42723if test "$wxUSE_STD_IOSTREAM" = "yes"; then
42724 cat >>confdefs.h <<\_ACEOF
42725#define wxUSE_STD_IOSTREAM 1
42726_ACEOF
42727
42728fi
42729
59746b65
MW
42730if test "$wxUSE_STD_STRING" = "yes"; then
42731 cat >>confdefs.h <<\_ACEOF
42732#define wxUSE_STD_STRING 1
42733_ACEOF
42734
42735fi
42736
07158944
VZ
42737if test "$wxUSE_STDPATHS" = "yes"; then
42738 cat >>confdefs.h <<\_ACEOF
42739#define wxUSE_STDPATHS 1
42740_ACEOF
42741
42742fi
42743
a848cd7e
SC
42744if test "$wxUSE_TEXTBUFFER" = "yes"; then
42745 cat >>confdefs.h <<\_ACEOF
42746#define wxUSE_TEXTBUFFER 1
42747_ACEOF
42748
42749fi
42750
42751if test "$wxUSE_TEXTFILE" = "yes"; then
42752 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
42753 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
42754echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
42755 else
42756 cat >>confdefs.h <<\_ACEOF
42757#define wxUSE_TEXTFILE 1
42758_ACEOF
42759
42760 fi
42761fi
42762
42763if test "$wxUSE_CONFIG" = "yes" ; then
42764 if test "$wxUSE_TEXTFILE" != "yes"; then
42765 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
42766echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
42767 else
42768 cat >>confdefs.h <<\_ACEOF
42769#define wxUSE_CONFIG 1
89be85c2
VS
42770_ACEOF
42771
42772 cat >>confdefs.h <<\_ACEOF
42773#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
42774_ACEOF
42775
42776 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
42777 fi
42778fi
42779
42780if test "$wxUSE_INTL" = "yes" ; then
42781 if test "$wxUSE_FILE" != "yes"; then
42782 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
42783echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
42784 else
42785 cat >>confdefs.h <<\_ACEOF
42786#define wxUSE_INTL 1
42787_ACEOF
42788
42789 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
42790 GUIDIST="$GUIDIST INTL_DIST"
42791 fi
42792fi
42793
42794if test "$wxUSE_LOG" = "yes"; then
42795 cat >>confdefs.h <<\_ACEOF
42796#define wxUSE_LOG 1
42797_ACEOF
42798
42799
42800 if test "$wxUSE_LOGGUI" = "yes"; then
42801 cat >>confdefs.h <<\_ACEOF
42802#define wxUSE_LOGGUI 1
42803_ACEOF
42804
42805 fi
42806
42807 if test "$wxUSE_LOGWINDOW" = "yes"; then
42808 cat >>confdefs.h <<\_ACEOF
42809#define wxUSE_LOGWINDOW 1
42810_ACEOF
42811
42812 fi
42813
42814 if test "$wxUSE_LOGDIALOG" = "yes"; then
42815 cat >>confdefs.h <<\_ACEOF
42816#define wxUSE_LOG_DIALOG 1
42817_ACEOF
42818
42819 fi
0b78747f
MW
42820
42821 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
42822fi
42823
42824if test "$wxUSE_LONGLONG" = "yes"; then
42825 cat >>confdefs.h <<\_ACEOF
42826#define wxUSE_LONGLONG 1
42827_ACEOF
42828
42829fi
42830
42831if test "$wxUSE_GEOMETRY" = "yes"; then
42832 cat >>confdefs.h <<\_ACEOF
42833#define wxUSE_GEOMETRY 1
42834_ACEOF
42835
42836fi
42837
a848cd7e
SC
42838if test "$wxUSE_STREAMS" = "yes" ; then
42839 cat >>confdefs.h <<\_ACEOF
42840#define wxUSE_STREAMS 1
42841_ACEOF
42842
42843fi
42844
8b6682b9
JS
42845if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
42846 cat >>confdefs.h <<\_ACEOF
42847#define wxUSE_PRINTF_POS_PARAMS 1
42848_ACEOF
42849
42850fi
42851
42852
a848cd7e
SC
42853
42854if test "$wxUSE_DATETIME" = "yes"; then
42855
42856for ac_func in strptime
42857do
42858as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42859echo "$as_me:$LINENO: checking for $ac_func" >&5
42860echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42861if eval "test \"\${$as_ac_var+set}\" = set"; then
42862 echo $ECHO_N "(cached) $ECHO_C" >&6
42863else
42864 cat >conftest.$ac_ext <<_ACEOF
42865/* confdefs.h. */
42866_ACEOF
42867cat confdefs.h >>conftest.$ac_ext
42868cat >>conftest.$ac_ext <<_ACEOF
42869/* end confdefs.h. */
ac1cb8d3
VS
42870/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42872#define $ac_func innocuous_$ac_func
42873
a848cd7e
SC
42874/* System header to define __stub macros and hopefully few prototypes,
42875 which can conflict with char $ac_func (); below.
42876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42877 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42878
a848cd7e
SC
42879#ifdef __STDC__
42880# include <limits.h>
42881#else
42882# include <assert.h>
42883#endif
ac1cb8d3
VS
42884
42885#undef $ac_func
42886
a848cd7e
SC
42887/* Override any gcc2 internal prototype to avoid an error. */
42888#ifdef __cplusplus
42889extern "C"
42890{
42891#endif
42892/* We use char because int might match the return type of a gcc2
42893 builtin and then its argument prototype would still apply. */
42894char $ac_func ();
42895/* The GNU C library defines this for functions which it implements
42896 to always fail with ENOSYS. Some functions are actually named
42897 something starting with __ and the normal name is an alias. */
42898#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42899choke me
42900#else
42901char (*f) () = $ac_func;
42902#endif
42903#ifdef __cplusplus
42904}
42905#endif
42906
42907int
42908main ()
42909{
42910return f != $ac_func;
42911 ;
42912 return 0;
42913}
42914_ACEOF
42915rm -f conftest.$ac_objext conftest$ac_exeext
42916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42917 (eval $ac_link) 2>conftest.er1
a848cd7e 42918 ac_status=$?
ac1cb8d3
VS
42919 grep -v '^ *+' conftest.er1 >conftest.err
42920 rm -f conftest.er1
42921 cat conftest.err >&5
a848cd7e
SC
42922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42923 (exit $ac_status); } &&
ca5c6ac3 42924 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42926 (eval $ac_try) 2>&5
42927 ac_status=$?
42928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42929 (exit $ac_status); }; } &&
42930 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42932 (eval $ac_try) 2>&5
42933 ac_status=$?
42934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42935 (exit $ac_status); }; }; then
42936 eval "$as_ac_var=yes"
42937else
42938 echo "$as_me: failed program was:" >&5
42939sed 's/^/| /' conftest.$ac_ext >&5
42940
42941eval "$as_ac_var=no"
42942fi
ac1cb8d3
VS
42943rm -f conftest.err conftest.$ac_objext \
42944 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42945fi
42946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42947echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42948if test `eval echo '${'$as_ac_var'}'` = yes; then
42949 cat >>confdefs.h <<_ACEOF
42950#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42951_ACEOF
42952
42953fi
42954done
42955
f536f005
VZ
42956 if test "$ac_cv_func_strptime" = "yes"; then
42957 echo "$as_me:$LINENO: checking for strptime declaration" >&5
42958echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
42959if test "${wx_cv_func_strptime_decl+set}" = set; then
42960 echo $ECHO_N "(cached) $ECHO_C" >&6
42961else
42962
f536f005
VZ
42963 cat >conftest.$ac_ext <<_ACEOF
42964/* confdefs.h. */
42965_ACEOF
42966cat confdefs.h >>conftest.$ac_ext
42967cat >>conftest.$ac_ext <<_ACEOF
42968/* end confdefs.h. */
42969
42970 #include <time.h>
42971
42972int
42973main ()
42974{
42975
42976 struct tm t;
42977 strptime("foo", "bar", &t);
42978
42979 ;
42980 return 0;
42981}
42982_ACEOF
42983rm -f conftest.$ac_objext
42984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42985 (eval $ac_compile) 2>conftest.er1
42986 ac_status=$?
42987 grep -v '^ *+' conftest.er1 >conftest.err
42988 rm -f conftest.er1
42989 cat conftest.err >&5
42990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42991 (exit $ac_status); } &&
ca5c6ac3 42992 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
42993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42994 (eval $ac_try) 2>&5
42995 ac_status=$?
42996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42997 (exit $ac_status); }; } &&
42998 { ac_try='test -s conftest.$ac_objext'
42999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43000 (eval $ac_try) 2>&5
43001 ac_status=$?
43002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43003 (exit $ac_status); }; }; then
43004 wx_cv_func_strptime_decl=yes
43005else
43006 echo "$as_me: failed program was:" >&5
43007sed 's/^/| /' conftest.$ac_ext >&5
43008
43009wx_cv_func_strptime_decl=no
43010
43011fi
43012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
43013
43014
43015fi
43016echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43017echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
43018 fi
43019 if test "$wx_cv_func_strptime_decl" = "yes"; then
43020 cat >>confdefs.h <<\_ACEOF
43021#define HAVE_STRPTIME_DECL 1
43022_ACEOF
43023
43024 fi
a848cd7e
SC
43025
43026 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43027echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
43028if test "${wx_cv_var_timezone+set}" = set; then
43029 echo $ECHO_N "(cached) $ECHO_C" >&6
43030else
43031
43032 cat >conftest.$ac_ext <<_ACEOF
43033/* confdefs.h. */
43034_ACEOF
43035cat confdefs.h >>conftest.$ac_ext
43036cat >>conftest.$ac_ext <<_ACEOF
43037/* end confdefs.h. */
43038
43039 #include <time.h>
43040
43041int
43042main ()
43043{
43044
43045 int tz;
43046 tz = timezone;
43047
43048 ;
43049 return 0;
43050}
43051_ACEOF
43052rm -f conftest.$ac_objext
43053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43054 (eval $ac_compile) 2>conftest.er1
a848cd7e 43055 ac_status=$?
ac1cb8d3
VS
43056 grep -v '^ *+' conftest.er1 >conftest.err
43057 rm -f conftest.er1
43058 cat conftest.err >&5
a848cd7e
SC
43059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43060 (exit $ac_status); } &&
ca5c6ac3 43061 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43063 (eval $ac_try) 2>&5
43064 ac_status=$?
43065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43066 (exit $ac_status); }; } &&
43067 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43069 (eval $ac_try) 2>&5
43070 ac_status=$?
43071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43072 (exit $ac_status); }; }; then
43073
43074 wx_cv_var_timezone=timezone
43075
43076else
43077 echo "$as_me: failed program was:" >&5
43078sed 's/^/| /' conftest.$ac_ext >&5
43079
43080
43081 cat >conftest.$ac_ext <<_ACEOF
43082/* confdefs.h. */
43083_ACEOF
43084cat confdefs.h >>conftest.$ac_ext
43085cat >>conftest.$ac_ext <<_ACEOF
43086/* end confdefs.h. */
43087
43088 #include <time.h>
43089
43090int
43091main ()
43092{
43093
43094 int tz;
43095 tz = _timezone;
43096
43097 ;
43098 return 0;
43099}
43100_ACEOF
43101rm -f conftest.$ac_objext
43102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43103 (eval $ac_compile) 2>conftest.er1
a848cd7e 43104 ac_status=$?
ac1cb8d3
VS
43105 grep -v '^ *+' conftest.er1 >conftest.err
43106 rm -f conftest.er1
43107 cat conftest.err >&5
a848cd7e
SC
43108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43109 (exit $ac_status); } &&
ca5c6ac3 43110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43112 (eval $ac_try) 2>&5
43113 ac_status=$?
43114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43115 (exit $ac_status); }; } &&
43116 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43118 (eval $ac_try) 2>&5
43119 ac_status=$?
43120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43121 (exit $ac_status); }; }; then
43122
43123 wx_cv_var_timezone=_timezone
43124
43125else
43126 echo "$as_me: failed program was:" >&5
43127sed 's/^/| /' conftest.$ac_ext >&5
43128
43129
43130 cat >conftest.$ac_ext <<_ACEOF
43131/* confdefs.h. */
43132_ACEOF
43133cat confdefs.h >>conftest.$ac_ext
43134cat >>conftest.$ac_ext <<_ACEOF
43135/* end confdefs.h. */
43136
43137 #include <time.h>
43138
43139int
43140main ()
43141{
43142
43143 int tz;
43144 tz = __timezone;
43145
43146 ;
43147 return 0;
43148}
43149_ACEOF
43150rm -f conftest.$ac_objext
43151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43152 (eval $ac_compile) 2>conftest.er1
a848cd7e 43153 ac_status=$?
ac1cb8d3
VS
43154 grep -v '^ *+' conftest.er1 >conftest.err
43155 rm -f conftest.er1
43156 cat conftest.err >&5
a848cd7e
SC
43157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43158 (exit $ac_status); } &&
ca5c6ac3 43159 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43161 (eval $ac_try) 2>&5
43162 ac_status=$?
43163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43164 (exit $ac_status); }; } &&
43165 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43167 (eval $ac_try) 2>&5
43168 ac_status=$?
43169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43170 (exit $ac_status); }; }; then
43171
43172 wx_cv_var_timezone=__timezone
43173
43174else
43175 echo "$as_me: failed program was:" >&5
43176sed 's/^/| /' conftest.$ac_ext >&5
43177
43178
43179 if test "$USE_DOS" = 0 ; then
43180 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
43181echo "$as_me: WARNING: no timezone variable" >&2;}
43182 fi
43183
43184
43185fi
ac1cb8d3 43186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43187
43188
43189fi
ac1cb8d3 43190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43191
43192
43193fi
ac1cb8d3 43194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43195
43196
43197fi
43198echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
43199echo "${ECHO_T}$wx_cv_var_timezone" >&6
43200
43201 if test "x$wx_cv_var_timezone" != x ; then
43202 cat >>confdefs.h <<_ACEOF
43203#define WX_TIMEZONE $wx_cv_var_timezone
43204_ACEOF
43205
43206 fi
43207
43208
43209for ac_func in localtime
43210do
43211as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43212echo "$as_me:$LINENO: checking for $ac_func" >&5
43213echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43214if eval "test \"\${$as_ac_var+set}\" = set"; then
43215 echo $ECHO_N "(cached) $ECHO_C" >&6
43216else
43217 cat >conftest.$ac_ext <<_ACEOF
43218/* confdefs.h. */
43219_ACEOF
43220cat confdefs.h >>conftest.$ac_ext
43221cat >>conftest.$ac_ext <<_ACEOF
43222/* end confdefs.h. */
ac1cb8d3
VS
43223/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43225#define $ac_func innocuous_$ac_func
43226
a848cd7e
SC
43227/* System header to define __stub macros and hopefully few prototypes,
43228 which can conflict with char $ac_func (); below.
43229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43230 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43231
a848cd7e
SC
43232#ifdef __STDC__
43233# include <limits.h>
43234#else
43235# include <assert.h>
43236#endif
ac1cb8d3
VS
43237
43238#undef $ac_func
43239
a848cd7e
SC
43240/* Override any gcc2 internal prototype to avoid an error. */
43241#ifdef __cplusplus
43242extern "C"
43243{
43244#endif
43245/* We use char because int might match the return type of a gcc2
43246 builtin and then its argument prototype would still apply. */
43247char $ac_func ();
43248/* The GNU C library defines this for functions which it implements
43249 to always fail with ENOSYS. Some functions are actually named
43250 something starting with __ and the normal name is an alias. */
43251#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43252choke me
43253#else
43254char (*f) () = $ac_func;
43255#endif
43256#ifdef __cplusplus
43257}
43258#endif
43259
43260int
43261main ()
43262{
43263return f != $ac_func;
43264 ;
43265 return 0;
43266}
43267_ACEOF
43268rm -f conftest.$ac_objext conftest$ac_exeext
43269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43270 (eval $ac_link) 2>conftest.er1
a848cd7e 43271 ac_status=$?
ac1cb8d3
VS
43272 grep -v '^ *+' conftest.er1 >conftest.err
43273 rm -f conftest.er1
43274 cat conftest.err >&5
a848cd7e
SC
43275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43276 (exit $ac_status); } &&
ca5c6ac3 43277 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43279 (eval $ac_try) 2>&5
43280 ac_status=$?
43281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43282 (exit $ac_status); }; } &&
43283 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43285 (eval $ac_try) 2>&5
43286 ac_status=$?
43287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43288 (exit $ac_status); }; }; then
43289 eval "$as_ac_var=yes"
43290else
43291 echo "$as_me: failed program was:" >&5
43292sed 's/^/| /' conftest.$ac_ext >&5
43293
43294eval "$as_ac_var=no"
43295fi
ac1cb8d3
VS
43296rm -f conftest.err conftest.$ac_objext \
43297 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43298fi
43299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43300echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43301if test `eval echo '${'$as_ac_var'}'` = yes; then
43302 cat >>confdefs.h <<_ACEOF
43303#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43304_ACEOF
43305
43306fi
43307done
43308
43309
43310 if test "$ac_cv_func_localtime" = "yes"; then
43311 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
43312echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
43313if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
43314 echo $ECHO_N "(cached) $ECHO_C" >&6
43315else
43316
43317 cat >conftest.$ac_ext <<_ACEOF
43318/* confdefs.h. */
43319_ACEOF
43320cat confdefs.h >>conftest.$ac_ext
43321cat >>conftest.$ac_ext <<_ACEOF
43322/* end confdefs.h. */
43323
43324 #include <time.h>
43325
43326int
43327main ()
43328{
43329
43330 struct tm tm;
43331 tm.tm_gmtoff++;
43332
43333 ;
43334 return 0;
43335}
43336_ACEOF
43337rm -f conftest.$ac_objext
43338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43339 (eval $ac_compile) 2>conftest.er1
a848cd7e 43340 ac_status=$?
ac1cb8d3
VS
43341 grep -v '^ *+' conftest.er1 >conftest.err
43342 rm -f conftest.er1
43343 cat conftest.err >&5
a848cd7e
SC
43344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43345 (exit $ac_status); } &&
ca5c6ac3 43346 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43348 (eval $ac_try) 2>&5
43349 ac_status=$?
43350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43351 (exit $ac_status); }; } &&
43352 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43354 (eval $ac_try) 2>&5
43355 ac_status=$?
43356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43357 (exit $ac_status); }; }; then
43358
43359 wx_cv_struct_tm_has_gmtoff=yes
43360
43361else
43362 echo "$as_me: failed program was:" >&5
43363sed 's/^/| /' conftest.$ac_ext >&5
43364
43365wx_cv_struct_tm_has_gmtoff=no
43366
43367fi
ac1cb8d3 43368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43369
43370fi
43371echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
43372echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
43373 fi
43374
43375 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
43376 cat >>confdefs.h <<\_ACEOF
43377#define WX_GMTOFF_IN_TM 1
43378_ACEOF
43379
43380 fi
43381
43382
43383
43384for ac_func in gettimeofday ftime
43385do
43386as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43387echo "$as_me:$LINENO: checking for $ac_func" >&5
43388echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43389if eval "test \"\${$as_ac_var+set}\" = set"; then
43390 echo $ECHO_N "(cached) $ECHO_C" >&6
43391else
43392 cat >conftest.$ac_ext <<_ACEOF
43393/* confdefs.h. */
43394_ACEOF
43395cat confdefs.h >>conftest.$ac_ext
43396cat >>conftest.$ac_ext <<_ACEOF
43397/* end confdefs.h. */
ac1cb8d3
VS
43398/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43400#define $ac_func innocuous_$ac_func
43401
a848cd7e
SC
43402/* System header to define __stub macros and hopefully few prototypes,
43403 which can conflict with char $ac_func (); below.
43404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43405 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43406
a848cd7e
SC
43407#ifdef __STDC__
43408# include <limits.h>
43409#else
43410# include <assert.h>
43411#endif
ac1cb8d3
VS
43412
43413#undef $ac_func
43414
a848cd7e
SC
43415/* Override any gcc2 internal prototype to avoid an error. */
43416#ifdef __cplusplus
43417extern "C"
43418{
43419#endif
43420/* We use char because int might match the return type of a gcc2
43421 builtin and then its argument prototype would still apply. */
43422char $ac_func ();
43423/* The GNU C library defines this for functions which it implements
43424 to always fail with ENOSYS. Some functions are actually named
43425 something starting with __ and the normal name is an alias. */
43426#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43427choke me
43428#else
43429char (*f) () = $ac_func;
43430#endif
43431#ifdef __cplusplus
43432}
43433#endif
43434
43435int
43436main ()
43437{
43438return f != $ac_func;
43439 ;
43440 return 0;
43441}
43442_ACEOF
43443rm -f conftest.$ac_objext conftest$ac_exeext
43444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43445 (eval $ac_link) 2>conftest.er1
a848cd7e 43446 ac_status=$?
ac1cb8d3
VS
43447 grep -v '^ *+' conftest.er1 >conftest.err
43448 rm -f conftest.er1
43449 cat conftest.err >&5
a848cd7e
SC
43450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43451 (exit $ac_status); } &&
ca5c6ac3 43452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43454 (eval $ac_try) 2>&5
43455 ac_status=$?
43456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43457 (exit $ac_status); }; } &&
43458 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43460 (eval $ac_try) 2>&5
43461 ac_status=$?
43462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43463 (exit $ac_status); }; }; then
43464 eval "$as_ac_var=yes"
43465else
43466 echo "$as_me: failed program was:" >&5
43467sed 's/^/| /' conftest.$ac_ext >&5
43468
43469eval "$as_ac_var=no"
43470fi
ac1cb8d3
VS
43471rm -f conftest.err conftest.$ac_objext \
43472 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43473fi
43474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43475echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43476if test `eval echo '${'$as_ac_var'}'` = yes; then
43477 cat >>confdefs.h <<_ACEOF
43478#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43479_ACEOF
43480 break
43481fi
43482done
43483
43484
43485 if test "$ac_cv_func_gettimeofday" = "yes"; then
43486 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43487echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
43488if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43489 echo $ECHO_N "(cached) $ECHO_C" >&6
43490else
43491
5d7b7554 43492 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
43493/* confdefs.h. */
43494_ACEOF
43495cat confdefs.h >>conftest.$ac_ext
43496cat >>conftest.$ac_ext <<_ACEOF
43497/* end confdefs.h. */
43498
43499 #include <sys/time.h>
43500 #include <unistd.h>
43501
43502int
43503main ()
43504{
43505
43506 struct timeval tv;
43507 gettimeofday(&tv, NULL);
43508
43509 ;
43510 return 0;
43511}
43512_ACEOF
43513rm -f conftest.$ac_objext
43514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43515 (eval $ac_compile) 2>conftest.er1
a848cd7e 43516 ac_status=$?
ac1cb8d3
VS
43517 grep -v '^ *+' conftest.er1 >conftest.err
43518 rm -f conftest.er1
43519 cat conftest.err >&5
a848cd7e
SC
43520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43521 (exit $ac_status); } &&
ca5c6ac3 43522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43524 (eval $ac_try) 2>&5
43525 ac_status=$?
43526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43527 (exit $ac_status); }; } &&
43528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43530 (eval $ac_try) 2>&5
43531 ac_status=$?
43532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43533 (exit $ac_status); }; }; then
43534 wx_cv_func_gettimeofday_has_2_args=yes
43535else
43536 echo "$as_me: failed program was:" >&5
43537sed 's/^/| /' conftest.$ac_ext >&5
43538
43539cat >conftest.$ac_ext <<_ACEOF
43540/* confdefs.h. */
43541_ACEOF
43542cat confdefs.h >>conftest.$ac_ext
43543cat >>conftest.$ac_ext <<_ACEOF
43544/* end confdefs.h. */
43545
43546 #include <sys/time.h>
43547 #include <unistd.h>
43548
43549int
43550main ()
43551{
43552
43553 struct timeval tv;
43554 gettimeofday(&tv);
43555
43556 ;
43557 return 0;
43558}
43559_ACEOF
43560rm -f conftest.$ac_objext
43561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43562 (eval $ac_compile) 2>conftest.er1
a848cd7e 43563 ac_status=$?
ac1cb8d3
VS
43564 grep -v '^ *+' conftest.er1 >conftest.err
43565 rm -f conftest.er1
43566 cat conftest.err >&5
a848cd7e
SC
43567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43568 (exit $ac_status); } &&
ca5c6ac3 43569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43571 (eval $ac_try) 2>&5
43572 ac_status=$?
43573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43574 (exit $ac_status); }; } &&
43575 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43577 (eval $ac_try) 2>&5
43578 ac_status=$?
43579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43580 (exit $ac_status); }; }; then
43581 wx_cv_func_gettimeofday_has_2_args=no
43582else
43583 echo "$as_me: failed program was:" >&5
43584sed 's/^/| /' conftest.$ac_ext >&5
43585
43586
43587 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43588echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43589 wx_cv_func_gettimeofday_has_2_args=unknown
43590
43591
43592fi
ac1cb8d3 43593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43594
43595fi
ac1cb8d3 43596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43597
43598fi
43599echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43600echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
43601
43602 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43603 cat >>confdefs.h <<\_ACEOF
43604#define WX_GETTIMEOFDAY_NO_TZ 1
43605_ACEOF
43606
43607 fi
43608 fi
43609
43610 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
43611fi
43612
43613
43614if test "$wxUSE_SOCKETS" = "yes"; then
43615 if test "$wxUSE_MGL" = "1"; then
43616 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
43617echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
43618 wxUSE_SOCKETS="no"
43619 fi
43620fi
43621
43622if test "$wxUSE_SOCKETS" = "yes"; then
43623 if test "$TOOLKIT" != "MSW"; then
43624 echo "$as_me:$LINENO: checking for socket" >&5
43625echo $ECHO_N "checking for socket... $ECHO_C" >&6
43626if test "${ac_cv_func_socket+set}" = set; then
43627 echo $ECHO_N "(cached) $ECHO_C" >&6
43628else
43629 cat >conftest.$ac_ext <<_ACEOF
43630/* confdefs.h. */
43631_ACEOF
43632cat confdefs.h >>conftest.$ac_ext
43633cat >>conftest.$ac_ext <<_ACEOF
43634/* end confdefs.h. */
ac1cb8d3
VS
43635/* Define socket to an innocuous variant, in case <limits.h> declares socket.
43636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43637#define socket innocuous_socket
43638
a848cd7e
SC
43639/* System header to define __stub macros and hopefully few prototypes,
43640 which can conflict with char socket (); below.
43641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43642 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43643
a848cd7e
SC
43644#ifdef __STDC__
43645# include <limits.h>
43646#else
43647# include <assert.h>
43648#endif
ac1cb8d3
VS
43649
43650#undef socket
43651
a848cd7e
SC
43652/* Override any gcc2 internal prototype to avoid an error. */
43653#ifdef __cplusplus
43654extern "C"
43655{
43656#endif
43657/* We use char because int might match the return type of a gcc2
43658 builtin and then its argument prototype would still apply. */
43659char socket ();
43660/* The GNU C library defines this for functions which it implements
43661 to always fail with ENOSYS. Some functions are actually named
43662 something starting with __ and the normal name is an alias. */
43663#if defined (__stub_socket) || defined (__stub___socket)
43664choke me
43665#else
43666char (*f) () = socket;
43667#endif
43668#ifdef __cplusplus
43669}
43670#endif
43671
43672int
43673main ()
43674{
43675return f != socket;
43676 ;
43677 return 0;
43678}
43679_ACEOF
43680rm -f conftest.$ac_objext conftest$ac_exeext
43681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43682 (eval $ac_link) 2>conftest.er1
a848cd7e 43683 ac_status=$?
ac1cb8d3
VS
43684 grep -v '^ *+' conftest.er1 >conftest.err
43685 rm -f conftest.er1
43686 cat conftest.err >&5
a848cd7e
SC
43687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43688 (exit $ac_status); } &&
ca5c6ac3 43689 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43691 (eval $ac_try) 2>&5
43692 ac_status=$?
43693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43694 (exit $ac_status); }; } &&
43695 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43697 (eval $ac_try) 2>&5
43698 ac_status=$?
43699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43700 (exit $ac_status); }; }; then
43701 ac_cv_func_socket=yes
43702else
43703 echo "$as_me: failed program was:" >&5
43704sed 's/^/| /' conftest.$ac_ext >&5
43705
43706ac_cv_func_socket=no
43707fi
ac1cb8d3
VS
43708rm -f conftest.err conftest.$ac_objext \
43709 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43710fi
43711echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
43712echo "${ECHO_T}$ac_cv_func_socket" >&6
43713if test $ac_cv_func_socket = yes; then
43714 :
43715else
43716
43717 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
43718echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
43719if test "${ac_cv_lib_socket_socket+set}" = set; then
43720 echo $ECHO_N "(cached) $ECHO_C" >&6
43721else
43722 ac_check_lib_save_LIBS=$LIBS
43723LIBS="-lsocket $LIBS"
43724cat >conftest.$ac_ext <<_ACEOF
43725/* confdefs.h. */
43726_ACEOF
43727cat confdefs.h >>conftest.$ac_ext
43728cat >>conftest.$ac_ext <<_ACEOF
43729/* end confdefs.h. */
43730
43731/* Override any gcc2 internal prototype to avoid an error. */
43732#ifdef __cplusplus
43733extern "C"
43734#endif
43735/* We use char because int might match the return type of a gcc2
43736 builtin and then its argument prototype would still apply. */
43737char socket ();
43738int
43739main ()
43740{
43741socket ();
43742 ;
43743 return 0;
43744}
43745_ACEOF
43746rm -f conftest.$ac_objext conftest$ac_exeext
43747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43748 (eval $ac_link) 2>conftest.er1
a848cd7e 43749 ac_status=$?
ac1cb8d3
VS
43750 grep -v '^ *+' conftest.er1 >conftest.err
43751 rm -f conftest.er1
43752 cat conftest.err >&5
a848cd7e
SC
43753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43754 (exit $ac_status); } &&
ca5c6ac3 43755 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43757 (eval $ac_try) 2>&5
43758 ac_status=$?
43759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43760 (exit $ac_status); }; } &&
43761 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43763 (eval $ac_try) 2>&5
43764 ac_status=$?
43765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43766 (exit $ac_status); }; }; then
43767 ac_cv_lib_socket_socket=yes
43768else
43769 echo "$as_me: failed program was:" >&5
43770sed 's/^/| /' conftest.$ac_ext >&5
43771
43772ac_cv_lib_socket_socket=no
43773fi
ac1cb8d3
VS
43774rm -f conftest.err conftest.$ac_objext \
43775 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43776LIBS=$ac_check_lib_save_LIBS
43777fi
43778echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
43779echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
43780if test $ac_cv_lib_socket_socket = yes; then
43781 if test "$INET_LINK" != " -lsocket"; then
43782 INET_LINK="$INET_LINK -lsocket"
43783 fi
43784else
43785
43786 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
43787echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
43788 wxUSE_SOCKETS=no
43789
43790
43791fi
43792
43793
43794
43795fi
43796
43797 fi
43798fi
43799
43800if test "$wxUSE_SOCKETS" = "yes" ; then
43801 if test "$TOOLKIT" != "MSW"; then
5d7b7554 43802 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
43803echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
43804if test "${wx_cv_type_getsockname3+set}" = set; then
43805 echo $ECHO_N "(cached) $ECHO_C" >&6
43806else
43807
43808 cat >conftest.$ac_ext <<_ACEOF
43809/* confdefs.h. */
43810_ACEOF
43811cat confdefs.h >>conftest.$ac_ext
43812cat >>conftest.$ac_ext <<_ACEOF
43813/* end confdefs.h. */
43814
43815 #include <sys/types.h>
43816 #include <sys/socket.h>
43817
43818int
43819main ()
43820{
43821
43822 socklen_t len;
43823 getsockname(0, 0, &len);
43824
43825 ;
43826 return 0;
43827}
43828_ACEOF
43829rm -f conftest.$ac_objext
43830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43831 (eval $ac_compile) 2>conftest.er1
a848cd7e 43832 ac_status=$?
ac1cb8d3
VS
43833 grep -v '^ *+' conftest.er1 >conftest.err
43834 rm -f conftest.er1
43835 cat conftest.err >&5
a848cd7e
SC
43836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43837 (exit $ac_status); } &&
ca5c6ac3 43838 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43840 (eval $ac_try) 2>&5
43841 ac_status=$?
43842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43843 (exit $ac_status); }; } &&
43844 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43846 (eval $ac_try) 2>&5
43847 ac_status=$?
43848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43849 (exit $ac_status); }; }; then
43850 wx_cv_type_getsockname3=socklen_t
43851else
43852 echo "$as_me: failed program was:" >&5
43853sed 's/^/| /' conftest.$ac_ext >&5
43854
43855
6459a506 43856 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 43857 if test "$GCC" = yes ; then
c92ad099 43858 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
43859 fi
43860
43861 cat >conftest.$ac_ext <<_ACEOF
43862/* confdefs.h. */
43863_ACEOF
43864cat confdefs.h >>conftest.$ac_ext
43865cat >>conftest.$ac_ext <<_ACEOF
43866/* end confdefs.h. */
43867
43868 #include <sys/types.h>
43869 #include <sys/socket.h>
43870
43871int
43872main ()
43873{
43874
43875 size_t len;
43876 getsockname(0, 0, &len);
43877
43878 ;
43879 return 0;
43880}
43881_ACEOF
43882rm -f conftest.$ac_objext
43883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43884 (eval $ac_compile) 2>conftest.er1
a848cd7e 43885 ac_status=$?
ac1cb8d3
VS
43886 grep -v '^ *+' conftest.er1 >conftest.err
43887 rm -f conftest.er1
43888 cat conftest.err >&5
a848cd7e
SC
43889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43890 (exit $ac_status); } &&
ca5c6ac3 43891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43893 (eval $ac_try) 2>&5
43894 ac_status=$?
43895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43896 (exit $ac_status); }; } &&
43897 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43899 (eval $ac_try) 2>&5
43900 ac_status=$?
43901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43902 (exit $ac_status); }; }; then
43903 wx_cv_type_getsockname3=size_t
43904else
43905 echo "$as_me: failed program was:" >&5
43906sed 's/^/| /' conftest.$ac_ext >&5
43907
43908cat >conftest.$ac_ext <<_ACEOF
43909/* confdefs.h. */
43910_ACEOF
43911cat confdefs.h >>conftest.$ac_ext
43912cat >>conftest.$ac_ext <<_ACEOF
43913/* end confdefs.h. */
43914
43915 #include <sys/types.h>
43916 #include <sys/socket.h>
43917
43918int
43919main ()
43920{
43921
43922 int len;
43923 getsockname(0, 0, &len);
43924
43925 ;
43926 return 0;
43927}
43928_ACEOF
43929rm -f conftest.$ac_objext
43930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43931 (eval $ac_compile) 2>conftest.er1
a848cd7e 43932 ac_status=$?
ac1cb8d3
VS
43933 grep -v '^ *+' conftest.er1 >conftest.err
43934 rm -f conftest.er1
43935 cat conftest.err >&5
a848cd7e
SC
43936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43937 (exit $ac_status); } &&
ca5c6ac3 43938 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43940 (eval $ac_try) 2>&5
43941 ac_status=$?
43942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43943 (exit $ac_status); }; } &&
43944 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43946 (eval $ac_try) 2>&5
43947 ac_status=$?
43948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43949 (exit $ac_status); }; }; then
43950 wx_cv_type_getsockname3=int
43951else
43952 echo "$as_me: failed program was:" >&5
43953sed 's/^/| /' conftest.$ac_ext >&5
43954
43955wx_cv_type_getsockname3=unknown
43956
43957fi
ac1cb8d3 43958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43959
43960fi
ac1cb8d3 43961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 43962
6459a506 43963 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
43964
43965
43966fi
ac1cb8d3 43967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43968
43969fi
43970echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
43971echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
43972
43973 if test "$wx_cv_type_getsockname3" = "unknown"; then
43974 wxUSE_SOCKETS=no
43975 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43976echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43977 else
43978 cat >>confdefs.h <<_ACEOF
9e03e02d 43979#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
43980_ACEOF
43981
43982 fi
43983 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
43984echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
43985if test "${wx_cv_type_getsockopt5+set}" = set; then
43986 echo $ECHO_N "(cached) $ECHO_C" >&6
43987else
43988
43989 cat >conftest.$ac_ext <<_ACEOF
43990/* confdefs.h. */
43991_ACEOF
43992cat confdefs.h >>conftest.$ac_ext
43993cat >>conftest.$ac_ext <<_ACEOF
43994/* end confdefs.h. */
43995
43996 #include <sys/types.h>
43997 #include <sys/socket.h>
43998
43999int
44000main ()
44001{
44002
44003 socklen_t len;
44004 getsockopt(0, 0, 0, 0, &len);
44005
44006 ;
44007 return 0;
44008}
44009_ACEOF
44010rm -f conftest.$ac_objext
44011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44012 (eval $ac_compile) 2>conftest.er1
44013 ac_status=$?
44014 grep -v '^ *+' conftest.er1 >conftest.err
44015 rm -f conftest.er1
44016 cat conftest.err >&5
44017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44018 (exit $ac_status); } &&
ca5c6ac3 44019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44021 (eval $ac_try) 2>&5
44022 ac_status=$?
44023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44024 (exit $ac_status); }; } &&
44025 { ac_try='test -s conftest.$ac_objext'
44026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44027 (eval $ac_try) 2>&5
44028 ac_status=$?
44029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44030 (exit $ac_status); }; }; then
44031 wx_cv_type_getsockopt5=socklen_t
44032else
44033 echo "$as_me: failed program was:" >&5
44034sed 's/^/| /' conftest.$ac_ext >&5
44035
44036
6459a506 44037 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 44038 if test "$GCC" = yes ; then
c92ad099 44039 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
44040 fi
44041
44042 cat >conftest.$ac_ext <<_ACEOF
44043/* confdefs.h. */
44044_ACEOF
44045cat confdefs.h >>conftest.$ac_ext
44046cat >>conftest.$ac_ext <<_ACEOF
44047/* end confdefs.h. */
44048
44049 #include <sys/types.h>
44050 #include <sys/socket.h>
44051
44052int
44053main ()
44054{
44055
44056 size_t len;
44057 getsockopt(0, 0, 0, 0, &len);
44058
44059 ;
44060 return 0;
44061}
44062_ACEOF
44063rm -f conftest.$ac_objext
44064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44065 (eval $ac_compile) 2>conftest.er1
44066 ac_status=$?
44067 grep -v '^ *+' conftest.er1 >conftest.err
44068 rm -f conftest.er1
44069 cat conftest.err >&5
44070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44071 (exit $ac_status); } &&
ca5c6ac3 44072 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44074 (eval $ac_try) 2>&5
44075 ac_status=$?
44076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44077 (exit $ac_status); }; } &&
44078 { ac_try='test -s conftest.$ac_objext'
44079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44080 (eval $ac_try) 2>&5
44081 ac_status=$?
44082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44083 (exit $ac_status); }; }; then
44084 wx_cv_type_getsockopt5=size_t
44085else
44086 echo "$as_me: failed program was:" >&5
44087sed 's/^/| /' conftest.$ac_ext >&5
44088
44089cat >conftest.$ac_ext <<_ACEOF
44090/* confdefs.h. */
44091_ACEOF
44092cat confdefs.h >>conftest.$ac_ext
44093cat >>conftest.$ac_ext <<_ACEOF
44094/* end confdefs.h. */
44095
44096 #include <sys/types.h>
44097 #include <sys/socket.h>
44098
44099int
44100main ()
44101{
44102
44103 int len;
44104 getsockopt(0, 0, 0, 0, &len);
44105
44106 ;
44107 return 0;
44108}
44109_ACEOF
44110rm -f conftest.$ac_objext
44111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44112 (eval $ac_compile) 2>conftest.er1
44113 ac_status=$?
44114 grep -v '^ *+' conftest.er1 >conftest.err
44115 rm -f conftest.er1
44116 cat conftest.err >&5
44117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44118 (exit $ac_status); } &&
ca5c6ac3 44119 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44121 (eval $ac_try) 2>&5
44122 ac_status=$?
44123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44124 (exit $ac_status); }; } &&
44125 { ac_try='test -s conftest.$ac_objext'
44126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44127 (eval $ac_try) 2>&5
44128 ac_status=$?
44129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44130 (exit $ac_status); }; }; then
44131 wx_cv_type_getsockopt5=int
44132else
44133 echo "$as_me: failed program was:" >&5
44134sed 's/^/| /' conftest.$ac_ext >&5
44135
44136wx_cv_type_getsockopt5=unknown
44137
44138fi
44139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44140
44141fi
44142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44143
6459a506 44144 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
44145
44146
44147fi
44148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44149
44150fi
44151echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44152echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
44153
44154 if test "$wx_cv_type_getsockopt5" = "unknown"; then
44155 wxUSE_SOCKETS=no
44156 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44157echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44158 else
44159 cat >>confdefs.h <<_ACEOF
44160#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
44161_ACEOF
44162
44163 fi
44164 fi
44165fi
44166
44167if test "$wxUSE_SOCKETS" = "yes" ; then
44168 cat >>confdefs.h <<\_ACEOF
44169#define wxUSE_SOCKETS 1
44170_ACEOF
44171
44172 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44173fi
44174
44175if test "$wxUSE_PROTOCOL" = "yes"; then
44176 if test "$wxUSE_SOCKETS" != "yes"; then
44177 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44178echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44179 wxUSE_PROTOCOL=no
44180 fi
44181fi
44182
44183if test "$wxUSE_PROTOCOL" = "yes"; then
44184 cat >>confdefs.h <<\_ACEOF
44185#define wxUSE_PROTOCOL 1
44186_ACEOF
44187
44188
44189 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44190 cat >>confdefs.h <<\_ACEOF
44191#define wxUSE_PROTOCOL_HTTP 1
44192_ACEOF
44193
44194 fi
44195 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44196 cat >>confdefs.h <<\_ACEOF
44197#define wxUSE_PROTOCOL_FTP 1
44198_ACEOF
44199
44200 fi
44201 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44202 cat >>confdefs.h <<\_ACEOF
44203#define wxUSE_PROTOCOL_FILE 1
44204_ACEOF
44205
44206 fi
44207else
44208 if test "$wxUSE_FS_INET" = "yes"; then
44209 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44210echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44211 wxUSE_FS_INET="no"
44212 fi
44213fi
44214
44215if test "$wxUSE_URL" = "yes"; then
44216 if test "$wxUSE_PROTOCOL" != "yes"; then
44217 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44218echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44219 wxUSE_URL=no
44220 fi
44221 if test "$wxUSE_URL" = "yes"; then
44222 cat >>confdefs.h <<\_ACEOF
44223#define wxUSE_URL 1
44224_ACEOF
44225
44226 fi
44227fi
44228
ca5c6ac3
VZ
44229if test "$wxUSE_VARIANT" = "yes"; then
44230 cat >>confdefs.h <<\_ACEOF
44231#define wxUSE_VARIANT 1
44232_ACEOF
44233
44234fi
44235
a848cd7e
SC
44236if test "$wxUSE_FS_INET" = "yes"; then
44237 cat >>confdefs.h <<\_ACEOF
44238#define wxUSE_FS_INET 1
44239_ACEOF
44240
44241fi
44242
44243
ee45c548
MW
44244if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44245 wxUSE_JOYSTICK=no
44246
44247 if test "$TOOLKIT" = "MSW"; then
44248 wxUSE_JOYSTICK=yes
44249
44250 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
44251 if test "$USE_DARWIN" = 1; then
44252 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44253echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
44254 cat >conftest.$ac_ext <<_ACEOF
44255/* confdefs.h. */
44256_ACEOF
44257cat confdefs.h >>conftest.$ac_ext
44258cat >>conftest.$ac_ext <<_ACEOF
44259/* end confdefs.h. */
44260 #include <IOKit/hid/IOHIDLib.h>
44261int
44262main ()
44263{
44264 IOHIDQueueInterface *qi = NULL;
44265 IOHIDCallbackFunction cb = NULL;
44266 qi->setEventCallout(NULL, cb, NULL, NULL);
44267 ;
44268 return 0;
44269}
44270_ACEOF
44271rm -f conftest.$ac_objext
44272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44273 (eval $ac_compile) 2>conftest.er1
44274 ac_status=$?
44275 grep -v '^ *+' conftest.er1 >conftest.err
44276 rm -f conftest.er1
44277 cat conftest.err >&5
44278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44279 (exit $ac_status); } &&
ca5c6ac3 44280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
44281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44282 (eval $ac_try) 2>&5
44283 ac_status=$?
44284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44285 (exit $ac_status); }; } &&
44286 { ac_try='test -s conftest.$ac_objext'
44287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44288 (eval $ac_try) 2>&5
44289 ac_status=$?
44290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44291 (exit $ac_status); }; }; then
44292 wxUSE_JOYSTICK=yes
a848cd7e 44293
ee45c548
MW
44294else
44295 echo "$as_me: failed program was:" >&5
44296sed 's/^/| /' conftest.$ac_ext >&5
44297
44298fi
44299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
44300 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44301echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
44302 fi
44303
44304 else
a848cd7e
SC
44305
44306for ac_header in linux/joystick.h
44307do
44308as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44309if eval "test \"\${$as_ac_Header+set}\" = set"; then
44310 echo "$as_me:$LINENO: checking for $ac_header" >&5
44311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44312if eval "test \"\${$as_ac_Header+set}\" = set"; then
44313 echo $ECHO_N "(cached) $ECHO_C" >&6
44314fi
44315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44316echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44317else
44318 # Is the header compilable?
44319echo "$as_me:$LINENO: checking $ac_header usability" >&5
44320echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44321cat >conftest.$ac_ext <<_ACEOF
44322/* confdefs.h. */
44323_ACEOF
44324cat confdefs.h >>conftest.$ac_ext
44325cat >>conftest.$ac_ext <<_ACEOF
44326/* end confdefs.h. */
44327$ac_includes_default
44328#include <$ac_header>
44329_ACEOF
44330rm -f conftest.$ac_objext
44331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44332 (eval $ac_compile) 2>conftest.er1
a848cd7e 44333 ac_status=$?
ac1cb8d3
VS
44334 grep -v '^ *+' conftest.er1 >conftest.err
44335 rm -f conftest.er1
44336 cat conftest.err >&5
a848cd7e
SC
44337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44338 (exit $ac_status); } &&
ca5c6ac3 44339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44341 (eval $ac_try) 2>&5
44342 ac_status=$?
44343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44344 (exit $ac_status); }; } &&
44345 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44347 (eval $ac_try) 2>&5
44348 ac_status=$?
44349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44350 (exit $ac_status); }; }; then
44351 ac_header_compiler=yes
44352else
44353 echo "$as_me: failed program was:" >&5
44354sed 's/^/| /' conftest.$ac_ext >&5
44355
44356ac_header_compiler=no
44357fi
ac1cb8d3 44358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44359echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44360echo "${ECHO_T}$ac_header_compiler" >&6
44361
44362# Is the header present?
44363echo "$as_me:$LINENO: checking $ac_header presence" >&5
44364echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44365cat >conftest.$ac_ext <<_ACEOF
44366/* confdefs.h. */
44367_ACEOF
44368cat confdefs.h >>conftest.$ac_ext
44369cat >>conftest.$ac_ext <<_ACEOF
44370/* end confdefs.h. */
44371#include <$ac_header>
44372_ACEOF
44373if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44375 ac_status=$?
44376 grep -v '^ *+' conftest.er1 >conftest.err
44377 rm -f conftest.er1
44378 cat conftest.err >&5
44379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44380 (exit $ac_status); } >/dev/null; then
44381 if test -s conftest.err; then
5d7b7554
VZ
44382 ac_cpp_err=$ac_cxx_preproc_warn_flag
44383 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
44384 else
44385 ac_cpp_err=
44386 fi
44387else
44388 ac_cpp_err=yes
44389fi
44390if test -z "$ac_cpp_err"; then
44391 ac_header_preproc=yes
44392else
44393 echo "$as_me: failed program was:" >&5
44394sed 's/^/| /' conftest.$ac_ext >&5
44395
44396 ac_header_preproc=no
44397fi
44398rm -f conftest.err conftest.$ac_ext
44399echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44400echo "${ECHO_T}$ac_header_preproc" >&6
44401
44402# So? What about this header?
5d7b7554 44403case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 44404 yes:no: )
a848cd7e
SC
44405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44406echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
44407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44408echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44409 ac_header_preproc=yes
a848cd7e 44410 ;;
ac1cb8d3 44411 no:yes:* )
a848cd7e
SC
44412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44413echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
44414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44415echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44417echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44419echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
44420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44421echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
44422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44423echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
44424 (
44425 cat <<\_ASBOX
ac1cb8d3
VS
44426## ----------------------------------------- ##
44427## Report this to wx-dev@lists.wxwidgets.org ##
44428## ----------------------------------------- ##
a848cd7e
SC
44429_ASBOX
44430 ) |
44431 sed "s/^/$as_me: WARNING: /" >&2
44432 ;;
44433esac
44434echo "$as_me:$LINENO: checking for $ac_header" >&5
44435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44436if eval "test \"\${$as_ac_Header+set}\" = set"; then
44437 echo $ECHO_N "(cached) $ECHO_C" >&6
44438else
ac1cb8d3 44439 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
44440fi
44441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44442echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44443
44444fi
44445if test `eval echo '${'$as_ac_Header'}'` = yes; then
44446 cat >>confdefs.h <<_ACEOF
44447#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44448_ACEOF
ee45c548 44449 wxUSE_JOYSTICK=yes
a848cd7e
SC
44450fi
44451
44452done
44453
ee45c548 44454 fi
4cb1d3da 44455
ee45c548
MW
44456 if test "$wxUSE_JOYSTICK" = "yes"; then
44457 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44458#define wxUSE_JOYSTICK 1
44459_ACEOF
44460
ee45c548
MW
44461 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
44462 else
44463 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
44464echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
44465 fi
44466fi
44467
44468
44469
44470if test "$wxUSE_FONTMAP" = "yes" ; then
44471 cat >>confdefs.h <<\_ACEOF
44472#define wxUSE_FONTMAP 1
44473_ACEOF
44474
44475fi
44476
44477if test "$wxUSE_UNICODE" = "yes" ; then
44478 cat >>confdefs.h <<\_ACEOF
44479#define wxUSE_UNICODE 1
44480_ACEOF
44481
44482
44483 if test "$USE_WIN32" != 1; then
44484 wxUSE_UNICODE_MSLU=no
44485 fi
44486
44487 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
44488 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
44489echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
44490if test "${ac_cv_lib_unicows_main+set}" = set; then
44491 echo $ECHO_N "(cached) $ECHO_C" >&6
44492else
44493 ac_check_lib_save_LIBS=$LIBS
44494LIBS="-lunicows $LIBS"
44495cat >conftest.$ac_ext <<_ACEOF
44496/* confdefs.h. */
44497_ACEOF
44498cat confdefs.h >>conftest.$ac_ext
44499cat >>conftest.$ac_ext <<_ACEOF
44500/* end confdefs.h. */
44501
44502
44503int
44504main ()
44505{
44506main ();
44507 ;
44508 return 0;
44509}
44510_ACEOF
44511rm -f conftest.$ac_objext conftest$ac_exeext
44512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44513 (eval $ac_link) 2>conftest.er1
a848cd7e 44514 ac_status=$?
ac1cb8d3
VS
44515 grep -v '^ *+' conftest.er1 >conftest.err
44516 rm -f conftest.er1
44517 cat conftest.err >&5
a848cd7e
SC
44518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44519 (exit $ac_status); } &&
ca5c6ac3 44520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44522 (eval $ac_try) 2>&5
44523 ac_status=$?
44524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44525 (exit $ac_status); }; } &&
44526 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44528 (eval $ac_try) 2>&5
44529 ac_status=$?
44530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44531 (exit $ac_status); }; }; then
44532 ac_cv_lib_unicows_main=yes
44533else
44534 echo "$as_me: failed program was:" >&5
44535sed 's/^/| /' conftest.$ac_ext >&5
44536
44537ac_cv_lib_unicows_main=no
44538fi
ac1cb8d3
VS
44539rm -f conftest.err conftest.$ac_objext \
44540 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44541LIBS=$ac_check_lib_save_LIBS
44542fi
44543echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
44544echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
44545if test $ac_cv_lib_unicows_main = yes; then
44546
44547 cat >>confdefs.h <<\_ACEOF
44548#define wxUSE_UNICODE_MSLU 1
44549_ACEOF
44550
44551
44552else
44553
44554 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44555 Applications will only run on Windows NT/2000/XP!" >&5
44556echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44557 Applications will only run on Windows NT/2000/XP!" >&2;}
44558 wxUSE_UNICODE_MSLU=no
44559
44560fi
44561
44562 fi
44563fi
44564
44565if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
44566 cat >>confdefs.h <<\_ACEOF
44567#define wxUSE_EXPERIMENTAL_PRINTF 1
44568_ACEOF
44569
44570fi
44571
44572
44573if test "$wxUSE_POSTSCRIPT" = "yes" ; then
44574 cat >>confdefs.h <<\_ACEOF
44575#define wxUSE_POSTSCRIPT 1
44576_ACEOF
44577
44578fi
44579
44580cat >>confdefs.h <<\_ACEOF
44581#define wxUSE_AFM_FOR_POSTSCRIPT 1
44582_ACEOF
44583
44584
44585cat >>confdefs.h <<\_ACEOF
44586#define wxUSE_NORMALIZED_PS_FONTS 1
44587_ACEOF
44588
44589
44590
44591if test "$wxUSE_CONSTRAINTS" = "yes"; then
44592 cat >>confdefs.h <<\_ACEOF
44593#define wxUSE_CONSTRAINTS 1
44594_ACEOF
44595
44596 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
44597fi
44598
8a7b1113
VZ
44599if test "$wxUSE_MDI" = "yes"; then
44600 cat >>confdefs.h <<\_ACEOF
44601#define wxUSE_MDI 1
44602_ACEOF
44603
44604
44605 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44606 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44607#define wxUSE_MDI_ARCHITECTURE 1
44608_ACEOF
44609
8a7b1113
VZ
44610 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
44611 fi
a848cd7e
SC
44612fi
44613
44614if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
44615 cat >>confdefs.h <<\_ACEOF
44616#define wxUSE_DOC_VIEW_ARCHITECTURE 1
44617_ACEOF
44618
44619 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
44620 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44621 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
44622 fi
44623fi
44624
44625if test "$wxUSE_HELP" = "yes"; then
44626 cat >>confdefs.h <<\_ACEOF
44627#define wxUSE_HELP 1
44628_ACEOF
44629
44630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
44631
44632 if test "$wxUSE_MSW" = 1; then
44633 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
44634 cat >>confdefs.h <<\_ACEOF
44635#define wxUSE_MS_HTML_HELP 1
44636_ACEOF
44637
44638 fi
44639 fi
44640
44641 if test "$wxUSE_WXHTML_HELP" = "yes"; then
44642 if test "$wxUSE_HTML" = "yes"; then
44643 cat >>confdefs.h <<\_ACEOF
44644#define wxUSE_WXHTML_HELP 1
44645_ACEOF
44646
44647 else
44648 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
44649echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
44650 wxUSE_WXHTML_HELP=no
44651 fi
44652 fi
44653fi
44654
44655if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44656 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44657 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
44658echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
44659 else
44660 cat >>confdefs.h <<\_ACEOF
44661#define wxUSE_PRINTING_ARCHITECTURE 1
44662_ACEOF
44663
44664 fi
44665 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
44666fi
44667
44668if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
44669 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
44670echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
44671 { (exit 1); exit 1; }; }
44672fi
44673
44674
efdf6afe
VZ
44675if test "$wxUSE_METAFILE" = "yes"; then
44676 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
44677 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
44678echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
44679 wxUSE_METAFILE=no
44680 fi
44681fi
44682
44683
a848cd7e
SC
44684if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
44685 -o "$wxUSE_CLIPBOARD" = "yes" \
44686 -o "$wxUSE_OLE" = "yes" \
44687 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
44688
44689for ac_header in ole2.h
44690do
44691as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44692if eval "test \"\${$as_ac_Header+set}\" = set"; then
44693 echo "$as_me:$LINENO: checking for $ac_header" >&5
44694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44695if eval "test \"\${$as_ac_Header+set}\" = set"; then
44696 echo $ECHO_N "(cached) $ECHO_C" >&6
44697fi
44698echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44699echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44700else
44701 # Is the header compilable?
44702echo "$as_me:$LINENO: checking $ac_header usability" >&5
44703echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44704cat >conftest.$ac_ext <<_ACEOF
44705/* confdefs.h. */
44706_ACEOF
44707cat confdefs.h >>conftest.$ac_ext
44708cat >>conftest.$ac_ext <<_ACEOF
44709/* end confdefs.h. */
44710$ac_includes_default
44711#include <$ac_header>
44712_ACEOF
44713rm -f conftest.$ac_objext
44714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44715 (eval $ac_compile) 2>conftest.er1
a848cd7e 44716 ac_status=$?
ac1cb8d3
VS
44717 grep -v '^ *+' conftest.er1 >conftest.err
44718 rm -f conftest.er1
44719 cat conftest.err >&5
a848cd7e
SC
44720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44721 (exit $ac_status); } &&
ca5c6ac3 44722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44724 (eval $ac_try) 2>&5
44725 ac_status=$?
44726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44727 (exit $ac_status); }; } &&
44728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44730 (eval $ac_try) 2>&5
44731 ac_status=$?
44732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44733 (exit $ac_status); }; }; then
44734 ac_header_compiler=yes
44735else
44736 echo "$as_me: failed program was:" >&5
44737sed 's/^/| /' conftest.$ac_ext >&5
44738
44739ac_header_compiler=no
44740fi
ac1cb8d3 44741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44742echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44743echo "${ECHO_T}$ac_header_compiler" >&6
44744
44745# Is the header present?
44746echo "$as_me:$LINENO: checking $ac_header presence" >&5
44747echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44748cat >conftest.$ac_ext <<_ACEOF
44749/* confdefs.h. */
44750_ACEOF
44751cat confdefs.h >>conftest.$ac_ext
44752cat >>conftest.$ac_ext <<_ACEOF
44753/* end confdefs.h. */
44754#include <$ac_header>
44755_ACEOF
44756if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44758 ac_status=$?
44759 grep -v '^ *+' conftest.er1 >conftest.err
44760 rm -f conftest.er1
44761 cat conftest.err >&5
44762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44763 (exit $ac_status); } >/dev/null; then
44764 if test -s conftest.err; then
5d7b7554
VZ
44765 ac_cpp_err=$ac_cxx_preproc_warn_flag
44766 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
44767 else
44768 ac_cpp_err=
44769 fi
44770else
44771 ac_cpp_err=yes
44772fi
44773if test -z "$ac_cpp_err"; then
44774 ac_header_preproc=yes
44775else
44776 echo "$as_me: failed program was:" >&5
44777sed 's/^/| /' conftest.$ac_ext >&5
44778
44779 ac_header_preproc=no
44780fi
44781rm -f conftest.err conftest.$ac_ext
44782echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44783echo "${ECHO_T}$ac_header_preproc" >&6
44784
44785# So? What about this header?
5d7b7554 44786case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 44787 yes:no: )
a848cd7e
SC
44788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44789echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
44790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44791echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44792 ac_header_preproc=yes
a848cd7e 44793 ;;
ac1cb8d3 44794 no:yes:* )
a848cd7e
SC
44795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44796echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
44797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44798echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44800echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44802echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
44803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44804echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
44805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44806echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
44807 (
44808 cat <<\_ASBOX
ac1cb8d3
VS
44809## ----------------------------------------- ##
44810## Report this to wx-dev@lists.wxwidgets.org ##
44811## ----------------------------------------- ##
a848cd7e
SC
44812_ASBOX
44813 ) |
44814 sed "s/^/$as_me: WARNING: /" >&2
44815 ;;
44816esac
44817echo "$as_me:$LINENO: checking for $ac_header" >&5
44818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44819if eval "test \"\${$as_ac_Header+set}\" = set"; then
44820 echo $ECHO_N "(cached) $ECHO_C" >&6
44821else
ac1cb8d3 44822 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
44823fi
44824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44825echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44826
44827fi
44828if test `eval echo '${'$as_ac_Header'}'` = yes; then
44829 cat >>confdefs.h <<_ACEOF
44830#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44831_ACEOF
44832
44833fi
44834
44835done
44836
44837
44838 if test "$ac_cv_header_ole2_h" = "yes" ; then
44839 if test "$GCC" = yes ; then
a848cd7e
SC
44840 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
44841echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
44842 cat >conftest.$ac_ext <<_ACEOF
44843/* confdefs.h. */
44844_ACEOF
44845cat confdefs.h >>conftest.$ac_ext
44846cat >>conftest.$ac_ext <<_ACEOF
44847/* end confdefs.h. */
44848#include <windows.h>
44849 #include <ole2.h>
44850int
44851main ()
44852{
44853
44854 ;
44855 return 0;
44856}
44857_ACEOF
44858rm -f conftest.$ac_objext
44859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44860 (eval $ac_compile) 2>conftest.er1
a848cd7e 44861 ac_status=$?
ac1cb8d3
VS
44862 grep -v '^ *+' conftest.er1 >conftest.err
44863 rm -f conftest.er1
44864 cat conftest.err >&5
a848cd7e
SC
44865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44866 (exit $ac_status); } &&
ca5c6ac3 44867 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44869 (eval $ac_try) 2>&5
44870 ac_status=$?
44871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44872 (exit $ac_status); }; } &&
44873 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44875 (eval $ac_try) 2>&5
44876 ac_status=$?
44877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44878 (exit $ac_status); }; }; then
44879 echo "$as_me:$LINENO: result: no" >&5
44880echo "${ECHO_T}no" >&6
44881else
44882 echo "$as_me: failed program was:" >&5
44883sed 's/^/| /' conftest.$ac_ext >&5
44884
44885echo "$as_me:$LINENO: result: yes" >&5
44886echo "${ECHO_T}yes" >&6
5ff751d6 44887 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 44888fi
ac1cb8d3 44889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44890 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
44891 if test "$wxUSE_OLE" = "yes" ; then
44892 cat >>confdefs.h <<\_ACEOF
44893#define wxUSE_OLE 1
44894_ACEOF
44895
0b78747f 44896 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
44897 fi
44898 fi
44899
44900 if test "$wxUSE_DATAOBJ" = "yes" ; then
44901 cat >>confdefs.h <<\_ACEOF
44902#define wxUSE_DATAOBJ 1
44903_ACEOF
44904
44905 fi
44906 else
44907 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
44908echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
44909
44910 wxUSE_CLIPBOARD=no
44911 wxUSE_DRAG_AND_DROP=no
44912 wxUSE_DATAOBJ=no
44913 wxUSE_OLE=no
44914 fi
44915
44916 if test "$wxUSE_METAFILE" = "yes"; then
44917 cat >>confdefs.h <<\_ACEOF
44918#define wxUSE_METAFILE 1
44919_ACEOF
44920
44921
44922 cat >>confdefs.h <<\_ACEOF
44923#define wxUSE_ENH_METAFILE 1
44924_ACEOF
44925
44926 fi
44927fi
44928
44929if test "$wxUSE_IPC" = "yes"; then
0b78747f 44930 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
44931 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
44932echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 44933 wxUSE_IPC=no
a848cd7e
SC
44934 fi
44935
0b78747f
MW
44936 if test "$wxUSE_IPC" = "yes"; then
44937 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44938#define wxUSE_IPC 1
44939_ACEOF
44940
0b78747f
MW
44941 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
44942 fi
a848cd7e
SC
44943fi
44944
eb730a0c 44945if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
44946 if test "$wxUSE_MGL" = 1; then
44947 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
44948echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
44949 wxUSE_DATAOBJ=no
44950 else
44951 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
44952#define wxUSE_DATAOBJ 1
44953_ACEOF
44954
2113bc77 44955 fi
eb730a0c
JS
44956else
44957 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
44958echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
44959 wxUSE_CLIPBOARD=no
44960 wxUSE_DRAG_AND_DROP=no
44961fi
44962
a848cd7e
SC
44963if test "$wxUSE_CLIPBOARD" = "yes"; then
44964 if test "$wxUSE_MGL" = 1; then
44965 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
44966echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
44967 wxUSE_CLIPBOARD=no
44968 fi
44969
44970 if test "$wxUSE_CLIPBOARD" = "yes"; then
44971 cat >>confdefs.h <<\_ACEOF
44972#define wxUSE_CLIPBOARD 1
44973_ACEOF
44974
a848cd7e
SC
44975 fi
44976fi
44977
44978if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
44979 if test "$wxUSE_GTK" = 1; then
44980 if test "$WXGTK12" != 1; then
44981 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
44982echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
44983 wxUSE_DRAG_AND_DROP=no
44984 fi
44985 fi
44986
44987 if test "$wxUSE_MOTIF" = 1; then
44988 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
44989echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
44990 wxUSE_DRAG_AND_DROP=no
44991 fi
44992
44993 if test "$wxUSE_X11" = 1; then
44994 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
44995echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
44996 wxUSE_DRAG_AND_DROP=no
44997 fi
44998
44999 if test "$wxUSE_MGL" = 1; then
45000 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
45001echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
45002 wxUSE_DRAG_AND_DROP=no
45003 fi
45004
45005 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45006 cat >>confdefs.h <<\_ACEOF
45007#define wxUSE_DRAG_AND_DROP 1
45008_ACEOF
45009
45010 fi
45011
45012fi
45013
45014if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45015 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45016fi
45017
45018if test "$wxUSE_SPLINES" = "yes" ; then
45019 cat >>confdefs.h <<\_ACEOF
45020#define wxUSE_SPLINES 1
45021_ACEOF
45022
45023fi
45024
fbe2ca43
SN
45025if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45026 cat >>confdefs.h <<\_ACEOF
45027#define wxUSE_MOUSEWHEEL 1
45028_ACEOF
45029
45030fi
45031
a848cd7e
SC
45032
45033USES_CONTROLS=0
45034if test "$wxUSE_CONTROLS" = "yes"; then
45035 USES_CONTROLS=1
45036fi
45037
45038if test "$wxUSE_ACCEL" = "yes"; then
45039 cat >>confdefs.h <<\_ACEOF
45040#define wxUSE_ACCEL 1
45041_ACEOF
45042
45043 USES_CONTROLS=1
45044fi
45045
45046if test "$wxUSE_BUTTON" = "yes"; then
45047 cat >>confdefs.h <<\_ACEOF
45048#define wxUSE_BUTTON 1
45049_ACEOF
45050
45051 USES_CONTROLS=1
45052fi
45053
45054if test "$wxUSE_BMPBUTTON" = "yes"; then
45055 cat >>confdefs.h <<\_ACEOF
45056#define wxUSE_BMPBUTTON 1
45057_ACEOF
45058
45059 USES_CONTROLS=1
45060fi
45061
45062if test "$wxUSE_CALCTRL" = "yes"; then
45063 cat >>confdefs.h <<\_ACEOF
45064#define wxUSE_CALENDARCTRL 1
45065_ACEOF
45066
45067 USES_CONTROLS=1
45068 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45069fi
45070
45071if test "$wxUSE_CARET" = "yes"; then
45072 cat >>confdefs.h <<\_ACEOF
45073#define wxUSE_CARET 1
45074_ACEOF
45075
45076 USES_CONTROLS=1
45077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45078fi
45079
45080if test "$wxUSE_COMBOBOX" = "yes"; then
45081 cat >>confdefs.h <<\_ACEOF
45082#define wxUSE_COMBOBOX 1
45083_ACEOF
45084
45085 USES_CONTROLS=1
45086fi
45087
a57d600f 45088if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 45089 cat >>confdefs.h <<\_ACEOF
a57d600f 45090#define wxUSE_COMBOCTRL 1
642bcba9
VZ
45091_ACEOF
45092
45093 USES_CONTROLS=1
45094fi
45095
a848cd7e
SC
45096if test "$wxUSE_CHOICE" = "yes"; then
45097 cat >>confdefs.h <<\_ACEOF
45098#define wxUSE_CHOICE 1
45099_ACEOF
45100
45101 USES_CONTROLS=1
45102fi
45103
92bbdbcd
WS
45104if test "$wxUSE_CHOICEBOOK" = "yes"; then
45105 cat >>confdefs.h <<\_ACEOF
45106#define wxUSE_CHOICEBOOK 1
45107_ACEOF
45108
45109 USES_CONTROLS=1
45110fi
45111
a848cd7e
SC
45112if test "$wxUSE_CHECKBOX" = "yes"; then
45113 cat >>confdefs.h <<\_ACEOF
45114#define wxUSE_CHECKBOX 1
45115_ACEOF
45116
45117 USES_CONTROLS=1
45118fi
45119
45120if test "$wxUSE_CHECKLST" = "yes"; then
45121 cat >>confdefs.h <<\_ACEOF
45122#define wxUSE_CHECKLISTBOX 1
45123_ACEOF
45124
45125 USES_CONTROLS=1
45126 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
45127fi
45128
e9263684
VZ
45129if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45130 cat >>confdefs.h <<\_ACEOF
45131#define wxUSE_COLOURPICKERCTRL 1
45132_ACEOF
45133
45134 USES_CONTROLS=1
45135fi
45136
da98e9be
VZ
45137if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45138 cat >>confdefs.h <<\_ACEOF
45139#define wxUSE_DATEPICKCTRL 1
45140_ACEOF
45141
45142 USES_CONTROLS=1
45143fi
45144
e9263684
VZ
45145if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45146 cat >>confdefs.h <<\_ACEOF
45147#define wxUSE_DIRPICKERCTRL 1
45148_ACEOF
45149
45150 USES_CONTROLS=1
45151fi
45152
45153if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45154 cat >>confdefs.h <<\_ACEOF
45155#define wxUSE_FILEPICKERCTRL 1
45156_ACEOF
45157
45158 USES_CONTROLS=1
45159fi
45160
45161if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45162 cat >>confdefs.h <<\_ACEOF
45163#define wxUSE_FONTPICKERCTRL 1
45164_ACEOF
45165
45166 USES_CONTROLS=1
45167fi
45168
a848cd7e
SC
45169if test "$wxUSE_DISPLAY" = "yes"; then
45170 cat >>confdefs.h <<\_ACEOF
45171#define wxUSE_DISPLAY 1
45172_ACEOF
45173
0b78747f 45174 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
45175fi
45176
45177if test "$wxUSE_GAUGE" = "yes"; then
45178 cat >>confdefs.h <<\_ACEOF
45179#define wxUSE_GAUGE 1
45180_ACEOF
45181
45182 USES_CONTROLS=1
45183fi
45184
45185if test "$wxUSE_GRID" = "yes"; then
45186 cat >>confdefs.h <<\_ACEOF
45187#define wxUSE_GRID 1
45188_ACEOF
45189
45190 USES_CONTROLS=1
45191 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45192fi
45193
6954625c
VZ
45194if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45195 cat >>confdefs.h <<\_ACEOF
45196#define wxUSE_HYPERLINKCTRL 1
45197_ACEOF
45198
45199 USES_CONTROLS=1
45200fi
45201
95a46303
RR
45202if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45203 cat >>confdefs.h <<\_ACEOF
45204#define wxUSE_BITMAPCOMBOBOX 1
45205_ACEOF
45206
45207 USES_CONTROLS=1
45208fi
45209
20e34ecc
RR
45210if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45211 cat >>confdefs.h <<\_ACEOF
45212#define wxUSE_DATAVIEWCTRL 1
45213_ACEOF
45214
45215 USES_CONTROLS=1
45216 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45217fi
45218
a848cd7e
SC
45219if test "$wxUSE_IMAGLIST" = "yes"; then
45220 cat >>confdefs.h <<\_ACEOF
45221#define wxUSE_IMAGLIST 1
45222_ACEOF
45223
45224fi
45225
45226if test "$wxUSE_LISTBOOK" = "yes"; then
45227 cat >>confdefs.h <<\_ACEOF
45228#define wxUSE_LISTBOOK 1
45229_ACEOF
45230
45231 USES_CONTROLS=1
45232fi
45233
45234if test "$wxUSE_LISTBOX" = "yes"; then
45235 cat >>confdefs.h <<\_ACEOF
45236#define wxUSE_LISTBOX 1
45237_ACEOF
45238
45239 USES_CONTROLS=1
0b78747f 45240 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
45241fi
45242
45243if test "$wxUSE_LISTCTRL" = "yes"; then
45244 if test "$wxUSE_IMAGLIST" = "yes"; then
45245 cat >>confdefs.h <<\_ACEOF
45246#define wxUSE_LISTCTRL 1
45247_ACEOF
45248
45249 USES_CONTROLS=1
45250 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45251 else
45252 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45253echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45254 fi
45255fi
45256
45257if test "$wxUSE_NOTEBOOK" = "yes"; then
45258 cat >>confdefs.h <<\_ACEOF
45259#define wxUSE_NOTEBOOK 1
45260_ACEOF
45261
45262 USES_CONTROLS=1
45263 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45264fi
45265
a57d600f 45266if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 45267 cat >>confdefs.h <<\_ACEOF
a57d600f 45268#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
45269_ACEOF
45270
45271 USES_CONTROLS=1
45272 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45273fi
45274
a848cd7e
SC
45275
45276if test "$wxUSE_RADIOBOX" = "yes"; then
45277 cat >>confdefs.h <<\_ACEOF
45278#define wxUSE_RADIOBOX 1
45279_ACEOF
45280
45281 USES_CONTROLS=1
45282fi
45283
45284if test "$wxUSE_RADIOBTN" = "yes"; then
45285 cat >>confdefs.h <<\_ACEOF
45286#define wxUSE_RADIOBTN 1
45287_ACEOF
45288
45289 USES_CONTROLS=1
45290fi
45291
45292if test "$wxUSE_SASH" = "yes"; then
45293 cat >>confdefs.h <<\_ACEOF
45294#define wxUSE_SASH 1
45295_ACEOF
45296
45297 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45298fi
45299
45300if test "$wxUSE_SCROLLBAR" = "yes"; then
45301 cat >>confdefs.h <<\_ACEOF
45302#define wxUSE_SCROLLBAR 1
45303_ACEOF
45304
45305 USES_CONTROLS=1
45306 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
45307fi
45308
45309if test "$wxUSE_SLIDER" = "yes"; then
45310 cat >>confdefs.h <<\_ACEOF
45311#define wxUSE_SLIDER 1
45312_ACEOF
45313
45314 USES_CONTROLS=1
45315fi
45316
45317if test "$wxUSE_SPINBTN" = "yes"; then
45318 cat >>confdefs.h <<\_ACEOF
45319#define wxUSE_SPINBTN 1
45320_ACEOF
45321
45322 USES_CONTROLS=1
45323fi
45324
45325if test "$wxUSE_SPINCTRL" = "yes"; then
45326 cat >>confdefs.h <<\_ACEOF
45327#define wxUSE_SPINCTRL 1
45328_ACEOF
45329
45330 USES_CONTROLS=1
45331fi
45332
45333if test "$wxUSE_SPLITTER" = "yes"; then
45334 cat >>confdefs.h <<\_ACEOF
45335#define wxUSE_SPLITTER 1
45336_ACEOF
45337
45338 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45339fi
45340
45341if test "$wxUSE_STATBMP" = "yes"; then
45342 cat >>confdefs.h <<\_ACEOF
45343#define wxUSE_STATBMP 1
45344_ACEOF
45345
45346 USES_CONTROLS=1
45347fi
45348
45349if test "$wxUSE_STATBOX" = "yes"; then
45350 cat >>confdefs.h <<\_ACEOF
45351#define wxUSE_STATBOX 1
45352_ACEOF
45353
45354 USES_CONTROLS=1
45355fi
45356
45357if test "$wxUSE_STATTEXT" = "yes"; then
45358 cat >>confdefs.h <<\_ACEOF
45359#define wxUSE_STATTEXT 1
45360_ACEOF
45361
45362 USES_CONTROLS=1
45363fi
45364
45365if test "$wxUSE_STATLINE" = "yes"; then
45366 cat >>confdefs.h <<\_ACEOF
45367#define wxUSE_STATLINE 1
45368_ACEOF
45369
45370 USES_CONTROLS=1
45371fi
45372
45373if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
45374 cat >>confdefs.h <<\_ACEOF
45375#define wxUSE_NATIVE_STATUSBAR 1
45376_ACEOF
45377
a848cd7e
SC
45378 cat >>confdefs.h <<\_ACEOF
45379#define wxUSE_STATUSBAR 1
45380_ACEOF
45381
45382 USES_CONTROLS=1
45383
45384 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45385fi
45386
f10e38c4 45387if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
45388 cat >>confdefs.h <<\_ACEOF
45389#define wxUSE_TAB_DIALOG 1
45390_ACEOF
45391
a848cd7e
SC
45392fi
45393
45394if test "$wxUSE_TEXTCTRL" = "yes"; then
45395 cat >>confdefs.h <<\_ACEOF
45396#define wxUSE_TEXTCTRL 1
45397_ACEOF
45398
45399 USES_CONTROLS=1
45400 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45401fi
45402
45403if test "$wxUSE_TOGGLEBTN" = "yes"; then
45404 if test "$wxUSE_COCOA" = 1 ; then
45405 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45406echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45407 wxUSE_TOGGLEBTN=no
45408 fi
a848cd7e
SC
45409
45410 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45411 cat >>confdefs.h <<\_ACEOF
45412#define wxUSE_TOGGLEBTN 1
45413_ACEOF
45414
45415 USES_CONTROLS=1
45416 fi
45417fi
45418
a848cd7e
SC
45419if test "$wxUSE_TOOLBAR" = "yes"; then
45420 cat >>confdefs.h <<\_ACEOF
45421#define wxUSE_TOOLBAR 1
45422_ACEOF
45423
45424 USES_CONTROLS=1
45425
452b6243
VS
45426 if test "$wxUSE_UNIVERSAL" = "yes"; then
45427 wxUSE_TOOLBAR_NATIVE="no"
45428 else
45429 wxUSE_TOOLBAR_NATIVE="yes"
a848cd7e
SC
45430 cat >>confdefs.h <<\_ACEOF
45431#define wxUSE_TOOLBAR_NATIVE 1
45432_ACEOF
45433
a848cd7e
SC
45434 fi
45435
45436 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
45437fi
45438
45439if test "$wxUSE_TOOLTIPS" = "yes"; then
45440 if test "$wxUSE_MOTIF" = 1; then
45441 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
45442echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
45443 else
45444 if test "$wxUSE_UNIVERSAL" = "yes"; then
45445 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
45446echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
45447 else
45448 cat >>confdefs.h <<\_ACEOF
45449#define wxUSE_TOOLTIPS 1
45450_ACEOF
45451
45452 fi
45453 fi
45454fi
45455
0093c2fc
VZ
45456if test "$wxUSE_TREEBOOK" = "yes"; then
45457 cat >>confdefs.h <<\_ACEOF
45458#define wxUSE_TREEBOOK 1
45459_ACEOF
45460
45461 USES_CONTROLS=1
45462fi
45463
5ec3bc43
JS
45464if test "$wxUSE_TOOLBOOK" = "yes"; then
45465 cat >>confdefs.h <<\_ACEOF
45466#define wxUSE_TOOLBOOK 1
45467_ACEOF
45468
45469 USES_CONTROLS=1
45470fi
45471
a848cd7e
SC
45472if test "$wxUSE_TREECTRL" = "yes"; then
45473 if test "$wxUSE_IMAGLIST" = "yes"; then
45474 cat >>confdefs.h <<\_ACEOF
45475#define wxUSE_TREECTRL 1
45476_ACEOF
45477
45478 USES_CONTROLS=1
45479 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
45480 else
45481 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
45482echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
45483 fi
45484fi
45485
45486if test "$wxUSE_POPUPWIN" = "yes"; then
45487 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45488 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
45489echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
45490 else
45491 if test "$wxUSE_PM" = 1; then
45492 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
45493echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
45494 else
45495 cat >>confdefs.h <<\_ACEOF
45496#define wxUSE_POPUPWIN 1
45497_ACEOF
45498
0b78747f 45499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
45500
45501 USES_CONTROLS=1
45502 fi
45503 fi
45504fi
45505
0dcd06dd 45506if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
45507 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45508 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
45509echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
45510 else
45511 cat >>confdefs.h <<\_ACEOF
45512#define wxUSE_DIALUP_MANAGER 1
45513_ACEOF
45514
45515 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
45516 fi
45517fi
45518
a848cd7e
SC
45519if test "$wxUSE_TIPWINDOW" = "yes"; then
45520 if test "$wxUSE_PM" = 1; then
45521 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
45522echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
45523 else
45524 cat >>confdefs.h <<\_ACEOF
45525#define wxUSE_TIPWINDOW 1
45526_ACEOF
45527
45528 fi
45529fi
45530
45531if test "$USES_CONTROLS" = 1; then
45532 cat >>confdefs.h <<\_ACEOF
45533#define wxUSE_CONTROLS 1
45534_ACEOF
45535
45536fi
45537
45538
45539if test "$wxUSE_ACCESSIBILITY" = "yes"; then
45540 cat >>confdefs.h <<\_ACEOF
45541#define wxUSE_ACCESSIBILITY 1
45542_ACEOF
45543
45544 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
45545fi
45546
38b4a946
VZ
45547if test "$wxUSE_DC_CACHEING" = "yes"; then
45548 cat >>confdefs.h <<\_ACEOF
45549#define wxUSE_DC_CACHEING 1
45550_ACEOF
45551
45552fi
45553
a848cd7e
SC
45554if test "$wxUSE_DRAGIMAGE" = "yes"; then
45555 cat >>confdefs.h <<\_ACEOF
45556#define wxUSE_DRAGIMAGE 1
45557_ACEOF
45558
45559 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
45560fi
45561
45562if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
45563 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45564 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
45565echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
45566 else
45567 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45568#define wxUSE_EXCEPTIONS 1
45569_ACEOF
45570
07bea8f0
VS
45571 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
45572 fi
a848cd7e
SC
45573fi
45574
45575USE_HTML=0
45576if test "$wxUSE_HTML" = "yes"; then
45577 cat >>confdefs.h <<\_ACEOF
45578#define wxUSE_HTML 1
45579_ACEOF
45580
45581 USE_HTML=1
45582 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
45583 if test "$wxUSE_MAC" = 1; then
45584 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
45585 fi
a848cd7e 45586fi
646b6ec1 45587if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 45588 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 45589 old_CPPFLAGS="$CPPFLAGS"
c92ad099 45590 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
45591 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
45592echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
45593if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
45594 echo $ECHO_N "(cached) $ECHO_C" >&6
45595else
45596 cat >conftest.$ac_ext <<_ACEOF
45597/* confdefs.h. */
45598_ACEOF
45599cat confdefs.h >>conftest.$ac_ext
45600cat >>conftest.$ac_ext <<_ACEOF
45601/* end confdefs.h. */
45602#include <Carbon/Carbon.h>
45603
45604#include <WebKit/HIWebView.h>
45605_ACEOF
45606rm -f conftest.$ac_objext
45607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45608 (eval $ac_compile) 2>conftest.er1
45609 ac_status=$?
45610 grep -v '^ *+' conftest.er1 >conftest.err
45611 rm -f conftest.er1
45612 cat conftest.err >&5
45613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45614 (exit $ac_status); } &&
ca5c6ac3 45615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
45616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45617 (eval $ac_try) 2>&5
45618 ac_status=$?
45619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45620 (exit $ac_status); }; } &&
45621 { ac_try='test -s conftest.$ac_objext'
45622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45623 (eval $ac_try) 2>&5
45624 ac_status=$?
45625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45626 (exit $ac_status); }; }; then
45627 ac_cv_header_WebKit_HIWebView_h=yes
45628else
45629 echo "$as_me: failed program was:" >&5
45630sed 's/^/| /' conftest.$ac_ext >&5
45631
45632ac_cv_header_WebKit_HIWebView_h=no
45633fi
45634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45635fi
45636echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
45637echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
45638if test $ac_cv_header_WebKit_HIWebView_h = yes; then
45639
45640 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
45641#define wxUSE_WEBKIT 1
45642_ACEOF
45643
07bea8f0
VS
45644 WEBKIT_LINK="-framework WebKit"
45645
45646else
45647
45648 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
45649echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
45650 wxUSE_WEBKIT=no
45651
646b6ec1
VS
45652fi
45653
07bea8f0
VS
45654
45655 CPPFLAGS="$old_CPPFLAGS"
45656 elif test "$wxUSE_COCOA" = 1; then
45657 cat >>confdefs.h <<\_ACEOF
45658#define wxUSE_WEBKIT 1
45659_ACEOF
45660
45661 else
45662 wxUSE_WEBKIT=no
45663 fi
45664fi
45665
9a8f0513
VS
45666USE_XRC=0
45667if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
45668 if test "$wxUSE_XML" != "yes"; then
45669 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
45670echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
45671 wxUSE_XRC=no
45672 else
45673 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
45674#define wxUSE_XRC 1
45675_ACEOF
45676
d2ebf0b7
VS
45677 USE_XRC=1
45678 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
45679 fi
9a8f0513 45680fi
07bea8f0 45681
3f60522a
JS
45682USE_AUI=0
45683if test "$wxUSE_AUI" = "yes"; then
45684 cat >>confdefs.h <<\_ACEOF
45685#define wxUSE_AUI 1
45686_ACEOF
45687
45688 USE_AUI=1
45689 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
45690fi
45691
a848cd7e
SC
45692if test "$wxUSE_MENUS" = "yes"; then
45693 cat >>confdefs.h <<\_ACEOF
45694#define wxUSE_MENUS 1
45695_ACEOF
45696
45697 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
45698fi
45699
45700if test "$wxUSE_METAFILE" = "yes"; then
45701 cat >>confdefs.h <<\_ACEOF
45702#define wxUSE_METAFILE 1
45703_ACEOF
45704
45705fi
45706
45707if test "$wxUSE_MIMETYPE" = "yes"; then
45708 cat >>confdefs.h <<\_ACEOF
45709#define wxUSE_MIMETYPE 1
45710_ACEOF
45711
45712fi
45713
45714if test "$wxUSE_MINIFRAME" = "yes"; then
45715 cat >>confdefs.h <<\_ACEOF
45716#define wxUSE_MINIFRAME 1
45717_ACEOF
45718
45719 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
45720fi
45721
45722if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
45723 cat >>confdefs.h <<\_ACEOF
45724#define wxUSE_SYSTEM_OPTIONS 1
45725_ACEOF
45726
45727 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 45728 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
45729 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
45730 fi
45731fi
45732
45733
45734if test "$wxUSE_VALIDATORS" = "yes"; then
45735 cat >>confdefs.h <<\_ACEOF
45736#define wxUSE_VALIDATORS 1
45737_ACEOF
45738
45739 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
45740fi
45741
45742if test "$wxUSE_PALETTE" = "yes" ; then
45743 cat >>confdefs.h <<\_ACEOF
45744#define wxUSE_PALETTE 1
45745_ACEOF
45746
45747fi
45748
45749if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
45750 LIBS=" -lunicows $LIBS"
45751fi
45752
91dea314
MW
45753USE_RICHTEXT=0
45754if test "$wxUSE_RICHTEXT" = "yes"; then
45755 cat >>confdefs.h <<\_ACEOF
45756#define wxUSE_RICHTEXT 1
45757_ACEOF
45758
45759 USE_RICHTEXT=1
45760 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
45761fi
45762
a848cd7e
SC
45763
45764if test "$wxUSE_IMAGE" = "yes" ; then
45765 cat >>confdefs.h <<\_ACEOF
45766#define wxUSE_IMAGE 1
45767_ACEOF
45768
45769
45770 if test "$wxUSE_GIF" = "yes" ; then
45771 cat >>confdefs.h <<\_ACEOF
45772#define wxUSE_GIF 1
45773_ACEOF
45774
45775 fi
45776
45777 if test "$wxUSE_PCX" = "yes" ; then
45778 cat >>confdefs.h <<\_ACEOF
45779#define wxUSE_PCX 1
45780_ACEOF
45781
45782 fi
45783
45784 if test "$wxUSE_IFF" = "yes" ; then
45785 cat >>confdefs.h <<\_ACEOF
45786#define wxUSE_IFF 1
45787_ACEOF
45788
45789 fi
45790
45791 if test "$wxUSE_PNM" = "yes" ; then
45792 cat >>confdefs.h <<\_ACEOF
45793#define wxUSE_PNM 1
45794_ACEOF
45795
45796 fi
45797
45798 if test "$wxUSE_XPM" = "yes" ; then
45799 cat >>confdefs.h <<\_ACEOF
45800#define wxUSE_XPM 1
45801_ACEOF
45802
45803 fi
45804
45805 if test "$wxUSE_ICO_CUR" = "yes" ; then
45806 cat >>confdefs.h <<\_ACEOF
45807#define wxUSE_ICO_CUR 1
45808_ACEOF
45809
45810 fi
45811fi
45812
45813
45814if test "$wxUSE_CHOICEDLG" = "yes"; then
45815 cat >>confdefs.h <<\_ACEOF
45816#define wxUSE_CHOICEDLG 1
45817_ACEOF
45818
45819fi
45820
45821if test "$wxUSE_COLOURDLG" = "yes"; then
45822 cat >>confdefs.h <<\_ACEOF
45823#define wxUSE_COLOURDLG 1
45824_ACEOF
45825
45826fi
45827
45828if test "$wxUSE_FILEDLG" = "yes"; then
45829 cat >>confdefs.h <<\_ACEOF
45830#define wxUSE_FILEDLG 1
45831_ACEOF
45832
45833fi
45834
45835if test "$wxUSE_FINDREPLDLG" = "yes"; then
45836 cat >>confdefs.h <<\_ACEOF
45837#define wxUSE_FINDREPLDLG 1
45838_ACEOF
45839
45840fi
45841
45842if test "$wxUSE_FONTDLG" = "yes"; then
45843 cat >>confdefs.h <<\_ACEOF
45844#define wxUSE_FONTDLG 1
45845_ACEOF
45846
45847fi
45848
45849if test "$wxUSE_DIRDLG" = "yes"; then
45850 if test "$wxUSE_TREECTRL" != "yes"; then
45851 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
45852echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
45853 else
45854 cat >>confdefs.h <<\_ACEOF
45855#define wxUSE_DIRDLG 1
45856_ACEOF
45857
45858 fi
45859fi
45860
45861if test "$wxUSE_MSGDLG" = "yes"; then
45862 cat >>confdefs.h <<\_ACEOF
45863#define wxUSE_MSGDLG 1
45864_ACEOF
45865
45866fi
45867
45868if test "$wxUSE_NUMBERDLG" = "yes"; then
45869 cat >>confdefs.h <<\_ACEOF
45870#define wxUSE_NUMBERDLG 1
45871_ACEOF
45872
45873fi
45874
45875if test "$wxUSE_PROGRESSDLG" = "yes"; then
45876 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45877 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
45878echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
45879 else
45880 cat >>confdefs.h <<\_ACEOF
45881#define wxUSE_PROGRESSDLG 1
45882_ACEOF
45883
45884 fi
45885fi
45886
45887if test "$wxUSE_SPLASH" = "yes"; then
45888 cat >>confdefs.h <<\_ACEOF
45889#define wxUSE_SPLASH 1
45890_ACEOF
45891
2057db16 45892 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
45893fi
45894
45895if test "$wxUSE_STARTUP_TIPS" = "yes"; then
45896 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45897 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
45898echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
45899 else
45900 cat >>confdefs.h <<\_ACEOF
45901#define wxUSE_STARTUP_TIPS 1
45902_ACEOF
45903
45904 fi
45905fi
45906
45907if test "$wxUSE_TEXTDLG" = "yes"; then
45908 cat >>confdefs.h <<\_ACEOF
45909#define wxUSE_TEXTDLG 1
45910_ACEOF
45911
45912fi
45913
45914if test "$wxUSE_WIZARDDLG" = "yes"; then
45915 cat >>confdefs.h <<\_ACEOF
45916#define wxUSE_WIZARDDLG 1
45917_ACEOF
45918
45919 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
45920fi
45921
45922
f10e38c4
VZ
45923USE_MEDIA=0
45924
ce756cb0 45925if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
45926 USE_MEDIA=1
45927
ce756cb0 45928 if test "$wxUSE_GTK" = 1; then
c9a66001 45929 wxUSE_GSTREAMER="no"
ce756cb0 45930
f10e38c4
VZ
45931 GST_VERSION_MAJOR=0
45932 GST_VERSION_MINOR=10
2f6c5bb5 45933 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
45934
45935 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 45936
3ecd9f92
MW
45937pkg_failed=no
45938echo "$as_me:$LINENO: checking for GST" >&5
45939echo $ECHO_N "checking for GST... $ECHO_C" >&6
ce756cb0 45940
3ecd9f92
MW
45941if test -n "$PKG_CONFIG"; then
45942 if test -n "$GST_CFLAGS"; then
45943 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
45944 else
45945 if test -n "$PKG_CONFIG" && \
45946 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
45947 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
45948 ac_status=$?
45949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45950 (exit $ac_status); }; then
45951 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 45952else
3ecd9f92
MW
45953 pkg_failed=yes
45954fi
45955 fi
45956else
45957 pkg_failed=untried
dae87f93 45958fi
dae87f93 45959if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
45960 if test -n "$GST_LIBS"; then
45961 pkg_cv_GST_LIBS="$GST_LIBS"
45962 else
45963 if test -n "$PKG_CONFIG" && \
45964 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
45965 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
45966 ac_status=$?
45967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45968 (exit $ac_status); }; then
45969 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 45970else
3ecd9f92
MW
45971 pkg_failed=yes
45972fi
45973 fi
45974else
45975 pkg_failed=untried
dae87f93
RN
45976fi
45977
dae87f93 45978
2f6c5bb5 45979
3ecd9f92 45980if test $pkg_failed = yes; then
ce756cb0 45981
3ecd9f92
MW
45982if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45983 _pkg_short_errors_supported=yes
45984else
45985 _pkg_short_errors_supported=no
45986fi
45987 if test $_pkg_short_errors_supported = yes; then
45988 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
45989 else
45990 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
dae87f93 45991 fi
3ecd9f92
MW
45992 # Put the nasty error message in config.log where it belongs
45993 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
45994
45995
3ecd9f92
MW
45996 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
45997echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
45998 GST_VERSION_MINOR=8
dae87f93 45999
ce756cb0 46000
3ecd9f92 46001elif test $pkg_failed = untried; then
dae87f93 46002
2f6c5bb5
VZ
46003 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46004echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 46005 GST_VERSION_MINOR=8
dae87f93 46006
2f6c5bb5 46007
3ecd9f92
MW
46008else
46009 GST_CFLAGS=$pkg_cv_GST_CFLAGS
46010 GST_LIBS=$pkg_cv_GST_LIBS
46011 echo "$as_me:$LINENO: result: yes" >&5
46012echo "${ECHO_T}yes" >&6
46013
46014 wxUSE_GSTREAMER="yes"
46015 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
dae87f93 46016
3ecd9f92 46017fi
2f6c5bb5
VZ
46018 else
46019 GST_VERSION_MINOR=8
f10e38c4 46020 fi
dae87f93 46021
2f6c5bb5
VZ
46022 if test $GST_VERSION_MINOR = "8"; then
46023 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 46024
3ecd9f92
MW
46025pkg_failed=no
46026echo "$as_me:$LINENO: checking for GST" >&5
46027echo $ECHO_N "checking for GST... $ECHO_C" >&6
dae87f93 46028
3ecd9f92
MW
46029if test -n "$PKG_CONFIG"; then
46030 if test -n "$GST_CFLAGS"; then
46031 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46032 else
46033 if test -n "$PKG_CONFIG" && \
46034 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46035 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46036 ac_status=$?
46037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46038 (exit $ac_status); }; then
46039 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 46040else
3ecd9f92
MW
46041 pkg_failed=yes
46042fi
46043 fi
46044else
46045 pkg_failed=untried
dae87f93 46046fi
f10e38c4 46047if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
46048 if test -n "$GST_LIBS"; then
46049 pkg_cv_GST_LIBS="$GST_LIBS"
46050 else
46051 if test -n "$PKG_CONFIG" && \
46052 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46053 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46054 ac_status=$?
46055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46056 (exit $ac_status); }; then
46057 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 46058else
3ecd9f92
MW
46059 pkg_failed=yes
46060fi
46061 fi
46062else
46063 pkg_failed=untried
dae87f93
RN
46064fi
46065
ce756cb0 46066
2f6c5bb5 46067
3ecd9f92 46068if test $pkg_failed = yes; then
dae87f93 46069
3ecd9f92
MW
46070if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46071 _pkg_short_errors_supported=yes
46072else
46073 _pkg_short_errors_supported=no
46074fi
46075 if test $_pkg_short_errors_supported = yes; then
46076 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46077 else
46078 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 46079 fi
3ecd9f92
MW
46080 # Put the nasty error message in config.log where it belongs
46081 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
46082
46083
3ecd9f92
MW
46084 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46085echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 46086
3ecd9f92 46087elif test $pkg_failed = untried; then
ce756cb0 46088
2f6c5bb5
VZ
46089 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46090echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 46091
3ecd9f92
MW
46092else
46093 GST_CFLAGS=$pkg_cv_GST_CFLAGS
46094 GST_LIBS=$pkg_cv_GST_LIBS
46095 echo "$as_me:$LINENO: result: yes" >&5
46096echo "${ECHO_T}yes" >&6
46097 wxUSE_GSTREAMER="yes"
46098fi
dae87f93 46099 fi
ce756cb0 46100
f10e38c4 46101
dae87f93 46102 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
46103 case "${host}" in
46104 *-*-solaris2* )
46105 if "$GCC" = yes; then
46106 GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
46107 GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
46108 fi
46109 esac
46110
46111 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46112 LIBS="$GST_LIBS $LIBS"
46113
dae87f93 46114 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
46115#define wxUSE_GSTREAMER 1
46116_ACEOF
46117
2f6c5bb5
VZ
46118 else
46119 USE_MEDIA=0
ce756cb0
RN
46120 fi
46121 fi
2f6c5bb5
VZ
46122
46123 if test $USE_MEDIA = 1; then
46124 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46125 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
46126#define wxUSE_MEDIACTRL 1
46127_ACEOF
46128
2f6c5bb5 46129 fi
ce756cb0
RN
46130fi
46131
46132
a848cd7e
SC
46133if test "$cross_compiling" = "yes"; then
46134 OSINFO="\"$host\""
46135else
46136 OSINFO=`uname -s -r -m`
46137 OSINFO="\"$OSINFO\""
46138fi
46139
46140cat >>confdefs.h <<_ACEOF
46141#define WXWIN_OS_DESCRIPTION $OSINFO
46142_ACEOF
46143
46144
46145
46146if test "x$prefix" != "xNONE"; then
46147 wxPREFIX=$prefix
46148else
46149 wxPREFIX=$ac_default_prefix
46150fi
46151
46152cat >>confdefs.h <<_ACEOF
46153#define wxINSTALL_PREFIX "$wxPREFIX"
46154_ACEOF
46155
46156
a848cd7e
SC
46157
46158
46159CORE_BASE_LIBS="net base"
46160CORE_GUI_LIBS="adv core"
46161
46162if test "$wxUSE_XML" = "yes" ; then
46163 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
46164fi
46165if test "$wxUSE_ODBC" != "no" ; then
46166 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
46167 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
46168fi
46169if test "$wxUSE_HTML" = "yes" ; then
46170 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
46171fi
61639efb
VZ
46172if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46173 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
46174fi
9a8f0513
VS
46175if test "$wxUSE_XRC" = "yes" ; then
46176 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
46177fi
3f60522a
JS
46178if test "$wxUSE_AUI" = "yes" ; then
46179 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
46180fi
a848cd7e
SC
46181
46182if test "$wxUSE_GUI" != "yes"; then
46183 CORE_GUI_LIBS=""
46184fi
46185
46186
46187
46188
46189
5d7b7554
VZ
46190ac_ext=c
46191ac_cpp='$CPP $CPPFLAGS'
46192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46194ac_compiler_gnu=$ac_cv_c_compiler_gnu
46195
a848cd7e
SC
46196
46197
a848cd7e 46198if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 46199 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
46200 if test "$USE_DARWIN" = 1; then
46201 LDFLAGS="$LDFLAGS -framework QuickTime"
46202 else
46203 LDFLAGS="$LDFLAGS -lQuickTimeLib"
46204 fi
07bea8f0 46205 fi
5dcf30a0 46206 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
46207 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
46208 else
46209 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 46210 fi
a848cd7e
SC
46211fi
46212if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 46213 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
46214 if test "$wxUSE_MEDIACTRL" = "yes"; then
46215 LDFLAGS="$LDFLAGS -framework QuickTime"
46216 fi
a848cd7e 46217fi
19b27e78
MW
46218if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
46219 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
46220fi
a848cd7e 46221
a848cd7e
SC
46222LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
46223
a848cd7e
SC
46224if test "$wxUSE_GUI" = "yes"; then
46225
46226
8bce5cda
MW
46227 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
46228 dynamic erase event exec font image minimal mobile \
46229 mobile/wxedit mobile/styles propsize render \
9e39d889 46230 rotate shaped vscroll widgets"
a848cd7e
SC
46231
46232 if test "$wxUSE_MONOLITHIC" != "yes"; then
46233 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
46234 fi
0b78747f 46235 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
46236 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
46237 if test "$wxUSE_UNIVERSAL" != "yes"; then
46238 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
46239 fi
46240 fi
46241 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
46242 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 46243 fi
a848cd7e
SC
46244else
46245 SAMPLES_SUBDIRS="console"
46246fi
46247
46248
48f625bc 46249if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
46250 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
46251elif test "$GCC" = yes ; then
46252 CWARNINGS="-Wall -Wundef"
46253fi
46254
48f625bc 46255if test "x$INTELCXX" = "xyes" ; then
7f47faf4 46256 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
46257elif test "$GXX" = yes ; then
46258 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 46259fi
a848cd7e 46260
a848cd7e 46261
5ff751d6
VZ
46262WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
46263WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
46264
46265
c92ad099 46266CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 46267 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
46268 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
46269 $CPPFLAGS `
5ff751d6 46270
8aeeb05c 46271C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 46272CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 46273CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
46274
46275WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
46276
a848cd7e 46277
95986553
DE
46278if test "x$MWCC" = "xyes"; then
46279
46280 CC="$CC -cwd source -I-"
46281 CXX="$CXX -cwd source -I-"
46282fi
46283
a848cd7e 46284
0c3c69fc 46285LIBS=`echo $LIBS`
a848cd7e
SC
46286EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
46287EXTRALIBS_XML="$EXPAT_LINK"
46288EXTRALIBS_HTML="$MSPACK_LINK"
46289EXTRALIBS_ODBC="$ODBC_LINK"
46290if test "$wxUSE_GUI" = "yes"; then
2b850ae1 46291 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
46292fi
46293if test "$wxUSE_OPENGL" = "yes"; then
46294 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
46295fi
46296
8aeeb05c 46297LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 46298
5ff751d6 46299WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
46300
46301if test "$wxUSE_REGEX" = "builtin" ; then
74802184 46302 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
46303fi
46304if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 46305 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
46306fi
46307if test "$wxUSE_ODBC" = "builtin" ; then
74802184 46308 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
46309fi
46310if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 46311 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
46312fi
46313if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 46314 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
46315fi
46316if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 46317 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
46318fi
46319if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 46320 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
46321fi
46322
46323for i in $wxconfig_3rdparty ; do
5ff751d6 46324 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
46325done
46326
46327
46328if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
46329 WXUNIV=1
4353a8df
VZ
46330
46331 case "$wxUNIV_THEMES" in
46332 ''|all)
46333 cat >>confdefs.h <<\_ACEOF
46334#define wxUSE_ALL_THEMES 1
46335_ACEOF
46336
46337 ;;
46338
46339 *)
46340 for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
46341 cat >>confdefs.h <<_ACEOF
46342#define wxUSE_THEME_$t 1
46343_ACEOF
46344
46345 done
46346 esac
a848cd7e
SC
46347else
46348 WXUNIV=0
46349fi
46350
46351
46352
46353
46354
46355
46356
46357
46358
46359if test $wxUSE_MONOLITHIC = "yes" ; then
46360 MONOLITHIC=1
46361else
46362 MONOLITHIC=0
46363fi
46364
46365if test $wxUSE_PLUGINS = "yes" ; then
46366 USE_PLUGINS=1
46367else
46368 USE_PLUGINS=0
46369fi
46370
46371if test $wxUSE_ODBC != "no" ; then
46372 USE_ODBC=1
46373else
46374 USE_ODBC=0
46375fi
46376
16358932
VZ
46377if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46378 USE_QA=1
46379else
46380 USE_QA=0
46381fi
46382
a848cd7e
SC
46383if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
46384 OFFICIAL_BUILD=1
46385else
46386 OFFICIAL_BUILD=0
46387fi
46388
46389
46390
46391
46392
46393
46394
46395
46396
46397
46398
46399
46400
46401
46402
46403
46404
46405
46406
ceec2216 46407
d1c38808 46408
3565d135 46409
2b850ae1 46410
a848cd7e
SC
46411
46412
46413TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
46414
46415
46416
46417
46418
46419
46420
46421
4d4ff94c
VZ
46422case "$TOOLKIT" in
46423 GTK)
c2e9ada4 46424 TOOLKIT_DESC="GTK+"
4d4ff94c 46425 if test "$WXGTK20" = 1; then
c2e9ada4
VZ
46426 TOOLKIT_DESC="$TOOLKIT_DESC 2"
46427 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
46428 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
46429 fi
46430 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
46431 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
46432 fi
46433 if test "$wxUSE_LIBHILDON" = "yes"; then
46434 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
46435 fi
46436
46437 if test "$TOOLKIT_EXTRA" != ""; then
46438 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
46439 fi
4d4ff94c 46440 fi
9a8f0513 46441 ;;
4d4ff94c 46442
c2e9ada4
VZ
46443 ?*)
46444 TOOLKIT_DESC=$TOOLKIT_LOWERCASE
46445 ;;
46446
4d4ff94c 46447 *)
c2e9ada4 46448 TOOLKIT_DESC="base only"
9a8f0513 46449 ;;
4d4ff94c 46450esac
a848cd7e 46451
fb00f58d
JS
46452if test "$wxUSE_WINE" = "yes"; then
46453 BAKEFILE_FORCE_PLATFORM=win32
46454fi
46455
7afc46ab 46456if test "$wxUSE_MAC" = 1 ; then
95768535
MW
46457 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
46458 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
46459 OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
46460 else
46461 OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
46462 fi
46463 OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
46464 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
46465 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
46466 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
7afc46ab
KO
46467 bk_use_pch=no
46468 fi
46469 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
46470 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
7afc46ab
KO
46471fi
46472
9a8f0513 46473
1e9e8aba
DE
46474
46475
a848cd7e 46476 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
46477 if test "x${host}" = "x" ; then
46478 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
46479echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
46480 { (exit 1); exit 1; }; }
46481 fi
46482
a848cd7e
SC
46483 BAKEFILE_HOST="${host}"
46484 fi
46485
46486 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
46487
46488 if test -n "$ac_tool_prefix"; then
46489 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
46490set dummy ${ac_tool_prefix}ranlib; ac_word=$2
46491echo "$as_me:$LINENO: checking for $ac_word" >&5
46492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46493if test "${ac_cv_prog_RANLIB+set}" = set; then
46494 echo $ECHO_N "(cached) $ECHO_C" >&6
46495else
46496 if test -n "$RANLIB"; then
46497 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
46498else
46499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46500for as_dir in $PATH
46501do
46502 IFS=$as_save_IFS
46503 test -z "$as_dir" && as_dir=.
46504 for ac_exec_ext in '' $ac_executable_extensions; do
46505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46506 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
46507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46508 break 2
46509 fi
46510done
46511done
46512
46513fi
46514fi
46515RANLIB=$ac_cv_prog_RANLIB
46516if test -n "$RANLIB"; then
46517 echo "$as_me:$LINENO: result: $RANLIB" >&5
46518echo "${ECHO_T}$RANLIB" >&6
46519else
46520 echo "$as_me:$LINENO: result: no" >&5
46521echo "${ECHO_T}no" >&6
46522fi
46523
46524fi
46525if test -z "$ac_cv_prog_RANLIB"; then
46526 ac_ct_RANLIB=$RANLIB
46527 # Extract the first word of "ranlib", so it can be a program name with args.
46528set dummy ranlib; ac_word=$2
46529echo "$as_me:$LINENO: checking for $ac_word" >&5
46530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46531if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
46532 echo $ECHO_N "(cached) $ECHO_C" >&6
46533else
46534 if test -n "$ac_ct_RANLIB"; then
46535 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
46536else
46537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46538for as_dir in $PATH
46539do
46540 IFS=$as_save_IFS
46541 test -z "$as_dir" && as_dir=.
46542 for ac_exec_ext in '' $ac_executable_extensions; do
46543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46544 ac_cv_prog_ac_ct_RANLIB="ranlib"
46545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46546 break 2
46547 fi
46548done
46549done
46550
46551 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
46552fi
46553fi
46554ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
46555if test -n "$ac_ct_RANLIB"; then
46556 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
46557echo "${ECHO_T}$ac_ct_RANLIB" >&6
46558else
46559 echo "$as_me:$LINENO: result: no" >&5
46560echo "${ECHO_T}no" >&6
46561fi
46562
46563 RANLIB=$ac_ct_RANLIB
46564else
46565 RANLIB="$ac_cv_prog_RANLIB"
46566fi
46567
46568 # Find a good install program. We prefer a C program (faster),
46569# so one script is as good as another. But avoid the broken or
46570# incompatible versions:
46571# SysV /etc/install, /usr/sbin/install
46572# SunOS /usr/etc/install
46573# IRIX /sbin/install
46574# AIX /bin/install
46575# AmigaOS /C/install, which installs bootblocks on floppy discs
46576# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
46577# AFS /usr/afsws/bin/install, which mishandles nonexistent args
46578# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 46579# OS/2's system install, which has a completely different semantic
a848cd7e
SC
46580# ./install, which can be erroneously created by make from ./install.sh.
46581echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
46582echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
46583if test -z "$INSTALL"; then
46584if test "${ac_cv_path_install+set}" = set; then
46585 echo $ECHO_N "(cached) $ECHO_C" >&6
46586else
46587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46588for as_dir in $PATH
46589do
46590 IFS=$as_save_IFS
46591 test -z "$as_dir" && as_dir=.
46592 # Account for people who put trailing slashes in PATH elements.
46593case $as_dir/ in
46594 ./ | .// | /cC/* | \
46595 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 46596 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
46597 /usr/ucb/* ) ;;
46598 *)
46599 # OSF1 and SCO ODT 3.0 have their own names for install.
46600 # Don't use installbsd from OSF since it installs stuff as root
46601 # by default.
46602 for ac_prog in ginstall scoinst install; do
46603 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
46604 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
46605 if test $ac_prog = install &&
46606 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46607 # AIX install. It has an incompatible calling convention.
46608 :
46609 elif test $ac_prog = install &&
46610 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46611 # program-specific install script used by HP pwplus--don't use.
46612 :
46613 else
46614 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
46615 break 3
46616 fi
46617 fi
a848cd7e
SC
46618 done
46619 done
46620 ;;
46621esac
46622done
46623
46624
46625fi
46626 if test "${ac_cv_path_install+set}" = set; then
46627 INSTALL=$ac_cv_path_install
46628 else
46629 # As a last resort, use the slow shell script. We don't cache a
46630 # path for INSTALL within a source directory, because that will
46631 # break other packages using the cache if that directory is
46632 # removed, or if the path is relative.
46633 INSTALL=$ac_install_sh
46634 fi
46635fi
46636echo "$as_me:$LINENO: result: $INSTALL" >&5
46637echo "${ECHO_T}$INSTALL" >&6
46638
46639# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
46640# It thinks the first close brace ends the variable substitution.
46641test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
46642
46643test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
46644
46645test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
46646
46647 echo "$as_me:$LINENO: checking whether ln -s works" >&5
46648echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
46649LN_S=$as_ln_s
46650if test "$LN_S" = "ln -s"; then
46651 echo "$as_me:$LINENO: result: yes" >&5
46652echo "${ECHO_T}yes" >&6
46653else
46654 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
46655echo "${ECHO_T}no, using $LN_S" >&6
46656fi
46657
46658
46659 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46660echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 46661set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
46662if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46663 echo $ECHO_N "(cached) $ECHO_C" >&6
46664else
46665 cat >conftest.make <<\_ACEOF
46666all:
46667 @echo 'ac_maketemp="$(MAKE)"'
46668_ACEOF
46669# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46670eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46671if test -n "$ac_maketemp"; then
46672 eval ac_cv_prog_make_${ac_make}_set=yes
46673else
46674 eval ac_cv_prog_make_${ac_make}_set=no
46675fi
46676rm -f conftest.make
46677fi
46678if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46679 echo "$as_me:$LINENO: result: yes" >&5
46680echo "${ECHO_T}yes" >&6
46681 SET_MAKE=
46682else
46683 echo "$as_me:$LINENO: result: no" >&5
46684echo "${ECHO_T}no" >&6
46685 SET_MAKE="MAKE=${MAKE-make}"
46686fi
46687
46688
46689
46690 if test -n "$ac_tool_prefix"; then
46691 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
46692set dummy ${ac_tool_prefix}ar; ac_word=$2
46693echo "$as_me:$LINENO: checking for $ac_word" >&5
46694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46695if test "${ac_cv_prog_AR+set}" = set; then
46696 echo $ECHO_N "(cached) $ECHO_C" >&6
46697else
46698 if test -n "$AR"; then
46699 ac_cv_prog_AR="$AR" # Let the user override the test.
46700else
46701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46702for as_dir in $PATH
46703do
46704 IFS=$as_save_IFS
46705 test -z "$as_dir" && as_dir=.
46706 for ac_exec_ext in '' $ac_executable_extensions; do
46707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46708 ac_cv_prog_AR="${ac_tool_prefix}ar"
46709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46710 break 2
46711 fi
46712done
46713done
46714
46715fi
46716fi
46717AR=$ac_cv_prog_AR
46718if test -n "$AR"; then
46719 echo "$as_me:$LINENO: result: $AR" >&5
46720echo "${ECHO_T}$AR" >&6
46721else
46722 echo "$as_me:$LINENO: result: no" >&5
46723echo "${ECHO_T}no" >&6
46724fi
46725
46726fi
46727if test -z "$ac_cv_prog_AR"; then
46728 ac_ct_AR=$AR
46729 # Extract the first word of "ar", so it can be a program name with args.
46730set dummy ar; ac_word=$2
46731echo "$as_me:$LINENO: checking for $ac_word" >&5
46732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46733if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
46734 echo $ECHO_N "(cached) $ECHO_C" >&6
46735else
46736 if test -n "$ac_ct_AR"; then
46737 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
46738else
46739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46740for as_dir in $PATH
46741do
46742 IFS=$as_save_IFS
46743 test -z "$as_dir" && as_dir=.
46744 for ac_exec_ext in '' $ac_executable_extensions; do
46745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46746 ac_cv_prog_ac_ct_AR="ar"
46747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46748 break 2
46749 fi
46750done
46751done
46752
46753 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
46754fi
46755fi
46756ac_ct_AR=$ac_cv_prog_ac_ct_AR
46757if test -n "$ac_ct_AR"; then
46758 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
46759echo "${ECHO_T}$ac_ct_AR" >&6
46760else
46761 echo "$as_me:$LINENO: result: no" >&5
46762echo "${ECHO_T}no" >&6
46763fi
46764
46765 AR=$ac_ct_AR
46766else
46767 AR="$ac_cv_prog_AR"
46768fi
46769
46770 if test -n "$ac_tool_prefix"; then
46771 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
46772set dummy ${ac_tool_prefix}strip; ac_word=$2
46773echo "$as_me:$LINENO: checking for $ac_word" >&5
46774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46775if test "${ac_cv_prog_STRIP+set}" = set; then
46776 echo $ECHO_N "(cached) $ECHO_C" >&6
46777else
46778 if test -n "$STRIP"; then
46779 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
46780else
46781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46782for as_dir in $PATH
46783do
46784 IFS=$as_save_IFS
46785 test -z "$as_dir" && as_dir=.
46786 for ac_exec_ext in '' $ac_executable_extensions; do
46787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46788 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
46789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46790 break 2
46791 fi
46792done
46793done
46794
46795fi
46796fi
46797STRIP=$ac_cv_prog_STRIP
46798if test -n "$STRIP"; then
46799 echo "$as_me:$LINENO: result: $STRIP" >&5
46800echo "${ECHO_T}$STRIP" >&6
46801else
46802 echo "$as_me:$LINENO: result: no" >&5
46803echo "${ECHO_T}no" >&6
46804fi
46805
46806fi
46807if test -z "$ac_cv_prog_STRIP"; then
46808 ac_ct_STRIP=$STRIP
46809 # Extract the first word of "strip", so it can be a program name with args.
46810set dummy strip; ac_word=$2
46811echo "$as_me:$LINENO: checking for $ac_word" >&5
46812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46813if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
46814 echo $ECHO_N "(cached) $ECHO_C" >&6
46815else
46816 if test -n "$ac_ct_STRIP"; then
46817 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
46818else
46819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46820for as_dir in $PATH
46821do
46822 IFS=$as_save_IFS
46823 test -z "$as_dir" && as_dir=.
46824 for ac_exec_ext in '' $ac_executable_extensions; do
46825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46826 ac_cv_prog_ac_ct_STRIP="strip"
46827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46828 break 2
46829 fi
46830done
46831done
46832
46833 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
46834fi
46835fi
46836ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
46837if test -n "$ac_ct_STRIP"; then
46838 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
46839echo "${ECHO_T}$ac_ct_STRIP" >&6
46840else
46841 echo "$as_me:$LINENO: result: no" >&5
46842echo "${ECHO_T}no" >&6
46843fi
46844
46845 STRIP=$ac_ct_STRIP
46846else
46847 STRIP="$ac_cv_prog_STRIP"
46848fi
46849
46850 if test -n "$ac_tool_prefix"; then
46851 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
46852set dummy ${ac_tool_prefix}nm; ac_word=$2
46853echo "$as_me:$LINENO: checking for $ac_word" >&5
46854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46855if test "${ac_cv_prog_NM+set}" = set; then
46856 echo $ECHO_N "(cached) $ECHO_C" >&6
46857else
46858 if test -n "$NM"; then
46859 ac_cv_prog_NM="$NM" # Let the user override the test.
46860else
46861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46862for as_dir in $PATH
46863do
46864 IFS=$as_save_IFS
46865 test -z "$as_dir" && as_dir=.
46866 for ac_exec_ext in '' $ac_executable_extensions; do
46867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46868 ac_cv_prog_NM="${ac_tool_prefix}nm"
46869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46870 break 2
46871 fi
46872done
46873done
46874
46875fi
46876fi
46877NM=$ac_cv_prog_NM
46878if test -n "$NM"; then
46879 echo "$as_me:$LINENO: result: $NM" >&5
46880echo "${ECHO_T}$NM" >&6
46881else
46882 echo "$as_me:$LINENO: result: no" >&5
46883echo "${ECHO_T}no" >&6
46884fi
46885
46886fi
46887if test -z "$ac_cv_prog_NM"; then
46888 ac_ct_NM=$NM
46889 # Extract the first word of "nm", so it can be a program name with args.
46890set dummy nm; ac_word=$2
46891echo "$as_me:$LINENO: checking for $ac_word" >&5
46892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46893if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
46894 echo $ECHO_N "(cached) $ECHO_C" >&6
46895else
46896 if test -n "$ac_ct_NM"; then
46897 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
46898else
46899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46900for as_dir in $PATH
46901do
46902 IFS=$as_save_IFS
46903 test -z "$as_dir" && as_dir=.
46904 for ac_exec_ext in '' $ac_executable_extensions; do
46905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46906 ac_cv_prog_ac_ct_NM="nm"
46907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46908 break 2
46909 fi
46910done
46911done
46912
46913 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
46914fi
46915fi
46916ac_ct_NM=$ac_cv_prog_ac_ct_NM
46917if test -n "$ac_ct_NM"; then
46918 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
46919echo "${ECHO_T}$ac_ct_NM" >&6
46920else
46921 echo "$as_me:$LINENO: result: no" >&5
46922echo "${ECHO_T}no" >&6
46923fi
46924
46925 NM=$ac_ct_NM
46926else
46927 NM="$ac_cv_prog_NM"
46928fi
46929
46930
46931 case ${BAKEFILE_HOST} in
46932 *-hp-hpux* )
1e9e8aba 46933 INSTALL_DIR="mkdir -p"
a848cd7e
SC
46934 ;;
46935 *) INSTALL_DIR="$INSTALL -d"
46936 ;;
46937 esac
46938
46939
46940 LDFLAGS_GUI=
46941 case ${BAKEFILE_HOST} in
46942 *-*-cygwin* | *-*-mingw32* )
46943 LDFLAGS_GUI="-mwindows"
46944 esac
46945
46946
46947 fi
46948
46949 echo "$as_me:$LINENO: checking if make is GNU make" >&5
46950echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
46951if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
46952 echo $ECHO_N "(cached) $ECHO_C" >&6
46953else
46954
46955 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
46956 egrep -s GNU > /dev/null); then
46957 bakefile_cv_prog_makeisgnu="yes"
46958 else
46959 bakefile_cv_prog_makeisgnu="no"
46960 fi
46961
46962fi
46963echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
46964echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
46965
46966 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
46967 IF_GNU_MAKE=""
46968 else
46969 IF_GNU_MAKE="#"
46970 fi
46971
46972
46973
46974 PLATFORM_UNIX=0
46975 PLATFORM_WIN32=0
46976 PLATFORM_MSDOS=0
46977 PLATFORM_MAC=0
1e9e8aba 46978 PLATFORM_MACOS=0
a848cd7e
SC
46979 PLATFORM_MACOSX=0
46980 PLATFORM_OS2=0
1e9e8aba 46981 PLATFORM_BEOS=0
a848cd7e
SC
46982
46983 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
46984 case "${BAKEFILE_HOST}" in
810b94f0 46985 *-*-mingw32* )
a848cd7e
SC
46986 PLATFORM_WIN32=1
46987 ;;
46988 *-pc-msdosdjgpp )
46989 PLATFORM_MSDOS=1
46990 ;;
46991 *-pc-os2_emx | *-pc-os2-emx )
46992 PLATFORM_OS2=1
46993 ;;
47bd5406 46994 *-*-darwin* )
a848cd7e
SC
46995 PLATFORM_MAC=1
46996 PLATFORM_MACOSX=1
46997 ;;
1e9e8aba
DE
46998 *-*-beos* )
46999 PLATFORM_BEOS=1
47000 ;;
47001 powerpc-apple-macos* )
47002 PLATFORM_MAC=1
47003 PLATFORM_MACOS=1
47004 ;;
a848cd7e
SC
47005 * )
47006 PLATFORM_UNIX=1
47007 ;;
47008 esac
47009 else
47010 case "$BAKEFILE_FORCE_PLATFORM" in
47011 win32 )
47012 PLATFORM_WIN32=1
47013 ;;
47014 msdos )
47015 PLATFORM_MSDOS=1
47016 ;;
47017 os2 )
47018 PLATFORM_OS2=1
47019 ;;
47020 darwin )
47021 PLATFORM_MAC=1
47022 PLATFORM_MACOSX=1
47023 ;;
47024 unix )
47025 PLATFORM_UNIX=1
47026 ;;
1e9e8aba
DE
47027 beos )
47028 PLATFORM_BEOS=1
47029 ;;
a848cd7e
SC
47030 * )
47031 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
47032echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
47033 { (exit 1); exit 1; }; }
47034 ;;
47035 esac
47036 fi
47037
47038
47039
47040
47041
47042
47043
47044
47045
1e9e8aba
DE
47046
47047
a848cd7e
SC
47048 # Check whether --enable-omf or --disable-omf was given.
47049if test "${enable_omf+set}" = set; then
47050 enableval="$enable_omf"
47051 bk_os2_use_omf="$enableval"
47052fi;
47053
47054 case "${BAKEFILE_HOST}" in
47055 *-*-darwin* )
47bd5406
VZ
47056 if test "x$GCC" = "xyes"; then
47057 CFLAGS="$CFLAGS -fno-common"
47058 CXXFLAGS="$CXXFLAGS -fno-common"
47059 fi
47060 if test "x$XLCC" = "xyes"; then
47061 CFLAGS="$CFLAGS -qnocommon"
47062 CXXFLAGS="$CXXFLAGS -qnocommon"
47063 fi
a848cd7e
SC
47064 ;;
47065
47066 *-pc-os2_emx | *-pc-os2-emx )
47067 if test "x$bk_os2_use_omf" = "xyes" ; then
47068 AR=emxomfar
47069 RANLIB=:
47070 LDFLAGS="-Zomf $LDFLAGS"
47071 CFLAGS="-Zomf $CFLAGS"
47072 CXXFLAGS="-Zomf $CXXFLAGS"
47073 OS2_LIBEXT="lib"
47074 else
47075 OS2_LIBEXT="a"
47076 fi
47077 ;;
1e9e8aba
DE
47078
47079 i*86-*-beos* )
47080 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
47081 ;;
a848cd7e
SC
47082 esac
47083
47084
47085 SO_SUFFIX="so"
47086 SO_SUFFIX_MODULE="so"
47087 EXEEXT=""
47088 LIBPREFIX="lib"
47089 LIBEXT=".a"
47090 DLLPREFIX="lib"
47091 DLLPREFIX_MODULE=""
47092 DLLIMP_SUFFIX=""
810b94f0 47093 dlldir="$libdir"
a848cd7e
SC
47094
47095 case "${BAKEFILE_HOST}" in
47096 *-hp-hpux* )
47097 SO_SUFFIX="sl"
47098 SO_SUFFIX_MODULE="sl"
47099 ;;
47100 *-*-aix* )
47101 SO_SUFFIX="a"
47102 SO_SUFFIX_MODULE="a"
47103 ;;
810b94f0
MW
47104 *-*-cygwin* )
47105 SO_SUFFIX="dll"
47106 SO_SUFFIX_MODULE="dll"
47107 DLLIMP_SUFFIX="dll.a"
47108 EXEEXT=".exe"
47109 DLLPREFIX="cyg"
47110 dlldir="$bindir"
47111 ;;
47112 *-*-mingw32* )
a848cd7e
SC
47113 SO_SUFFIX="dll"
47114 SO_SUFFIX_MODULE="dll"
47115 DLLIMP_SUFFIX="dll.a"
47116 EXEEXT=".exe"
47117 DLLPREFIX=""
810b94f0 47118 dlldir="$bindir"
a848cd7e
SC
47119 ;;
47120 *-pc-msdosdjgpp )
47121 EXEEXT=".exe"
47122 DLLPREFIX=""
810b94f0 47123 dlldir="$bindir"
a848cd7e
SC
47124 ;;
47125 *-pc-os2_emx | *-pc-os2-emx )
47126 SO_SUFFIX="dll"
47127 SO_SUFFIX_MODULE="dll"
47128 DLLIMP_SUFFIX=$OS2_LIBEXT
47129 EXEEXT=".exe"
47130 DLLPREFIX=""
47131 LIBPREFIX=""
47132 LIBEXT=".$OS2_LIBEXT"
810b94f0 47133 dlldir="$bindir"
a848cd7e 47134 ;;
47bd5406 47135 *-*-darwin* )
a848cd7e
SC
47136 SO_SUFFIX="dylib"
47137 SO_SUFFIX_MODULE="bundle"
47138 ;;
47139 esac
47140
47141 if test "x$DLLIMP_SUFFIX" = "x" ; then
47142 DLLIMP_SUFFIX="$SO_SUFFIX"
47143 fi
47144
47145
47146
47147
47148
47149
47150
47151
47152
47153
47154
810b94f0 47155
1e9e8aba
DE
47156 PIC_FLAG=""
47157 if test "x$GCC" = "xyes"; then
a848cd7e
SC
47158 PIC_FLAG="-fPIC"
47159 fi
47160
1e9e8aba
DE
47161 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
47162 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 47163 WINDOWS_IMPLIB=0
1e9e8aba 47164
a848cd7e
SC
47165 case "${BAKEFILE_HOST}" in
47166 *-hp-hpux* )
1e9e8aba 47167 if test "x$GCC" != "xyes"; then
a848cd7e
SC
47168 LDFLAGS="$LDFLAGS -L/usr/lib"
47169
47170 SHARED_LD_CC="${CC} -b -o"
47171 SHARED_LD_CXX="${CXX} -b -o"
47172 PIC_FLAG="+Z"
47173 fi
47174 ;;
47175
47176 *-*-linux* )
47177 if test "x$GCC" != "xyes"; then
47178 echo "$as_me:$LINENO: checking for Intel compiler" >&5
47179echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
47180if test "${bakefile_cv_prog_icc+set}" = set; then
47181 echo $ECHO_N "(cached) $ECHO_C" >&6
47182else
47183
47184 cat >conftest.$ac_ext <<_ACEOF
47185/* confdefs.h. */
47186_ACEOF
47187cat confdefs.h >>conftest.$ac_ext
47188cat >>conftest.$ac_ext <<_ACEOF
47189/* end confdefs.h. */
47190
47191int
47192main ()
47193{
47194
47195 #ifndef __INTEL_COMPILER
e5efa97e 47196 This is not ICC
a848cd7e
SC
47197 #endif
47198
47199 ;
47200 return 0;
47201}
47202_ACEOF
47203rm -f conftest.$ac_objext
47204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47205 (eval $ac_compile) 2>conftest.er1
a848cd7e 47206 ac_status=$?
ac1cb8d3
VS
47207 grep -v '^ *+' conftest.er1 >conftest.err
47208 rm -f conftest.er1
47209 cat conftest.err >&5
a848cd7e
SC
47210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47211 (exit $ac_status); } &&
ca5c6ac3 47212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
47213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47214 (eval $ac_try) 2>&5
47215 ac_status=$?
47216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47217 (exit $ac_status); }; } &&
47218 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47220 (eval $ac_try) 2>&5
47221 ac_status=$?
47222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47223 (exit $ac_status); }; }; then
47224 bakefile_cv_prog_icc=yes
47225else
47226 echo "$as_me: failed program was:" >&5
47227sed 's/^/| /' conftest.$ac_ext >&5
47228
47229bakefile_cv_prog_icc=no
47230
47231fi
ac1cb8d3 47232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
47233
47234fi
47235echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
47236echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
47237 if test "$bakefile_cv_prog_icc" = "yes"; then
47238 PIC_FLAG="-KPIC"
47239 fi
47240 fi
47241 ;;
47242
47243 *-*-solaris2* )
47244 if test "x$GCC" != xyes ; then
47245 SHARED_LD_CC="${CC} -G -o"
47246 SHARED_LD_CXX="${CXX} -G -o"
47247 PIC_FLAG="-KPIC"
47248 fi
47249 ;;
47250
47251 *-*-darwin* )
47252
473276a9
VS
47253D='$'
47254cat <<EOF >shared-ld-sh
a848cd7e
SC
47255#!/bin/sh
47256#-----------------------------------------------------------------------------
47257#-- Name: distrib/mac/shared-ld-sh
47258#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
47259#-- Author: Gilles Depeyrot
47260#-- Copyright: (c) 2002 Gilles Depeyrot
47261#-- Licence: any use permitted
47262#-----------------------------------------------------------------------------
47263
47264verbose=0
47265args=""
47266objects=""
47267linking_flag="-dynamiclib"
810b94f0 47268ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 47269
473276a9
VS
47270while test ${D}# -gt 0; do
47271 case ${D}1 in
a848cd7e
SC
47272
47273 -v)
47274 verbose=1
47275 ;;
47276
47277 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
47278 # collect these options and values
473276a9 47279 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
47280 shift
47281 ;;
47282
810b94f0
MW
47283 -s|-Wl,*)
47284 # collect these load args
47285 ldargs="${D}{ldargs} ${D}1"
2113bc77 47286 ;;
810b94f0
MW
47287
47288 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 47289 # collect these options
473276a9 47290 args="${D}{args} ${D}1"
a848cd7e
SC
47291 ;;
47292
47293 -dynamiclib|-bundle)
473276a9 47294 linking_flag="${D}1"
a848cd7e
SC
47295 ;;
47296
47297 -*)
473276a9 47298 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
47299 exit 1
47300 ;;
47301
47302 *.o | *.a | *.dylib)
47303 # collect object files
473276a9 47304 objects="${D}{objects} ${D}1"
a848cd7e
SC
47305 ;;
47306
47307 *)
473276a9 47308 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
47309 exit 1
47310 ;;
47311
47312 esac
47313 shift
47314done
47315
810b94f0
MW
47316status=0
47317
a848cd7e
SC
47318#
47319# Link one module containing all the others
47320#
473276a9 47321if test ${D}{verbose} = 1; then
810b94f0 47322 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 47323fi
810b94f0 47324c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 47325status=${D}?
a848cd7e
SC
47326
47327#
810b94f0
MW
47328# Link the shared library from the single module created, but only if the
47329# previous command didn't fail:
a848cd7e 47330#
810b94f0
MW
47331if test ${D}{status} = 0; then
47332 if test ${D}{verbose} = 1; then
47333 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
47334 fi
47335 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
47336 status=${D}?
a848cd7e
SC
47337fi
47338
47339#
47340# Remove intermediate module
47341#
473276a9 47342rm -f master.${D}${D}.o
a848cd7e 47343
810b94f0 47344exit ${D}status
a848cd7e 47345EOF
473276a9 47346
583d6b4b
VZ
47347 chmod +x shared-ld-sh
47348
47349 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
47350 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
47351
47352
47353 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
47354echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
47355if test "${bakefile_cv_gcc31+set}" = set; then
47356 echo $ECHO_N "(cached) $ECHO_C" >&6
47357else
47358
47359 cat >conftest.$ac_ext <<_ACEOF
47360/* confdefs.h. */
47361_ACEOF
47362cat confdefs.h >>conftest.$ac_ext
47363cat >>conftest.$ac_ext <<_ACEOF
47364/* end confdefs.h. */
47365
47366int
47367main ()
47368{
47369
47370 #if (__GNUC__ < 3) || \
47371 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 47372 This is old gcc
583d6b4b 47373 #endif
a848cd7e 47374
583d6b4b
VZ
47375 ;
47376 return 0;
47377}
47378_ACEOF
47379rm -f conftest.$ac_objext
47380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47381 (eval $ac_compile) 2>conftest.er1
47382 ac_status=$?
47383 grep -v '^ *+' conftest.er1 >conftest.err
47384 rm -f conftest.er1
47385 cat conftest.err >&5
47386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47387 (exit $ac_status); } &&
ca5c6ac3 47388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
47389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47390 (eval $ac_try) 2>&5
47391 ac_status=$?
47392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47393 (exit $ac_status); }; } &&
47394 { ac_try='test -s conftest.$ac_objext'
47395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47396 (eval $ac_try) 2>&5
47397 ac_status=$?
47398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47399 (exit $ac_status); }; }; then
47400
47401 bakefile_cv_gcc31=yes
47402
47403else
47404 echo "$as_me: failed program was:" >&5
47405sed 's/^/| /' conftest.$ac_ext >&5
47406
47407
47408 bakefile_cv_gcc31=no
47409
47410
47411fi
47412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47413
47414fi
47415echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
47416echo "${ECHO_T}$bakefile_cv_gcc31" >&6
47417 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 47418 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 47419 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
47420 else
47421 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 47422 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
47423 fi
47424
47bd5406
VZ
47425 if test "x$GCC" == "xyes"; then
47426 PIC_FLAG="-dynamic -fPIC"
47427 fi
47428 if test "x$XLCC" = "xyes"; then
47429 PIC_FLAG="-dynamic -DPIC"
47430 fi
a848cd7e
SC
47431 ;;
47432
47433 *-*-aix* )
f6b50c59 47434 if test "x$GCC" = "xyes"; then
583d6b4b 47435 PIC_FLAG=""
f6b50c59 47436
583d6b4b
VZ
47437 case "${BAKEFILE_HOST}" in
47438 *-*-aix5* )
47439 LD_EXPFULL="-Wl,-bexpfull"
47440 ;;
47441 esac
f6b50c59 47442
583d6b4b
VZ
47443 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
47444 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
47445 else
47446 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
47447set dummy makeC++SharedLib; ac_word=$2
47448echo "$as_me:$LINENO: checking for $ac_word" >&5
47449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47450if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
47451 echo $ECHO_N "(cached) $ECHO_C" >&6
47452else
47453 if test -n "$AIX_CXX_LD"; then
47454 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
47455else
47456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47457for as_dir in $PATH
47458do
47459 IFS=$as_save_IFS
47460 test -z "$as_dir" && as_dir=.
47461 for ac_exec_ext in '' $ac_executable_extensions; do
47462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47463 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
47464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47465 break 2
47466 fi
47467done
47468done
47469
47470 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
47471fi
47472fi
47473AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
47474if test -n "$AIX_CXX_LD"; then
47475 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
47476echo "${ECHO_T}$AIX_CXX_LD" >&6
47477else
47478 echo "$as_me:$LINENO: result: no" >&5
47479echo "${ECHO_T}no" >&6
47480fi
47481
f6b50c59 47482 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
47483 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
47484 fi
47485 ;;
47486
47487 *-*-beos* )
1e9e8aba
DE
47488 SHARED_LD_CC="${LD} -nostart -o"
47489 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
47490 ;;
47491
47492 *-*-irix* )
47493 if test "x$GCC" != "xyes"; then
47494 PIC_FLAG="-KPIC"
47495 fi
47496 ;;
47497
47498 *-*-cygwin* | *-*-mingw32* )
47499 PIC_FLAG=""
1e9e8aba
DE
47500 SHARED_LD_CC="\$(CC) -shared -o"
47501 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 47502 WINDOWS_IMPLIB=1
a848cd7e
SC
47503 ;;
47504
47505 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
47506 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47507 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 47508 PIC_FLAG=""
473276a9
VS
47509
47510D='$'
47511cat <<EOF >dllar.sh
47512#!/bin/sh
47513#
47514# dllar - a tool to build both a .dll and an .a file
47515# from a set of object (.o) files for EMX/OS2.
47516#
47517# Written by Andrew Zabolotny, bit@freya.etu.ru
47518# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
47519#
47520# This script will accept a set of files on the command line.
47521# All the public symbols from the .o files will be exported into
47522# a .DEF file, then linker will be run (through gcc) against them to
47523# build a shared library consisting of all given .o files. All libraries
47524# (.a) will be first decompressed into component .o files then act as
47525# described above. You can optionally give a description (-d "description")
47526# which will be put into .DLL. To see the list of accepted options (as well
47527# as command-line format) simply run this program without options. The .DLL
47528# is built to be imported by name (there is no guarantee that new versions
47529# of the library you build will have same ordinals for same symbols).
47530#
47531# dllar is free software; you can redistribute it and/or modify
47532# it under the terms of the GNU General Public License as published by
47533# the Free Software Foundation; either version 2, or (at your option)
47534# any later version.
47535#
47536# dllar is distributed in the hope that it will be useful,
47537# but WITHOUT ANY WARRANTY; without even the implied warranty of
47538# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47539# GNU General Public License for more details.
47540#
47541# You should have received a copy of the GNU General Public License
47542# along with dllar; see the file COPYING. If not, write to the Free
47543# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
47544# 02111-1307, USA.
47545
47546# To successfuly run this program you will need:
47547# - Current drive should have LFN support (HPFS, ext2, network, etc)
47548# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
47549# - gcc
47550# (used to build the .dll)
47551# - emxexp
47552# (used to create .def file from .o files)
47553# - emximp
47554# (used to create .a file from .def file)
47555# - GNU text utilites (cat, sort, uniq)
47556# used to process emxexp output
47557# - GNU file utilities (mv, rm)
47558# - GNU sed
47559# - lxlite (optional, see flag below)
47560# (used for general .dll cleanup)
47561#
47562
47563flag_USE_LXLITE=1;
47564
47565#
47566# helper functions
47567# basnam, variant of basename, which does _not_ remove the path, _iff_
47568# second argument (suffix to remove) is given
47569basnam(){
47570 case ${D}# in
47571 1)
1e9e8aba 47572 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
47573 ;;
47574 2)
47575 echo ${D}1 | sed 's/'${D}2'${D}//'
47576 ;;
47577 *)
47578 echo "error in basnam ${D}*"
47579 exit 8
47580 ;;
47581 esac
47582}
47583
47584# Cleanup temporary files and output
47585CleanUp() {
47586 cd ${D}curDir
47587 for i in ${D}inputFiles ; do
47588 case ${D}i in
47589 *!)
47590 rm -rf \`basnam ${D}i !\`
47591 ;;
47592 *)
47593 ;;
47594 esac
47595 done
47596
47597 # Kill result in case of failure as there is just to many stupid make/nmake
47598 # things out there which doesn't do this.
1e9e8aba 47599 if [ ${D}# -eq 0 ]; then
473276a9
VS
47600 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
47601 fi
47602}
47603
47604# Print usage and exit script with rc=1.
47605PrintHelp() {
b1d22ded
DE
47606 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
47607 echo ' [-name-mangler-script script.sh]'
47608 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
47609 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
47610 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 47611 echo ' [*.o] [*.a]'
473276a9
VS
47612 echo '*> "output_file" should have no extension.'
47613 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
47614 echo ' The import library name is derived from this and is set to "name".a,'
47615 echo ' unless overridden by -import'
47616 echo '*> "importlib_name" should have no extension.'
47617 echo ' If it has the .o, or .a extension, it is automatically removed.'
47618 echo ' This name is used as the import library name and may be longer and'
47619 echo ' more descriptive than the DLL name which has to follow the old '
47620 echo ' 8.3 convention of FAT.'
b1d22ded
DE
47621 echo '*> "script.sh may be given to override the output_file name by a'
47622 echo ' different name. It is mainly useful if the regular make process'
47623 echo ' of some package does not take into account OS/2 restriction of'
47624 echo ' DLL name lengths. It takes the importlib name as input and is'
47625 echo ' supposed to procude a shorter name as output. The script should'
47626 echo ' expect to get importlib_name without extension and should produce'
47627 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
47628 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
47629 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
47630 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
47631 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
47632 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
47633 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
47634 echo ' If the last character of a symbol is "*", all symbols beginning'
47635 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 47636 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 47637 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 47638 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 47639 echo ' C runtime DLLs.'
b1d22ded 47640 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
47641 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
47642 echo ' unchanged to GCC at the end of command line.'
47643 echo '*> If you create a DLL from a library and you do not specify -o,'
47644 echo ' the basename for DLL and import library will be set to library name,'
47645 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
47646 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
47647 echo ' library will be renamed into gcc_s.a.'
47648 echo '--------'
47649 echo 'Example:'
47650 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
47651 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
47652 CleanUp
47653 exit 1
47654}
47655
47656# Execute a command.
47657# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
47658# @Uses Whatever CleanUp() uses.
47659doCommand() {
47660 echo "${D}*"
47661 eval ${D}*
47662 rcCmd=${D}?
47663
1e9e8aba 47664 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
47665 echo "command failed, exit code="${D}rcCmd
47666 CleanUp
47667 exit ${D}rcCmd
47668 fi
47669}
47670
47671# main routine
47672# setup globals
47673cmdLine=${D}*
47674outFile=""
47675outimpFile=""
47676inputFiles=""
b1d22ded 47677renameScript=""
473276a9
VS
47678description=""
47679CC=gcc.exe
47680CFLAGS="-s -Zcrtdll"
47681EXTRA_CFLAGS=""
47682EXPORT_BY_ORDINALS=0
47683exclude_symbols=""
47684library_flags=""
47685curDir=\`pwd\`
47686curDirS=curDir
47687case ${D}curDirS in
47688*/)
47689 ;;
47690*)
47691 curDirS=${D}{curDirS}"/"
47692 ;;
47693esac
47694# Parse commandline
47695libsToLink=0
b1d22ded 47696omfLinking=0
1e9e8aba 47697while [ ${D}1 ]; do
473276a9
VS
47698 case ${D}1 in
47699 -ord*)
47700 EXPORT_BY_ORDINALS=1;
47701 ;;
47702 -o*)
47703 shift
47704 outFile=${D}1
47705 ;;
47706 -i*)
47707 shift
47708 outimpFile=${D}1
47709 ;;
b1d22ded
DE
47710 -name-mangler-script)
47711 shift
47712 renameScript=${D}1
47713 ;;
473276a9
VS
47714 -d*)
47715 shift
47716 description=${D}1
47717 ;;
47718 -f*)
47719 shift
47720 CFLAGS=${D}1
47721 ;;
47722 -c*)
47723 shift
47724 CC=${D}1
47725 ;;
47726 -h*)
47727 PrintHelp
47728 ;;
47729 -ex*)
47730 shift
47731 exclude_symbols=${D}{exclude_symbols}${D}1" "
47732 ;;
47733 -libf*)
47734 shift
47735 library_flags=${D}{library_flags}${D}1" "
47736 ;;
47737 -nocrt*)
47738 CFLAGS="-s"
47739 ;;
47740 -nolxl*)
47741 flag_USE_LXLITE=0
47742 ;;
47743 -* | /*)
47744 case ${D}1 in
47745 -L* | -l*)
47746 libsToLink=1
47747 ;;
b1d22ded
DE
47748 -Zomf)
47749 omfLinking=1
47750 ;;
473276a9
VS
47751 *)
47752 ;;
47753 esac
47754 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47755 ;;
b1d22ded
DE
47756 *.dll)
47757 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
47758 if [ ${D}omfLinking -eq 1 ]; then
47759 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
47760 else
47761 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
47762 fi
47763 ;;
473276a9
VS
47764 *)
47765 found=0;
1e9e8aba 47766 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
47767 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47768 else
47769 for file in ${D}1 ; do
1e9e8aba 47770 if [ -f ${D}file ]; then
473276a9
VS
47771 inputFiles="${D}{inputFiles} ${D}file"
47772 found=1
47773 fi
47774 done
1e9e8aba 47775 if [ ${D}found -eq 0 ]; then
473276a9
VS
47776 echo "ERROR: No file(s) found: "${D}1
47777 exit 8
47778 fi
47779 fi
47780 ;;
47781 esac
47782 shift
47783done # iterate cmdline words
47784
47785#
1e9e8aba 47786if [ -z "${D}inputFiles" ]; then
473276a9
VS
47787 echo "dllar: no input files"
47788 PrintHelp
47789fi
47790
47791# Now extract all .o files from .a files
47792newInputFiles=""
47793for file in ${D}inputFiles ; do
47794 case ${D}file in
47795 *.a | *.lib)
47796 case ${D}file in
47797 *.a)
47798 suffix=".a"
47799 AR="ar"
47800 ;;
47801 *.lib)
47802 suffix=".lib"
47803 AR="emxomfar"
47804 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
47805 ;;
47806 *)
47807 ;;
47808 esac
47809 dirname=\`basnam ${D}file ${D}suffix\`"_%"
47810 mkdir ${D}dirname
1e9e8aba 47811 if [ ${D}? -ne 0 ]; then
473276a9
VS
47812 echo "Failed to create subdirectory ./${D}dirname"
47813 CleanUp
47814 exit 8;
47815 fi
47816 # Append '!' to indicate archive
47817 newInputFiles="${D}newInputFiles ${D}{dirname}!"
47818 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
47819 cd ${D}curDir
47820 found=0;
47821 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 47822 if [ -f ${D}subfile ]; then
473276a9 47823 found=1
1e9e8aba 47824 if [ -s ${D}subfile ]; then
473276a9
VS
47825 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
47826 newInputFiles="${D}newInputFiles ${D}subfile"
47827 fi
47828 fi
47829 done
1e9e8aba
DE
47830 if [ ${D}found -eq 0 ]; then
47831 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
47832 fi
47833 ;;
47834 *)
47835 newInputFiles="${D}{newInputFiles} ${D}file"
47836 ;;
47837 esac
47838done
47839inputFiles="${D}newInputFiles"
47840
47841# Output filename(s).
47842do_backup=0;
1e9e8aba 47843if [ -z ${D}outFile ]; then
473276a9
VS
47844 do_backup=1;
47845 set outFile ${D}inputFiles; outFile=${D}2
47846fi
47847
47848# If it is an archive, remove the '!' and the '_%' suffixes
47849case ${D}outFile in
47850*_%!)
47851 outFile=\`basnam ${D}outFile _%!\`
47852 ;;
47853*)
47854 ;;
47855esac
47856case ${D}outFile in
47857*.dll)
47858 outFile=\`basnam ${D}outFile .dll\`
47859 ;;
47860*.DLL)
47861 outFile=\`basnam ${D}outFile .DLL\`
47862 ;;
47863*.o)
47864 outFile=\`basnam ${D}outFile .o\`
47865 ;;
47866*.obj)
47867 outFile=\`basnam ${D}outFile .obj\`
47868 ;;
47869*.a)
47870 outFile=\`basnam ${D}outFile .a\`
47871 ;;
47872*.lib)
47873 outFile=\`basnam ${D}outFile .lib\`
47874 ;;
47875*)
47876 ;;
47877esac
47878case ${D}outimpFile in
47879*.a)
47880 outimpFile=\`basnam ${D}outimpFile .a\`
47881 ;;
47882*.lib)
47883 outimpFile=\`basnam ${D}outimpFile .lib\`
47884 ;;
47885*)
47886 ;;
47887esac
1e9e8aba 47888if [ -z ${D}outimpFile ]; then
473276a9
VS
47889 outimpFile=${D}outFile
47890fi
47891defFile="${D}{outFile}.def"
47892arcFile="${D}{outimpFile}.a"
47893arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
47894
47895#create ${D}dllFile as something matching 8.3 restrictions,
47896if [ -z ${D}renameScript ] ; then
47897 dllFile="${D}outFile"
47898else
47899 dllFile=\`${D}renameScript ${D}outimpFile\`
47900fi
473276a9 47901
1e9e8aba
DE
47902if [ ${D}do_backup -ne 0 ] ; then
47903 if [ -f ${D}arcFile ] ; then
473276a9
VS
47904 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
47905 fi
1e9e8aba 47906 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
47907 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
47908 fi
47909fi
47910
47911# Extract public symbols from all the object files.
47912tmpdefFile=${D}{defFile}_%
47913rm -f ${D}tmpdefFile
47914for file in ${D}inputFiles ; do
47915 case ${D}file in
47916 *!)
47917 ;;
47918 *)
47919 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
47920 ;;
47921 esac
47922done
47923
47924# Create the def file.
47925rm -f ${D}defFile
47926echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
47927dllFile="${D}{dllFile}.dll"
47928if [ ! -z ${D}description ]; then
1e9e8aba 47929 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
47930fi
47931echo "EXPORTS" >> ${D}defFile
47932
47933doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
47934grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
47935
47936# Checks if the export is ok or not.
47937for word in ${D}exclude_symbols; do
47938 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
47939 mv ${D}{tmpdefFile}% ${D}tmpdefFile
47940done
47941
47942
1e9e8aba
DE
47943if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
47944 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
47945 sed '
47946 N
47947 : loop
1e9e8aba 47948 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
47949 t loop
47950 ' > ${D}{tmpdefFile}%
47951 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
47952else
47953 rm -f ${D}{tmpdefFile}%
47954fi
47955cat ${D}tmpdefFile >> ${D}defFile
47956rm -f ${D}tmpdefFile
47957
47958# Do linking, create implib, and apply lxlite.
47959gccCmdl="";
47960for file in ${D}inputFiles ; do
47961 case ${D}file in
47962 *!)
47963 ;;
47964 *)
47965 gccCmdl="${D}gccCmdl ${D}file"
47966 ;;
47967 esac
47968done
47969doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
47970touch "${D}{outFile}.dll"
47971
47972doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 47973if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 47974 add_flags="";
1e9e8aba 47975 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
47976 add_flags="-ynd"
47977 fi
47978 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
47979fi
47980doCommand "emxomf -s -l ${D}arcFile"
47981
47982# Successful exit.
47983CleanUp 1
47984exit 0
47985EOF
47986
47987 chmod +x dllar.sh
a848cd7e
SC
47988 ;;
47989
1e9e8aba 47990 powerpc-apple-macos* | \
0ad5d837 47991 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
47992 *-*-sunos4* | \
47993 *-*-osf* | \
47994 *-*-dgux5* | \
47a7e797
MW
47995 *-*-sysv5* | \
47996 *-pc-msdosdjgpp )
a848cd7e
SC
47997 ;;
47998
47999 *)
3ecd9f92 48000 esac
a848cd7e 48001
2057db16
VS
48002 if test "x$PIC_FLAG" != "x" ; then
48003 PIC_FLAG="$PIC_FLAG -DPIC"
48004 fi
48005
a848cd7e
SC
48006 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48007 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48008 fi
48009 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48010 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48011 fi
48012
48013
48014
48015
48016
48017
48018
48019
810b94f0 48020
a848cd7e
SC
48021 USE_SOVERSION=0
48022 USE_SOVERLINUX=0
48023 USE_SOVERSOLARIS=0
810b94f0 48024 USE_SOVERCYGWIN=0
a848cd7e
SC
48025 USE_SOSYMLINKS=0
48026 USE_MACVERSION=0
48027 SONAME_FLAG=
48028
48029 case "${BAKEFILE_HOST}" in
0ad5d837 48030 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
48031 SONAME_FLAG="-Wl,-soname,"
48032 USE_SOVERSION=1
48033 USE_SOVERLINUX=1
48034 USE_SOSYMLINKS=1
48035 ;;
48036
a848cd7e
SC
48037 *-*-solaris2* )
48038 SONAME_FLAG="-h "
48039 USE_SOVERSION=1
48040 USE_SOVERSOLARIS=1
48041 USE_SOSYMLINKS=1
48042 ;;
48043
48044 *-*-darwin* )
48045 USE_MACVERSION=1
48046 USE_SOVERSION=1
48047 USE_SOSYMLINKS=1
48048 ;;
810b94f0
MW
48049
48050 *-*-cygwin* )
48051 USE_SOVERSION=1
48052 USE_SOVERCYGWIN=1
48053 ;;
a848cd7e
SC
48054 esac
48055
48056
48057
48058
48059
48060
48061
48062
48063
810b94f0 48064
f10e38c4
VZ
48065 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
48066if test "${enable_dependency_tracking+set}" = set; then
48067 enableval="$enable_dependency_tracking"
48068 bk_use_trackdeps="$enableval"
48069fi;
48070
a848cd7e
SC
48071 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
48072echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 48073
f10e38c4
VZ
48074 if test "x$bk_use_trackdeps" = "xno" ; then
48075 DEPS_TRACKING=0
48076 echo "$as_me:$LINENO: result: disabled" >&5
48077echo "${ECHO_T}disabled" >&6
48078 else
48079 DEPS_TRACKING=1
48080
48081 if test "x$GCC" = "xyes"; then
48082 DEPSMODE=gcc
48083 case "${BAKEFILE_HOST}" in
48084 *-*-darwin* )
48085 DEPSFLAG="-no-cpp-precomp -MMD"
48086 ;;
48087 * )
48088 DEPSFLAG="-MMD"
48089 ;;
48090 esac
48091 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 48092echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
48093 elif test "x$MWCC" = "xyes"; then
48094 DEPSMODE=mwcc
48095 DEPSFLAG="-MM"
48096 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 48097echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
48098 elif test "x$SUNCC" = "xyes"; then
48099 DEPSMODE=unixcc
48100 DEPSFLAG="-xM1"
48101 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 48102echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
48103 elif test "x$SGICC" = "xyes"; then
48104 DEPSMODE=unixcc
48105 DEPSFLAG="-M"
48106 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 48107echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
48108 elif test "x$HPCC" = "xyes"; then
48109 DEPSMODE=unixcc
48110 DEPSFLAG="+make"
48111 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 48112echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
48113 elif test "x$COMPAQCC" = "xyes"; then
48114 DEPSMODE=gcc
48115 DEPSFLAG="-MD"
48116 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 48117echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
48118 else
48119 DEPS_TRACKING=0
48120 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 48121echo "${ECHO_T}none" >&6
f10e38c4 48122 fi
a848cd7e 48123
f10e38c4 48124 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
48125
48126D='$'
48127cat <<EOF >bk-deps
a848cd7e
SC
48128#!/bin/sh
48129
48130# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48131# script. It is used to track C/C++ files dependencies in portable way.
48132#
48133# Permission is given to use this file in any way.
48134
473276a9 48135DEPSMODE=${DEPSMODE}
a848cd7e 48136DEPSDIR=.deps
0ad5d837 48137DEPSFLAG="${DEPSFLAG}"
a848cd7e 48138
473276a9 48139mkdir -p ${D}DEPSDIR
a848cd7e 48140
473276a9 48141if test ${D}DEPSMODE = gcc ; then
0ad5d837 48142 ${D}* ${D}{DEPSFLAG}
473276a9
VS
48143 status=${D}?
48144 if test ${D}{status} != 0 ; then
48145 exit ${D}{status}
a848cd7e
SC
48146 fi
48147 # move created file to the location we want it in:
473276a9
VS
48148 while test ${D}# -gt 0; do
48149 case "${D}1" in
a848cd7e
SC
48150 -o )
48151 shift
473276a9 48152 objfile=${D}1
a848cd7e
SC
48153 ;;
48154 -* )
48155 ;;
48156 * )
473276a9 48157 srcfile=${D}1
a848cd7e
SC
48158 ;;
48159 esac
48160 shift
48161 done
1e9e8aba
DE
48162 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
48163 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
48164 if test -f ${D}depfile ; then
48165 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48166 rm -f ${D}depfile
a848cd7e 48167 else
a1aa0349 48168 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 48169 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
48170 if test ! -f ${D}depfile ; then
48171 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
48172 depfile="${D}objfile.d"
48173 fi
473276a9
VS
48174 if test -f ${D}depfile ; then
48175 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48176 rm -f ${D}depfile
a848cd7e
SC
48177 fi
48178 fi
48179 exit 0
81f90336 48180elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 48181 ${D}* || exit ${D}?
81f90336
MW
48182 # Run mwcc again with -MM and redirect into the dep file we want
48183 # NOTE: We can't use shift here because we need ${D}* to be valid
48184 prevarg=
48185 for arg in ${D}* ; do
48186 if test "${D}prevarg" = "-o"; then
48187 objfile=${D}arg
48188 else
48189 case "${D}arg" in
48190 -* )
48191 ;;
48192 * )
48193 srcfile=${D}arg
48194 ;;
48195 esac
48196 fi
48197 prevarg="${D}arg"
48198 done
0ad5d837 48199 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 48200 exit 0
0ad5d837 48201elif test ${D}DEPSMODE = unixcc; then
f6b50c59 48202 ${D}* || exit ${D}?
a9e5b1f0
MW
48203 # Run compiler again with deps flag and redirect into the dep file.
48204 # It doesn't work if the '-o FILE' option is used, but without it the
48205 # dependency file will contain the wrong name for the object. So it is
48206 # removed from the command line, and the dep file is fixed with sed.
48207 cmd=""
48208 while test ${D}# -gt 0; do
48209 case "${D}1" in
48210 -o )
48211 shift
48212 objfile=${D}1
48213 ;;
48214 * )
48215 eval arg${D}#=\\${D}1
48216 cmd="${D}cmd \\${D}arg${D}#"
48217 ;;
48218 esac
48219 shift
48220 done
0ad5d837 48221 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 48222 exit 0
a848cd7e 48223else
473276a9
VS
48224 ${D}*
48225 exit ${D}?
a848cd7e
SC
48226fi
48227EOF
473276a9 48228
f10e38c4
VZ
48229 chmod +x bk-deps
48230 fi
a848cd7e
SC
48231 fi
48232
48233
48234
48235
a848cd7e
SC
48236 case ${BAKEFILE_HOST} in
48237 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
48238 if test -n "$ac_tool_prefix"; then
48239 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
48240set dummy ${ac_tool_prefix}windres; ac_word=$2
48241echo "$as_me:$LINENO: checking for $ac_word" >&5
48242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48243if test "${ac_cv_prog_WINDRES+set}" = set; then
48244 echo $ECHO_N "(cached) $ECHO_C" >&6
48245else
48246 if test -n "$WINDRES"; then
48247 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
48248else
48249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48250for as_dir in $PATH
48251do
48252 IFS=$as_save_IFS
48253 test -z "$as_dir" && as_dir=.
48254 for ac_exec_ext in '' $ac_executable_extensions; do
48255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48256 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
48257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48258 break 2
48259 fi
48260done
48261done
48262
48263fi
48264fi
48265WINDRES=$ac_cv_prog_WINDRES
48266if test -n "$WINDRES"; then
48267 echo "$as_me:$LINENO: result: $WINDRES" >&5
48268echo "${ECHO_T}$WINDRES" >&6
48269else
48270 echo "$as_me:$LINENO: result: no" >&5
48271echo "${ECHO_T}no" >&6
48272fi
48273
48274fi
48275if test -z "$ac_cv_prog_WINDRES"; then
48276 ac_ct_WINDRES=$WINDRES
48277 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
48278set dummy windres; ac_word=$2
48279echo "$as_me:$LINENO: checking for $ac_word" >&5
48280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 48281if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
48282 echo $ECHO_N "(cached) $ECHO_C" >&6
48283else
8ced02f6
DE
48284 if test -n "$ac_ct_WINDRES"; then
48285 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
48286else
48287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48288for as_dir in $PATH
48289do
48290 IFS=$as_save_IFS
48291 test -z "$as_dir" && as_dir=.
48292 for ac_exec_ext in '' $ac_executable_extensions; do
48293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 48294 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
48295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48296 break 2
48297 fi
48298done
48299done
48300
a848cd7e
SC
48301fi
48302fi
8ced02f6
DE
48303ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
48304if test -n "$ac_ct_WINDRES"; then
48305 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
48306echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
48307else
48308 echo "$as_me:$LINENO: result: no" >&5
48309echo "${ECHO_T}no" >&6
48310fi
48311
8ced02f6
DE
48312 WINDRES=$ac_ct_WINDRES
48313else
48314 WINDRES="$ac_cv_prog_WINDRES"
48315fi
48316
a848cd7e
SC
48317 ;;
48318
1e9e8aba 48319 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
48320 # Extract the first word of "Rez", so it can be a program name with args.
48321set dummy Rez; ac_word=$2
48322echo "$as_me:$LINENO: checking for $ac_word" >&5
48323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 48324if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
48325 echo $ECHO_N "(cached) $ECHO_C" >&6
48326else
8ced02f6
DE
48327 if test -n "$REZ"; then
48328 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
48329else
48330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48331for as_dir in $PATH
48332do
48333 IFS=$as_save_IFS
48334 test -z "$as_dir" && as_dir=.
48335 for ac_exec_ext in '' $ac_executable_extensions; do
48336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 48337 ac_cv_prog_REZ="Rez"
a848cd7e
SC
48338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48339 break 2
48340 fi
48341done
48342done
48343
8ced02f6 48344 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
48345fi
48346fi
8ced02f6
DE
48347REZ=$ac_cv_prog_REZ
48348if test -n "$REZ"; then
48349 echo "$as_me:$LINENO: result: $REZ" >&5
48350echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
48351else
48352 echo "$as_me:$LINENO: result: no" >&5
48353echo "${ECHO_T}no" >&6
48354fi
48355
48356 # Extract the first word of "SetFile", so it can be a program name with args.
48357set dummy SetFile; ac_word=$2
48358echo "$as_me:$LINENO: checking for $ac_word" >&5
48359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48360if test "${ac_cv_prog_SETFILE+set}" = set; then
48361 echo $ECHO_N "(cached) $ECHO_C" >&6
48362else
48363 if test -n "$SETFILE"; then
48364 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
48365else
48366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48367for as_dir in $PATH
48368do
48369 IFS=$as_save_IFS
48370 test -z "$as_dir" && as_dir=.
48371 for ac_exec_ext in '' $ac_executable_extensions; do
48372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48373 ac_cv_prog_SETFILE="SetFile"
48374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48375 break 2
48376 fi
48377done
48378done
48379
48380 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
48381fi
48382fi
48383SETFILE=$ac_cv_prog_SETFILE
48384if test -n "$SETFILE"; then
48385 echo "$as_me:$LINENO: result: $SETFILE" >&5
48386echo "${ECHO_T}$SETFILE" >&6
48387else
48388 echo "$as_me:$LINENO: result: no" >&5
48389echo "${ECHO_T}no" >&6
48390fi
48391
48392 ;;
48393 esac
48394
48395
48396
48397
48398
8ced02f6 48399
f10e38c4 48400 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 48401
dcc1b6ad 48402
f10e38c4 48403BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 48404
646b6ec1 48405
74b84332 48406
a848cd7e
SC
48407 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
48408if test "${enable_precomp_headers+set}" = set; then
48409 enableval="$enable_precomp_headers"
48410 bk_use_pch="$enableval"
48411fi;
48412
48413 GCC_PCH=0
f10e38c4
VZ
48414 ICC_PCH=0
48415 USE_PCH=0
a848cd7e 48416
5c60e845
MW
48417 case ${BAKEFILE_HOST} in
48418 *-*-cygwin* )
48419 bk_use_pch="no"
48420 ;;
48421 esac
48422
a848cd7e
SC
48423 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
48424 if test "x$GCC" = "xyes"; then
48425 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
48426echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
48427 cat >conftest.$ac_ext <<_ACEOF
48428/* confdefs.h. */
48429_ACEOF
48430cat confdefs.h >>conftest.$ac_ext
48431cat >>conftest.$ac_ext <<_ACEOF
48432/* end confdefs.h. */
48433
48434int
48435main ()
48436{
48437
48438 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 48439 There is no PCH support
a848cd7e
SC
48440 #endif
48441 #if (__GNUC__ < 3)
e5efa97e 48442 There is no PCH support
a848cd7e
SC
48443 #endif
48444 #if (__GNUC__ == 3) && \
48445 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
48446 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
48447 ( defined(__INTEL_COMPILER) )
e5efa97e 48448 There is no PCH support
a848cd7e
SC
48449 #endif
48450
48451 ;
48452 return 0;
48453}
48454_ACEOF
48455rm -f conftest.$ac_objext
48456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 48457 (eval $ac_compile) 2>conftest.er1
a848cd7e 48458 ac_status=$?
ac1cb8d3
VS
48459 grep -v '^ *+' conftest.er1 >conftest.err
48460 rm -f conftest.er1
48461 cat conftest.err >&5
a848cd7e
SC
48462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48463 (exit $ac_status); } &&
ca5c6ac3 48464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
48465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48466 (eval $ac_try) 2>&5
48467 ac_status=$?
48468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48469 (exit $ac_status); }; } &&
48470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
48471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48472 (eval $ac_try) 2>&5
48473 ac_status=$?
48474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48475 (exit $ac_status); }; }; then
48476
48477 echo "$as_me:$LINENO: result: yes" >&5
48478echo "${ECHO_T}yes" >&6
a848cd7e
SC
48479 GCC_PCH=1
48480
48481else
48482 echo "$as_me: failed program was:" >&5
48483sed 's/^/| /' conftest.$ac_ext >&5
48484
48485
f10e38c4
VZ
48486 cat >conftest.$ac_ext <<_ACEOF
48487/* confdefs.h. */
48488_ACEOF
48489cat confdefs.h >>conftest.$ac_ext
48490cat >>conftest.$ac_ext <<_ACEOF
48491/* end confdefs.h. */
48492
48493int
48494main ()
48495{
48496
48497 #if !defined(__INTEL_COMPILER) || \
48498 (__INTEL_COMPILER < 800)
e5efa97e 48499 There is no PCH support
f10e38c4
VZ
48500 #endif
48501
48502 ;
48503 return 0;
48504}
48505_ACEOF
48506rm -f conftest.$ac_objext
48507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48508 (eval $ac_compile) 2>conftest.er1
48509 ac_status=$?
48510 grep -v '^ *+' conftest.er1 >conftest.err
48511 rm -f conftest.er1
48512 cat conftest.err >&5
48513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48514 (exit $ac_status); } &&
ca5c6ac3 48515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
48516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48517 (eval $ac_try) 2>&5
48518 ac_status=$?
48519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48520 (exit $ac_status); }; } &&
48521 { ac_try='test -s conftest.$ac_objext'
48522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48523 (eval $ac_try) 2>&5
48524 ac_status=$?
48525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48526 (exit $ac_status); }; }; then
48527
48528 echo "$as_me:$LINENO: result: yes" >&5
48529echo "${ECHO_T}yes" >&6
48530 ICC_PCH=1
48531
48532else
48533 echo "$as_me: failed program was:" >&5
48534sed 's/^/| /' conftest.$ac_ext >&5
48535
48536
48537 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
48538echo "${ECHO_T}no" >&6
48539
48540fi
ac1cb8d3 48541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
48542
48543fi
48544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48545 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
48546 USE_PCH=1
1e9e8aba
DE
48547
48548D='$'
48549cat <<EOF >bk-make-pch
a848cd7e
SC
48550#!/bin/sh
48551
48552# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48553# script. It is used to generated precompiled headers.
48554#
48555# Permission is given to use this file in any way.
48556
1e9e8aba
DE
48557outfile="${D}{1}"
48558header="${D}{2}"
a848cd7e
SC
48559shift
48560shift
48561
f10e38c4
VZ
48562compiler=""
48563headerfile=""
48564
1e9e8aba 48565while test ${D}{#} -gt 0; do
f10e38c4 48566 add_to_cmdline=1
1e9e8aba 48567 case "${D}{1}" in
a848cd7e 48568 -I* )
1e9e8aba
DE
48569 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
48570 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
48571 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
48572 fi
48573 ;;
f10e38c4
VZ
48574 -use-pch|-use_pch )
48575 shift
48576 add_to_cmdline=0
48577 ;;
a848cd7e 48578 esac
f10e38c4
VZ
48579 if test ${D}add_to_cmdline = 1 ; then
48580 compiler="${D}{compiler} ${D}{1}"
48581 fi
a848cd7e
SC
48582 shift
48583done
48584
1e9e8aba 48585if test "x${D}{headerfile}" = "x" ; then
f10e38c4 48586 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 48587else
1e9e8aba
DE
48588 if test -f ${D}{outfile} ; then
48589 rm -f ${D}{outfile}
a848cd7e 48590 else
1e9e8aba 48591 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 48592 fi
1e9e8aba 48593 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 48594 mkdir -p .deps
f10e38c4
VZ
48595 if test "x${GCC_PCH}" = "x1" ; then
48596 # can do this because gcc is >= 3.4:
48597 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
48598 elif test "x${ICC_PCH}" = "x1" ; then
48599 filename=pch_gen-${D}${D}
48600 file=${D}{filename}.c
48601 dfile=${D}{filename}.d
48602 cat > ${D}file <<EOT
48603#include "${D}header"
48604EOT
48605 # using -MF icc complains about differing command lines in creation/use
48606 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
48607 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
48608 rm -f ${D}file ${D}dfile ${D}{filename}.o
48609 fi
1e9e8aba 48610 exit ${D}{?}
a848cd7e
SC
48611fi
48612EOF
1e9e8aba 48613
a848cd7e
SC
48614 chmod +x bk-make-pch
48615 fi
48616 fi
48617 fi
48618
48619
48620
f10e38c4 48621
a848cd7e
SC
48622 COND_BUILD_DEBUG="#"
48623 if test "x$BUILD" = "xdebug" ; then
48624 COND_BUILD_DEBUG=""
48625 fi
48626
48627 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
48628 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
48629 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
48630 fi
48631
48632 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
48633 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
48634 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
48635 fi
48636
48637 COND_BUILD_DEBUG_UNICODE_0="#"
48638 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
48639 COND_BUILD_DEBUG_UNICODE_0=""
48640 fi
48641
48642 COND_BUILD_DEBUG_UNICODE_1="#"
48643 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
48644 COND_BUILD_DEBUG_UNICODE_1=""
48645 fi
48646
48647 COND_BUILD_RELEASE="#"
48648 if test "x$BUILD" = "xrelease" ; then
48649 COND_BUILD_RELEASE=""
48650 fi
48651
48652 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
48653 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
48654 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
48655 fi
48656
48657 COND_BUILD_RELEASE_UNICODE_0="#"
48658 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
48659 COND_BUILD_RELEASE_UNICODE_0=""
48660 fi
48661
48662 COND_BUILD_RELEASE_UNICODE_1="#"
48663 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
48664 COND_BUILD_RELEASE_UNICODE_1=""
48665 fi
48666
48667 COND_DEBUG_FLAG_1="#"
48668 if test "x$DEBUG_FLAG" = "x1" ; then
48669 COND_DEBUG_FLAG_1=""
48670 fi
48671
48672 COND_DEBUG_INFO_0="#"
48673 if test "x$DEBUG_INFO" = "x0" ; then
48674 COND_DEBUG_INFO_0=""
48675 fi
48676
48677 COND_DEBUG_INFO_1="#"
48678 if test "x$DEBUG_INFO" = "x1" ; then
48679 COND_DEBUG_INFO_1=""
48680 fi
48681
48682 COND_DEPS_TRACKING_0="#"
48683 if test "x$DEPS_TRACKING" = "x0" ; then
48684 COND_DEPS_TRACKING_0=""
48685 fi
48686
48687 COND_DEPS_TRACKING_1="#"
48688 if test "x$DEPS_TRACKING" = "x1" ; then
48689 COND_DEPS_TRACKING_1=""
48690 fi
48691
48692 COND_GCC_PCH_1="#"
48693 if test "x$GCC_PCH" = "x1" ; then
48694 COND_GCC_PCH_1=""
48695 fi
48696
f10e38c4
VZ
48697 COND_ICC_PCH_1="#"
48698 if test "x$ICC_PCH" = "x1" ; then
48699 COND_ICC_PCH_1=""
48700 fi
48701
a848cd7e
SC
48702 COND_MONOLITHIC_0="#"
48703 if test "x$MONOLITHIC" = "x0" ; then
48704 COND_MONOLITHIC_0=""
48705 fi
48706
48707 COND_MONOLITHIC_0_SHARED_0="#"
48708 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
48709 COND_MONOLITHIC_0_SHARED_0=""
48710 fi
48711
3f60522a
JS
48712 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
48713 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
48714 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
48715 fi
48716
a848cd7e
SC
48717 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
48718 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
48719 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
48720 fi
48721
90970d69
DE
48722 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
48723 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48724 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
48725 fi
48726
f10e38c4
VZ
48727 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
48728 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48729 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
48730 fi
48731
a848cd7e
SC
48732 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
48733 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48734 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
48735 fi
48736
6671c68b
VZ
48737 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
48738 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48739 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
48740 fi
48741
a848cd7e
SC
48742 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
48743 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
48744 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
48745 fi
48746
8b6682b9
JS
48747 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
48748 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
48749 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
48750 fi
48751
ceec2216
RL
48752 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
48753 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48754 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
48755 fi
48756
a848cd7e
SC
48757 COND_MONOLITHIC_0_SHARED_1="#"
48758 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
48759 COND_MONOLITHIC_0_SHARED_1=""
48760 fi
48761
3f60522a
JS
48762 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
48763 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
48764 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
48765 fi
48766
a848cd7e
SC
48767 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
48768 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
48769 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
48770 fi
48771
90970d69
DE
48772 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
48773 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48774 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
48775 fi
48776
f10e38c4
VZ
48777 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
48778 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48779 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
48780 fi
48781
a848cd7e
SC
48782 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
48783 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48784 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
48785 fi
48786
6671c68b
VZ
48787 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
48788 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48789 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
48790 fi
48791
a848cd7e
SC
48792 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
48793 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
48794 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
48795 fi
48796
8b6682b9
JS
48797 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
48798 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
48799 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
48800 fi
48801
ceec2216
RL
48802 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
48803 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48804 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
48805 fi
48806
e5efa97e
VZ
48807 COND_MONOLITHIC_0_USE_MEDIA_1="#"
48808 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
48809 COND_MONOLITHIC_0_USE_MEDIA_1=""
48810 fi
48811
a848cd7e
SC
48812 COND_MONOLITHIC_0_USE_ODBC_1="#"
48813 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
48814 COND_MONOLITHIC_0_USE_ODBC_1=""
48815 fi
48816
48817 COND_MONOLITHIC_1="#"
48818 if test "x$MONOLITHIC" = "x1" ; then
48819 COND_MONOLITHIC_1=""
48820 fi
48821
48822 COND_MONOLITHIC_1_SHARED_0="#"
48823 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
48824 COND_MONOLITHIC_1_SHARED_0=""
48825 fi
48826
48827 COND_MONOLITHIC_1_SHARED_1="#"
48828 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
48829 COND_MONOLITHIC_1_SHARED_1=""
48830 fi
48831
48832 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
48833 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
48834 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
48835 fi
48836
48837 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
48838 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
48839 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
48840 fi
48841
eb730a0c
JS
48842 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
48843 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48844 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
48845 fi
48846
a848cd7e
SC
48847 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
48848 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48849 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
48850 fi
48851
48852 COND_PLATFORM_MACOSX_1="#"
48853 if test "x$PLATFORM_MACOSX" = "x1" ; then
48854 COND_PLATFORM_MACOSX_1=""
48855 fi
48856
a30f955f
VS
48857 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
48858 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
48859 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
48860 fi
48861
a848cd7e
SC
48862 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
48863 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
48864 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
48865 fi
48866
48867 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
48868 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
48869 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
48870 fi
48871
48872 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
48873 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
48874 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
48875 fi
48876
fc480dc1
DE
48877 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
48878 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48879 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
48880 fi
48881
1e9e8aba
DE
48882 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48883 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48884 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48885 fi
48886
ebee3cd0
VS
48887 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
48888 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
48889 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
48890 fi
48891
48892 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
48893 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
48894 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
48895 fi
48896
a848cd7e
SC
48897 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
48898 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
48899 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
48900 fi
48901
48902 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
48903 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48904 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
48905 fi
48906
b48a2016
DE
48907 COND_PLATFORM_MACOS_1="#"
48908 if test "x$PLATFORM_MACOS" = "x1" ; then
48909 COND_PLATFORM_MACOS_1=""
48910 fi
48911
083508af
MW
48912 COND_PLATFORM_MAC_1="#"
48913 if test "x$PLATFORM_MAC" = "x1" ; then
48914 COND_PLATFORM_MAC_1=""
48915 fi
48916
e5efa97e
VZ
48917 COND_PLATFORM_MSDOS_0="#"
48918 if test "x$PLATFORM_MSDOS" = "x0" ; then
48919 COND_PLATFORM_MSDOS_0=""
48920 fi
48921
83d8eb47
MW
48922 COND_PLATFORM_MSDOS_1="#"
48923 if test "x$PLATFORM_MSDOS" = "x1" ; then
48924 COND_PLATFORM_MSDOS_1=""
48925 fi
48926
a848cd7e
SC
48927 COND_PLATFORM_OS2_1="#"
48928 if test "x$PLATFORM_OS2" = "x1" ; then
48929 COND_PLATFORM_OS2_1=""
48930 fi
48931
48932 COND_PLATFORM_UNIX_0="#"
48933 if test "x$PLATFORM_UNIX" = "x0" ; then
48934 COND_PLATFORM_UNIX_0=""
48935 fi
48936
48937 COND_PLATFORM_UNIX_1="#"
48938 if test "x$PLATFORM_UNIX" = "x1" ; then
48939 COND_PLATFORM_UNIX_1=""
48940 fi
48941
48942 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
48943 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
48944 COND_PLATFORM_UNIX_1_USE_GUI_1=""
48945 fi
48946
48947 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
48948 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
48949 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
48950 fi
48951
48952 COND_PLATFORM_WIN32_0="#"
48953 if test "x$PLATFORM_WIN32" = "x0" ; then
48954 COND_PLATFORM_WIN32_0=""
48955 fi
48956
48957 COND_PLATFORM_WIN32_1="#"
48958 if test "x$PLATFORM_WIN32" = "x1" ; then
48959 COND_PLATFORM_WIN32_1=""
48960 fi
48961
48962 COND_SHARED_0="#"
48963 if test "x$SHARED" = "x0" ; then
48964 COND_SHARED_0=""
48965 fi
48966
083508af
MW
48967 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
48968 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
48969 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
48970 fi
48971
48972 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
48973 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48974 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
48975 fi
48976
48977 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
48978 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
48979 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
48980 fi
48981
a848cd7e
SC
48982 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
48983 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48984 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
48985 fi
48986
48987 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48988 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48989 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48990 fi
48991
48992 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48993 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48994 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48995 fi
48996
48997 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48998 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48999 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49000 fi
49001
083508af
MW
49002 COND_SHARED_0_USE_XRC_1="#"
49003 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49004 COND_SHARED_0_USE_XRC_1=""
49005 fi
49006
a848cd7e
SC
49007 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
49008 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
49009 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
49010 fi
49011
49012 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
49013 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
49014 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
49015 fi
49016
49017 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
49018 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
49019 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
49020 fi
49021
49022 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
49023 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
49024 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
49025 fi
49026
49027 COND_SHARED_1="#"
49028 if test "x$SHARED" = "x1" ; then
49029 COND_SHARED_1=""
49030 fi
49031
49032 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
49033 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49034 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
49035 fi
49036
083508af
MW
49037 COND_SHARED_1_USE_XRC_1="#"
49038 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49039 COND_SHARED_1_USE_XRC_1=""
49040 fi
49041
a30f955f
VS
49042 COND_TOOLKIT_="#"
49043 if test "x$TOOLKIT" = "x" ; then
49044 COND_TOOLKIT_=""
49045 fi
49046
a848cd7e
SC
49047 COND_TOOLKIT_COCOA="#"
49048 if test "x$TOOLKIT" = "xCOCOA" ; then
49049 COND_TOOLKIT_COCOA=""
49050 fi
49051
a49baeab
DE
49052 COND_TOOLKIT_COCOA_USE_GUI_1="#"
49053 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
49054 COND_TOOLKIT_COCOA_USE_GUI_1=""
49055 fi
49056
a848cd7e
SC
49057 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
49058 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49059 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
49060 fi
49061
b3c86150
VS
49062 COND_TOOLKIT_DFB="#"
49063 if test "x$TOOLKIT" = "xDFB" ; then
49064 COND_TOOLKIT_DFB=""
49065 fi
49066
49067 COND_TOOLKIT_DFB_USE_GUI_1="#"
49068 if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
49069 COND_TOOLKIT_DFB_USE_GUI_1=""
49070 fi
49071
a848cd7e
SC
49072 COND_TOOLKIT_GTK="#"
49073 if test "x$TOOLKIT" = "xGTK" ; then
49074 COND_TOOLKIT_GTK=""
49075 fi
49076
d044deea
MW
49077 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
49078 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
49079 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
49080 fi
49081
49082 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
49083 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
49084 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
49085 fi
49086
49087 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
49088 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
49089 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
49090 fi
49091
49092 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
49093 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49094 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
49095 fi
49096
49097 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
49098 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
49099 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
49100 fi
49101
49102 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
49103 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49104 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
49105 fi
49106
a848cd7e
SC
49107 COND_TOOLKIT_GTK_USE_GUI_1="#"
49108 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
49109 COND_TOOLKIT_GTK_USE_GUI_1=""
49110 fi
49111
a848cd7e
SC
49112 COND_TOOLKIT_MAC="#"
49113 if test "x$TOOLKIT" = "xMAC" ; then
49114 COND_TOOLKIT_MAC=""
49115 fi
49116
49117 COND_TOOLKIT_MAC_USE_GUI_1="#"
49118 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49119 COND_TOOLKIT_MAC_USE_GUI_1=""
49120 fi
49121
49122 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49123 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49124 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49125 fi
49126
49127 COND_TOOLKIT_MGL="#"
49128 if test "x$TOOLKIT" = "xMGL" ; then
49129 COND_TOOLKIT_MGL=""
49130 fi
49131
49132 COND_TOOLKIT_MGL_USE_GUI_1="#"
49133 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49134 COND_TOOLKIT_MGL_USE_GUI_1=""
49135 fi
49136
49137 COND_TOOLKIT_MOTIF="#"
49138 if test "x$TOOLKIT" = "xMOTIF" ; then
49139 COND_TOOLKIT_MOTIF=""
49140 fi
49141
49142 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
49143 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
49144 COND_TOOLKIT_MOTIF_USE_GUI_1=""
49145 fi
49146
49147 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
49148 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49149 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
49150 fi
49151
49152 COND_TOOLKIT_MSW="#"
49153 if test "x$TOOLKIT" = "xMSW" ; then
49154 COND_TOOLKIT_MSW=""
49155 fi
49156
49157 COND_TOOLKIT_MSW_USE_GUI_1="#"
49158 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
49159 COND_TOOLKIT_MSW_USE_GUI_1=""
49160 fi
49161
49162 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
49163 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49164 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
49165 fi
49166
0ee4059d
DE
49167 COND_TOOLKIT_MSW_WXUNIV_0="#"
49168 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49169 COND_TOOLKIT_MSW_WXUNIV_0=""
49170 fi
49171
a848cd7e
SC
49172 COND_TOOLKIT_PM="#"
49173 if test "x$TOOLKIT" = "xPM" ; then
49174 COND_TOOLKIT_PM=""
49175 fi
49176
49177 COND_TOOLKIT_PM_USE_GUI_1="#"
49178 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
49179 COND_TOOLKIT_PM_USE_GUI_1=""
49180 fi
49181
49182 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
49183 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49184 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
49185 fi
49186
3fd9c298
DE
49187 COND_TOOLKIT_WINCE="#"
49188 if test "x$TOOLKIT" = "xWINCE" ; then
49189 COND_TOOLKIT_WINCE=""
49190 fi
49191
49192 COND_TOOLKIT_WINCE_USE_GUI_1="#"
49193 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
49194 COND_TOOLKIT_WINCE_USE_GUI_1=""
49195 fi
49196
49197 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
49198 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49199 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
49200 fi
49201
0ee4059d
DE
49202 COND_TOOLKIT_WINCE_WXUNIV_0="#"
49203 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
49204 COND_TOOLKIT_WINCE_WXUNIV_0=""
49205 fi
49206
a848cd7e
SC
49207 COND_TOOLKIT_X11="#"
49208 if test "x$TOOLKIT" = "xX11" ; then
49209 COND_TOOLKIT_X11=""
49210 fi
49211
49212 COND_TOOLKIT_X11_USE_GUI_1="#"
49213 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
49214 COND_TOOLKIT_X11_USE_GUI_1=""
49215 fi
49216
49217 COND_UNICODE_1="#"
49218 if test "x$UNICODE" = "x1" ; then
49219 COND_UNICODE_1=""
49220 fi
49221
49222 COND_USE_EXCEPTIONS_0="#"
49223 if test "x$USE_EXCEPTIONS" = "x0" ; then
49224 COND_USE_EXCEPTIONS_0=""
49225 fi
49226
49227 COND_USE_EXCEPTIONS_1="#"
49228 if test "x$USE_EXCEPTIONS" = "x1" ; then
49229 COND_USE_EXCEPTIONS_1=""
49230 fi
49231
49232 COND_USE_GUI_0="#"
49233 if test "x$USE_GUI" = "x0" ; then
49234 COND_USE_GUI_0=""
49235 fi
49236
49237 COND_USE_GUI_1="#"
49238 if test "x$USE_GUI" = "x1" ; then
49239 COND_USE_GUI_1=""
49240 fi
49241
49242 COND_USE_GUI_1_WXUNIV_0="#"
49243 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49244 COND_USE_GUI_1_WXUNIV_0=""
49245 fi
49246
49247 COND_USE_GUI_1_WXUNIV_1="#"
49248 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
49249 COND_USE_GUI_1_WXUNIV_1=""
49250 fi
49251
49252 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49253 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49254 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49255 fi
49256
49257 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49258 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49259 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49260 fi
49261
49262 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49263 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49264 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49265 fi
49266
083508af
MW
49267 COND_USE_ODBC_1="#"
49268 if test "x$USE_ODBC" = "x1" ; then
49269 COND_USE_ODBC_1=""
49270 fi
49271
49272 COND_USE_OPENGL_1="#"
49273 if test "x$USE_OPENGL" = "x1" ; then
49274 COND_USE_OPENGL_1=""
49275 fi
49276
f10e38c4
VZ
49277 COND_USE_PCH_1="#"
49278 if test "x$USE_PCH" = "x1" ; then
49279 COND_USE_PCH_1=""
49280 fi
49281
a848cd7e
SC
49282 COND_USE_PLUGINS_0="#"
49283 if test "x$USE_PLUGINS" = "x0" ; then
49284 COND_USE_PLUGINS_0=""
49285 fi
49286
0b78747f
MW
49287 COND_USE_RTTI_0="#"
49288 if test "x$USE_RTTI" = "x0" ; then
49289 COND_USE_RTTI_0=""
49290 fi
49291
49292 COND_USE_RTTI_1="#"
49293 if test "x$USE_RTTI" = "x1" ; then
49294 COND_USE_RTTI_1=""
49295 fi
49296
a848cd7e
SC
49297 COND_USE_SOSYMLINKS_1="#"
49298 if test "x$USE_SOSYMLINKS" = "x1" ; then
49299 COND_USE_SOSYMLINKS_1=""
49300 fi
49301
eb730a0c
JS
49302 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
49303 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49304 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
49305 fi
49306
a848cd7e
SC
49307 COND_USE_SOVERLINUX_1="#"
49308 if test "x$USE_SOVERLINUX" = "x1" ; then
49309 COND_USE_SOVERLINUX_1=""
49310 fi
49311
49312 COND_USE_SOVERSION_0="#"
49313 if test "x$USE_SOVERSION" = "x0" ; then
49314 COND_USE_SOVERSION_0=""
49315 fi
49316
49317 COND_USE_SOVERSOLARIS_1="#"
49318 if test "x$USE_SOVERSOLARIS" = "x1" ; then
49319 COND_USE_SOVERSOLARIS_1=""
49320 fi
49321
0b78747f
MW
49322 COND_USE_THREADS_0="#"
49323 if test "x$USE_THREADS" = "x0" ; then
49324 COND_USE_THREADS_0=""
49325 fi
49326
49327 COND_USE_THREADS_1="#"
49328 if test "x$USE_THREADS" = "x1" ; then
49329 COND_USE_THREADS_1=""
49330 fi
49331
a13a7f89
RL
49332 COND_USE_XRC_1="#"
49333 if test "x$USE_XRC" = "x1" ; then
49334 COND_USE_XRC_1=""
49335 fi
49336
eb730a0c
JS
49337 COND_WINDOWS_IMPLIB_1="#"
49338 if test "x$WINDOWS_IMPLIB" = "x1" ; then
49339 COND_WINDOWS_IMPLIB_1=""
49340 fi
49341
a848cd7e
SC
49342 COND_WITH_PLUGIN_SDL_1="#"
49343 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
49344 COND_WITH_PLUGIN_SDL_1=""
49345 fi
49346
1e6eb025
VZ
49347 COND_WXUNIV_0="#"
49348 if test "x$WXUNIV" = "x0" ; then
49349 COND_WXUNIV_0=""
49350 fi
49351
a848cd7e
SC
49352 COND_WXUNIV_1="#"
49353 if test "x$WXUNIV" = "x1" ; then
49354 COND_WXUNIV_1=""
49355 fi
49356
49357 COND_WXUSE_EXPAT_BUILTIN="#"
49358 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
49359 COND_WXUSE_EXPAT_BUILTIN=""
49360 fi
49361
49362 COND_WXUSE_LIBJPEG_BUILTIN="#"
49363 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49364 COND_WXUSE_LIBJPEG_BUILTIN=""
49365 fi
49366
49367 COND_WXUSE_LIBPNG_BUILTIN="#"
49368 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49369 COND_WXUSE_LIBPNG_BUILTIN=""
49370 fi
49371
49372 COND_WXUSE_LIBTIFF_BUILTIN="#"
49373 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49374 COND_WXUSE_LIBTIFF_BUILTIN=""
49375 fi
49376
49377 COND_WXUSE_ODBC_BUILTIN="#"
49378 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
49379 COND_WXUSE_ODBC_BUILTIN=""
49380 fi
49381
49382 COND_WXUSE_REGEX_BUILTIN="#"
49383 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
49384 COND_WXUSE_REGEX_BUILTIN=""
49385 fi
49386
49387 COND_WXUSE_ZLIB_BUILTIN="#"
49388 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
49389 COND_WXUSE_ZLIB_BUILTIN=""
49390 fi
49391
49392
49393
810b94f0
MW
49394 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
49395 { { 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
49396echo "$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;}
49397 { (exit 1); exit 1; }; }
49398 fi
49399
2057db16
VS
49400 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
49401 { { 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
49402echo "$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;}
49403 { (exit 1); exit 1; }; }
49404 fi
49405
a848cd7e 49406
7afc46ab
KO
49407
49408if test "$wxUSE_MAC" = 1 ; then
95768535 49409 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
49410 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
49411 mv temp bk-deps
49412 chmod +x bk-deps
49413 fi
49414fi
49415
ceec2216
RL
49416if test "$wxUSE_SHARED" = "yes"; then
49417
49418 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
49419 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
49420
5b674b9d
DE
49421 case "${host}" in
49422 *-pc-os2_emx | *-pc-os2-emx )
49423 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49424 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49425 cp -p ${srcdir}/src/os2/dllnames.sh .
49426 cp -p ${srcdir}/src/os2/dllar.sh .
49427 ;;
49428 esac
ceec2216
RL
49429else
49430
49431 EXE_LINKER="$CXX -o"
49432
49433fi
69120ee4
VZ
49434if test "$wxUSE_OMF" = "yes"; then
49435 case "${host}" in
49436 *-pc-os2_emx | *-pc-os2-emx )
49437 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
49438 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49439 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49440 ;;
49441 esac
49442fi
a848cd7e 49443
c08ebc62 49444if test $GCC_PCH = 1 ; then
254e8e29 49445 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 49446fi
a848cd7e 49447
5ff751d6 49448WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
49449
49450SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
49451
49452
49453
49454
49455
49456
49457
49458
49459
49460
49461
49462
49463
49464
49465
49466
49467
49468
49469
49470
49471
49472
49473
49474
49475
49476
49477
49478
49479
49480
49481
49482
49483
49484
49485
49486
49487
49488
49489
49490
49491
49492
a848cd7e
SC
49493
49494
49495
49496
49497
49498
49499
49500
49501
49502
49503
49504
a848cd7e
SC
49505
49506
ddd14b14 49507
370d2fd7 49508
8ced02f6 49509
a848cd7e
SC
49510
49511
49512echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49513echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 49514set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
49515if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
49516 echo $ECHO_N "(cached) $ECHO_C" >&6
49517else
49518 cat >conftest.make <<\_ACEOF
49519all:
49520 @echo 'ac_maketemp="$(MAKE)"'
49521_ACEOF
49522# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49523eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
49524if test -n "$ac_maketemp"; then
49525 eval ac_cv_prog_make_${ac_make}_set=yes
49526else
49527 eval ac_cv_prog_make_${ac_make}_set=no
49528fi
49529rm -f conftest.make
49530fi
49531if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
49532 echo "$as_me:$LINENO: result: yes" >&5
49533echo "${ECHO_T}yes" >&6
49534 SET_MAKE=
49535else
49536 echo "$as_me:$LINENO: result: no" >&5
49537echo "${ECHO_T}no" >&6
49538 SET_MAKE="MAKE=${MAKE-make}"
49539fi
49540
49541
a848cd7e 49542
ceec2216
RL
49543 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
49544
a848cd7e 49545
5c60e845
MW
49546if test "$USE_WIN32" = 1; then
49547 ac_config_commands="$ac_config_commands
49548 rcdefs.h
49549 "
49550
49551fi
49552
ceec2216 49553 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 49554
a848cd7e 49555
ceec2216 49556 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 49557
ceec2216
RL
49558
49559 ac_config_files="$ac_config_files version-script Makefile"
49560
49561
5c60e845 49562 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
49563
49564
9103d280 49565
1c14217d 49566if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
49567if test "$wxUSE_GUI" = "yes"; then
49568 SUBDIRS="samples demos utils contrib"
49569else SUBDIRS="samples utils"
49570fi
49571
49572
49573
49574# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
49575if test "${with_cppunit_prefix+set}" = set; then
49576 withval="$with_cppunit_prefix"
49577 cppunit_config_prefix="$withval"
49578else
49579 cppunit_config_prefix=""
49580fi;
49581
49582# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
49583if test "${with_cppunit_exec_prefix+set}" = set; then
49584 withval="$with_cppunit_exec_prefix"
49585 cppunit_config_exec_prefix="$withval"
49586else
49587 cppunit_config_exec_prefix=""
49588fi;
49589
49590 if test x$cppunit_config_exec_prefix != x ; then
49591 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
49592 if test x${CPPUNIT_CONFIG+set} != xset ; then
49593 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
49594 fi
49595 fi
49596 if test x$cppunit_config_prefix != x ; then
49597 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
49598 if test x${CPPUNIT_CONFIG+set} != xset ; then
49599 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
49600 fi
49601 fi
49602
49603 # Extract the first word of "cppunit-config", so it can be a program name with args.
49604set dummy cppunit-config; ac_word=$2
49605echo "$as_me:$LINENO: checking for $ac_word" >&5
49606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49607if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
49608 echo $ECHO_N "(cached) $ECHO_C" >&6
49609else
49610 case $CPPUNIT_CONFIG in
49611 [\\/]* | ?:[\\/]*)
49612 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
49613 ;;
49614 *)
49615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49616for as_dir in $PATH
49617do
49618 IFS=$as_save_IFS
49619 test -z "$as_dir" && as_dir=.
49620 for ac_exec_ext in '' $ac_executable_extensions; do
49621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49622 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49624 break 2
49625 fi
49626done
49627done
49628
49629 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
49630 ;;
49631esac
49632fi
49633CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
49634
49635if test -n "$CPPUNIT_CONFIG"; then
49636 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
49637echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
49638else
49639 echo "$as_me:$LINENO: result: no" >&5
49640echo "${ECHO_T}no" >&6
49641fi
49642
49643 cppunit_version_min=1.8.0
49644
49645 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
49646echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
49647 no_cppunit=""
49648 if test "$CPPUNIT_CONFIG" = "no" ; then
3ecd9f92
MW
49649 echo "$as_me:$LINENO: result: no" >&5
49650echo "${ECHO_T}no" >&6
a848cd7e
SC
49651 no_cppunit=yes
49652 else
49653 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
49654 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
49655 cppunit_version=`$CPPUNIT_CONFIG --version`
49656
49657 cppunit_major_version=`echo $cppunit_version | \
49658 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49659 cppunit_minor_version=`echo $cppunit_version | \
49660 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49661 cppunit_micro_version=`echo $cppunit_version | \
49662 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49663
49664 cppunit_major_min=`echo $cppunit_version_min | \
49665 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49666 cppunit_minor_min=`echo $cppunit_version_min | \
49667 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49668 cppunit_micro_min=`echo $cppunit_version_min | \
49669 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49670
49671 cppunit_version_proper=`expr \
49672 $cppunit_major_version \> $cppunit_major_min \| \
49673 $cppunit_major_version \= $cppunit_major_min \& \
49674 $cppunit_minor_version \> $cppunit_minor_min \| \
49675 $cppunit_major_version \= $cppunit_major_min \& \
49676 $cppunit_minor_version \= $cppunit_minor_min \& \
49677 $cppunit_micro_version \>= $cppunit_micro_min `
49678
49679 if test "$cppunit_version_proper" = "1" ; then
49680 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
49681echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
49682 else
49683 echo "$as_me:$LINENO: result: no" >&5
49684echo "${ECHO_T}no" >&6
49685 no_cppunit=yes
49686 fi
49687 fi
49688
49689 if test "x$no_cppunit" = x ; then
c2218763 49690 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
49691 else
49692 CPPUNIT_CFLAGS=""
49693 CPPUNIT_LIBS=""
c2218763 49694 :
a848cd7e
SC
49695 fi
49696
49697
49698
49699
49700
49701for subdir in `echo $SUBDIRS`; do
49702 if test -d ${srcdir}/${subdir} ; then
49703 if test "$wxUSE_GUI" = "yes"; then
49704 if test ${subdir} = "samples"; then
49705 makefiles="samples/Makefile.in $makefiles"
49706 for sample in `echo $SAMPLES_SUBDIRS`; do
49707 if test -d $srcdir/samples/$sample; then
49708 makefiles="samples/$sample/Makefile.in $makefiles"
49709 fi
49710 done
9c112555
MW
49711 else
49712 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
49713 eval "disabled=\$$disabled_var"
49714 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
49715 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
49716 fi
49717 else if test ${subdir} = "samples"; then
49718 makefiles="samples/Makefile.in samples/console/Makefile.in"
49719 elif test ${subdir} = "utils"; then
6537ccf8
VS
49720 makefiles=""
49721 for util in HelpGen tex2rtf ; do
49722 if test -d $srcdir/utils/$util ; then
49723 makefiles="utils/$util/Makefile.in \
49724 utils/$util/src/Makefile.in \
49725 $makefiles"
49726 fi
49727 done
a848cd7e
SC
49728 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
49729 fi
49730 fi
49731
49732 for mkin in $makefiles ; do
49733 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
49734 ac_config_files="$ac_config_files $mk"
49735
49736 done
49737 fi
49738done
1c14217d 49739fi
a848cd7e
SC
49740cat >confcache <<\_ACEOF
49741# This file is a shell script that caches the results of configure
49742# tests run on this system so they can be shared between configure
49743# scripts and configure runs, see configure's option --config-cache.
49744# It is not useful on other systems. If it contains results you don't
49745# want to keep, you may remove or edit it.
49746#
49747# config.status only pays attention to the cache file if you give it
49748# the --recheck option to rerun configure.
49749#
49750# `ac_cv_env_foo' variables (set or unset) will be overridden when
49751# loading this file, other *unset* `ac_cv_foo' will be assigned the
49752# following values.
49753
49754_ACEOF
49755
49756# The following way of writing the cache mishandles newlines in values,
49757# but we know of no workaround that is simple, portable, and efficient.
49758# So, don't put newlines in cache variables' values.
49759# Ultrix sh set writes to stderr and can't be redirected directly,
49760# and sets the high bit in the cache file unless we assign to the vars.
49761{
49762 (set) 2>&1 |
49763 case `(ac_space=' '; set | grep ac_space) 2>&1` in
49764 *ac_space=\ *)
49765 # `set' does not quote correctly, so add quotes (double-quote
49766 # substitution turns \\\\ into \\, and sed turns \\ into \).
49767 sed -n \
ac1cb8d3
VS
49768 "s/'/'\\\\''/g;
49769 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
49770 ;;
49771 *)
49772 # `set' quotes correctly as required by POSIX, so do not add quotes.
49773 sed -n \
ac1cb8d3 49774 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
49775 ;;
49776 esac;
49777} |
49778 sed '
49779 t clear
49780 : clear
49781 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49782 t end
49783 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49784 : end' >>confcache
49785if diff $cache_file confcache >/dev/null 2>&1; then :; else
49786 if test -w $cache_file; then
49787 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
49788 cat confcache >$cache_file
49789 else
49790 echo "not updating unwritable cache $cache_file"
49791 fi
49792fi
49793rm -f confcache
49794
49795test "x$prefix" = xNONE && prefix=$ac_default_prefix
49796# Let make expand exec_prefix.
49797test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49798
49799# VPATH may cause trouble with some makes, so we remove $(srcdir),
49800# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49801# trailing colons and then remove the whole line if VPATH becomes empty
49802# (actually we leave an empty line to preserve line numbers).
49803if test "x$srcdir" = x.; then
ac1cb8d3 49804 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
49805s/:*\$(srcdir):*/:/;
49806s/:*\${srcdir}:*/:/;
49807s/:*@srcdir@:*/:/;
ac1cb8d3 49808s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 49809s/:*$//;
ac1cb8d3 49810s/^[^=]*=[ ]*$//;
a848cd7e
SC
49811}'
49812fi
49813
49814DEFS=-DHAVE_CONFIG_H
49815
49816ac_libobjs=
49817ac_ltlibobjs=
49818for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49819 # 1. Remove the extension, and $U if already installed.
49820 ac_i=`echo "$ac_i" |
ac1cb8d3 49821 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
49822 # 2. Add them.
49823 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
49824 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
49825done
49826LIBOBJS=$ac_libobjs
49827
49828LTLIBOBJS=$ac_ltlibobjs
49829
49830
49831
49832: ${CONFIG_STATUS=./config.status}
49833ac_clean_files_save=$ac_clean_files
49834ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49835{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49836echo "$as_me: creating $CONFIG_STATUS" >&6;}
49837cat >$CONFIG_STATUS <<_ACEOF
49838#! $SHELL
49839# Generated by $as_me.
49840# Run this file to recreate the current configuration.
49841# Compiler output produced by configure, useful for debugging
49842# configure, is in config.log if it exists.
49843
49844debug=false
49845ac_cs_recheck=false
49846ac_cs_silent=false
49847SHELL=\${CONFIG_SHELL-$SHELL}
49848_ACEOF
49849
49850cat >>$CONFIG_STATUS <<\_ACEOF
49851## --------------------- ##
49852## M4sh Initialization. ##
49853## --------------------- ##
49854
49855# Be Bourne compatible
49856if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49857 emulate sh
49858 NULLCMD=:
49859 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49860 # is contrary to our usage. Disable this feature.
49861 alias -g '${1+"$@"}'='"$@"'
49862elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
49863 set -o posix
49864fi
ac1cb8d3 49865DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
49866
49867# Support unset when possible.
ac1cb8d3 49868if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
49869 as_unset=unset
49870else
49871 as_unset=false
49872fi
49873
49874
49875# Work around bugs in pre-3.0 UWIN ksh.
49876$as_unset ENV MAIL MAILPATH
49877PS1='$ '
49878PS2='> '
49879PS4='+ '
49880
49881# NLS nuisances.
49882for as_var in \
49883 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49884 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49885 LC_TELEPHONE LC_TIME
49886do
ac1cb8d3 49887 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
49888 eval $as_var=C; export $as_var
49889 else
49890 $as_unset $as_var
49891 fi
49892done
49893
49894# Required to use basename.
49895if expr a : '\(a\)' >/dev/null 2>&1; then
49896 as_expr=expr
49897else
49898 as_expr=false
49899fi
49900
49901if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
49902 as_basename=basename
49903else
49904 as_basename=false
49905fi
49906
49907
49908# Name of the executable.
49909as_me=`$as_basename "$0" ||
49910$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49911 X"$0" : 'X\(//\)$' \| \
49912 X"$0" : 'X\(/\)$' \| \
49913 . : '\(.\)' 2>/dev/null ||
49914echo X/"$0" |
49915 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
49916 /^X\/\(\/\/\)$/{ s//\1/; q; }
49917 /^X\/\(\/\).*/{ s//\1/; q; }
49918 s/.*/./; q'`
49919
49920
49921# PATH needs CR, and LINENO needs CR and PATH.
49922# Avoid depending upon Character Ranges.
49923as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49924as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49925as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49926as_cr_digits='0123456789'
49927as_cr_alnum=$as_cr_Letters$as_cr_digits
49928
49929# The user is always right.
49930if test "${PATH_SEPARATOR+set}" != set; then
49931 echo "#! /bin/sh" >conf$$.sh
49932 echo "exit 0" >>conf$$.sh
49933 chmod +x conf$$.sh
49934 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49935 PATH_SEPARATOR=';'
49936 else
49937 PATH_SEPARATOR=:
49938 fi
49939 rm -f conf$$.sh
49940fi
49941
49942
49943 as_lineno_1=$LINENO
49944 as_lineno_2=$LINENO
49945 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49946 test "x$as_lineno_1" != "x$as_lineno_2" &&
49947 test "x$as_lineno_3" = "x$as_lineno_2" || {
49948 # Find who we are. Look in the path if we contain no path at all
49949 # relative or not.
49950 case $0 in
49951 *[\\/]* ) as_myself=$0 ;;
49952 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49953for as_dir in $PATH
49954do
49955 IFS=$as_save_IFS
49956 test -z "$as_dir" && as_dir=.
49957 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49958done
49959
49960 ;;
49961 esac
49962 # We did not find ourselves, most probably we were run as `sh COMMAND'
49963 # in which case we are not to be found in the path.
49964 if test "x$as_myself" = x; then
49965 as_myself=$0
49966 fi
49967 if test ! -f "$as_myself"; then
49968 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
49969echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
49970 { (exit 1); exit 1; }; }
49971 fi
49972 case $CONFIG_SHELL in
49973 '')
49974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49975for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
49976do
49977 IFS=$as_save_IFS
49978 test -z "$as_dir" && as_dir=.
49979 for as_base in sh bash ksh sh5; do
49980 case $as_dir in
49981 /*)
49982 if ("$as_dir/$as_base" -c '
49983 as_lineno_1=$LINENO
49984 as_lineno_2=$LINENO
49985 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49986 test "x$as_lineno_1" != "x$as_lineno_2" &&
49987 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
49988 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
49989 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
49990 CONFIG_SHELL=$as_dir/$as_base
49991 export CONFIG_SHELL
49992 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
49993 fi;;
49994 esac
49995 done
49996done
49997;;
49998 esac
49999
50000 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50001 # uniformly replaced by the line number. The first 'sed' inserts a
50002 # line-number line before each line; the second 'sed' does the real
50003 # work. The second script uses 'N' to pair each line-number line
50004 # with the numbered line, and appends trailing '-' during
50005 # substitution so that $LINENO is not a special case at line end.
50006 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50007 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
50008 sed '=' <$as_myself |
50009 sed '
50010 N
50011 s,$,-,
50012 : loop
50013 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
50014 t loop
50015 s,-$,,
50016 s,^['$as_cr_digits']*\n,,
50017 ' >$as_me.lineno &&
50018 chmod +x $as_me.lineno ||
50019 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
50020echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
50021 { (exit 1); exit 1; }; }
50022
50023 # Don't try to exec as it changes $[0], causing all sort of problems
50024 # (the dirname of $[0] is not the place where we might find the
50025 # original and so on. Autoconf is especially sensible to this).
50026 . ./$as_me.lineno
50027 # Exit status is that of the last command.
50028 exit
50029}
50030
50031
50032case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
50033 *c*,-n*) ECHO_N= ECHO_C='
50034' ECHO_T=' ' ;;
50035 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
50036 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
50037esac
50038
50039if expr a : '\(a\)' >/dev/null 2>&1; then
50040 as_expr=expr
50041else
50042 as_expr=false
50043fi
50044
50045rm -f conf$$ conf$$.exe conf$$.file
50046echo >conf$$.file
50047if ln -s conf$$.file conf$$ 2>/dev/null; then
50048 # We could just check for DJGPP; but this test a) works b) is more generic
50049 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
50050 if test -f conf$$.exe; then
50051 # Don't use ln at all; we don't have any links
50052 as_ln_s='cp -p'
50053 else
50054 as_ln_s='ln -s'
50055 fi
50056elif ln conf$$.file conf$$ 2>/dev/null; then
50057 as_ln_s=ln
50058else
50059 as_ln_s='cp -p'
50060fi
50061rm -f conf$$ conf$$.exe conf$$.file
50062
50063if mkdir -p . 2>/dev/null; then
50064 as_mkdir_p=:
50065else
ac1cb8d3 50066 test -d ./-p && rmdir ./-p
a848cd7e
SC
50067 as_mkdir_p=false
50068fi
50069
50070as_executable_p="test -f"
50071
50072# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 50073as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
50074
50075# Sed expression to map a string onto a valid variable name.
ac1cb8d3 50076as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
50077
50078
50079# IFS
50080# We need space, tab and new line, in precisely that order.
50081as_nl='
50082'
50083IFS=" $as_nl"
50084
50085# CDPATH.
50086$as_unset CDPATH
50087
50088exec 6>&1
50089
50090# Open the log real soon, to keep \$[0] and so on meaningful, and to
50091# report actual input values of CONFIG_FILES etc. instead of their
50092# values after options handling. Logging --version etc. is OK.
50093exec 5>>config.log
50094{
50095 echo
50096 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50097## Running $as_me. ##
50098_ASBOX
50099} >&5
50100cat >&5 <<_CSEOF
50101
dd8df4fc 50102This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 50103generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
50104
50105 CONFIG_FILES = $CONFIG_FILES
50106 CONFIG_HEADERS = $CONFIG_HEADERS
50107 CONFIG_LINKS = $CONFIG_LINKS
50108 CONFIG_COMMANDS = $CONFIG_COMMANDS
50109 $ $0 $@
50110
50111_CSEOF
50112echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
50113echo >&5
50114_ACEOF
50115
50116# Files that config.status was made for.
50117if test -n "$ac_config_files"; then
50118 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
50119fi
50120
50121if test -n "$ac_config_headers"; then
50122 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
50123fi
50124
50125if test -n "$ac_config_links"; then
50126 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
50127fi
50128
50129if test -n "$ac_config_commands"; then
50130 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
50131fi
50132
50133cat >>$CONFIG_STATUS <<\_ACEOF
50134
50135ac_cs_usage="\
50136\`$as_me' instantiates files from templates according to the
50137current configuration.
50138
50139Usage: $0 [OPTIONS] [FILE]...
50140
50141 -h, --help print this help, then exit
50142 -V, --version print version number, then exit
50143 -q, --quiet do not print progress messages
50144 -d, --debug don't remove temporary files
50145 --recheck update $as_me by reconfiguring in the same conditions
50146 --file=FILE[:TEMPLATE]
ac1cb8d3 50147 instantiate the configuration file FILE
a848cd7e 50148 --header=FILE[:TEMPLATE]
ac1cb8d3 50149 instantiate the configuration header FILE
a848cd7e
SC
50150
50151Configuration files:
50152$config_files
50153
50154Configuration headers:
50155$config_headers
50156
50157Configuration commands:
50158$config_commands
50159
50160Report bugs to <bug-autoconf@gnu.org>."
50161_ACEOF
50162
50163cat >>$CONFIG_STATUS <<_ACEOF
50164ac_cs_version="\\
dd8df4fc 50165wxWidgets config.status 2.7.0
ac1cb8d3 50166configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
50167 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
50168
ac1cb8d3 50169Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
50170This config.status script is free software; the Free Software Foundation
50171gives unlimited permission to copy, distribute and modify it."
50172srcdir=$srcdir
50173INSTALL="$INSTALL"
50174_ACEOF
50175
50176cat >>$CONFIG_STATUS <<\_ACEOF
50177# If no file are specified by the user, then we need to provide default
50178# value. By we need to know if files were specified by the user.
50179ac_need_defaults=:
50180while test $# != 0
50181do
50182 case $1 in
50183 --*=*)
50184 ac_option=`expr "x$1" : 'x\([^=]*\)='`
50185 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
50186 ac_shift=:
50187 ;;
50188 -*)
50189 ac_option=$1
50190 ac_optarg=$2
50191 ac_shift=shift
50192 ;;
50193 *) # This is not an option, so the user has probably given explicit
50194 # arguments.
50195 ac_option=$1
50196 ac_need_defaults=false;;
50197 esac
50198
50199 case $ac_option in
50200 # Handling of the options.
50201_ACEOF
50202cat >>$CONFIG_STATUS <<\_ACEOF
50203 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50204 ac_cs_recheck=: ;;
50205 --version | --vers* | -V )
50206 echo "$ac_cs_version"; exit 0 ;;
50207 --he | --h)
50208 # Conflict between --help and --header
50209 { { echo "$as_me:$LINENO: error: ambiguous option: $1
50210Try \`$0 --help' for more information." >&5
50211echo "$as_me: error: ambiguous option: $1
50212Try \`$0 --help' for more information." >&2;}
50213 { (exit 1); exit 1; }; };;
50214 --help | --hel | -h )
50215 echo "$ac_cs_usage"; exit 0 ;;
50216 --debug | --d* | -d )
50217 debug=: ;;
50218 --file | --fil | --fi | --f )
50219 $ac_shift
50220 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
50221 ac_need_defaults=false;;
50222 --header | --heade | --head | --hea )
50223 $ac_shift
50224 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
50225 ac_need_defaults=false;;
50226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50227 | -silent | --silent | --silen | --sile | --sil | --si | --s)
50228 ac_cs_silent=: ;;
50229
50230 # This is an error.
50231 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
50232Try \`$0 --help' for more information." >&5
50233echo "$as_me: error: unrecognized option: $1
50234Try \`$0 --help' for more information." >&2;}
50235 { (exit 1); exit 1; }; } ;;
50236
50237 *) ac_config_targets="$ac_config_targets $1" ;;
50238
50239 esac
50240 shift
50241done
50242
50243ac_configure_extra_args=
50244
50245if $ac_cs_silent; then
50246 exec 6>/dev/null
50247 ac_configure_extra_args="$ac_configure_extra_args --silent"
50248fi
50249
50250_ACEOF
50251cat >>$CONFIG_STATUS <<_ACEOF
50252if \$ac_cs_recheck; then
50253 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
50254 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50255fi
50256
50257_ACEOF
50258
50259cat >>$CONFIG_STATUS <<_ACEOF
50260#
50261# INIT-COMMANDS section.
50262#
50263
5c60e845
MW
50264
50265 CPP="$CPP"
50266 infile="$srcdir/include/wx/msw/genrcdefs.h"
50267 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
50268
50269
ceec2216
RL
50270 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50271 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50272 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50273 LN_S="${LN_S}"
a848cd7e
SC
50274
50275
50276_ACEOF
50277
50278
50279
50280cat >>$CONFIG_STATUS <<\_ACEOF
50281for ac_config_target in $ac_config_targets
50282do
50283 case "$ac_config_target" in
50284 # Handling of arguments.
ceec2216
RL
50285 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
50286 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
50287 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
50288 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
50289 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 50290 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
50291 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
50292 "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
50293 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50294echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50295 { (exit 1); exit 1; }; };;
50296 esac
50297done
50298
50299# If the user did not use the arguments to specify the items to instantiate,
50300# then the envvar interface is used. Set only those that are not.
50301# We use the long form for the default assignment because of an extremely
50302# bizarre bug on SunOS 4.1.3.
50303if $ac_need_defaults; then
50304 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50305 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50306 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
50307fi
50308
50309# Have a temporary directory for convenience. Make it in the build tree
50310# simply because there is no reason to put it here, and in addition,
50311# creating and moving files from /tmp can sometimes cause problems.
50312# Create a temporary directory, and hook for its removal unless debugging.
50313$debug ||
50314{
50315 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
50316 trap '{ (exit 1); exit 1; }' 1 2 13 15
50317}
50318
50319# Create a (secure) tmp directory for tmp files.
50320
50321{
50322 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
50323 test -n "$tmp" && test -d "$tmp"
50324} ||
50325{
50326 tmp=./confstat$$-$RANDOM
50327 (umask 077 && mkdir $tmp)
50328} ||
50329{
50330 echo "$me: cannot create a temporary directory in ." >&2
50331 { (exit 1); exit 1; }
50332}
50333
50334_ACEOF
50335
50336cat >>$CONFIG_STATUS <<_ACEOF
50337
50338#
50339# CONFIG_FILES section.
50340#
50341
50342# No need to generate the scripts if there are no CONFIG_FILES.
50343# This happens for instance when ./config.status config.h
50344if test -n "\$CONFIG_FILES"; then
50345 # Protect against being on the right side of a sed subst in config.status.
50346 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
50347 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
50348s,@SHELL@,$SHELL,;t t
50349s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
50350s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
50351s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
50352s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
50353s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
50354s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
50355s,@exec_prefix@,$exec_prefix,;t t
50356s,@prefix@,$prefix,;t t
50357s,@program_transform_name@,$program_transform_name,;t t
50358s,@bindir@,$bindir,;t t
50359s,@sbindir@,$sbindir,;t t
50360s,@libexecdir@,$libexecdir,;t t
50361s,@datadir@,$datadir,;t t
50362s,@sysconfdir@,$sysconfdir,;t t
50363s,@sharedstatedir@,$sharedstatedir,;t t
50364s,@localstatedir@,$localstatedir,;t t
50365s,@libdir@,$libdir,;t t
50366s,@includedir@,$includedir,;t t
50367s,@oldincludedir@,$oldincludedir,;t t
50368s,@infodir@,$infodir,;t t
50369s,@mandir@,$mandir,;t t
50370s,@build_alias@,$build_alias,;t t
50371s,@host_alias@,$host_alias,;t t
50372s,@target_alias@,$target_alias,;t t
50373s,@DEFS@,$DEFS,;t t
50374s,@ECHO_C@,$ECHO_C,;t t
50375s,@ECHO_N@,$ECHO_N,;t t
50376s,@ECHO_T@,$ECHO_T,;t t
50377s,@LIBS@,$LIBS,;t t
50378s,@build@,$build,;t t
50379s,@build_cpu@,$build_cpu,;t t
50380s,@build_vendor@,$build_vendor,;t t
50381s,@build_os@,$build_os,;t t
50382s,@host@,$host,;t t
50383s,@host_cpu@,$host_cpu,;t t
50384s,@host_vendor@,$host_vendor,;t t
50385s,@host_os@,$host_os,;t t
50386s,@target@,$target,;t t
50387s,@target_cpu@,$target_cpu,;t t
50388s,@target_vendor@,$target_vendor,;t t
50389s,@target_os@,$target_os,;t t
50390s,@CC@,$CC,;t t
50391s,@CFLAGS@,$CFLAGS,;t t
50392s,@LDFLAGS@,$LDFLAGS,;t t
50393s,@CPPFLAGS@,$CPPFLAGS,;t t
50394s,@ac_ct_CC@,$ac_ct_CC,;t t
50395s,@EXEEXT@,$EXEEXT,;t t
50396s,@OBJEXT@,$OBJEXT,;t t
50397s,@CPP@,$CPP,;t t
50398s,@EGREP@,$EGREP,;t t
50399s,@CXX@,$CXX,;t t
50400s,@CXXFLAGS@,$CXXFLAGS,;t t
50401s,@ac_ct_CXX@,$ac_ct_CXX,;t t
50402s,@RANLIB@,$RANLIB,;t t
50403s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
50404s,@AR@,$AR,;t t
8c80d384 50405s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
50406s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
50407s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
50408s,@INSTALL_DATA@,$INSTALL_DATA,;t t
50409s,@STRIP@,$STRIP,;t t
8c80d384 50410s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
50411s,@WINDRES@,$WINDRES,;t t
50412s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
50413s,@DLLTOOL@,$DLLTOOL,;t t
50414s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
50415s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
50416s,@LN_S@,$LN_S,;t t
50417s,@CXXCPP@,$CXXCPP,;t t
50418s,@subdirs@,$subdirs,;t t
50419s,@PKG_CONFIG@,$PKG_CONFIG,;t t
50420s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
50421s,@GTK_LIBS@,$GTK_LIBS,;t t
50422s,@GTK_CONFIG@,$GTK_CONFIG,;t t
b3c86150
VS
50423s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
50424s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
50425s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
a848cd7e
SC
50426s,@X_CFLAGS@,$X_CFLAGS,;t t
50427s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
50428s,@X_LIBS@,$X_LIBS,;t t
50429s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
50430s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
50431s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
50432s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
50433s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
50434s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
50435s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 50436s,@REZ@,$REZ,;t t
a848cd7e
SC
50437s,@DEREZ@,$DEREZ,;t t
50438s,@SETFILE@,$SETFILE,;t t
50439s,@LIBICONV@,$LIBICONV,;t t
50440s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
50441s,@SDL_CONFIG@,$SDL_CONFIG,;t t
50442s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
50443s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
50444s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
50445s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
50446s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
50447s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
50448s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
50449s,@HILDON_LIBS@,$HILDON_LIBS,;t t
f10e38c4
VZ
50450s,@GST_CFLAGS@,$GST_CFLAGS,;t t
50451s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
50452s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
50453s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
50454s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
50455s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
50456s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
50457s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
50458s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
50459s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
50460s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
50461s,@VENDOR@,$VENDOR,;t t
50462s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
50463s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
50464s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
50465s,@WXUNIV@,$WXUNIV,;t t
50466s,@MONOLITHIC@,$MONOLITHIC,;t t
50467s,@USE_PLUGINS@,$USE_PLUGINS,;t t
50468s,@EXTRALIBS@,$EXTRALIBS,;t t
50469s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
50470s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
50471s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
50472s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
50473s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
50474s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
50475s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 50476s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 50477s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 50478s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
50479s,@UNICODE@,$UNICODE,;t t
50480s,@BUILD@,$BUILD,;t t
50481s,@DEBUG_INFO@,$DEBUG_INFO,;t t
50482s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
50483s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
50484s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
50485s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
50486s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
50487s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
50488s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
50489s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
50490s,@SET_MAKE@,$SET_MAKE,;t t
50491s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
50492s,@NM@,$NM,;t t
50493s,@ac_ct_NM@,$ac_ct_NM,;t t
50494s,@INSTALL_DIR@,$INSTALL_DIR,;t t
50495s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
50496s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
50497s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
50498s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
50499s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 50500s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
50501s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
50502s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 50503s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
50504s,@SO_SUFFIX@,$SO_SUFFIX,;t t
50505s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
50506s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
50507s,@LIBPREFIX@,$LIBPREFIX,;t t
50508s,@LIBEXT@,$LIBEXT,;t t
50509s,@DLLPREFIX@,$DLLPREFIX,;t t
50510s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 50511s,@dlldir@,$dlldir,;t t
a848cd7e
SC
50512s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
50513s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
50514s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
50515s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
50516s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
50517s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 50518s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
50519s,@USE_SOVERSION@,$USE_SOVERSION,;t t
50520s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
50521s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 50522s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
50523s,@USE_MACVERSION@,$USE_MACVERSION,;t t
50524s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
50525s,@SONAME_FLAG@,$SONAME_FLAG,;t t
50526s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
50527s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 50528s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
50529s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
50530s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
50531s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
50532s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
50533s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
50534s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
50535s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
50536s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
50537s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
50538s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
50539s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
50540s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
50541s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
50542s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
50543s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 50544s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
50545s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
50546s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 50547s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 50548s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 50549s,@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 50550s,@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 50551s,@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 50552s,@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 50553s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8b6682b9 50554s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
ceec2216 50555s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 50556s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 50557s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 50558s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 50559s,@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 50560s,@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 50561s,@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 50562s,@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 50563s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
8b6682b9 50564s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
ceec2216 50565s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 50566s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
50567s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
50568s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
50569s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
50570s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
50571s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
50572s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 50573s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
50574s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
50575s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 50576s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
50577s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
50578s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
50579s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 50580s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 50581s,@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
50582s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
50583s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
50584s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
50585s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 50586s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 50587s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 50588s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 50589s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
50590s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
50591s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
50592s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
50593s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
50594s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
50595s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
50596s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
50597s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
50598s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
50599s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
50600s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
50601s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
50602s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50603s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50604s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 50605s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
50606s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
50607s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
50608s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
50609s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
50610s,@COND_SHARED_1@,$COND_SHARED_1,;t t
50611s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 50612s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 50613s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 50614s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 50615s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e 50616s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
b3c86150
VS
50617s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
50618s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
a848cd7e 50619s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
50620s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
50621s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
50622s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
50623s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
50624s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
50625s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 50626s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
50627s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
50628s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
50629s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
50630s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
50631s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
50632s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
50633s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
50634s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
50635s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
50636s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
50637s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 50638s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
50639s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
50640s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
50641s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
50642s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
50643s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
50644s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 50645s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
50646s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
50647s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
50648s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
50649s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
50650s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
50651s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
50652s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
50653s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
50654s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
50655s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50656s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50657s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
50658s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
50659s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 50660s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 50661s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
50662s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
50663s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 50664s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 50665s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
50666s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
50667s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
50668s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
50669s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
50670s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 50671s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 50672s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 50673s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 50674s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
50675s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
50676s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
50677s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
50678s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
50679s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
50680s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
50681s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
50682s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 50683s,@SHARED@,$SHARED,;t t
a848cd7e
SC
50684s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
50685s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
50686s,@USE_GUI@,$USE_GUI,;t t
50687s,@AFMINSTALL@,$AFMINSTALL,;t t
50688s,@WIN32INSTALL@,$WIN32INSTALL,;t t
50689s,@TOOLKIT@,$TOOLKIT,;t t
50690s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 50691s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 50692s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 50693s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
50694s,@WIDGET_SET@,$WIDGET_SET,;t t
50695s,@WX_RELEASE@,$WX_RELEASE,;t t
50696s,@WX_VERSION@,$WX_VERSION,;t t
50697s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
50698s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
50699s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
50700s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
50701s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
50702s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
50703s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
50704s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
50705s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 50706s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 50707s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 50708s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
50709s,@DISTDIR@,$DISTDIR,;t t
50710s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
50711s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
50712s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
50713s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
50714s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 50715s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
50716s,@RESFLAGS@,$RESFLAGS,;t t
50717s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
50718s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
50719s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
50720s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 50721s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 50722s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 50723s,@GCC@,$GCC,;t t
a848cd7e
SC
50724s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
50725s,@LIBOBJS@,$LIBOBJS,;t t
50726s,@LTLIBOBJS@,$LTLIBOBJS,;t t
50727CEOF
50728
50729_ACEOF
50730
50731 cat >>$CONFIG_STATUS <<\_ACEOF
50732 # Split the substitutions into bite-sized pieces for seds with
50733 # small command number limits, like on Digital OSF/1 and HP-UX.
50734 ac_max_sed_lines=48
50735 ac_sed_frag=1 # Number of current file.
50736 ac_beg=1 # First line for current file.
50737 ac_end=$ac_max_sed_lines # Line after last line for current file.
50738 ac_more_lines=:
50739 ac_sed_cmds=
50740 while $ac_more_lines; do
50741 if test $ac_beg -gt 1; then
50742 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50743 else
50744 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50745 fi
50746 if test ! -s $tmp/subs.frag; then
50747 ac_more_lines=false
50748 else
50749 # The purpose of the label and of the branching condition is to
50750 # speed up the sed processing (if there are no `@' at all, there
50751 # is no need to browse any of the substitutions).
50752 # These are the two extra sed commands mentioned above.
50753 (echo ':t
50754 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
50755 if test -z "$ac_sed_cmds"; then
ac1cb8d3 50756 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 50757 else
ac1cb8d3 50758 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
50759 fi
50760 ac_sed_frag=`expr $ac_sed_frag + 1`
50761 ac_beg=$ac_end
50762 ac_end=`expr $ac_end + $ac_max_sed_lines`
50763 fi
50764 done
50765 if test -z "$ac_sed_cmds"; then
50766 ac_sed_cmds=cat
50767 fi
50768fi # test -n "$CONFIG_FILES"
50769
50770_ACEOF
50771cat >>$CONFIG_STATUS <<\_ACEOF
50772for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
50773 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50774 case $ac_file in
50775 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
50776 cat >$tmp/stdin
50777 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50778 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 50779 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 50780 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
50781 * ) ac_file_in=$ac_file.in ;;
50782 esac
50783
50784 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
50785 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50786$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50787 X"$ac_file" : 'X\(//\)[^/]' \| \
50788 X"$ac_file" : 'X\(//\)$' \| \
50789 X"$ac_file" : 'X\(/\)' \| \
50790 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50791echo X"$ac_file" |
50792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50793 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50794 /^X\(\/\/\)$/{ s//\1/; q; }
50795 /^X\(\/\).*/{ s//\1/; q; }
50796 s/.*/./; q'`
50797 { if $as_mkdir_p; then
50798 mkdir -p "$ac_dir"
50799 else
50800 as_dir="$ac_dir"
50801 as_dirs=
50802 while test ! -d "$as_dir"; do
50803 as_dirs="$as_dir $as_dirs"
50804 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50805$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50806 X"$as_dir" : 'X\(//\)[^/]' \| \
50807 X"$as_dir" : 'X\(//\)$' \| \
50808 X"$as_dir" : 'X\(/\)' \| \
50809 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50810echo X"$as_dir" |
50811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50812 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50813 /^X\(\/\/\)$/{ s//\1/; q; }
50814 /^X\(\/\).*/{ s//\1/; q; }
50815 s/.*/./; q'`
50816 done
50817 test ! -n "$as_dirs" || mkdir $as_dirs
50818 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50819echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50820 { (exit 1); exit 1; }; }; }
50821
50822 ac_builddir=.
50823
50824if test "$ac_dir" != .; then
50825 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50826 # A "../" for each directory in $ac_dir_suffix.
50827 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50828else
50829 ac_dir_suffix= ac_top_builddir=
50830fi
50831
50832case $srcdir in
50833 .) # No --srcdir option. We are building in place.
50834 ac_srcdir=.
50835 if test -z "$ac_top_builddir"; then
50836 ac_top_srcdir=.
50837 else
50838 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50839 fi ;;
50840 [\\/]* | ?:[\\/]* ) # Absolute path.
50841 ac_srcdir=$srcdir$ac_dir_suffix;
50842 ac_top_srcdir=$srcdir ;;
50843 *) # Relative path.
50844 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50845 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50846esac
ac1cb8d3
VS
50847
50848# Do not use `cd foo && pwd` to compute absolute paths, because
50849# the directories may not exist.
50850case `pwd` in
50851.) ac_abs_builddir="$ac_dir";;
50852*)
50853 case "$ac_dir" in
50854 .) ac_abs_builddir=`pwd`;;
50855 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50856 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50857 esac;;
50858esac
50859case $ac_abs_builddir in
50860.) ac_abs_top_builddir=${ac_top_builddir}.;;
50861*)
50862 case ${ac_top_builddir}. in
50863 .) ac_abs_top_builddir=$ac_abs_builddir;;
50864 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50865 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50866 esac;;
50867esac
50868case $ac_abs_builddir in
50869.) ac_abs_srcdir=$ac_srcdir;;
50870*)
50871 case $ac_srcdir in
50872 .) ac_abs_srcdir=$ac_abs_builddir;;
50873 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50874 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50875 esac;;
50876esac
50877case $ac_abs_builddir in
50878.) ac_abs_top_srcdir=$ac_top_srcdir;;
50879*)
50880 case $ac_top_srcdir in
50881 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50882 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50883 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50884 esac;;
50885esac
a848cd7e
SC
50886
50887
50888 case $INSTALL in
50889 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50890 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
50891 esac
50892
a848cd7e
SC
50893 # Let's still pretend it is `configure' which instantiates (i.e., don't
50894 # use $as_me), people would be surprised to read:
50895 # /* config.h. Generated by config.status. */
50896 if test x"$ac_file" = x-; then
50897 configure_input=
50898 else
50899 configure_input="$ac_file. "
50900 fi
50901 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 50902 sed 's,.*/,,'` by configure."
a848cd7e
SC
50903
50904 # First look for the input files in the build tree, otherwise in the
50905 # src tree.
50906 ac_file_inputs=`IFS=:
50907 for f in $ac_file_in; do
50908 case $f in
50909 -) echo $tmp/stdin ;;
50910 [\\/$]*)
ac1cb8d3
VS
50911 # Absolute (can't be DOS-style, as IFS=:)
50912 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50913echo "$as_me: error: cannot find input file: $f" >&2;}
50914 { (exit 1); exit 1; }; }
ac1cb8d3 50915 echo "$f";;
a848cd7e 50916 *) # Relative
ac1cb8d3
VS
50917 if test -f "$f"; then
50918 # Build tree
50919 echo "$f"
50920 elif test -f "$srcdir/$f"; then
50921 # Source tree
50922 echo "$srcdir/$f"
50923 else
50924 # /dev/null tree
50925 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50926echo "$as_me: error: cannot find input file: $f" >&2;}
50927 { (exit 1); exit 1; }; }
ac1cb8d3 50928 fi;;
a848cd7e
SC
50929 esac
50930 done` || { (exit 1); exit 1; }
ca5c6ac3
VZ
50931
50932 if test x"$ac_file" != x-; then
50933 { echo "$as_me:$LINENO: creating $ac_file" >&5
50934echo "$as_me: creating $ac_file" >&6;}
50935 rm -f "$ac_file"
50936 fi
a848cd7e
SC
50937_ACEOF
50938cat >>$CONFIG_STATUS <<_ACEOF
50939 sed "$ac_vpsub
50940$extrasub
50941_ACEOF
50942cat >>$CONFIG_STATUS <<\_ACEOF
50943:t
50944/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50945s,@configure_input@,$configure_input,;t t
50946s,@srcdir@,$ac_srcdir,;t t
50947s,@abs_srcdir@,$ac_abs_srcdir,;t t
50948s,@top_srcdir@,$ac_top_srcdir,;t t
50949s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
50950s,@builddir@,$ac_builddir,;t t
50951s,@abs_builddir@,$ac_abs_builddir,;t t
50952s,@top_builddir@,$ac_top_builddir,;t t
50953s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
50954s,@INSTALL@,$ac_INSTALL,;t t
50955" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
50956 rm -f $tmp/stdin
50957 if test x"$ac_file" != x-; then
50958 mv $tmp/out $ac_file
50959 else
50960 cat $tmp/out
50961 rm -f $tmp/out
50962 fi
50963
ceec2216
RL
50964 # Run the commands associated with the file.
50965 case $ac_file in
50966 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
50967 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
50968 esac
a848cd7e
SC
50969done
50970_ACEOF
50971cat >>$CONFIG_STATUS <<\_ACEOF
50972
50973#
50974# CONFIG_HEADER section.
50975#
50976
50977# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
50978# NAME is the cpp macro being defined and VALUE is the value it is being given.
50979#
50980# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
50981ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
50982ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
50983ac_dC=' '
50984ac_dD=',;t'
50985# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 50986ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
50987ac_uB='$,\1#\2define\3'
50988ac_uC=' '
50989ac_uD=',;t'
50990
50991for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
50992 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50993 case $ac_file in
50994 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
50995 cat >$tmp/stdin
50996 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50997 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 50998 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 50999 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
51000 * ) ac_file_in=$ac_file.in ;;
51001 esac
51002
51003 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
51004echo "$as_me: creating $ac_file" >&6;}
51005
51006 # First look for the input files in the build tree, otherwise in the
51007 # src tree.
51008 ac_file_inputs=`IFS=:
51009 for f in $ac_file_in; do
51010 case $f in
51011 -) echo $tmp/stdin ;;
51012 [\\/$]*)
ac1cb8d3
VS
51013 # Absolute (can't be DOS-style, as IFS=:)
51014 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51015echo "$as_me: error: cannot find input file: $f" >&2;}
51016 { (exit 1); exit 1; }; }
ac1cb8d3
VS
51017 # Do quote $f, to prevent DOS paths from being IFS'd.
51018 echo "$f";;
a848cd7e 51019 *) # Relative
ac1cb8d3
VS
51020 if test -f "$f"; then
51021 # Build tree
51022 echo "$f"
51023 elif test -f "$srcdir/$f"; then
51024 # Source tree
51025 echo "$srcdir/$f"
51026 else
51027 # /dev/null tree
51028 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51029echo "$as_me: error: cannot find input file: $f" >&2;}
51030 { (exit 1); exit 1; }; }
ac1cb8d3 51031 fi;;
a848cd7e
SC
51032 esac
51033 done` || { (exit 1); exit 1; }
51034 # Remove the trailing spaces.
ac1cb8d3 51035 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
51036
51037_ACEOF
51038
51039# Transform confdefs.h into two sed scripts, `conftest.defines' and
51040# `conftest.undefs', that substitutes the proper values into
51041# config.h.in to produce config.h. The first handles `#define'
51042# templates, and the second `#undef' templates.
51043# And first: Protect against being on the right side of a sed subst in
51044# config.status. Protect against being in an unquoted here document
51045# in config.status.
51046rm -f conftest.defines conftest.undefs
51047# Using a here document instead of a string reduces the quoting nightmare.
51048# Putting comments in sed scripts is not portable.
51049#
51050# `end' is used to avoid that the second main sed command (meant for
51051# 0-ary CPP macros) applies to n-ary macro definitions.
51052# See the Autoconf documentation for `clear'.
51053cat >confdef2sed.sed <<\_ACEOF
51054s/[\\&,]/\\&/g
51055s,[\\$`],\\&,g
51056t clear
51057: clear
ac1cb8d3 51058s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 51059t end
ac1cb8d3 51060s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
51061: end
51062_ACEOF
51063# If some macros were called several times there might be several times
51064# the same #defines, which is useless. Nevertheless, we may not want to
51065# sort them, since we want the *last* AC-DEFINE to be honored.
51066uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
51067sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
51068rm -f confdef2sed.sed
51069
51070# This sed command replaces #undef with comments. This is necessary, for
51071# example, in the case of _POSIX_SOURCE, which is predefined and required
51072# on some systems where configure will not decide to define it.
51073cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 51074s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
51075_ACEOF
51076
51077# Break up conftest.defines because some shells have a limit on the size
51078# of here documents, and old seds have small limits too (100 cmds).
51079echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 51080echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
51081echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
51082echo ' :' >>$CONFIG_STATUS
51083rm -f conftest.tail
51084while grep . conftest.defines >/dev/null
51085do
51086 # Write a limited-size here document to $tmp/defines.sed.
51087 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
51088 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 51089 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
51090 # Work around the forget-to-reset-the-flag bug.
51091 echo 't clr' >>$CONFIG_STATUS
51092 echo ': clr' >>$CONFIG_STATUS
51093 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
51094 echo 'CEOF
51095 sed -f $tmp/defines.sed $tmp/in >$tmp/out
51096 rm -f $tmp/in
51097 mv $tmp/out $tmp/in
51098' >>$CONFIG_STATUS
51099 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
51100 rm -f conftest.defines
51101 mv conftest.tail conftest.defines
51102done
51103rm -f conftest.defines
51104echo ' fi # grep' >>$CONFIG_STATUS
51105echo >>$CONFIG_STATUS
51106
51107# Break up conftest.undefs because some shells have a limit on the size
51108# of here documents, and old seds have small limits too (100 cmds).
51109echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
51110rm -f conftest.tail
51111while grep . conftest.undefs >/dev/null
51112do
51113 # Write a limited-size here document to $tmp/undefs.sed.
51114 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
51115 # Speed up: don't consider the non `#undef'
ac1cb8d3 51116 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
51117 # Work around the forget-to-reset-the-flag bug.
51118 echo 't clr' >>$CONFIG_STATUS
51119 echo ': clr' >>$CONFIG_STATUS
51120 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
51121 echo 'CEOF
51122 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
51123 rm -f $tmp/in
51124 mv $tmp/out $tmp/in
51125' >>$CONFIG_STATUS
51126 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
51127 rm -f conftest.undefs
51128 mv conftest.tail conftest.undefs
51129done
51130rm -f conftest.undefs
51131
51132cat >>$CONFIG_STATUS <<\_ACEOF
51133 # Let's still pretend it is `configure' which instantiates (i.e., don't
51134 # use $as_me), people would be surprised to read:
51135 # /* config.h. Generated by config.status. */
51136 if test x"$ac_file" = x-; then
51137 echo "/* Generated by configure. */" >$tmp/config.h
51138 else
51139 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
51140 fi
51141 cat $tmp/in >>$tmp/config.h
51142 rm -f $tmp/in
51143 if test x"$ac_file" != x-; then
51144 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
51145 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
51146echo "$as_me: $ac_file is unchanged" >&6;}
51147 else
51148 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51149$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51150 X"$ac_file" : 'X\(//\)[^/]' \| \
51151 X"$ac_file" : 'X\(//\)$' \| \
51152 X"$ac_file" : 'X\(/\)' \| \
51153 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51154echo X"$ac_file" |
51155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51156 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51157 /^X\(\/\/\)$/{ s//\1/; q; }
51158 /^X\(\/\).*/{ s//\1/; q; }
51159 s/.*/./; q'`
51160 { if $as_mkdir_p; then
51161 mkdir -p "$ac_dir"
51162 else
51163 as_dir="$ac_dir"
51164 as_dirs=
51165 while test ! -d "$as_dir"; do
51166 as_dirs="$as_dir $as_dirs"
51167 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51168$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51169 X"$as_dir" : 'X\(//\)[^/]' \| \
51170 X"$as_dir" : 'X\(//\)$' \| \
51171 X"$as_dir" : 'X\(/\)' \| \
51172 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51173echo X"$as_dir" |
51174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51175 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51176 /^X\(\/\/\)$/{ s//\1/; q; }
51177 /^X\(\/\).*/{ s//\1/; q; }
51178 s/.*/./; q'`
51179 done
51180 test ! -n "$as_dirs" || mkdir $as_dirs
51181 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51182echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51183 { (exit 1); exit 1; }; }; }
51184
51185 rm -f $ac_file
51186 mv $tmp/config.h $ac_file
51187 fi
51188 else
51189 cat $tmp/config.h
51190 rm -f $tmp/config.h
51191 fi
51192done
51193_ACEOF
51194cat >>$CONFIG_STATUS <<\_ACEOF
51195
51196#
51197# CONFIG_COMMANDS section.
51198#
51199for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
51200 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
51201 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
51202 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
51203$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51204 X"$ac_dest" : 'X\(//\)[^/]' \| \
51205 X"$ac_dest" : 'X\(//\)$' \| \
51206 X"$ac_dest" : 'X\(/\)' \| \
51207 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51208echo X"$ac_dest" |
51209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51210 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51211 /^X\(\/\/\)$/{ s//\1/; q; }
51212 /^X\(\/\).*/{ s//\1/; q; }
51213 s/.*/./; q'`
ac1cb8d3
VS
51214 { if $as_mkdir_p; then
51215 mkdir -p "$ac_dir"
51216 else
51217 as_dir="$ac_dir"
51218 as_dirs=
51219 while test ! -d "$as_dir"; do
51220 as_dirs="$as_dir $as_dirs"
51221 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51222$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51223 X"$as_dir" : 'X\(//\)[^/]' \| \
51224 X"$as_dir" : 'X\(//\)$' \| \
51225 X"$as_dir" : 'X\(/\)' \| \
51226 . : '\(.\)' 2>/dev/null ||
51227echo X"$as_dir" |
51228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51229 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51230 /^X\(\/\/\)$/{ s//\1/; q; }
51231 /^X\(\/\).*/{ s//\1/; q; }
51232 s/.*/./; q'`
51233 done
51234 test ! -n "$as_dirs" || mkdir $as_dirs
51235 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51236echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51237 { (exit 1); exit 1; }; }; }
51238
a848cd7e
SC
51239 ac_builddir=.
51240
51241if test "$ac_dir" != .; then
51242 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51243 # A "../" for each directory in $ac_dir_suffix.
51244 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51245else
51246 ac_dir_suffix= ac_top_builddir=
51247fi
51248
51249case $srcdir in
51250 .) # No --srcdir option. We are building in place.
51251 ac_srcdir=.
51252 if test -z "$ac_top_builddir"; then
51253 ac_top_srcdir=.
51254 else
51255 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51256 fi ;;
51257 [\\/]* | ?:[\\/]* ) # Absolute path.
51258 ac_srcdir=$srcdir$ac_dir_suffix;
51259 ac_top_srcdir=$srcdir ;;
51260 *) # Relative path.
51261 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51262 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51263esac
ac1cb8d3
VS
51264
51265# Do not use `cd foo && pwd` to compute absolute paths, because
51266# the directories may not exist.
51267case `pwd` in
51268.) ac_abs_builddir="$ac_dir";;
51269*)
51270 case "$ac_dir" in
51271 .) ac_abs_builddir=`pwd`;;
51272 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51273 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51274 esac;;
51275esac
51276case $ac_abs_builddir in
51277.) ac_abs_top_builddir=${ac_top_builddir}.;;
51278*)
51279 case ${ac_top_builddir}. in
51280 .) ac_abs_top_builddir=$ac_abs_builddir;;
51281 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51282 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51283 esac;;
51284esac
51285case $ac_abs_builddir in
51286.) ac_abs_srcdir=$ac_srcdir;;
51287*)
51288 case $ac_srcdir in
51289 .) ac_abs_srcdir=$ac_abs_builddir;;
51290 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51291 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51292 esac;;
51293esac
51294case $ac_abs_builddir in
51295.) ac_abs_top_srcdir=$ac_top_srcdir;;
51296*)
51297 case $ac_top_srcdir in
51298 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51299 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51300 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51301 esac;;
51302esac
a848cd7e
SC
51303
51304
51305 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
51306echo "$as_me: executing $ac_dest commands" >&6;}
51307 case $ac_dest in
5c60e845
MW
51308 rcdefs.h )
51309 mkdir -p $outdir &&
51310 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
51311 ;;
ceec2216
RL
51312 wx-config ) rm -f wx-config
51313 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
51314 ;;
a848cd7e
SC
51315 esac
51316done
51317_ACEOF
51318
51319cat >>$CONFIG_STATUS <<\_ACEOF
51320
51321{ (exit 0); exit 0; }
51322_ACEOF
51323chmod +x $CONFIG_STATUS
51324ac_clean_files=$ac_clean_files_save
51325
51326
51327# configure is writing to config.log, and then calls config.status.
51328# config.status does its own redirection, appending to config.log.
51329# Unfortunately, on DOS this fails, as config.log is still kept open
51330# by configure, so config.status won't be able to write to it; its
51331# output is simply discarded. So we exec the FD to /dev/null,
51332# effectively closing config.log, so it can be properly (re)opened and
51333# appended to by config.status. When coming back to configure, we
51334# need to make the FD available again.
51335if test "$no_create" != yes; then
51336 ac_cs_success=:
51337 ac_config_status_args=
51338 test "$silent" = yes &&
51339 ac_config_status_args="$ac_config_status_args --quiet"
51340 exec 5>/dev/null
51341 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51342 exec 5>>config.log
51343 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51344 # would make configure fail if this is the last instruction.
51345 $ac_cs_success || { (exit 1); exit 1; }
51346fi
51347
51348#
51349# CONFIG_SUBDIRS section.
51350#
51351if test "$no_recursion" != yes; then
51352
51353 # Remove --cache-file and --srcdir arguments so they do not pile up.
51354 ac_sub_configure_args=
51355 ac_prev=
51356 for ac_arg in $ac_configure_args; do
51357 if test -n "$ac_prev"; then
51358 ac_prev=
51359 continue
51360 fi
51361 case $ac_arg in
51362 -cache-file | --cache-file | --cache-fil | --cache-fi \
51363 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
51364 ac_prev=cache_file ;;
51365 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
51366 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
51367 | --c=*)
51368 ;;
51369 --config-cache | -C)
51370 ;;
51371 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
51372 ac_prev=srcdir ;;
51373 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
51374 ;;
51375 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
51376 ac_prev=prefix ;;
51377 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
51378 ;;
51379 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
51380 esac
51381 done
51382
51383 # Always prepend --prefix to ensure using the same prefix
51384 # in subdir configurations.
51385 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
51386
51387 ac_popdir=`pwd`
51388 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
51389
51390 # Do not complain, so a configure script can configure whichever
51391 # parts of a large source tree are present.
51392 test -d $srcdir/$ac_dir || continue
51393
51394 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
51395echo "$as_me: configuring in $ac_dir" >&6;}
51396 { if $as_mkdir_p; then
51397 mkdir -p "$ac_dir"
51398 else
51399 as_dir="$ac_dir"
51400 as_dirs=
51401 while test ! -d "$as_dir"; do
51402 as_dirs="$as_dir $as_dirs"
51403 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51404$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51405 X"$as_dir" : 'X\(//\)[^/]' \| \
51406 X"$as_dir" : 'X\(//\)$' \| \
51407 X"$as_dir" : 'X\(/\)' \| \
51408 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51409echo X"$as_dir" |
51410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51411 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51412 /^X\(\/\/\)$/{ s//\1/; q; }
51413 /^X\(\/\).*/{ s//\1/; q; }
51414 s/.*/./; q'`
51415 done
51416 test ! -n "$as_dirs" || mkdir $as_dirs
51417 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51418echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51419 { (exit 1); exit 1; }; }; }
51420
51421 ac_builddir=.
51422
51423if test "$ac_dir" != .; then
51424 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51425 # A "../" for each directory in $ac_dir_suffix.
51426 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51427else
51428 ac_dir_suffix= ac_top_builddir=
51429fi
51430
51431case $srcdir in
51432 .) # No --srcdir option. We are building in place.
51433 ac_srcdir=.
51434 if test -z "$ac_top_builddir"; then
51435 ac_top_srcdir=.
51436 else
51437 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51438 fi ;;
51439 [\\/]* | ?:[\\/]* ) # Absolute path.
51440 ac_srcdir=$srcdir$ac_dir_suffix;
51441 ac_top_srcdir=$srcdir ;;
51442 *) # Relative path.
51443 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51444 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51445esac
ac1cb8d3
VS
51446
51447# Do not use `cd foo && pwd` to compute absolute paths, because
51448# the directories may not exist.
51449case `pwd` in
51450.) ac_abs_builddir="$ac_dir";;
51451*)
51452 case "$ac_dir" in
51453 .) ac_abs_builddir=`pwd`;;
51454 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51455 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51456 esac;;
51457esac
51458case $ac_abs_builddir in
51459.) ac_abs_top_builddir=${ac_top_builddir}.;;
51460*)
51461 case ${ac_top_builddir}. in
51462 .) ac_abs_top_builddir=$ac_abs_builddir;;
51463 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51464 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51465 esac;;
51466esac
51467case $ac_abs_builddir in
51468.) ac_abs_srcdir=$ac_srcdir;;
51469*)
51470 case $ac_srcdir in
51471 .) ac_abs_srcdir=$ac_abs_builddir;;
51472 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51473 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51474 esac;;
51475esac
51476case $ac_abs_builddir in
51477.) ac_abs_top_srcdir=$ac_top_srcdir;;
51478*)
51479 case $ac_top_srcdir in
51480 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51481 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51482 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51483 esac;;
51484esac
a848cd7e
SC
51485
51486
51487 cd $ac_dir
51488
51489 # Check for guested configure; otherwise get Cygnus style configure.
51490 if test -f $ac_srcdir/configure.gnu; then
51491 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
51492 elif test -f $ac_srcdir/configure; then
51493 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
51494 elif test -f $ac_srcdir/configure.in; then
51495 ac_sub_configure=$ac_configure
51496 else
51497 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
51498echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
51499 ac_sub_configure=
51500 fi
51501
51502 # The recursion is here.
51503 if test -n "$ac_sub_configure"; then
51504 # Make the cache file name correct relative to the subdirectory.
51505 case $cache_file in
51506 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
51507 *) # Relative path.
ac1cb8d3 51508 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
51509 esac
51510
51511 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
51512echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
51513 # The eval makes quoting arguments work.
51514 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
51515 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
51516 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
51517echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
51518 { (exit 1); exit 1; }; }
51519 fi
51520
ca5c6ac3 51521 cd "$ac_popdir"
a848cd7e
SC
51522 done
51523fi
51524
51525
51526echo
77ffb593 51527echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 51528echo ""
c2e9ada4 51529echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
77ffb593 51530echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 51531
77ffb593
JS
51532echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
51533echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
51534echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 51535
77ffb593 51536echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
51537echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
51538echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 51539
77ffb593 51540echo " Which libraries should wxWidgets use?"
a848cd7e
SC
51541echo " jpeg ${wxUSE_LIBJPEG-none}"
51542echo " png ${wxUSE_LIBPNG-none}"
51543echo " regex ${wxUSE_REGEX}"
51544echo " tiff ${wxUSE_LIBTIFF-none}"
51545if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
51546echo " xpm ${wxUSE_LIBXPM-none}"
51547fi
51548echo " zlib ${wxUSE_ZLIB}"
51549echo " odbc ${wxUSE_ODBC}"
51550echo " expat ${wxUSE_EXPAT}"
51551echo " libmspack ${wxUSE_LIBMSPACK}"
51552echo " sdl ${wxUSE_LIBSDL}"
51553
51554echo ""
51555