]> git.saurik.com Git - wxWidgets.git/blame - configure
Use widget->allocation instead of querying the
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
f1e3914f 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.1.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
f1e3914f
RR
273PACKAGE_VERSION='2.7.1'
274PACKAGE_STRING='wxWidgets 2.7.1'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
64b75e64 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG ac_pt_PKG_CONFIG DIRECTFB_CFLAGS DIRECTFB_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS CAIRO_CFLAGS CAIRO_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH ICC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_DFB COND_TOOLKIT_DFB_USE_GUI_1 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
3ecd9f92
MW
789ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
790ac_env_PKG_CONFIG_value=$PKG_CONFIG
791ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
792ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
b3c86150
VS
793ac_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
794ac_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
795ac_cv_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
796ac_cv_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
797ac_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
798ac_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
799ac_cv_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
800ac_cv_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
3ecd9f92
MW
801ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
802ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
803ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
804ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
805ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
806ac_env_PANGOX_LIBS_value=$PANGOX_LIBS
807ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
808ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS
809ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
810ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
811ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
812ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
813ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
814ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
815ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
816ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
817ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
818ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
819ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
820ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
821ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
822ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
823ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
824ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
825ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
826ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
827ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
828ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
829ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
830ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
831ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
832ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
833ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
834ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
835ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
836ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
837ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
838ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
839ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
840ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
841ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
842ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
843ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
844ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
845ac_env_HILDON_LIBS_set=${HILDON_LIBS+set}
846ac_env_HILDON_LIBS_value=$HILDON_LIBS
847ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set}
848ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS
64b75e64
RD
849ac_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
850ac_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
851ac_cv_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
852ac_cv_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
853ac_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
854ac_env_CAIRO_LIBS_value=$CAIRO_LIBS
855ac_cv_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
856ac_cv_env_CAIRO_LIBS_value=$CAIRO_LIBS
3ecd9f92
MW
857ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
858ac_env_GST_CFLAGS_value=$GST_CFLAGS
859ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
860ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
861ac_env_GST_LIBS_set=${GST_LIBS+set}
862ac_env_GST_LIBS_value=$GST_LIBS
863ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
864ac_cv_env_GST_LIBS_value=$GST_LIBS
a848cd7e
SC
865
866#
867# Report the --help message.
868#
869if test "$ac_init_help" = "long"; then
870 # Omit some internal or obsolete options to make the list less imposing.
871 # This message is too long to be a string in the A/UX 3.1 sh.
872 cat <<_ACEOF
f1e3914f 873\`configure' configures wxWidgets 2.7.1 to adapt to many kinds of systems.
a848cd7e
SC
874
875Usage: $0 [OPTION]... [VAR=VALUE]...
876
877To assign environment variables (e.g., CC, CFLAGS...), specify them as
878VAR=VALUE. See below for descriptions of some of the useful variables.
879
880Defaults for the options are specified in brackets.
881
882Configuration:
883 -h, --help display this help and exit
884 --help=short display options specific to this package
885 --help=recursive display the short help of all the included packages
886 -V, --version display version information and exit
887 -q, --quiet, --silent do not print \`checking...' messages
888 --cache-file=FILE cache test results in FILE [disabled]
889 -C, --config-cache alias for \`--cache-file=config.cache'
890 -n, --no-create do not create output files
891 --srcdir=DIR find the sources in DIR [configure dir or \`..']
892
893_ACEOF
894
895 cat <<_ACEOF
896Installation directories:
897 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 898 [$ac_default_prefix]
a848cd7e 899 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 900 [PREFIX]
a848cd7e
SC
901
902By default, \`make install' will install all the files in
903\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
904an installation prefix other than \`$ac_default_prefix' using \`--prefix',
905for instance \`--prefix=\$HOME'.
906
907For better control, use the options below.
908
909Fine tuning of the installation directories:
910 --bindir=DIR user executables [EPREFIX/bin]
911 --sbindir=DIR system admin executables [EPREFIX/sbin]
912 --libexecdir=DIR program executables [EPREFIX/libexec]
913 --datadir=DIR read-only architecture-independent data [PREFIX/share]
914 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
915 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
916 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
917 --libdir=DIR object code libraries [EPREFIX/lib]
918 --includedir=DIR C header files [PREFIX/include]
919 --oldincludedir=DIR C header files for non-gcc [/usr/include]
920 --infodir=DIR info documentation [PREFIX/info]
921 --mandir=DIR man documentation [PREFIX/man]
922_ACEOF
923
924 cat <<\_ACEOF
925
926X features:
927 --x-includes=DIR X include files are in DIR
928 --x-libraries=DIR X library files are in DIR
929
930System types:
931 --build=BUILD configure for building on BUILD [guessed]
932 --host=HOST cross-compile to build programs to run on HOST [BUILD]
933 --target=TARGET configure for building compilers for TARGET [HOST]
934_ACEOF
935fi
936
937if test -n "$ac_init_help"; then
938 case $ac_init_help in
f1e3914f 939 short | recursive ) echo "Configuration of wxWidgets 2.7.1:";;
a848cd7e
SC
940 esac
941 cat <<\_ACEOF
942
943Optional Features:
944 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
945 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
946 --enable-gui use GUI classes
77ffb593
JS
947 --enable-monolithic build wxWidgets as single library
948 --enable-plugins build parts of wxWidgets as loadable components
949 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 950 --enable-nanox use NanoX
f34ca037 951 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
952 --enable-gpe use GNOME PDA Environment features if possible
953 --enable-shared create shared library code
954 --enable-optimise create optimised code
955 --enable-debug same as debug_flag and debug_info
956 --enable-stl use STL for containers
957 --enable-omf use OMF object format
958 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
959 --enable-debug_info create code with debugging information
960 --enable-debug_gdb create code with extra GDB debugging information
961 --enable-debug_cntxt use wxDebugContext
962 --enable-mem_tracing create code with memory tracing
963 --enable-profile create code with profiling information
964 --enable-no_rtti create code without RTTI information
965 --enable-no_exceptions create code without C++ exceptions handling
966 --enable-permissive compile code disregarding strict ANSI
967 --enable-no_deps create code without dependency information
95768535 968 --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
969 --enable-compat24 enable wxWidgets 2.4 compatibility
970 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 971 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
972 --enable-intl use internationalization system
973 --enable-config use wxConfig (and derived) classes
974 --enable-protocols use wxProtocol and derived classes
975 --enable-ftp use wxFTP (requires wxProtocol
976 --enable-http use wxHTTP (requires wxProtocol
977 --enable-fileproto use wxFileProto class (requires wxProtocol
978 --enable-sockets use socket/network classes
979 --enable-ole use OLE classes (Win32 only)
980 --enable-dataobj use data object classes
981 --enable-ipc use interprocess communication (wxSocket etc.)
982 --enable-apple_ieee use the Apple IEEE codec
81f90336 983 --enable-arcstream use wxArchive streams
eaff0f0d 984 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 985 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
986 --enable-cmdline use wxCmdLineParser class
987 --enable-datetime use wxDateTime class
36b6448c 988 --enable-debugreport use wxDebugReport class
a848cd7e
SC
989 --enable-dialupman use dialup network classes
990 --enable-dynlib use wxLibrary class for DLL loading
991 --enable-dynamicloader use (new) wxDynamicLibrary class
992 --enable-exceptions build exception-safe library
993 --enable-ffile use wxFFile class
994 --enable-file use wxFile class
995 --enable-filesystem use virtual file systems classes
996 --enable-fontmap use font encodings conversion classes
997 --enable-fs_inet use virtual HTTP/FTP filesystems
998 --enable-fs_zip use virtual ZIP filesystems
999 --enable-geometry use geometry class
1000 --enable-log use logging system
1001 --enable-longlong use wxLongLong class
1002 --enable-mimetype use wxMimeTypesManager
1003 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
1004 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 1005 --enable-std_iostreams use standard C++ stream classes
59746b65 1006 --enable-std_string use standard C++ string classes
07158944 1007 --enable-stdpaths use wxStandardPaths class
a848cd7e 1008 --enable-stopwatch use wxStopWatch class
07158944 1009 --enable-streams use wxStream etc classes
a848cd7e
SC
1010 --enable-sysoptions use wxSystemOptions
1011 --enable-textbuf use wxTextBuffer class
1012 --enable-textfile use wxTextFile class
1013 --enable-timer use wxTimer class
1014 --enable-unicode compile wxString with Unicode support
1015 --enable-sound use wxSound class
3b57de8b 1016 --enable-mediactrl use wxMediaCtrl class
15291213 1017 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
8b6682b9 1018 --enable-printfposparam use wxVsnprintf() which supports positional parameters
81f90336 1019 --enable-zipstream use wxZip streams
a848cd7e 1020 --enable-url use wxURL class
ca5c6ac3 1021 --enable-variant use wxVariant class
a848cd7e
SC
1022 --enable-protocol use wxProtocol class
1023 --enable-protocol-http HTTP support in wxProtocol
1024 --enable-protocol-ftp FTP support in wxProtocol
1025 --enable-protocol-file FILE support in wxProtocol
1026 --enable-threads use threads
1027 --enable-docview use document view architecture
1028 --enable-help use help subsystem
1029 --enable-mshtmlhelp use MS HTML Help (win32)
1030 --enable-html use wxHTML sub-library
1031 --enable-htmlhelp use wxHTML-based help
9a8f0513 1032 --enable-xrc use XRC resources sub-library
3f60522a 1033 --enable-aui use AUI docking library
a848cd7e
SC
1034 --enable-constraints use layout-constraints system
1035 --enable-printarch use printing architecture
1036 --enable-mdi use multiple document interface architecture
8a7b1113 1037 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
1038 --enable-loggui use standard GUI logger
1039 --enable-logwin use wxLogWindow
1040 --enable-logdialog use wxLogDialog
646b6ec1 1041 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 1042 --enable-richtext use wxRichTextCtrl
f43426c1 1043 --enable-graphics_ctx use graphics context 2D drawing API
a848cd7e
SC
1044 --enable-postscript use wxPostscriptDC device context (default for gtk+)
1045 --enable-prologio not available; see contrib
1046 --enable-resources not available; see contrib
1047 --enable-clipboard use wxClipboard class
1048 --enable-dnd use Drag'n'Drop classes
1049 --enable-metafile use win32 metafiles
1050 --enable-controls use all usual controls
1051 --enable-accel use accelerators
3ea50042 1052 --enable-animatectrl use wxAnimationCtrl class
a848cd7e
SC
1053 --enable-button use wxButton class
1054 --enable-bmpbutton use wxBitmapButton class
95a46303 1055 --enable-bmpcombobox use wxBitmapComboBox class
a848cd7e
SC
1056 --enable-calendar use wxCalendarCtrl class
1057 --enable-caret use wxCaret class
1058 --enable-checkbox use wxCheckBox class
1059 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
1060 --enable-choice use wxChoice class
92bbdbcd 1061 --enable-choicebook use wxChoicebook class
e9263684 1062 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 1063 --enable-combobox use wxComboBox class
a57d600f 1064 --enable-comboctrl use wxComboCtrl class
da98e9be 1065 --enable-datepick use wxDatePickerCtrl class
e9263684 1066 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 1067 --enable-display use wxDisplay class
e9263684
VZ
1068 --enable-filepicker use wxFilePickerCtrl class
1069 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
1070 --enable-gauge use wxGauge class
1071 --enable-grid use wxGrid class
20e34ecc 1072 --enable-dataviewctrl, use wxDataViewCtrl class
6954625c 1073 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
1074 --enable-imaglist use wxImageList class
1075 --enable-listbook use wxListbook class
1076 --enable-listbox use wxListBox class
1077 --enable-listctrl use wxListCtrl class
1078 --enable-notebook use wxNotebook class
a57d600f 1079 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
1080 --enable-radiobox use wxRadioBox class
1081 --enable-radiobtn use wxRadioButton class
1082 --enable-sash use wxSashWindow class
1083 --enable-scrollbar use wxScrollBar class and scrollable windows
1084 --enable-slider use wxSlider class
1085 --enable-spinbtn use wxSpinButton class
1086 --enable-spinctrl use wxSpinCtrl class
1087 --enable-splitter use wxSplitterWindow class
1088 --enable-statbmp use wxStaticBitmap class
1089 --enable-statbox use wxStaticBox class
1090 --enable-statline use wxStaticLine class
1091 --enable-stattext use wxStaticText class
1092 --enable-statusbar use wxStatusBar class
1093 --enable-tabdialog use wxTabControl class
1094 --enable-textctrl use wxTextCtrl class
1095 --enable-togglebtn use wxToggleButton class
1096 --enable-toolbar use wxToolBar class
1097 --enable-tbarnative use native wxToolBar class
0093c2fc 1098 --enable-treebook use wxTreebook class
5ec3bc43 1099 --enable-toolbook use wxToolbook class
a848cd7e
SC
1100 --enable-treectrl use wxTreeCtrl class
1101 --enable-tipwindow use wxTipWindow class
1102 --enable-popupwin use wxPopUpWindow class
1103 --enable-commondlg use all common dialogs
319c5ed4 1104 --enable-aboutdlg use wxAboutBox
a848cd7e
SC
1105 --enable-choicedlg use wxChoiceDialog
1106 --enable-coldlg use wxColourDialog
1107 --enable-filedlg use wxFileDialog
1108 --enable-finddlg use wxFindReplaceDialog
1109 --enable-fontdlg use wxFontDialog
1110 --enable-dirdlg use wxDirDialog
1111 --enable-msgdlg use wxMessageDialog
1112 --enable-numberdlg use wxNumberEntryDialog
1113 --enable-splash use wxSplashScreen
1114 --enable-textdlg use wxTextDialog
1115 --enable-tipdlg use startup tips
1116 --enable-progressdlg use wxProgressDialog
1117 --enable-wizarddlg use wxWizard
1118 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1119 --enable-miniframe use wxMiniFrame class
1120 --enable-tooltips use wxToolTip class
1121 --enable-splines use spline drawing code
fbe2ca43 1122 --enable-mousewheel use mousewheel
a848cd7e
SC
1123 --enable-validators use wxValidator and derived classes
1124 --enable-busyinfo use wxBusyInfo
4cb1d3da 1125 --enable-joystick use wxJoystick
38b4a946 1126 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1127 --enable-dragimage use wxDragImage
1128 --enable-accessibility enable accessibility support
38b4a946 1129 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1130 --enable-palette use wxPalette class
1131 --enable-image use wxImage class
1132 --enable-gif use gif images (GIF file format)
1133 --enable-pcx use pcx images (PCX file format)
1134 --enable-iff use iff images (IFF file format)
1135 --enable-pnm use pnm images (PNM file format)
1136 --enable-xpm use xpm images (XPM file format)
1137 --enable-icocur use Windows ICO and CUR formats
77ffb593 1138 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1139 --enable-vendor=VENDOR vendor name (win32 DLL only)
1140 --disable-largefile omit support for large files
1141 --disable-gtktest do not try to compile and run a test GTK+ program
1142 --disable-gtktest Do not try to compile and run a test GTK program
1143 --disable-sdltest Do not try to compile and run a test SDL program
1144 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1145 --disable-dependency-tracking
1146 don't use dependency tracking even if the compiler
1147 can
ebee3cd0
VS
1148 --disable-precomp-headers
1149 don't use precompiled headers even if compiler can
a848cd7e
SC
1150
1151Optional Packages:
1152 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1153 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1154 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1155 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1156 --with-motif use Motif/Lesstif
1157 --with-mac use Mac OS X
1158 --with-cocoa use Cocoa
1159 --with-wine use Wine
1160 --with-msw use MS-Windows
1161 --with-pm use OS/2 Presentation Manager
1162 --with-mgl use SciTech MGL
b3c86150 1163 --with-directfb use DirectFB
a848cd7e
SC
1164 --with-microwin use MicroWindows
1165 --with-x11 use X11
1166 --with-libpng use libpng (PNG image format)
1167 --with-libjpeg use libjpeg (JPEG file format)
1168 --with-libtiff use libtiff (TIFF file format)
1169 --with-libxpm use libxpm (XPM file format)
1170 --with-libmspack use libmspack (CHM help files loading)
1171 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1172 --with-gnomeprint use GNOME print for printing under GNOME
1173 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1174 --with-hildon use Hildon framework for Nokia 770
a848cd7e 1175 --with-opengl use OpenGL (or Mesa)
4353a8df 1176 --with-themes=all|list use only the specified comma-separated list of wxUniversal themes
a848cd7e
SC
1177 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1178 --with-regex enable support for wxRegEx class
1179 --with-zlib use zlib for LZW compression
1180 --with-odbc use the IODBC and wxODBC classes
1181 --with-expat enable XML support using expat parser
ceec2216 1182 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1183 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1184 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1185 --with-x use the X Window System
1186 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1187 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1188 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1189 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1190 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1191
1192Some influential environment variables:
dcc1b6ad
VS
1193 CC C compiler command
1194 CFLAGS C compiler flags
1195 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1196 nonstandard directory <lib dir>
1197 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1198 headers in a nonstandard directory <include dir>
1199 CPP C preprocessor
1200 CXX C++ compiler command
1201 CXXFLAGS C++ compiler flags
1202 CXXCPP C++ preprocessor
3ecd9f92 1203 PKG_CONFIG path to pkg-config utility
b3c86150
VS
1204 DIRECTFB_CFLAGS
1205 C compiler flags for DIRECTFB, overriding pkg-config
1206 DIRECTFB_LIBS
1207 linker flags for DIRECTFB, overriding pkg-config
3ecd9f92
MW
1208 PANGOX_CFLAGS
1209 C compiler flags for PANGOX, overriding pkg-config
1210 PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1211 PANGOFT2_CFLAGS
1212 C compiler flags for PANGOFT2, overriding pkg-config
1213 PANGOFT2_LIBS
1214 linker flags for PANGOFT2, overriding pkg-config
1215 PANGOXFT_CFLAGS
1216 C compiler flags for PANGOXFT, overriding pkg-config
1217 PANGOXFT_LIBS
1218 linker flags for PANGOXFT, overriding pkg-config
1219 LIBGNOMEPRINTUI_CFLAGS
1220 C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1221 LIBGNOMEPRINTUI_LIBS
1222 linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1223 GNOMEVFS_CFLAGS
1224 C compiler flags for GNOMEVFS, overriding pkg-config
1225 GNOMEVFS_LIBS
1226 linker flags for GNOMEVFS, overriding pkg-config
1227 HILDON_CFLAGS
1228 C compiler flags for HILDON, overriding pkg-config
1229 HILDON_LIBS linker flags for HILDON, overriding pkg-config
64b75e64
RD
1230 CAIRO_CFLAGS
1231 C compiler flags for CAIRO, overriding pkg-config
1232 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
3ecd9f92
MW
1233 GST_CFLAGS C compiler flags for GST, overriding pkg-config
1234 GST_LIBS linker flags for GST, overriding pkg-config
a848cd7e
SC
1235
1236Use these variables to override the choices made by `configure' or to help
1237it to find libraries and programs with nonstandard names/locations.
1238
77ffb593 1239Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1240_ACEOF
1241fi
1242
1243if test "$ac_init_help" = "recursive"; then
1244 # If there are subdirs, report their specific --help.
1245 ac_popdir=`pwd`
1246 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1247 test -d $ac_dir || continue
1248 ac_builddir=.
1249
1250if test "$ac_dir" != .; then
1251 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1252 # A "../" for each directory in $ac_dir_suffix.
1253 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1254else
1255 ac_dir_suffix= ac_top_builddir=
1256fi
1257
1258case $srcdir in
1259 .) # No --srcdir option. We are building in place.
1260 ac_srcdir=.
1261 if test -z "$ac_top_builddir"; then
1262 ac_top_srcdir=.
1263 else
1264 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1265 fi ;;
1266 [\\/]* | ?:[\\/]* ) # Absolute path.
1267 ac_srcdir=$srcdir$ac_dir_suffix;
1268 ac_top_srcdir=$srcdir ;;
1269 *) # Relative path.
1270 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1271 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1272esac
ac1cb8d3
VS
1273
1274# Do not use `cd foo && pwd` to compute absolute paths, because
1275# the directories may not exist.
1276case `pwd` in
1277.) ac_abs_builddir="$ac_dir";;
1278*)
1279 case "$ac_dir" in
1280 .) ac_abs_builddir=`pwd`;;
1281 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1282 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1283 esac;;
1284esac
1285case $ac_abs_builddir in
1286.) ac_abs_top_builddir=${ac_top_builddir}.;;
1287*)
1288 case ${ac_top_builddir}. in
1289 .) ac_abs_top_builddir=$ac_abs_builddir;;
1290 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1291 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1292 esac;;
1293esac
1294case $ac_abs_builddir in
1295.) ac_abs_srcdir=$ac_srcdir;;
1296*)
1297 case $ac_srcdir in
1298 .) ac_abs_srcdir=$ac_abs_builddir;;
1299 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1300 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1301 esac;;
1302esac
1303case $ac_abs_builddir in
1304.) ac_abs_top_srcdir=$ac_top_srcdir;;
1305*)
1306 case $ac_top_srcdir in
1307 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1308 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1309 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1310 esac;;
1311esac
a848cd7e
SC
1312
1313 cd $ac_dir
1314 # Check for guested configure; otherwise get Cygnus style configure.
1315 if test -f $ac_srcdir/configure.gnu; then
1316 echo
1317 $SHELL $ac_srcdir/configure.gnu --help=recursive
1318 elif test -f $ac_srcdir/configure; then
1319 echo
1320 $SHELL $ac_srcdir/configure --help=recursive
1321 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1322 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1323 echo
1324 $ac_configure --help
1325 else
1326 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1327 fi
64b75e64 1328 cd "$ac_popdir"
a848cd7e
SC
1329 done
1330fi
1331
1332test -n "$ac_init_help" && exit 0
1333if $ac_init_version; then
1334 cat <<\_ACEOF
f1e3914f 1335wxWidgets configure 2.7.1
ac1cb8d3 1336generated by GNU Autoconf 2.59
a848cd7e 1337
ac1cb8d3 1338Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1339This configure script is free software; the Free Software Foundation
1340gives unlimited permission to copy, distribute and modify it.
1341_ACEOF
1342 exit 0
1343fi
1344exec 5>config.log
1345cat >&5 <<_ACEOF
1346This file contains any messages produced by compilers while
1347running configure, to aid debugging if configure makes a mistake.
1348
f1e3914f 1349It was created by wxWidgets $as_me 2.7.1, which was
ac1cb8d3 1350generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1351
1352 $ $0 $@
1353
1354_ACEOF
1355{
1356cat <<_ASUNAME
1357## --------- ##
1358## Platform. ##
1359## --------- ##
1360
1361hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1362uname -m = `(uname -m) 2>/dev/null || echo unknown`
1363uname -r = `(uname -r) 2>/dev/null || echo unknown`
1364uname -s = `(uname -s) 2>/dev/null || echo unknown`
1365uname -v = `(uname -v) 2>/dev/null || echo unknown`
1366
1367/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1368/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1369
1370/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1371/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1372/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1373hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1374/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1375/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1376/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1377
1378_ASUNAME
1379
1380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1381for as_dir in $PATH
1382do
1383 IFS=$as_save_IFS
1384 test -z "$as_dir" && as_dir=.
1385 echo "PATH: $as_dir"
1386done
1387
1388} >&5
1389
1390cat >&5 <<_ACEOF
1391
1392
1393## ----------- ##
1394## Core tests. ##
1395## ----------- ##
1396
1397_ACEOF
1398
1399
1400# Keep a trace of the command line.
1401# Strip out --no-create and --no-recursion so they do not pile up.
1402# Strip out --silent because we don't want to record it for future runs.
1403# Also quote any args containing shell meta-characters.
1404# Make two passes to allow for proper duplicate-argument suppression.
1405ac_configure_args=
1406ac_configure_args0=
1407ac_configure_args1=
1408ac_sep=
1409ac_must_keep_next=false
1410for ac_pass in 1 2
1411do
1412 for ac_arg
1413 do
1414 case $ac_arg in
1415 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1417 | -silent | --silent | --silen | --sile | --sil)
1418 continue ;;
1419 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1420 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1421 esac
1422 case $ac_pass in
1423 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1424 2)
1425 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1426 if test $ac_must_keep_next = true; then
ac1cb8d3 1427 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1428 else
ac1cb8d3
VS
1429 case $ac_arg in
1430 *=* | --config-cache | -C | -disable-* | --disable-* \
1431 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1432 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1433 | -with-* | --with-* | -without-* | --without-* | --x)
1434 case "$ac_configure_args0 " in
1435 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1436 esac
1437 ;;
1438 -* ) ac_must_keep_next=true ;;
1439 esac
a848cd7e
SC
1440 fi
1441 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1442 # Get rid of the leading space.
1443 ac_sep=" "
1444 ;;
1445 esac
1446 done
1447done
1448$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1449$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1450
1451# When interrupted or exit'd, cleanup temporary files, and complete
1452# config.log. We remove comments because anyway the quotes in there
1453# would cause problems or look ugly.
1454# WARNING: Be sure not to use single quotes in there, as some shells,
1455# such as our DU 5.0 friend, will then `close' the trap.
1456trap 'exit_status=$?
1457 # Save into config.log some information that might help in debugging.
1458 {
1459 echo
1460
1461 cat <<\_ASBOX
1462## ---------------- ##
1463## Cache variables. ##
1464## ---------------- ##
1465_ASBOX
1466 echo
1467 # The following way of writing the cache mishandles newlines in values,
1468{
1469 (set) 2>&1 |
1470 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1471 *ac_space=\ *)
1472 sed -n \
ac1cb8d3
VS
1473 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1474 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1475 ;;
1476 *)
1477 sed -n \
ac1cb8d3 1478 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1479 ;;
1480 esac;
1481}
1482 echo
1483
1484 cat <<\_ASBOX
1485## ----------------- ##
1486## Output variables. ##
1487## ----------------- ##
1488_ASBOX
1489 echo
1490 for ac_var in $ac_subst_vars
1491 do
1492 eval ac_val=$`echo $ac_var`
1493 echo "$ac_var='"'"'$ac_val'"'"'"
1494 done | sort
1495 echo
1496
1497 if test -n "$ac_subst_files"; then
1498 cat <<\_ASBOX
1499## ------------- ##
1500## Output files. ##
1501## ------------- ##
1502_ASBOX
1503 echo
1504 for ac_var in $ac_subst_files
1505 do
1506 eval ac_val=$`echo $ac_var`
ac1cb8d3 1507 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1508 done | sort
1509 echo
1510 fi
1511
1512 if test -s confdefs.h; then
1513 cat <<\_ASBOX
1514## ----------- ##
1515## confdefs.h. ##
1516## ----------- ##
1517_ASBOX
1518 echo
1519 sed "/^$/d" confdefs.h | sort
1520 echo
1521 fi
1522 test "$ac_signal" != 0 &&
1523 echo "$as_me: caught signal $ac_signal"
1524 echo "$as_me: exit $exit_status"
1525 } >&5
ac1cb8d3 1526 rm -f core *.core &&
a848cd7e
SC
1527 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1528 exit $exit_status
1529 ' 0
1530for ac_signal in 1 2 13 15; do
1531 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1532done
1533ac_signal=0
1534
1535# confdefs.h avoids OS command line length limits that DEFS can exceed.
1536rm -rf conftest* confdefs.h
1537# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1538echo >confdefs.h
1539
1540# Predefined preprocessor variables.
1541
1542cat >>confdefs.h <<_ACEOF
1543#define PACKAGE_NAME "$PACKAGE_NAME"
1544_ACEOF
1545
1546
1547cat >>confdefs.h <<_ACEOF
1548#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1549_ACEOF
1550
1551
1552cat >>confdefs.h <<_ACEOF
1553#define PACKAGE_VERSION "$PACKAGE_VERSION"
1554_ACEOF
1555
1556
1557cat >>confdefs.h <<_ACEOF
1558#define PACKAGE_STRING "$PACKAGE_STRING"
1559_ACEOF
1560
1561
1562cat >>confdefs.h <<_ACEOF
1563#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1564_ACEOF
1565
1566
1567# Let the site file select an alternate cache file if it wants to.
1568# Prefer explicitly selected file to automatically selected ones.
1569if test -z "$CONFIG_SITE"; then
1570 if test "x$prefix" != xNONE; then
1571 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1572 else
1573 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1574 fi
1575fi
1576for ac_site_file in $CONFIG_SITE; do
1577 if test -r "$ac_site_file"; then
1578 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1579echo "$as_me: loading site script $ac_site_file" >&6;}
1580 sed 's/^/| /' "$ac_site_file" >&5
1581 . "$ac_site_file"
1582 fi
1583done
1584
1585if test -r "$cache_file"; then
1586 # Some versions of bash will fail to source /dev/null (special
1587 # files actually), so we avoid doing that.
1588 if test -f "$cache_file"; then
1589 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1590echo "$as_me: loading cache $cache_file" >&6;}
1591 case $cache_file in
1592 [\\/]* | ?:[\\/]* ) . $cache_file;;
1593 *) . ./$cache_file;;
1594 esac
1595 fi
1596else
1597 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1598echo "$as_me: creating cache $cache_file" >&6;}
1599 >$cache_file
1600fi
1601
1602# Check that the precious variables saved in the cache have kept the same
1603# value.
1604ac_cache_corrupted=false
1605for ac_var in `(set) 2>&1 |
ac1cb8d3 1606 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1607 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1608 eval ac_new_set=\$ac_env_${ac_var}_set
1609 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1610 eval ac_new_val="\$ac_env_${ac_var}_value"
1611 case $ac_old_set,$ac_new_set in
1612 set,)
1613 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1614echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1615 ac_cache_corrupted=: ;;
1616 ,set)
1617 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1618echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1619 ac_cache_corrupted=: ;;
1620 ,);;
1621 *)
1622 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1623 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1624echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1625 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1626echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1627 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1628echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1629 ac_cache_corrupted=:
a848cd7e
SC
1630 fi;;
1631 esac
1632 # Pass precious variables to config.status.
1633 if test "$ac_new_set" = set; then
1634 case $ac_new_val in
1635 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1636 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1637 *) ac_arg=$ac_var=$ac_new_val ;;
1638 esac
1639 case " $ac_configure_args " in
1640 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1641 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1642 esac
1643 fi
1644done
1645if $ac_cache_corrupted; then
1646 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1647echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1648 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1649echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1650 { (exit 1); exit 1; }; }
1651fi
1652
1653ac_ext=c
1654ac_cpp='$CPP $CPPFLAGS'
1655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1657ac_compiler_gnu=$ac_cv_c_compiler_gnu
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688ac_aux_dir=
1689for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1690 if test -f $ac_dir/install-sh; then
1691 ac_aux_dir=$ac_dir
1692 ac_install_sh="$ac_aux_dir/install-sh -c"
1693 break
1694 elif test -f $ac_dir/install.sh; then
1695 ac_aux_dir=$ac_dir
1696 ac_install_sh="$ac_aux_dir/install.sh -c"
1697 break
1698 elif test -f $ac_dir/shtool; then
1699 ac_aux_dir=$ac_dir
1700 ac_install_sh="$ac_aux_dir/shtool install -c"
1701 break
1702 fi
1703done
1704if test -z "$ac_aux_dir"; then
1705 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1706echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1707 { (exit 1); exit 1; }; }
1708fi
1709ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1710ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1711ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1712
1713# Make sure we can run config.sub.
1714$ac_config_sub sun4 >/dev/null 2>&1 ||
1715 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1716echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1717 { (exit 1); exit 1; }; }
1718
1719echo "$as_me:$LINENO: checking build system type" >&5
1720echo $ECHO_N "checking build system type... $ECHO_C" >&6
1721if test "${ac_cv_build+set}" = set; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
1723else
1724 ac_cv_build_alias=$build_alias
1725test -z "$ac_cv_build_alias" &&
1726 ac_cv_build_alias=`$ac_config_guess`
1727test -z "$ac_cv_build_alias" &&
1728 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1729echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1730 { (exit 1); exit 1; }; }
1731ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1732 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1733echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1734 { (exit 1); exit 1; }; }
1735
1736fi
1737echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1738echo "${ECHO_T}$ac_cv_build" >&6
1739build=$ac_cv_build
1740build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1741build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1742build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1743
1744
1745echo "$as_me:$LINENO: checking host system type" >&5
1746echo $ECHO_N "checking host system type... $ECHO_C" >&6
1747if test "${ac_cv_host+set}" = set; then
1748 echo $ECHO_N "(cached) $ECHO_C" >&6
1749else
1750 ac_cv_host_alias=$host_alias
1751test -z "$ac_cv_host_alias" &&
1752 ac_cv_host_alias=$ac_cv_build_alias
1753ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1754 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1755echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1756 { (exit 1); exit 1; }; }
1757
1758fi
1759echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1760echo "${ECHO_T}$ac_cv_host" >&6
1761host=$ac_cv_host
1762host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1763host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1764host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1765
1766
1767echo "$as_me:$LINENO: checking target system type" >&5
1768echo $ECHO_N "checking target system type... $ECHO_C" >&6
1769if test "${ac_cv_target+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1771else
1772 ac_cv_target_alias=$target_alias
1773test "x$ac_cv_target_alias" = "x" &&
1774 ac_cv_target_alias=$ac_cv_host_alias
1775ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1776 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1777echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1778 { (exit 1); exit 1; }; }
1779
1780fi
1781echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1782echo "${ECHO_T}$ac_cv_target" >&6
1783target=$ac_cv_target
1784target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1785target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1786target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1787
1788
1789# The aliases save the names the user supplied, while $host etc.
1790# will get canonicalized.
1791test -n "$target_alias" &&
1792 test "$program_prefix$program_suffix$program_transform_name" = \
1793 NONENONEs,x,x, &&
1794 program_prefix=${target_alias}-
1795
1796
1797
ceec2216 1798wx_major_version_number=2
dd8df4fc 1799wx_minor_version_number=7
f1e3914f 1800wx_release_number=1
6850c576 1801wx_subrelease_number=1
a848cd7e 1802
ceec2216
RL
1803WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1804WX_VERSION=$WX_RELEASE.$wx_release_number
1805WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1806
ceec2216 1807WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1808
a848cd7e
SC
1809
1810
1811
1812USE_UNIX=1
1813USE_OS2=0
1814USE_WIN32=0
1815USE_DOS=0
1816USE_BEOS=0
1817USE_MAC=0
1818
1819USE_AIX=
1820USE_BSD= USE_DARWIN= USE_FREEBSD=
1821USE_GNU= USE_HPUX=
1822USE_LINUX=
1823USE_NETBSD=
1824USE_OPENBSD=
1825USE_OSF= USE_SGI=
1826USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1827USE_ULTRIX=
1828USE_UNIXWARE=
1829
1830USE_ALPHA=
1831
1832NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1833
b3c86150 1834ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
a848cd7e
SC
1835
1836DEFAULT_wxUSE_COCOA=0
1837DEFAULT_wxUSE_GTK=0
1838DEFAULT_wxUSE_MAC=0
1839DEFAULT_wxUSE_MGL=0
1840DEFAULT_wxUSE_MICROWIN=0
1841DEFAULT_wxUSE_MOTIF=0
1842DEFAULT_wxUSE_MSW=0
1843DEFAULT_wxUSE_PM=0
1844DEFAULT_wxUSE_X11=0
b3c86150 1845DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1846
1847DEFAULT_DEFAULT_wxUSE_COCOA=0
1848DEFAULT_DEFAULT_wxUSE_GTK=0
1849DEFAULT_DEFAULT_wxUSE_MAC=0
1850DEFAULT_DEFAULT_wxUSE_MGL=0
1851DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1852DEFAULT_DEFAULT_wxUSE_MOTIF=0
1853DEFAULT_DEFAULT_wxUSE_MSW=0
1854DEFAULT_DEFAULT_wxUSE_PM=0
1855DEFAULT_DEFAULT_wxUSE_X11=0
b3c86150 1856DEFAULT_DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1857
1858PROGRAM_EXT=
1859SO_SUFFIX=so
1860SAMPLES_RPATH_FLAG=
1861SAMPLES_RPATH_POSTLINK=
1862
a03b8b04
RD
1863DEFAULT_STD_FLAG=yes
1864
a848cd7e
SC
1865case "${host}" in
1866 *-hp-hpux* )
1867 USE_HPUX=1
1868 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1869 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1870 SO_SUFFIX=sl
1871 cat >>confdefs.h <<\_ACEOF
1872#define __HPUX__ 1
1873_ACEOF
1874
2eef8513 1875
c92ad099 1876 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1877 ;;
1878 *-*-linux* )
1879 USE_LINUX=1
1880 cat >>confdefs.h <<\_ACEOF
1881#define __LINUX__ 1
1882_ACEOF
1883
1884 TMP=`uname -m`
1885 if test "x$TMP" = "xalpha"; then
1886 USE_ALPHA=1
1887 cat >>confdefs.h <<\_ACEOF
1888#define __ALPHA__ 1
1889_ACEOF
1890
1891 fi
1892 DEFAULT_DEFAULT_wxUSE_GTK=1
1893 ;;
1894 *-*-gnu* | *-*-k*bsd*-gnu )
1895 USE_GNU=1
1896 TMP=`uname -m`
1897 if test "x$TMP" = "xalpha"; then
1898 USE_ALPHA=1
1899 cat >>confdefs.h <<\_ACEOF
1900#define __ALPHA__ 1
1901_ACEOF
1902
1903 fi
1904 DEFAULT_DEFAULT_wxUSE_GTK=1
1905 ;;
1906 *-*-irix5* | *-*-irix6* )
1907 USE_SGI=1
1908 USE_SVR4=1
1909 cat >>confdefs.h <<\_ACEOF
1910#define __SGI__ 1
1911_ACEOF
1912
1913 cat >>confdefs.h <<\_ACEOF
1914#define __SVR4__ 1
1915_ACEOF
1916
1917 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1918 ;;
1919 *-*-solaris2* )
1920 USE_SUN=1
1921 USE_SOLARIS=1
1922 USE_SVR4=1
1923 cat >>confdefs.h <<\_ACEOF
1924#define __SUN__ 1
1925_ACEOF
1926
1927 cat >>confdefs.h <<\_ACEOF
1928#define __SOLARIS__ 1
1929_ACEOF
1930
1931 cat >>confdefs.h <<\_ACEOF
1932#define __SVR4__ 1
1933_ACEOF
1934
1935 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1936 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1937 ;;
1938 *-*-sunos4* )
1939 USE_SUN=1
1940 USE_SUNOS=1
1941 USE_BSD=1
1942 cat >>confdefs.h <<\_ACEOF
1943#define __SUN__ 1
1944_ACEOF
1945
1946 cat >>confdefs.h <<\_ACEOF
1947#define __SUNOS__ 1
1948_ACEOF
1949
1950 cat >>confdefs.h <<\_ACEOF
1951#define __BSD__ 1
1952_ACEOF
1953
1954 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1955 ;;
1956 *-*-freebsd*)
1957 USE_BSD=1
1958 USE_FREEBSD=1
1959 cat >>confdefs.h <<\_ACEOF
1960#define __FREEBSD__ 1
1961_ACEOF
1962
1963 cat >>confdefs.h <<\_ACEOF
1964#define __BSD__ 1
1965_ACEOF
1966
1967 DEFAULT_DEFAULT_wxUSE_GTK=1
1968 ;;
c9a66001 1969 *-*-openbsd*|*-*-mirbsd*)
a848cd7e
SC
1970 USE_BSD=1
1971 USE_OPENBSD=1
1972 cat >>confdefs.h <<\_ACEOF
1973#define __OPENBSD__ 1
1974_ACEOF
1975
1976 cat >>confdefs.h <<\_ACEOF
1977#define __BSD__ 1
1978_ACEOF
1979
1980 DEFAULT_DEFAULT_wxUSE_GTK=1
1981 ;;
1982 *-*-netbsd*)
1983 USE_BSD=1
1984 USE_NETBSD=1
1985 cat >>confdefs.h <<\_ACEOF
1986#define __NETBSD__ 1
1987_ACEOF
1988
1989 cat >>confdefs.h <<\_ACEOF
1990#define __BSD__ 1
1991_ACEOF
1992
1993 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1994 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1995
def7c04a 1996 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1997 ;;
1998 *-*-osf* )
1999 USE_ALPHA=1
2000 USE_OSF=1
2001 cat >>confdefs.h <<\_ACEOF
2002#define __ALPHA__ 1
2003_ACEOF
2004
2005 cat >>confdefs.h <<\_ACEOF
2006#define __OSF__ 1
2007_ACEOF
2008
2009 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2010 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2011 ;;
2012 *-*-dgux5* )
2013 USE_ALPHA=1
2014 USE_SVR4=1
2015 cat >>confdefs.h <<\_ACEOF
2016#define __ALPHA__ 1
2017_ACEOF
2018
2019 cat >>confdefs.h <<\_ACEOF
2020#define __SVR4__ 1
2021_ACEOF
2022
2023 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2024 ;;
2025 *-*-sysv5* )
2026 USE_SYSV=1
2027 USE_SVR4=1
2028 cat >>confdefs.h <<\_ACEOF
2029#define __SYSV__ 1
2030_ACEOF
2031
2032 cat >>confdefs.h <<\_ACEOF
2033#define __SVR4__ 1
2034_ACEOF
2035
2036 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2037 ;;
2038 *-*-aix* )
2039 USE_AIX=1
2040 USE_SYSV=1
2041 USE_SVR4=1
2042 SO_SUFFIX=a
2043 cat >>confdefs.h <<\_ACEOF
2044#define __AIX__ 1
2045_ACEOF
2046
2047 cat >>confdefs.h <<\_ACEOF
2048#define __SYSV__ 1
2049_ACEOF
2050
2051 cat >>confdefs.h <<\_ACEOF
2052#define __SVR4__ 1
2053_ACEOF
2054
2055 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2056 ;;
2057
2058 *-*-*UnixWare*)
2059 USE_SYSV=1
2060 USE_SVR4=1
2061 USE_UNIXWARE=1
2062 cat >>confdefs.h <<\_ACEOF
2063#define __UNIXWARE__ 1
2064_ACEOF
2065
2066 ;;
2067
2068 *-*-cygwin* | *-*-mingw32* )
2069 SO_SUFFIX=dll
2070 PROGRAM_EXT=".exe"
a848cd7e 2071 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 2072 DEFAULT_STD_FLAG=no
a848cd7e
SC
2073 ;;
2074
2075 *-pc-msdosdjgpp )
2076 USE_UNIX=0
2077 USE_DOS=1
2078 cat >>confdefs.h <<\_ACEOF
2079#define __DOS__ 1
2080_ACEOF
2081
2082 PROGRAM_EXT=".exe"
2083 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
2084 ;;
2085
2086 *-pc-os2_emx | *-pc-os2-emx )
2087 cat >>confdefs.h <<\_ACEOF
2088#define __EMX__ 1
2089_ACEOF
2090
2091 USE_OS2=1
2092 cat >>confdefs.h <<\_ACEOF
2093#define __OS2__ 1
2094_ACEOF
2095
2096 PROGRAM_EXT=".exe"
2097 DEFAULT_DEFAULT_wxUSE_PM=1
2098 CXX=gcc
2099 LDFLAGS="$LDFLAGS -Zcrtdll"
2100 ac_executable_extensions=".exe"
2101 export ac_executable_extensions
2102 ac_save_IFS="$IFS"
2103 IFS='\\'
2104 ac_TEMP_PATH=
2105 for ac_dir in $PATH; do
2106 IFS=$ac_save_IFS
2107 if test -z "$ac_TEMP_PATH"; then
2108 ac_TEMP_PATH="$ac_dir"
2109 else
2110 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2111 fi
2112 done
2113 export PATH="$ac_TEMP_PATH"
2114 unset ac_TEMP_PATH
a03b8b04 2115 DEFAULT_STD_FLAG=no
a848cd7e
SC
2116 ;;
2117
cfda0ea8 2118 *-*-darwin* )
a848cd7e
SC
2119 USE_BSD=1
2120 USE_DARWIN=1
2121 SO_SUFFIX=dylib
2122 cat >>confdefs.h <<\_ACEOF
2123#define __BSD__ 1
2124_ACEOF
2125
2126 cat >>confdefs.h <<\_ACEOF
2127#define __DARWIN__ 1
a848cd7e
SC
2128_ACEOF
2129
2130 cat >>confdefs.h <<\_ACEOF
2131#define TARGET_CARBON 1
2132_ACEOF
2133
2134 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2135 DEFAULT_STD_FLAG=no
a848cd7e 2136 ;;
1e9e8aba
DE
2137 powerpc-apple-macos* )
2138 USE_UNIX=0
2139 ac_cv_c_bigendian=yes
2140 SO_SUFFIX=shlib
2141 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2142 DEFAULT_STD_FLAG=no
1e9e8aba 2143 ;;
a848cd7e
SC
2144
2145 *-*-beos* )
2146 USE_BEOS=1
2147 cat >>confdefs.h <<\_ACEOF
2148#define __BEOS__ 1
2149_ACEOF
2150
2151 ;;
2152
2153 *)
c9a66001
VZ
2154 { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2155echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2156 { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2157echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
5acfd58d
MW
2158
2159 DEFAULT_DEFAULT_wxUSE_X11=1
2160 DEFAULT_wxUSE_SHARED=no
a848cd7e
SC
2161esac
2162
2163
2164
2165
2166 wx_arg_cache_file="configarg.cache"
2167 echo "loading argument cache $wx_arg_cache_file"
2168 rm -f ${wx_arg_cache_file}.tmp
2169 touch ${wx_arg_cache_file}.tmp
2170 touch ${wx_arg_cache_file}
2171
2172
2173DEBUG_CONFIGURE=0
2174if test $DEBUG_CONFIGURE = 1; then
2175 DEFAULT_wxUSE_UNIVERSAL=no
2176 DEFAULT_wxUSE_STL=no
2177
2178 DEFAULT_wxUSE_NANOX=no
2179
2180 DEFAULT_wxUSE_THREADS=yes
2181
5acfd58d 2182 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2183 DEFAULT_wxUSE_OPTIMISE=no
2184 DEFAULT_wxUSE_PROFILE=no
2185 DEFAULT_wxUSE_NO_DEPS=no
2186 DEFAULT_wxUSE_NO_RTTI=no
2187 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2188 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2189 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2190 DEFAULT_wxUSE_PERMISSIVE=no
2191 DEFAULT_wxUSE_DEBUG_FLAG=yes
2192 DEFAULT_wxUSE_DEBUG_INFO=yes
2193 DEFAULT_wxUSE_DEBUG_GDB=yes
2194 DEFAULT_wxUSE_MEM_TRACING=no
2195 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2196 DEFAULT_wxUSE_DMALLOC=no
2197 DEFAULT_wxUSE_APPLE_IEEE=no
2198
2199 DEFAULT_wxUSE_EXCEPTIONS=no
2200 DEFAULT_wxUSE_LOG=yes
2201 DEFAULT_wxUSE_LOGWINDOW=no
2202 DEFAULT_wxUSE_LOGGUI=no
2203 DEFAULT_wxUSE_LOGDIALOG=no
2204
2205 DEFAULT_wxUSE_GUI=yes
2206 DEFAULT_wxUSE_CONTROLS=no
2207
2208 DEFAULT_wxUSE_REGEX=no
2209 DEFAULT_wxUSE_XML=no
2210 DEFAULT_wxUSE_EXPAT=no
2211 DEFAULT_wxUSE_ZLIB=no
2212 DEFAULT_wxUSE_LIBPNG=no
2213 DEFAULT_wxUSE_LIBJPEG=no
2214 DEFAULT_wxUSE_LIBTIFF=no
2215 DEFAULT_wxUSE_LIBXPM=no
2216 DEFAULT_wxUSE_LIBMSPACK=no
2217 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2218 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2219 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2220 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2221 DEFAULT_wxUSE_ODBC=no
2222 DEFAULT_wxUSE_OPENGL=no
2223
2224 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2225 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2226 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2227 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2228 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2229 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2230 DEFAULT_wxUSE_CMDLINE_PARSER=no
2231 DEFAULT_wxUSE_DATETIME=no
2232 DEFAULT_wxUSE_TIMER=no
2233 DEFAULT_wxUSE_STOPWATCH=no
2234 DEFAULT_wxUSE_FILE=no
2235 DEFAULT_wxUSE_FFILE=no
07158944 2236 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2237 DEFAULT_wxUSE_TEXTBUFFER=no
2238 DEFAULT_wxUSE_TEXTFILE=no
2239 DEFAULT_wxUSE_SOUND=no
3b57de8b 2240 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2241 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2242 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2243 DEFAULT_wxUSE_INTL=no
2244 DEFAULT_wxUSE_CONFIG=no
2245 DEFAULT_wxUSE_FONTMAP=no
2246 DEFAULT_wxUSE_STREAMS=no
2247 DEFAULT_wxUSE_SOCKETS=no
2248 DEFAULT_wxUSE_OLE=no
2249 DEFAULT_wxUSE_DATAOBJ=no
2250 DEFAULT_wxUSE_DIALUP_MANAGER=no
2251 DEFAULT_wxUSE_JOYSTICK=no
2252 DEFAULT_wxUSE_DYNLIB_CLASS=no
2253 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2254 DEFAULT_wxUSE_LONGLONG=no
2255 DEFAULT_wxUSE_GEOMETRY=no
2256
2257 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2258 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2259 DEFAULT_wxUSE_POSTSCRIPT=no
2260
2261 DEFAULT_wxUSE_CLIPBOARD=no
2262 DEFAULT_wxUSE_TOOLTIPS=no
2263 DEFAULT_wxUSE_DRAG_AND_DROP=no
2264 DEFAULT_wxUSE_DRAGIMAGE=no
2265 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2266 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2267
8a7b1113 2268 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2269 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2270 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2271 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2272
2273 DEFAULT_wxUSE_RESOURCES=no
2274 DEFAULT_wxUSE_CONSTRAINTS=no
2275 DEFAULT_wxUSE_IPC=no
2276 DEFAULT_wxUSE_HELP=no
2277 DEFAULT_wxUSE_MS_HTML_HELP=no
2278 DEFAULT_wxUSE_WXHTML_HELP=no
2279 DEFAULT_wxUSE_TREELAYOUT=no
2280 DEFAULT_wxUSE_METAFILE=no
2281 DEFAULT_wxUSE_MIMETYPE=no
2282 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2283 DEFAULT_wxUSE_PROTOCOL=no
2284 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2285 DEFAULT_wxUSE_PROTOCOL_FTP=no
2286 DEFAULT_wxUSE_PROTOCOL_FILE=no
2287 DEFAULT_wxUSE_URL=no
ca5c6ac3 2288 DEFAULT_wxUSE_VARIANT=no
a848cd7e 2289
319c5ed4 2290 DEFAULT_wxUSE_ABOUTDLG=no
a848cd7e
SC
2291 DEFAULT_wxUSE_COMMONDLGS=no
2292 DEFAULT_wxUSE_CHOICEDLG=no
2293 DEFAULT_wxUSE_COLOURDLG=no
2294 DEFAULT_wxUSE_DIRDLG=no
2295 DEFAULT_wxUSE_FILEDLG=no
2296 DEFAULT_wxUSE_FINDREPLDLG=no
2297 DEFAULT_wxUSE_FONTDLG=no
2298 DEFAULT_wxUSE_MSGDLG=no
2299 DEFAULT_wxUSE_NUMBERDLG=no
2300 DEFAULT_wxUSE_TEXTDLG=no
2301 DEFAULT_wxUSE_SPLASH=no
2302 DEFAULT_wxUSE_STARTUP_TIPS=no
2303 DEFAULT_wxUSE_PROGRESSDLG=no
2304 DEFAULT_wxUSE_WIZARDDLG=no
2305
2306 DEFAULT_wxUSE_MENUS=no
2307 DEFAULT_wxUSE_MINIFRAME=no
2308 DEFAULT_wxUSE_HTML=no
91dea314 2309 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2310 DEFAULT_wxUSE_XRC=no
3f60522a 2311 DEFAULT_wxUSE_AUI=no
646b6ec1 2312 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2313 DEFAULT_wxUSE_FILESYSTEM=no
2314 DEFAULT_wxUSE_FS_INET=no
2315 DEFAULT_wxUSE_FS_ZIP=no
2316 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2317 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2318 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2319 DEFAULT_wxUSE_VALIDATORS=no
2320
2321 DEFAULT_wxUSE_ACCEL=no
3ea50042 2322 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
2323 DEFAULT_wxUSE_BUTTON=no
2324 DEFAULT_wxUSE_BMPBUTTON=no
95a46303 2325 DEFAULT_wxUSE_BITMAPCOMBOBOX=no
a848cd7e
SC
2326 DEFAULT_wxUSE_CALCTRL=no
2327 DEFAULT_wxUSE_CARET=no
2328 DEFAULT_wxUSE_CHECKBOX=no
2329 DEFAULT_wxUSE_CHECKLST=no
2330 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2331 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684 2332 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2333 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2334 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2335 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2336 DEFAULT_wxUSE_DISPLAY=no
e9263684
VZ
2337 DEFAULT_wxUSE_DIRPICKERCTRL=no
2338 DEFAULT_wxUSE_FILEPICKERCTRL=no
2339 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e 2340 DEFAULT_wxUSE_GAUGE=no
f43426c1 2341 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
a848cd7e 2342 DEFAULT_wxUSE_GRID=no
6954625c 2343 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2344 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2345 DEFAULT_wxUSE_IMAGLIST=no
2346 DEFAULT_wxUSE_LISTBOOK=no
2347 DEFAULT_wxUSE_LISTBOX=no
2348 DEFAULT_wxUSE_LISTCTRL=no
2349 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2350 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2351 DEFAULT_wxUSE_RADIOBOX=no
2352 DEFAULT_wxUSE_RADIOBTN=no
2353 DEFAULT_wxUSE_SASH=no
2354 DEFAULT_wxUSE_SCROLLBAR=no
2355 DEFAULT_wxUSE_SLIDER=no
2356 DEFAULT_wxUSE_SPINBTN=no
2357 DEFAULT_wxUSE_SPINCTRL=no
2358 DEFAULT_wxUSE_SPLITTER=no
2359 DEFAULT_wxUSE_STATBMP=no
2360 DEFAULT_wxUSE_STATBOX=no
2361 DEFAULT_wxUSE_STATLINE=no
2362 DEFAULT_wxUSE_STATTEXT=no
2363 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2364 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2365 DEFAULT_wxUSE_TEXTCTRL=no
2366 DEFAULT_wxUSE_TOGGLEBTN=no
2367 DEFAULT_wxUSE_TOOLBAR=no
2368 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
0093c2fc 2369 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2370 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2371 DEFAULT_wxUSE_TREECTRL=no
2372 DEFAULT_wxUSE_POPUPWIN=no
2373 DEFAULT_wxUSE_TIPWINDOW=no
2374
2375 DEFAULT_wxUSE_UNICODE=no
2376 DEFAULT_wxUSE_UNICODE_MSLU=no
2377 DEFAULT_wxUSE_WCSRTOMBS=no
2378
2379 DEFAULT_wxUSE_PALETTE=no
2380 DEFAULT_wxUSE_IMAGE=no
2381 DEFAULT_wxUSE_GIF=no
2382 DEFAULT_wxUSE_PCX=no
2383 DEFAULT_wxUSE_PNM=no
2384 DEFAULT_wxUSE_IFF=no
2385 DEFAULT_wxUSE_XPM=no
2386 DEFAULT_wxUSE_ICO_CUR=no
2387 DEFAULT_wxUSE_ACCESSIBILITY=no
2388
2389 DEFAULT_wxUSE_MONOLITHIC=no
2390 DEFAULT_wxUSE_PLUGINS=no
2391 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2392else
2393 DEFAULT_wxUSE_UNIVERSAL=no
2394 DEFAULT_wxUSE_STL=no
2395
2396 DEFAULT_wxUSE_NANOX=no
2397
2398 DEFAULT_wxUSE_THREADS=yes
2399
5acfd58d 2400 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2401 DEFAULT_wxUSE_OPTIMISE=yes
2402 DEFAULT_wxUSE_PROFILE=no
2403 DEFAULT_wxUSE_NO_DEPS=no
2404 DEFAULT_wxUSE_NO_RTTI=no
2405 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2406 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2407 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2408 DEFAULT_wxUSE_PERMISSIVE=no
2409 DEFAULT_wxUSE_DEBUG_FLAG=no
2410 DEFAULT_wxUSE_DEBUG_INFO=no
2411 DEFAULT_wxUSE_DEBUG_GDB=no
2412 DEFAULT_wxUSE_MEM_TRACING=no
2413 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2414 DEFAULT_wxUSE_DMALLOC=no
2415 DEFAULT_wxUSE_APPLE_IEEE=yes
2416
2417 DEFAULT_wxUSE_EXCEPTIONS=yes
2418 DEFAULT_wxUSE_LOG=yes
2419 DEFAULT_wxUSE_LOGWINDOW=yes
2420 DEFAULT_wxUSE_LOGGUI=yes
2421 DEFAULT_wxUSE_LOGDIALOG=yes
2422
2423 DEFAULT_wxUSE_GUI=yes
2424
2425 DEFAULT_wxUSE_REGEX=yes
2426 DEFAULT_wxUSE_XML=yes
2427 DEFAULT_wxUSE_EXPAT=yes
2428 DEFAULT_wxUSE_ZLIB=yes
2429 DEFAULT_wxUSE_LIBPNG=yes
2430 DEFAULT_wxUSE_LIBJPEG=yes
2431 DEFAULT_wxUSE_LIBTIFF=yes
2432 DEFAULT_wxUSE_LIBXPM=yes
2433 DEFAULT_wxUSE_LIBMSPACK=yes
2434 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2435 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2436 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2437 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2438 DEFAULT_wxUSE_ODBC=no
52cb607e 2439 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2440
2441 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2442 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2443 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2444 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2445 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2446 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2447 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2448 DEFAULT_wxUSE_DATETIME=yes
2449 DEFAULT_wxUSE_TIMER=yes
2450 DEFAULT_wxUSE_STOPWATCH=yes
2451 DEFAULT_wxUSE_FILE=yes
2452 DEFAULT_wxUSE_FFILE=yes
07158944 2453 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2454 DEFAULT_wxUSE_TEXTBUFFER=yes
2455 DEFAULT_wxUSE_TEXTFILE=yes
2456 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2457 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2458 DEFAULT_wxUSE_GSTREAMER8=no
15291213 2459 DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
a848cd7e
SC
2460 DEFAULT_wxUSE_INTL=yes
2461 DEFAULT_wxUSE_CONFIG=yes
2462 DEFAULT_wxUSE_FONTMAP=yes
2463 DEFAULT_wxUSE_STREAMS=yes
2464 DEFAULT_wxUSE_SOCKETS=yes
2465 DEFAULT_wxUSE_OLE=yes
2466 DEFAULT_wxUSE_DATAOBJ=yes
2467 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2468 DEFAULT_wxUSE_JOYSTICK=yes
2469 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2470 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2471 DEFAULT_wxUSE_LONGLONG=yes
2472 DEFAULT_wxUSE_GEOMETRY=yes
2473
2474 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2475 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2476 DEFAULT_wxUSE_POSTSCRIPT=yes
2477
2478 DEFAULT_wxUSE_CLIPBOARD=yes
2479 DEFAULT_wxUSE_TOOLTIPS=yes
2480 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2481 DEFAULT_wxUSE_DRAGIMAGE=yes
2482 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2483 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2484
8a7b1113 2485 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2486 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2487 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2488 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2489
2490 DEFAULT_wxUSE_RESOURCES=no
2491 DEFAULT_wxUSE_CONSTRAINTS=yes
2492 DEFAULT_wxUSE_IPC=yes
2493 DEFAULT_wxUSE_HELP=yes
2494 DEFAULT_wxUSE_MS_HTML_HELP=yes
2495 DEFAULT_wxUSE_WXHTML_HELP=yes
2496 DEFAULT_wxUSE_TREELAYOUT=yes
2497 DEFAULT_wxUSE_METAFILE=yes
2498 DEFAULT_wxUSE_MIMETYPE=yes
2499 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2500 DEFAULT_wxUSE_PROTOCOL=yes
2501 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2502 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2503 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2504 DEFAULT_wxUSE_URL=yes
ca5c6ac3 2505 DEFAULT_wxUSE_VARIANT=yes
a848cd7e 2506
319c5ed4 2507 DEFAULT_wxUSE_ABOUTDLG=yes
a848cd7e
SC
2508 DEFAULT_wxUSE_COMMONDLGS=yes
2509 DEFAULT_wxUSE_CHOICEDLG=yes
2510 DEFAULT_wxUSE_COLOURDLG=yes
2511 DEFAULT_wxUSE_DIRDLG=yes
2512 DEFAULT_wxUSE_FILEDLG=yes
2513 DEFAULT_wxUSE_FINDREPLDLG=yes
2514 DEFAULT_wxUSE_FONTDLG=yes
2515 DEFAULT_wxUSE_MSGDLG=yes
2516 DEFAULT_wxUSE_NUMBERDLG=yes
2517 DEFAULT_wxUSE_TEXTDLG=yes
2518 DEFAULT_wxUSE_SPLASH=yes
2519 DEFAULT_wxUSE_STARTUP_TIPS=yes
2520 DEFAULT_wxUSE_PROGRESSDLG=yes
2521 DEFAULT_wxUSE_WIZARDDLG=yes
2522
2523 DEFAULT_wxUSE_MENUS=yes
2524 DEFAULT_wxUSE_MINIFRAME=yes
2525 DEFAULT_wxUSE_HTML=yes
91dea314 2526 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2527 DEFAULT_wxUSE_XRC=yes
3f60522a 2528 DEFAULT_wxUSE_AUI=yes
646b6ec1 2529 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2530 DEFAULT_wxUSE_FILESYSTEM=yes
2531 DEFAULT_wxUSE_FS_INET=yes
2532 DEFAULT_wxUSE_FS_ZIP=yes
2533 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2534 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2535 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2536 DEFAULT_wxUSE_VALIDATORS=yes
2537
2538 DEFAULT_wxUSE_ACCEL=yes
3ea50042 2539 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
2540 DEFAULT_wxUSE_BUTTON=yes
2541 DEFAULT_wxUSE_BMPBUTTON=yes
95a46303 2542 DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
a848cd7e
SC
2543 DEFAULT_wxUSE_CALCTRL=yes
2544 DEFAULT_wxUSE_CARET=yes
2545 DEFAULT_wxUSE_CHECKBOX=yes
2546 DEFAULT_wxUSE_CHECKLST=yes
2547 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2548 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684 2549 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2550 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2551 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2552 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2553 DEFAULT_wxUSE_DISPLAY=yes
e9263684
VZ
2554 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2555 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2556 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2557 DEFAULT_wxUSE_GAUGE=yes
2558 DEFAULT_wxUSE_GRID=yes
f43426c1 2559 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
6954625c 2560 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2561 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2562 DEFAULT_wxUSE_IMAGLIST=yes
2563 DEFAULT_wxUSE_LISTBOOK=yes
2564 DEFAULT_wxUSE_LISTBOX=yes
2565 DEFAULT_wxUSE_LISTCTRL=yes
2566 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2567 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2568 DEFAULT_wxUSE_RADIOBOX=yes
2569 DEFAULT_wxUSE_RADIOBTN=yes
2570 DEFAULT_wxUSE_SASH=yes
2571 DEFAULT_wxUSE_SCROLLBAR=yes
2572 DEFAULT_wxUSE_SLIDER=yes
2573 DEFAULT_wxUSE_SPINBTN=yes
2574 DEFAULT_wxUSE_SPINCTRL=yes
2575 DEFAULT_wxUSE_SPLITTER=yes
2576 DEFAULT_wxUSE_STATBMP=yes
2577 DEFAULT_wxUSE_STATBOX=yes
2578 DEFAULT_wxUSE_STATLINE=yes
2579 DEFAULT_wxUSE_STATTEXT=yes
2580 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2581 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2582 DEFAULT_wxUSE_TEXTCTRL=yes
2583 DEFAULT_wxUSE_TOGGLEBTN=yes
2584 DEFAULT_wxUSE_TOOLBAR=yes
2585 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
0093c2fc 2586 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2587 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2588 DEFAULT_wxUSE_TREECTRL=yes
2589 DEFAULT_wxUSE_POPUPWIN=yes
2590 DEFAULT_wxUSE_TIPWINDOW=yes
2591
78de529b 2592 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2593 DEFAULT_wxUSE_UNICODE_MSLU=yes
2594 DEFAULT_wxUSE_WCSRTOMBS=no
2595
2596 DEFAULT_wxUSE_PALETTE=yes
2597 DEFAULT_wxUSE_IMAGE=yes
2598 DEFAULT_wxUSE_GIF=yes
2599 DEFAULT_wxUSE_PCX=yes
2600 DEFAULT_wxUSE_IFF=no
2601 DEFAULT_wxUSE_PNM=yes
2602 DEFAULT_wxUSE_XPM=yes
2603 DEFAULT_wxUSE_ICO_CUR=yes
2604 DEFAULT_wxUSE_ACCESSIBILITY=no
2605
2606 DEFAULT_wxUSE_MONOLITHIC=no
2607 DEFAULT_wxUSE_PLUGINS=no
2608 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2609
f34ca037 2610 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2611fi
2612
2613
2614
f34ca037 2615
a848cd7e
SC
2616for toolkit in `echo $ALL_TOOLKITS`; do
2617 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2618 if test "x$LINE" != "x" ; then
2619 has_toolkit_in_cache=1
2620 eval "DEFAULT_$LINE"
2621 eval "CACHE_$toolkit=1"
f34ca037
MW
2622
2623 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2624 if test "x$LINE" != "x" ; then
2625 eval "DEFAULT_$LINE"
2626 fi
a848cd7e
SC
2627 fi
2628done
2629
2630
2631
2632 enablestring=
2633 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2634echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2635 no_cache=0
2636 # Check whether --enable-gui or --disable-gui was given.
2637if test "${enable_gui+set}" = set; then
2638 enableval="$enable_gui"
2639
2640 if test "$enableval" = yes; then
2641 ac_cv_use_gui='wxUSE_GUI=yes'
2642 else
2643 ac_cv_use_gui='wxUSE_GUI=no'
2644 fi
2645
2646else
2647
2648 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2649 if test "x$LINE" != x ; then
2650 eval "DEFAULT_$LINE"
2651 else
2652 no_cache=1
2653 fi
2654
2655 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2656
2657fi;
2658
2659 eval "$ac_cv_use_gui"
2660 if test "$no_cache" != 1; then
2661 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2662 fi
2663
2664 if test "$wxUSE_GUI" = yes; then
2665 echo "$as_me:$LINENO: result: yes" >&5
2666echo "${ECHO_T}yes" >&6
2667 else
2668 echo "$as_me:$LINENO: result: no" >&5
2669echo "${ECHO_T}no" >&6
2670 fi
2671
2672
2673 enablestring=
2674 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2675echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2676 no_cache=0
2677 # Check whether --enable-monolithic or --disable-monolithic was given.
2678if test "${enable_monolithic+set}" = set; then
2679 enableval="$enable_monolithic"
2680
2681 if test "$enableval" = yes; then
2682 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2683 else
2684 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2685 fi
2686
2687else
2688
2689 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2690 if test "x$LINE" != x ; then
2691 eval "DEFAULT_$LINE"
2692 else
2693 no_cache=1
2694 fi
2695
2696 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2697
2698fi;
2699
2700 eval "$ac_cv_use_monolithic"
2701 if test "$no_cache" != 1; then
2702 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2703 fi
2704
2705 if test "$wxUSE_MONOLITHIC" = yes; then
2706 echo "$as_me:$LINENO: result: yes" >&5
2707echo "${ECHO_T}yes" >&6
2708 else
2709 echo "$as_me:$LINENO: result: no" >&5
2710echo "${ECHO_T}no" >&6
2711 fi
2712
2713
2714 enablestring=
2715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2716echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2717 no_cache=0
2718 # Check whether --enable-plugins or --disable-plugins was given.
2719if test "${enable_plugins+set}" = set; then
2720 enableval="$enable_plugins"
2721
2722 if test "$enableval" = yes; then
2723 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2724 else
2725 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2726 fi
2727
2728else
2729
2730 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2731 if test "x$LINE" != x ; then
2732 eval "DEFAULT_$LINE"
2733 else
2734 no_cache=1
2735 fi
2736
2737 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2738
2739fi;
2740
2741 eval "$ac_cv_use_plugins"
2742 if test "$no_cache" != 1; then
2743 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2744 fi
2745
2746 if test "$wxUSE_PLUGINS" = yes; then
2747 echo "$as_me:$LINENO: result: yes" >&5
2748echo "${ECHO_T}yes" >&6
2749 else
2750 echo "$as_me:$LINENO: result: no" >&5
2751echo "${ECHO_T}no" >&6
2752 fi
2753
2754
1c14217d
VZ
2755 withstring=without
2756 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2757echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2758 no_cache=0
2759
2760# Check whether --with-subdirs or --without-subdirs was given.
2761if test "${with_subdirs+set}" = set; then
2762 withval="$with_subdirs"
2763
2764 if test "$withval" = yes; then
2765 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2766 else
2767 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2768 fi
2769
2770else
2771
2772 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2773 if test "x$LINE" != x ; then
2774 eval "DEFAULT_$LINE"
2775 else
2776 no_cache=1
2777 fi
2778
2779 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2780
2781fi;
2782
2783 eval "$ac_cv_use_subdirs"
2784 if test "$no_cache" != 1; then
2785 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2786 fi
2787
2788 if test "$wxWITH_SUBDIRS" = yes; then
2789 echo "$as_me:$LINENO: result: yes" >&5
2790echo "${ECHO_T}yes" >&6
2791 else
2792 echo "$as_me:$LINENO: result: no" >&5
2793echo "${ECHO_T}no" >&6
2794 fi
2795
2796
a848cd7e
SC
2797if test "$wxUSE_GUI" = "yes"; then
2798
2799
2800 enablestring=
2801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2802echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2803 no_cache=0
2804 # Check whether --enable-universal or --disable-universal was given.
2805if test "${enable_universal+set}" = set; then
2806 enableval="$enable_universal"
2807
2808 if test "$enableval" = yes; then
2809 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2810 else
2811 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2812 fi
2813
2814else
2815
2816 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2817 if test "x$LINE" != x ; then
2818 eval "DEFAULT_$LINE"
2819 else
2820 no_cache=1
2821 fi
2822
2823 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2824
2825fi;
2826
2827 eval "$ac_cv_use_universal"
2828 if test "$no_cache" != 1; then
2829 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2830 fi
2831
2832 if test "$wxUSE_UNIVERSAL" = yes; then
2833 echo "$as_me:$LINENO: result: yes" >&5
2834echo "${ECHO_T}yes" >&6
2835 else
2836 echo "$as_me:$LINENO: result: no" >&5
2837echo "${ECHO_T}no" >&6
2838 fi
2839
2840
2841# Check whether --with-gtk or --without-gtk was given.
2842if test "${with_gtk+set}" = set; then
2843 withval="$with_gtk"
2844 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2845fi;
2846
2847# Check whether --with-motif or --without-motif was given.
2848if test "${with_motif+set}" = set; then
2849 withval="$with_motif"
2850 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2851fi;
2852
2853# Check whether --with-mac or --without-mac was given.
2854if test "${with_mac+set}" = set; then
2855 withval="$with_mac"
c228d3a4 2856 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2857fi;
2858
2859# Check whether --with-cocoa or --without-cocoa was given.
2860if test "${with_cocoa+set}" = set; then
2861 withval="$with_cocoa"
c228d3a4 2862 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2863fi;
2864
2865# Check whether --with-wine or --without-wine was given.
2866if test "${with_wine+set}" = set; then
2867 withval="$with_wine"
2868 wxUSE_WINE="$withval" CACHE_WINE=1
2869fi;
2870
2871# Check whether --with-msw or --without-msw was given.
2872if test "${with_msw+set}" = set; then
2873 withval="$with_msw"
2874 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2875fi;
2876
2877# Check whether --with-pm or --without-pm was given.
2878if test "${with_pm+set}" = set; then
2879 withval="$with_pm"
2880 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2881fi;
2882
2883# Check whether --with-mgl or --without-mgl was given.
2884if test "${with_mgl+set}" = set; then
2885 withval="$with_mgl"
2886 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2887fi;
2888
b3c86150
VS
2889# Check whether --with-directfb or --without-directfb was given.
2890if test "${with_directfb+set}" = set; then
2891 withval="$with_directfb"
2892 wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2893fi;
2894
a848cd7e
SC
2895# Check whether --with-microwin or --without-microwin was given.
2896if test "${with_microwin+set}" = set; then
2897 withval="$with_microwin"
2898 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2899fi;
2900
2901# Check whether --with-x11 or --without-x11 was given.
2902if test "${with_x11+set}" = set; then
2903 withval="$with_x11"
2904 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2905fi;
2906
2907 enablestring=
2908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2909echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2910 no_cache=0
2911 # Check whether --enable-nanox or --disable-nanox was given.
2912if test "${enable_nanox+set}" = set; then
2913 enableval="$enable_nanox"
2914
2915 if test "$enableval" = yes; then
2916 ac_cv_use_nanox='wxUSE_NANOX=yes'
2917 else
2918 ac_cv_use_nanox='wxUSE_NANOX=no'
2919 fi
2920
2921else
2922
2923 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2924 if test "x$LINE" != x ; then
2925 eval "DEFAULT_$LINE"
2926 else
2927 no_cache=1
2928 fi
2929
2930 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2931
2932fi;
2933
2934 eval "$ac_cv_use_nanox"
2935 if test "$no_cache" != 1; then
2936 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2937 fi
2938
2939 if test "$wxUSE_NANOX" = yes; then
2940 echo "$as_me:$LINENO: result: yes" >&5
2941echo "${ECHO_T}yes" >&6
2942 else
2943 echo "$as_me:$LINENO: result: no" >&5
2944echo "${ECHO_T}no" >&6
2945 fi
2946
2947
f34ca037
MW
2948# Check whether --enable-gtk2 or --disable-gtk2 was given.
2949if test "${enable_gtk2+set}" = set; then
2950 enableval="$enable_gtk2"
2951 wxUSE_GTK2="$enableval"
2952fi;
a848cd7e 2953
a848cd7e
SC
2954 enablestring=
2955 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2956echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2957 no_cache=0
2958 # Check whether --enable-gpe or --disable-gpe was given.
2959if test "${enable_gpe+set}" = set; then
2960 enableval="$enable_gpe"
2961
2962 if test "$enableval" = yes; then
2963 ac_cv_use_gpe='wxUSE_GPE=yes'
2964 else
2965 ac_cv_use_gpe='wxUSE_GPE=no'
2966 fi
2967
2968else
2969
2970 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2971 if test "x$LINE" != x ; then
2972 eval "DEFAULT_$LINE"
2973 else
2974 no_cache=1
2975 fi
2976
2977 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2978
2979fi;
2980
2981 eval "$ac_cv_use_gpe"
2982 if test "$no_cache" != 1; then
2983 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2984 fi
2985
2986 if test "$wxUSE_GPE" = yes; then
2987 echo "$as_me:$LINENO: result: yes" >&5
2988echo "${ECHO_T}yes" >&6
2989 else
2990 echo "$as_me:$LINENO: result: no" >&5
2991echo "${ECHO_T}no" >&6
2992 fi
2993
2994
2995
2996 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2997echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2998 no_cache=0
2999
3000# Check whether --with-libpng or --without-libpng was given.
3001if test "${with_libpng+set}" = set; then
3002 withval="$with_libpng"
3003
3004 if test "$withval" = yes; then
3005 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
3006 elif test "$withval" = no; then
3007 ac_cv_use_libpng='wxUSE_LIBPNG=no'
3008 elif test "$withval" = sys; then
3009 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
3010 elif test "$withval" = builtin; then
3011 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
3012 else
3013 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3014echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3015 { (exit 1); exit 1; }; }
3016 fi
3017
3018else
3019
3020 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
3021 if test "x$LINE" != x ; then
3022 eval "DEFAULT_$LINE"
3023 else
3024 no_cache=1
3025 fi
3026
3027 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3028
3029fi;
3030
3031 eval "$ac_cv_use_libpng"
3032 if test "$no_cache" != 1; then
3033 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3034 fi
3035
3036 if test "$wxUSE_LIBPNG" = yes; then
3037 echo "$as_me:$LINENO: result: yes" >&5
3038echo "${ECHO_T}yes" >&6
3039 elif test "$wxUSE_LIBPNG" = no; then
3040 echo "$as_me:$LINENO: result: no" >&5
3041echo "${ECHO_T}no" >&6
3042 elif test "$wxUSE_LIBPNG" = sys; then
3043 echo "$as_me:$LINENO: result: system version" >&5
3044echo "${ECHO_T}system version" >&6
3045 elif test "$wxUSE_LIBPNG" = builtin; then
3046 echo "$as_me:$LINENO: result: builtin version" >&5
3047echo "${ECHO_T}builtin version" >&6
3048 else
3049 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3050echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3051 { (exit 1); exit 1; }; }
3052 fi
3053
3054
3055 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3056echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3057 no_cache=0
3058
3059# Check whether --with-libjpeg or --without-libjpeg was given.
3060if test "${with_libjpeg+set}" = set; then
3061 withval="$with_libjpeg"
3062
3063 if test "$withval" = yes; then
3064 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3065 elif test "$withval" = no; then
3066 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3067 elif test "$withval" = sys; then
3068 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3069 elif test "$withval" = builtin; then
3070 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3071 else
3072 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3073echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3074 { (exit 1); exit 1; }; }
3075 fi
3076
3077else
3078
3079 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3080 if test "x$LINE" != x ; then
3081 eval "DEFAULT_$LINE"
3082 else
3083 no_cache=1
3084 fi
3085
3086 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3087
3088fi;
3089
3090 eval "$ac_cv_use_libjpeg"
3091 if test "$no_cache" != 1; then
3092 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3093 fi
3094
3095 if test "$wxUSE_LIBJPEG" = yes; then
3096 echo "$as_me:$LINENO: result: yes" >&5
3097echo "${ECHO_T}yes" >&6
3098 elif test "$wxUSE_LIBJPEG" = no; then
3099 echo "$as_me:$LINENO: result: no" >&5
3100echo "${ECHO_T}no" >&6
3101 elif test "$wxUSE_LIBJPEG" = sys; then
3102 echo "$as_me:$LINENO: result: system version" >&5
3103echo "${ECHO_T}system version" >&6
3104 elif test "$wxUSE_LIBJPEG" = builtin; then
3105 echo "$as_me:$LINENO: result: builtin version" >&5
3106echo "${ECHO_T}builtin version" >&6
3107 else
3108 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3109echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3110 { (exit 1); exit 1; }; }
3111 fi
3112
3113
3114 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3115echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3116 no_cache=0
3117
3118# Check whether --with-libtiff or --without-libtiff was given.
3119if test "${with_libtiff+set}" = set; then
3120 withval="$with_libtiff"
3121
3122 if test "$withval" = yes; then
3123 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3124 elif test "$withval" = no; then
3125 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3126 elif test "$withval" = sys; then
3127 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3128 elif test "$withval" = builtin; then
3129 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3130 else
3131 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3132echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3133 { (exit 1); exit 1; }; }
3134 fi
3135
3136else
3137
3138 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3139 if test "x$LINE" != x ; then
3140 eval "DEFAULT_$LINE"
3141 else
3142 no_cache=1
3143 fi
3144
3145 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3146
3147fi;
3148
3149 eval "$ac_cv_use_libtiff"
3150 if test "$no_cache" != 1; then
3151 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3152 fi
3153
3154 if test "$wxUSE_LIBTIFF" = yes; then
3155 echo "$as_me:$LINENO: result: yes" >&5
3156echo "${ECHO_T}yes" >&6
3157 elif test "$wxUSE_LIBTIFF" = no; then
3158 echo "$as_me:$LINENO: result: no" >&5
3159echo "${ECHO_T}no" >&6
3160 elif test "$wxUSE_LIBTIFF" = sys; then
3161 echo "$as_me:$LINENO: result: system version" >&5
3162echo "${ECHO_T}system version" >&6
3163 elif test "$wxUSE_LIBTIFF" = builtin; then
3164 echo "$as_me:$LINENO: result: builtin version" >&5
3165echo "${ECHO_T}builtin version" >&6
3166 else
3167 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3168echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3169 { (exit 1); exit 1; }; }
3170 fi
3171
3172
3173 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3174echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3175 no_cache=0
3176
3177# Check whether --with-libxpm or --without-libxpm was given.
3178if test "${with_libxpm+set}" = set; then
3179 withval="$with_libxpm"
3180
3181 if test "$withval" = yes; then
3182 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3183 elif test "$withval" = no; then
3184 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3185 elif test "$withval" = sys; then
3186 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3187 elif test "$withval" = builtin; then
3188 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3189 else
3190 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3191echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3192 { (exit 1); exit 1; }; }
3193 fi
3194
3195else
3196
3197 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3198 if test "x$LINE" != x ; then
3199 eval "DEFAULT_$LINE"
3200 else
3201 no_cache=1
3202 fi
3203
3204 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3205
3206fi;
3207
3208 eval "$ac_cv_use_libxpm"
3209 if test "$no_cache" != 1; then
3210 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3211 fi
3212
3213 if test "$wxUSE_LIBXPM" = yes; then
3214 echo "$as_me:$LINENO: result: yes" >&5
3215echo "${ECHO_T}yes" >&6
3216 elif test "$wxUSE_LIBXPM" = no; then
3217 echo "$as_me:$LINENO: result: no" >&5
3218echo "${ECHO_T}no" >&6
3219 elif test "$wxUSE_LIBXPM" = sys; then
3220 echo "$as_me:$LINENO: result: system version" >&5
3221echo "${ECHO_T}system version" >&6
3222 elif test "$wxUSE_LIBXPM" = builtin; then
3223 echo "$as_me:$LINENO: result: builtin version" >&5
3224echo "${ECHO_T}builtin version" >&6
3225 else
3226 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3227echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3228 { (exit 1); exit 1; }; }
3229 fi
3230
3231
1c14217d
VZ
3232 withstring=
3233 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3234echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3235 no_cache=0
3236
3237# Check whether --with-libmspack or --without-libmspack was given.
3238if test "${with_libmspack+set}" = set; then
3239 withval="$with_libmspack"
3240
3241 if test "$withval" = yes; then
3242 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3243 else
3244 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3245 fi
3246
3247else
3248
3249 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3250 if test "x$LINE" != x ; then
3251 eval "DEFAULT_$LINE"
3252 else
3253 no_cache=1
3254 fi
3255
3256 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3257
3258fi;
3259
3260 eval "$ac_cv_use_libmspack"
3261 if test "$no_cache" != 1; then
3262 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3263 fi
3264
3265 if test "$wxUSE_LIBMSPACK" = yes; then
3266 echo "$as_me:$LINENO: result: yes" >&5
3267echo "${ECHO_T}yes" >&6
3268 else
3269 echo "$as_me:$LINENO: result: no" >&5
3270echo "${ECHO_T}no" >&6
3271 fi
3272
3273
1c14217d
VZ
3274 withstring=
3275 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3276echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3277 no_cache=0
3278
3279# Check whether --with-sdl or --without-sdl was given.
3280if test "${with_sdl+set}" = set; then
3281 withval="$with_sdl"
3282
3283 if test "$withval" = yes; then
3284 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3285 else
3286 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3287 fi
3288
3289else
3290
3291 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3292 if test "x$LINE" != x ; then
3293 eval "DEFAULT_$LINE"
3294 else
3295 no_cache=1
3296 fi
3297
3298 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3299
3300fi;
3301
3302 eval "$ac_cv_use_sdl"
3303 if test "$no_cache" != 1; then
3304 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3305 fi
3306
3307 if test "$wxUSE_LIBSDL" = yes; then
3308 echo "$as_me:$LINENO: result: yes" >&5
3309echo "${ECHO_T}yes" >&6
3310 else
3311 echo "$as_me:$LINENO: result: no" >&5
3312echo "${ECHO_T}no" >&6
3313 fi
3314
3315
1c14217d
VZ
3316 withstring=
3317 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3318echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3319 no_cache=0
3320
3321# Check whether --with-gnomeprint or --without-gnomeprint was given.
3322if test "${with_gnomeprint+set}" = set; then
3323 withval="$with_gnomeprint"
3324
3325 if test "$withval" = yes; then
3326 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3327 else
3328 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3329 fi
3330
3331else
3332
3333 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3334 if test "x$LINE" != x ; then
3335 eval "DEFAULT_$LINE"
3336 else
3337 no_cache=1
3338 fi
3339
3340 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3341
3342fi;
3343
3344 eval "$ac_cv_use_gnomeprint"
3345 if test "$no_cache" != 1; then
3346 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3347 fi
3348
3349 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3350 echo "$as_me:$LINENO: result: yes" >&5
3351echo "${ECHO_T}yes" >&6
3352 else
3353 echo "$as_me:$LINENO: result: no" >&5
3354echo "${ECHO_T}no" >&6
3355 fi
3356
3357
2b850ae1
RR
3358 withstring=
3359 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3360echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3361 no_cache=0
3362
3363# Check whether --with-gnomevfs or --without-gnomevfs was given.
3364if test "${with_gnomevfs+set}" = set; then
3365 withval="$with_gnomevfs"
3366
3367 if test "$withval" = yes; then
3368 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3369 else
3370 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3371 fi
3372
3373else
3374
3375 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3376 if test "x$LINE" != x ; then
3377 eval "DEFAULT_$LINE"
3378 else
3379 no_cache=1
3380 fi
3381
3382 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3383
3384fi;
3385
3386 eval "$ac_cv_use_gnomevfs"
3387 if test "$no_cache" != 1; then
3388 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3389 fi
3390
3391 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3392 echo "$as_me:$LINENO: result: yes" >&5
3393echo "${ECHO_T}yes" >&6
3394 else
3395 echo "$as_me:$LINENO: result: no" >&5
3396echo "${ECHO_T}no" >&6
3397 fi
3398
3399
3565d135
RR
3400 withstring=
3401 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3402echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3403 no_cache=0
3404
3405# Check whether --with-hildon or --without-hildon was given.
3406if test "${with_hildon+set}" = set; then
3407 withval="$with_hildon"
3408
3409 if test "$withval" = yes; then
3410 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3411 else
3412 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3413 fi
3414
3415else
3416
3417 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3418 if test "x$LINE" != x ; then
3419 eval "DEFAULT_$LINE"
3420 else
3421 no_cache=1
3422 fi
3423
3424 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3425
3426fi;
3427
3428 eval "$ac_cv_use_hildon"
3429 if test "$no_cache" != 1; then
3430 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3431 fi
3432
3433 if test "$wxUSE_LIBHILDON" = yes; then
3434 echo "$as_me:$LINENO: result: yes" >&5
3435echo "${ECHO_T}yes" >&6
3436 else
3437 echo "$as_me:$LINENO: result: no" >&5
3438echo "${ECHO_T}no" >&6
3439 fi
3440
3441
1c14217d
VZ
3442 withstring=
3443 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3444echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3445 no_cache=0
3446
3447# Check whether --with-opengl or --without-opengl was given.
3448if test "${with_opengl+set}" = set; then
3449 withval="$with_opengl"
3450
3451 if test "$withval" = yes; then
3452 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3453 else
3454 ac_cv_use_opengl='wxUSE_OPENGL=no'
3455 fi
3456
3457else
3458
3459 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3460 if test "x$LINE" != x ; then
3461 eval "DEFAULT_$LINE"
3462 else
3463 no_cache=1
3464 fi
3465
3466 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3467
3468fi;
3469
3470 eval "$ac_cv_use_opengl"
3471 if test "$no_cache" != 1; then
3472 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3473 fi
3474
3475 if test "$wxUSE_OPENGL" = yes; then
3476 echo "$as_me:$LINENO: result: yes" >&5
3477echo "${ECHO_T}yes" >&6
3478 else
3479 echo "$as_me:$LINENO: result: no" >&5
3480echo "${ECHO_T}no" >&6
3481 fi
3482
3483
4353a8df
VZ
3484if test "$wxUSE_UNIVERSAL" = "yes"; then
3485
3486# Check whether --with-themes or --without-themes was given.
3487if test "${with_themes+set}" = set; then
3488 withval="$with_themes"
3489 wxUNIV_THEMES="$withval"
3490fi;
3491fi
3492
a848cd7e
SC
3493fi
3494
3495
1c14217d
VZ
3496 withstring=
3497 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3498echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3499 no_cache=0
3500
3501# Check whether --with-dmalloc or --without-dmalloc was given.
3502if test "${with_dmalloc+set}" = set; then
3503 withval="$with_dmalloc"
3504
3505 if test "$withval" = yes; then
3506 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3507 else
3508 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3509 fi
3510
3511else
3512
3513 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3514 if test "x$LINE" != x ; then
3515 eval "DEFAULT_$LINE"
3516 else
3517 no_cache=1
3518 fi
3519
3520 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3521
3522fi;
3523
3524 eval "$ac_cv_use_dmalloc"
3525 if test "$no_cache" != 1; then
3526 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3527 fi
3528
3529 if test "$wxUSE_DMALLOC" = yes; then
3530 echo "$as_me:$LINENO: result: yes" >&5
3531echo "${ECHO_T}yes" >&6
3532 else
3533 echo "$as_me:$LINENO: result: no" >&5
3534echo "${ECHO_T}no" >&6
3535 fi
3536
3537
3538 echo "$as_me:$LINENO: checking for --with-regex" >&5
3539echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3540 no_cache=0
3541
3542# Check whether --with-regex or --without-regex was given.
3543if test "${with_regex+set}" = set; then
3544 withval="$with_regex"
3545
3546 if test "$withval" = yes; then
3547 ac_cv_use_regex='wxUSE_REGEX=yes'
3548 elif test "$withval" = no; then
3549 ac_cv_use_regex='wxUSE_REGEX=no'
3550 elif test "$withval" = sys; then
3551 ac_cv_use_regex='wxUSE_REGEX=sys'
3552 elif test "$withval" = builtin; then
3553 ac_cv_use_regex='wxUSE_REGEX=builtin'
3554 else
3555 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3556echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3557 { (exit 1); exit 1; }; }
3558 fi
3559
3560else
3561
3562 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3563 if test "x$LINE" != x ; then
3564 eval "DEFAULT_$LINE"
3565 else
3566 no_cache=1
3567 fi
3568
3569 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3570
3571fi;
3572
3573 eval "$ac_cv_use_regex"
3574 if test "$no_cache" != 1; then
3575 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3576 fi
3577
3578 if test "$wxUSE_REGEX" = yes; then
3579 echo "$as_me:$LINENO: result: yes" >&5
3580echo "${ECHO_T}yes" >&6
3581 elif test "$wxUSE_REGEX" = no; then
3582 echo "$as_me:$LINENO: result: no" >&5
3583echo "${ECHO_T}no" >&6
3584 elif test "$wxUSE_REGEX" = sys; then
3585 echo "$as_me:$LINENO: result: system version" >&5
3586echo "${ECHO_T}system version" >&6
3587 elif test "$wxUSE_REGEX" = builtin; then
3588 echo "$as_me:$LINENO: result: builtin version" >&5
3589echo "${ECHO_T}builtin version" >&6
3590 else
3591 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3592echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3593 { (exit 1); exit 1; }; }
3594 fi
3595
3596
3597 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3598echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3599 no_cache=0
3600
3601# Check whether --with-zlib or --without-zlib was given.
3602if test "${with_zlib+set}" = set; then
3603 withval="$with_zlib"
3604
3605 if test "$withval" = yes; then
3606 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3607 elif test "$withval" = no; then
3608 ac_cv_use_zlib='wxUSE_ZLIB=no'
3609 elif test "$withval" = sys; then
3610 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3611 elif test "$withval" = builtin; then
3612 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3613 else
3614 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3615echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3616 { (exit 1); exit 1; }; }
3617 fi
3618
3619else
3620
3621 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3622 if test "x$LINE" != x ; then
3623 eval "DEFAULT_$LINE"
3624 else
3625 no_cache=1
3626 fi
3627
3628 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3629
3630fi;
3631
3632 eval "$ac_cv_use_zlib"
3633 if test "$no_cache" != 1; then
3634 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3635 fi
3636
3637 if test "$wxUSE_ZLIB" = yes; then
3638 echo "$as_me:$LINENO: result: yes" >&5
3639echo "${ECHO_T}yes" >&6
3640 elif test "$wxUSE_ZLIB" = no; then
3641 echo "$as_me:$LINENO: result: no" >&5
3642echo "${ECHO_T}no" >&6
3643 elif test "$wxUSE_ZLIB" = sys; then
3644 echo "$as_me:$LINENO: result: system version" >&5
3645echo "${ECHO_T}system version" >&6
3646 elif test "$wxUSE_ZLIB" = builtin; then
3647 echo "$as_me:$LINENO: result: builtin version" >&5
3648echo "${ECHO_T}builtin version" >&6
3649 else
3650 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3651echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3652 { (exit 1); exit 1; }; }
3653 fi
3654
3655
3656 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3657echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3658 no_cache=0
3659
3660# Check whether --with-odbc or --without-odbc was given.
3661if test "${with_odbc+set}" = set; then
3662 withval="$with_odbc"
3663
3664 if test "$withval" = yes; then
3665 ac_cv_use_odbc='wxUSE_ODBC=yes'
3666 elif test "$withval" = no; then
3667 ac_cv_use_odbc='wxUSE_ODBC=no'
3668 elif test "$withval" = sys; then
3669 ac_cv_use_odbc='wxUSE_ODBC=sys'
3670 elif test "$withval" = builtin; then
3671 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3672 else
3673 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3674echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3675 { (exit 1); exit 1; }; }
3676 fi
3677
3678else
3679
3680 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3681 if test "x$LINE" != x ; then
3682 eval "DEFAULT_$LINE"
3683 else
3684 no_cache=1
3685 fi
3686
3687 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3688
3689fi;
3690
3691 eval "$ac_cv_use_odbc"
3692 if test "$no_cache" != 1; then
3693 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3694 fi
3695
3696 if test "$wxUSE_ODBC" = yes; then
3697 echo "$as_me:$LINENO: result: yes" >&5
3698echo "${ECHO_T}yes" >&6
3699 elif test "$wxUSE_ODBC" = no; then
3700 echo "$as_me:$LINENO: result: no" >&5
3701echo "${ECHO_T}no" >&6
3702 elif test "$wxUSE_ODBC" = sys; then
3703 echo "$as_me:$LINENO: result: system version" >&5
3704echo "${ECHO_T}system version" >&6
3705 elif test "$wxUSE_ODBC" = builtin; then
3706 echo "$as_me:$LINENO: result: builtin version" >&5
3707echo "${ECHO_T}builtin version" >&6
3708 else
3709 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3710echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3711 { (exit 1); exit 1; }; }
3712 fi
3713
3714
3715 echo "$as_me:$LINENO: checking for --with-expat" >&5
3716echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3717 no_cache=0
3718
3719# Check whether --with-expat or --without-expat was given.
3720if test "${with_expat+set}" = set; then
3721 withval="$with_expat"
3722
3723 if test "$withval" = yes; then
3724 ac_cv_use_expat='wxUSE_EXPAT=yes'
3725 elif test "$withval" = no; then
3726 ac_cv_use_expat='wxUSE_EXPAT=no'
3727 elif test "$withval" = sys; then
3728 ac_cv_use_expat='wxUSE_EXPAT=sys'
3729 elif test "$withval" = builtin; then
3730 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3731 else
3732 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3733echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3734 { (exit 1); exit 1; }; }
3735 fi
3736
3737else
3738
3739 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3740 if test "x$LINE" != x ; then
3741 eval "DEFAULT_$LINE"
3742 else
3743 no_cache=1
3744 fi
3745
3746 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3747
3748fi;
3749
3750 eval "$ac_cv_use_expat"
3751 if test "$no_cache" != 1; then
3752 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3753 fi
3754
3755 if test "$wxUSE_EXPAT" = yes; then
3756 echo "$as_me:$LINENO: result: yes" >&5
3757echo "${ECHO_T}yes" >&6
3758 elif test "$wxUSE_EXPAT" = no; then
3759 echo "$as_me:$LINENO: result: no" >&5
3760echo "${ECHO_T}no" >&6
3761 elif test "$wxUSE_EXPAT" = sys; then
3762 echo "$as_me:$LINENO: result: system version" >&5
3763echo "${ECHO_T}system version" >&6
3764 elif test "$wxUSE_EXPAT" = builtin; then
3765 echo "$as_me:$LINENO: result: builtin version" >&5
3766echo "${ECHO_T}builtin version" >&6
3767 else
3768 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3769echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3770 { (exit 1); exit 1; }; }
3771 fi
3772
3773
3774
3775
3776 enablestring=
3777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3778echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3779 no_cache=0
3780 # Check whether --enable-shared or --disable-shared was given.
3781if test "${enable_shared+set}" = set; then
3782 enableval="$enable_shared"
3783
3784 if test "$enableval" = yes; then
3785 ac_cv_use_shared='wxUSE_SHARED=yes'
3786 else
3787 ac_cv_use_shared='wxUSE_SHARED=no'
3788 fi
3789
3790else
3791
3792 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3793 if test "x$LINE" != x ; then
3794 eval "DEFAULT_$LINE"
3795 else
3796 no_cache=1
3797 fi
3798
3799 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3800
3801fi;
3802
3803 eval "$ac_cv_use_shared"
3804 if test "$no_cache" != 1; then
3805 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3806 fi
3807
3808 if test "$wxUSE_SHARED" = yes; then
3809 echo "$as_me:$LINENO: result: yes" >&5
3810echo "${ECHO_T}yes" >&6
3811 else
3812 echo "$as_me:$LINENO: result: no" >&5
3813echo "${ECHO_T}no" >&6
3814 fi
3815
3816
3817 enablestring=
3818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3819echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3820 no_cache=0
3821 # Check whether --enable-optimise or --disable-optimise was given.
3822if test "${enable_optimise+set}" = set; then
3823 enableval="$enable_optimise"
3824
3825 if test "$enableval" = yes; then
3826 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3827 else
3828 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3829 fi
3830
3831else
3832
3833 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3834 if test "x$LINE" != x ; then
3835 eval "DEFAULT_$LINE"
3836 else
3837 no_cache=1
3838 fi
3839
3840 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3841
3842fi;
3843
3844 eval "$ac_cv_use_optimise"
3845 if test "$no_cache" != 1; then
3846 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3847 fi
3848
3849 if test "$wxUSE_OPTIMISE" = yes; then
3850 echo "$as_me:$LINENO: result: yes" >&5
3851echo "${ECHO_T}yes" >&6
3852 else
3853 echo "$as_me:$LINENO: result: no" >&5
3854echo "${ECHO_T}no" >&6
3855 fi
3856
3857
3858 enablestring=
3859 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3860echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3861 no_cache=0
3862 # Check whether --enable-debug or --disable-debug was given.
3863if test "${enable_debug+set}" = set; then
3864 enableval="$enable_debug"
3865
3866 if test "$enableval" = yes; then
3867 ac_cv_use_debug='wxUSE_DEBUG=yes'
3868 else
3869 ac_cv_use_debug='wxUSE_DEBUG=no'
3870 fi
3871
3872else
3873
3874 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3875 if test "x$LINE" != x ; then
3876 eval "DEFAULT_$LINE"
3877 else
3878 no_cache=1
3879 fi
3880
3881 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3882
3883fi;
3884
3885 eval "$ac_cv_use_debug"
3886 if test "$no_cache" != 1; then
3887 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3888 fi
3889
3890 if test "$wxUSE_DEBUG" = yes; then
3891 echo "$as_me:$LINENO: result: yes" >&5
3892echo "${ECHO_T}yes" >&6
3893 else
3894 echo "$as_me:$LINENO: result: no" >&5
3895echo "${ECHO_T}no" >&6
3896 fi
3897
3898
3899 enablestring=
3900 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3901echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3902 no_cache=0
3903 # Check whether --enable-stl or --disable-stl was given.
3904if test "${enable_stl+set}" = set; then
3905 enableval="$enable_stl"
3906
3907 if test "$enableval" = yes; then
3908 ac_cv_use_stl='wxUSE_STL=yes'
3909 else
3910 ac_cv_use_stl='wxUSE_STL=no'
3911 fi
3912
3913else
3914
3915 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3916 if test "x$LINE" != x ; then
3917 eval "DEFAULT_$LINE"
3918 else
3919 no_cache=1
3920 fi
3921
3922 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3923
3924fi;
3925
3926 eval "$ac_cv_use_stl"
3927 if test "$no_cache" != 1; then
3928 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3929 fi
3930
3931 if test "$wxUSE_STL" = yes; then
3932 echo "$as_me:$LINENO: result: yes" >&5
3933echo "${ECHO_T}yes" >&6
3934 else
3935 echo "$as_me:$LINENO: result: no" >&5
3936echo "${ECHO_T}no" >&6
3937 fi
3938
3939if test "$USE_OS2" = "1"; then
69120ee4 3940 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3941
3942 enablestring=
3943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3944echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3945 no_cache=0
3946 # Check whether --enable-omf or --disable-omf was given.
3947if test "${enable_omf+set}" = set; then
3948 enableval="$enable_omf"
3949
3950 if test "$enableval" = yes; then
3951 ac_cv_use_omf='wxUSE_OMF=yes'
3952 else
3953 ac_cv_use_omf='wxUSE_OMF=no'
3954 fi
3955
3956else
3957
3958 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3959 if test "x$LINE" != x ; then
3960 eval "DEFAULT_$LINE"
3961 else
3962 no_cache=1
3963 fi
3964
3965 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3966
3967fi;
3968
3969 eval "$ac_cv_use_omf"
3970 if test "$no_cache" != 1; then
3971 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3972 fi
3973
3974 if test "$wxUSE_OMF" = yes; then
3975 echo "$as_me:$LINENO: result: yes" >&5
3976echo "${ECHO_T}yes" >&6
3977 else
3978 echo "$as_me:$LINENO: result: no" >&5
3979echo "${ECHO_T}no" >&6
3980 fi
3981
3982fi
3983
3984if test "$wxUSE_DEBUG" = "yes"; then
3985 DEFAULT_wxUSE_DEBUG_FLAG=yes
3986 DEFAULT_wxUSE_DEBUG_INFO=yes
3987 BUILD=debug
3988elif test "$wxUSE_DEBUG" = "no"; then
3989 DEFAULT_wxUSE_DEBUG_FLAG=no
3990 DEFAULT_wxUSE_DEBUG_INFO=no
3991 BUILD=release
3992fi
3993
3994
3995 enablestring=
3996 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3997echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3998 no_cache=0
3999 # Check whether --enable-debug_flag or --disable-debug_flag was given.
4000if test "${enable_debug_flag+set}" = set; then
4001 enableval="$enable_debug_flag"
4002
4003 if test "$enableval" = yes; then
4004 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4005 else
4006 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4007 fi
4008
4009else
4010
4011 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
4012 if test "x$LINE" != x ; then
4013 eval "DEFAULT_$LINE"
4014 else
4015 no_cache=1
4016 fi
4017
4018 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
4019
4020fi;
4021
4022 eval "$ac_cv_use_debug_flag"
4023 if test "$no_cache" != 1; then
4024 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
4025 fi
4026
4027 if test "$wxUSE_DEBUG_FLAG" = yes; then
4028 echo "$as_me:$LINENO: result: yes" >&5
4029echo "${ECHO_T}yes" >&6
4030 else
4031 echo "$as_me:$LINENO: result: no" >&5
4032echo "${ECHO_T}no" >&6
4033 fi
4034
4035
4036 enablestring=
4037 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4038echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
4039 no_cache=0
4040 # Check whether --enable-debug_info or --disable-debug_info was given.
4041if test "${enable_debug_info+set}" = set; then
4042 enableval="$enable_debug_info"
4043
4044 if test "$enableval" = yes; then
4045 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4046 else
4047 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4048 fi
4049
4050else
4051
4052 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4053 if test "x$LINE" != x ; then
4054 eval "DEFAULT_$LINE"
4055 else
4056 no_cache=1
4057 fi
4058
4059 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4060
4061fi;
4062
4063 eval "$ac_cv_use_debug_info"
4064 if test "$no_cache" != 1; then
4065 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4066 fi
4067
4068 if test "$wxUSE_DEBUG_INFO" = yes; then
4069 echo "$as_me:$LINENO: result: yes" >&5
4070echo "${ECHO_T}yes" >&6
4071 else
4072 echo "$as_me:$LINENO: result: no" >&5
4073echo "${ECHO_T}no" >&6
4074 fi
4075
4076
4077 enablestring=
4078 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4079echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4080 no_cache=0
4081 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4082if test "${enable_debug_gdb+set}" = set; then
4083 enableval="$enable_debug_gdb"
4084
4085 if test "$enableval" = yes; then
4086 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4087 else
4088 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4089 fi
4090
4091else
4092
4093 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4094 if test "x$LINE" != x ; then
4095 eval "DEFAULT_$LINE"
4096 else
4097 no_cache=1
4098 fi
4099
4100 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4101
4102fi;
4103
4104 eval "$ac_cv_use_debug_gdb"
4105 if test "$no_cache" != 1; then
4106 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4107 fi
4108
4109 if test "$wxUSE_DEBUG_GDB" = yes; then
4110 echo "$as_me:$LINENO: result: yes" >&5
4111echo "${ECHO_T}yes" >&6
4112 else
4113 echo "$as_me:$LINENO: result: no" >&5
4114echo "${ECHO_T}no" >&6
4115 fi
4116
4117
4118 enablestring=
4119 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4120echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4121 no_cache=0
4122 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4123if test "${enable_debug_cntxt+set}" = set; then
4124 enableval="$enable_debug_cntxt"
4125
4126 if test "$enableval" = yes; then
4127 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4128 else
4129 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4130 fi
4131
4132else
4133
4134 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4135 if test "x$LINE" != x ; then
4136 eval "DEFAULT_$LINE"
4137 else
4138 no_cache=1
4139 fi
4140
4141 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4142
4143fi;
4144
4145 eval "$ac_cv_use_debug_cntxt"
4146 if test "$no_cache" != 1; then
4147 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4148 fi
4149
4150 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4151 echo "$as_me:$LINENO: result: yes" >&5
4152echo "${ECHO_T}yes" >&6
4153 else
4154 echo "$as_me:$LINENO: result: no" >&5
4155echo "${ECHO_T}no" >&6
4156 fi
4157
4158
4159 enablestring=
4160 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4161echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4162 no_cache=0
4163 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4164if test "${enable_mem_tracing+set}" = set; then
4165 enableval="$enable_mem_tracing"
4166
4167 if test "$enableval" = yes; then
4168 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4169 else
4170 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4171 fi
4172
4173else
4174
4175 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4176 if test "x$LINE" != x ; then
4177 eval "DEFAULT_$LINE"
4178 else
4179 no_cache=1
4180 fi
4181
4182 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4183
4184fi;
4185
4186 eval "$ac_cv_use_mem_tracing"
4187 if test "$no_cache" != 1; then
4188 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4189 fi
4190
4191 if test "$wxUSE_MEM_TRACING" = yes; then
4192 echo "$as_me:$LINENO: result: yes" >&5
4193echo "${ECHO_T}yes" >&6
4194 else
4195 echo "$as_me:$LINENO: result: no" >&5
4196echo "${ECHO_T}no" >&6
4197 fi
4198
4199
4200 enablestring=
4201 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4202echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4203 no_cache=0
4204 # Check whether --enable-profile or --disable-profile was given.
4205if test "${enable_profile+set}" = set; then
4206 enableval="$enable_profile"
4207
4208 if test "$enableval" = yes; then
4209 ac_cv_use_profile='wxUSE_PROFILE=yes'
4210 else
4211 ac_cv_use_profile='wxUSE_PROFILE=no'
4212 fi
4213
4214else
4215
4216 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4217 if test "x$LINE" != x ; then
4218 eval "DEFAULT_$LINE"
4219 else
4220 no_cache=1
4221 fi
4222
4223 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4224
4225fi;
4226
4227 eval "$ac_cv_use_profile"
4228 if test "$no_cache" != 1; then
4229 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4230 fi
4231
4232 if test "$wxUSE_PROFILE" = yes; then
4233 echo "$as_me:$LINENO: result: yes" >&5
4234echo "${ECHO_T}yes" >&6
4235 else
4236 echo "$as_me:$LINENO: result: no" >&5
4237echo "${ECHO_T}no" >&6
4238 fi
4239
4240
4241 enablestring=
4242 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4243echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4244 no_cache=0
4245 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4246if test "${enable_no_rtti+set}" = set; then
4247 enableval="$enable_no_rtti"
4248
4249 if test "$enableval" = yes; then
4250 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4251 else
4252 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4253 fi
4254
4255else
4256
4257 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4258 if test "x$LINE" != x ; then
4259 eval "DEFAULT_$LINE"
4260 else
4261 no_cache=1
4262 fi
4263
4264 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4265
4266fi;
4267
4268 eval "$ac_cv_use_no_rtti"
4269 if test "$no_cache" != 1; then
4270 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4271 fi
4272
4273 if test "$wxUSE_NO_RTTI" = yes; then
4274 echo "$as_me:$LINENO: result: yes" >&5
4275echo "${ECHO_T}yes" >&6
4276 else
4277 echo "$as_me:$LINENO: result: no" >&5
4278echo "${ECHO_T}no" >&6
4279 fi
4280
4281
4282 enablestring=
4283 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4284echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4285 no_cache=0
4286 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4287if test "${enable_no_exceptions+set}" = set; then
4288 enableval="$enable_no_exceptions"
4289
4290 if test "$enableval" = yes; then
4291 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4292 else
4293 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4294 fi
4295
4296else
4297
4298 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4299 if test "x$LINE" != x ; then
4300 eval "DEFAULT_$LINE"
4301 else
4302 no_cache=1
4303 fi
4304
4305 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4306
4307fi;
4308
4309 eval "$ac_cv_use_no_exceptions"
4310 if test "$no_cache" != 1; then
4311 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4312 fi
4313
4314 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4315 echo "$as_me:$LINENO: result: yes" >&5
4316echo "${ECHO_T}yes" >&6
4317 else
4318 echo "$as_me:$LINENO: result: no" >&5
4319echo "${ECHO_T}no" >&6
4320 fi
4321
4322
4323 enablestring=
4324 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4325echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4326 no_cache=0
4327 # Check whether --enable-permissive or --disable-permissive was given.
4328if test "${enable_permissive+set}" = set; then
4329 enableval="$enable_permissive"
4330
4331 if test "$enableval" = yes; then
4332 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4333 else
4334 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4335 fi
4336
4337else
4338
4339 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4340 if test "x$LINE" != x ; then
4341 eval "DEFAULT_$LINE"
4342 else
4343 no_cache=1
4344 fi
4345
4346 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4347
4348fi;
4349
4350 eval "$ac_cv_use_permissive"
4351 if test "$no_cache" != 1; then
4352 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4353 fi
4354
4355 if test "$wxUSE_PERMISSIVE" = yes; then
4356 echo "$as_me:$LINENO: result: yes" >&5
4357echo "${ECHO_T}yes" >&6
4358 else
4359 echo "$as_me:$LINENO: result: no" >&5
4360echo "${ECHO_T}no" >&6
4361 fi
4362
4363
4364 enablestring=
4365 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4366echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4367 no_cache=0
4368 # Check whether --enable-no_deps or --disable-no_deps was given.
4369if test "${enable_no_deps+set}" = set; then
4370 enableval="$enable_no_deps"
4371
4372 if test "$enableval" = yes; then
4373 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4374 else
4375 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4376 fi
4377
4378else
4379
4380 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4381 if test "x$LINE" != x ; then
4382 eval "DEFAULT_$LINE"
4383 else
4384 no_cache=1
4385 fi
4386
4387 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4388
4389fi;
4390
4391 eval "$ac_cv_use_no_deps"
4392 if test "$no_cache" != 1; then
4393 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4394 fi
4395
4396 if test "$wxUSE_NO_DEPS" = yes; then
4397 echo "$as_me:$LINENO: result: yes" >&5
4398echo "${ECHO_T}yes" >&6
4399 else
4400 echo "$as_me:$LINENO: result: no" >&5
4401echo "${ECHO_T}no" >&6
4402 fi
4403
4404
95768535 4405 enablestring=
7afc46ab
KO
4406 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4407echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4408 no_cache=0
4409 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4410if test "${enable_universal_binary+set}" = set; then
4411 enableval="$enable_universal_binary"
4412
95768535 4413 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
7afc46ab
KO
4414
4415else
4416
4417 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4418 if test "x$LINE" != x ; then
4419 eval "DEFAULT_$LINE"
95768535 4420 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
7afc46ab
KO
4421 else
4422 no_cache=1
95768535 4423 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
7afc46ab
KO
4424 fi
4425
7afc46ab
KO
4426fi;
4427
95768535 4428 eval "$wx_cv_use_universal_binary"
7afc46ab 4429 if test "$no_cache" != 1; then
95768535 4430 echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
7afc46ab
KO
4431 fi
4432
95768535
MW
4433 echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4434echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
7afc46ab
KO
4435
4436
a848cd7e 4437
dee1a63f
MB
4438 enablestring=enable
4439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4440echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4441 no_cache=0
dee1a63f
MB
4442 # Check whether --enable-compat24 or --disable-compat24 was given.
4443if test "${enable_compat24+set}" = set; then
4444 enableval="$enable_compat24"
a848cd7e
SC
4445
4446 if test "$enableval" = yes; then
dee1a63f 4447 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4448 else
dee1a63f 4449 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4450 fi
4451
4452else
4453
dee1a63f 4454 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4455 if test "x$LINE" != x ; then
4456 eval "DEFAULT_$LINE"
4457 else
4458 no_cache=1
4459 fi
4460
dee1a63f 4461 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4462
4463fi;
4464
dee1a63f 4465 eval "$ac_cv_use_compat24"
a848cd7e 4466 if test "$no_cache" != 1; then
dee1a63f 4467 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4468 fi
4469
dee1a63f 4470 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4471 echo "$as_me:$LINENO: result: yes" >&5
4472echo "${ECHO_T}yes" >&6
4473 else
4474 echo "$as_me:$LINENO: result: no" >&5
4475echo "${ECHO_T}no" >&6
4476 fi
4477
4478
4479 enablestring=disable
dee1a63f
MB
4480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4481echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4482 no_cache=0
dee1a63f
MB
4483 # Check whether --enable-compat26 or --disable-compat26 was given.
4484if test "${enable_compat26+set}" = set; then
4485 enableval="$enable_compat26"
a848cd7e
SC
4486
4487 if test "$enableval" = yes; then
dee1a63f 4488 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4489 else
dee1a63f 4490 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4491 fi
4492
4493else
4494
dee1a63f 4495 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4496 if test "x$LINE" != x ; then
4497 eval "DEFAULT_$LINE"
4498 else
4499 no_cache=1
4500 fi
4501
dee1a63f 4502 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4503
4504fi;
4505
dee1a63f 4506 eval "$ac_cv_use_compat26"
a848cd7e 4507 if test "$no_cache" != 1; then
dee1a63f 4508 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4509 fi
4510
dee1a63f 4511 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4512 echo "$as_me:$LINENO: result: yes" >&5
4513echo "${ECHO_T}yes" >&6
4514 else
4515 echo "$as_me:$LINENO: result: no" >&5
4516echo "${ECHO_T}no" >&6
4517 fi
4518
4519
ffa0583f
RL
4520
4521 enablestring=
4522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4523echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4524 no_cache=0
4525 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4526if test "${enable_rpath+set}" = set; then
4527 enableval="$enable_rpath"
ffa0583f
RL
4528
4529 if test "$enableval" = yes; then
4530 ac_cv_use_rpath='wxUSE_RPATH=yes'
4531 else
4532 ac_cv_use_rpath='wxUSE_RPATH=no'
4533 fi
4534
4535else
4536
4537 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4538 if test "x$LINE" != x ; then
4539 eval "DEFAULT_$LINE"
4540 else
4541 no_cache=1
4542 fi
4543
4544 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4545
a848cd7e
SC
4546fi;
4547
ffa0583f
RL
4548 eval "$ac_cv_use_rpath"
4549 if test "$no_cache" != 1; then
4550 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4551 fi
4552
4553 if test "$wxUSE_RPATH" = yes; then
4554 echo "$as_me:$LINENO: result: yes" >&5
4555echo "${ECHO_T}yes" >&6
4556 else
4557 echo "$as_me:$LINENO: result: no" >&5
4558echo "${ECHO_T}no" >&6
4559 fi
4560
a848cd7e
SC
4561
4562
4563
4564
4565 enablestring=
4566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4567echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4568 no_cache=0
4569 # Check whether --enable-intl or --disable-intl was given.
4570if test "${enable_intl+set}" = set; then
4571 enableval="$enable_intl"
4572
4573 if test "$enableval" = yes; then
4574 ac_cv_use_intl='wxUSE_INTL=yes'
4575 else
4576 ac_cv_use_intl='wxUSE_INTL=no'
4577 fi
4578
4579else
4580
4581 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4582 if test "x$LINE" != x ; then
4583 eval "DEFAULT_$LINE"
4584 else
4585 no_cache=1
4586 fi
4587
4588 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4589
4590fi;
4591
4592 eval "$ac_cv_use_intl"
4593 if test "$no_cache" != 1; then
4594 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4595 fi
4596
4597 if test "$wxUSE_INTL" = yes; then
4598 echo "$as_me:$LINENO: result: yes" >&5
4599echo "${ECHO_T}yes" >&6
4600 else
4601 echo "$as_me:$LINENO: result: no" >&5
4602echo "${ECHO_T}no" >&6
4603 fi
4604
4605
4606 enablestring=
4607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4608echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4609 no_cache=0
4610 # Check whether --enable-config or --disable-config was given.
4611if test "${enable_config+set}" = set; then
4612 enableval="$enable_config"
4613
4614 if test "$enableval" = yes; then
4615 ac_cv_use_config='wxUSE_CONFIG=yes'
4616 else
4617 ac_cv_use_config='wxUSE_CONFIG=no'
4618 fi
4619
4620else
4621
4622 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4623 if test "x$LINE" != x ; then
4624 eval "DEFAULT_$LINE"
4625 else
4626 no_cache=1
4627 fi
4628
4629 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4630
4631fi;
4632
4633 eval "$ac_cv_use_config"
4634 if test "$no_cache" != 1; then
4635 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4636 fi
4637
4638 if test "$wxUSE_CONFIG" = yes; then
4639 echo "$as_me:$LINENO: result: yes" >&5
4640echo "${ECHO_T}yes" >&6
4641 else
4642 echo "$as_me:$LINENO: result: no" >&5
4643echo "${ECHO_T}no" >&6
4644 fi
4645
4646
4647
4648 enablestring=
4649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4650echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4651 no_cache=0
4652 # Check whether --enable-protocols or --disable-protocols was given.
4653if test "${enable_protocols+set}" = set; then
4654 enableval="$enable_protocols"
4655
4656 if test "$enableval" = yes; then
4657 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4658 else
4659 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4660 fi
4661
4662else
4663
4664 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4665 if test "x$LINE" != x ; then
4666 eval "DEFAULT_$LINE"
4667 else
4668 no_cache=1
4669 fi
4670
4671 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4672
4673fi;
4674
4675 eval "$ac_cv_use_protocols"
4676 if test "$no_cache" != 1; then
4677 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4678 fi
4679
4680 if test "$wxUSE_PROTOCOL" = yes; then
4681 echo "$as_me:$LINENO: result: yes" >&5
4682echo "${ECHO_T}yes" >&6
4683 else
4684 echo "$as_me:$LINENO: result: no" >&5
4685echo "${ECHO_T}no" >&6
4686 fi
4687
4688
4689 enablestring=
4690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4691echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4692 no_cache=0
4693 # Check whether --enable-ftp or --disable-ftp was given.
4694if test "${enable_ftp+set}" = set; then
4695 enableval="$enable_ftp"
4696
4697 if test "$enableval" = yes; then
4698 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4699 else
4700 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4701 fi
4702
4703else
4704
4705 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4706 if test "x$LINE" != x ; then
4707 eval "DEFAULT_$LINE"
4708 else
4709 no_cache=1
4710 fi
4711
4712 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4713
4714fi;
4715
4716 eval "$ac_cv_use_ftp"
4717 if test "$no_cache" != 1; then
4718 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4719 fi
4720
4721 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4722 echo "$as_me:$LINENO: result: yes" >&5
4723echo "${ECHO_T}yes" >&6
4724 else
4725 echo "$as_me:$LINENO: result: no" >&5
4726echo "${ECHO_T}no" >&6
4727 fi
4728
4729
4730 enablestring=
4731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4732echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4733 no_cache=0
4734 # Check whether --enable-http or --disable-http was given.
4735if test "${enable_http+set}" = set; then
4736 enableval="$enable_http"
4737
4738 if test "$enableval" = yes; then
4739 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4740 else
4741 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4742 fi
4743
4744else
4745
4746 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4747 if test "x$LINE" != x ; then
4748 eval "DEFAULT_$LINE"
4749 else
4750 no_cache=1
4751 fi
4752
4753 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4754
4755fi;
4756
4757 eval "$ac_cv_use_http"
4758 if test "$no_cache" != 1; then
4759 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4760 fi
4761
4762 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4763 echo "$as_me:$LINENO: result: yes" >&5
4764echo "${ECHO_T}yes" >&6
4765 else
4766 echo "$as_me:$LINENO: result: no" >&5
4767echo "${ECHO_T}no" >&6
4768 fi
4769
4770
4771 enablestring=
4772 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4773echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4774 no_cache=0
4775 # Check whether --enable-fileproto or --disable-fileproto was given.
4776if test "${enable_fileproto+set}" = set; then
4777 enableval="$enable_fileproto"
4778
4779 if test "$enableval" = yes; then
4780 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4781 else
4782 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4783 fi
4784
4785else
4786
4787 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4788 if test "x$LINE" != x ; then
4789 eval "DEFAULT_$LINE"
4790 else
4791 no_cache=1
4792 fi
4793
4794 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4795
4796fi;
4797
4798 eval "$ac_cv_use_fileproto"
4799 if test "$no_cache" != 1; then
4800 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4801 fi
4802
4803 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4804 echo "$as_me:$LINENO: result: yes" >&5
4805echo "${ECHO_T}yes" >&6
4806 else
4807 echo "$as_me:$LINENO: result: no" >&5
4808echo "${ECHO_T}no" >&6
4809 fi
4810
4811
4812 enablestring=
4813 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4814echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4815 no_cache=0
4816 # Check whether --enable-sockets or --disable-sockets was given.
4817if test "${enable_sockets+set}" = set; then
4818 enableval="$enable_sockets"
4819
4820 if test "$enableval" = yes; then
4821 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4822 else
4823 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4824 fi
4825
4826else
4827
4828 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4829 if test "x$LINE" != x ; then
4830 eval "DEFAULT_$LINE"
4831 else
4832 no_cache=1
4833 fi
4834
4835 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4836
4837fi;
4838
4839 eval "$ac_cv_use_sockets"
4840 if test "$no_cache" != 1; then
4841 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4842 fi
4843
4844 if test "$wxUSE_SOCKETS" = yes; then
4845 echo "$as_me:$LINENO: result: yes" >&5
4846echo "${ECHO_T}yes" >&6
4847 else
4848 echo "$as_me:$LINENO: result: no" >&5
4849echo "${ECHO_T}no" >&6
4850 fi
4851
4852
4853 enablestring=
4854 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4855echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4856 no_cache=0
4857 # Check whether --enable-ole or --disable-ole was given.
4858if test "${enable_ole+set}" = set; then
4859 enableval="$enable_ole"
4860
4861 if test "$enableval" = yes; then
4862 ac_cv_use_ole='wxUSE_OLE=yes'
4863 else
4864 ac_cv_use_ole='wxUSE_OLE=no'
4865 fi
4866
4867else
4868
4869 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4870 if test "x$LINE" != x ; then
4871 eval "DEFAULT_$LINE"
4872 else
4873 no_cache=1
4874 fi
4875
4876 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4877
4878fi;
4879
4880 eval "$ac_cv_use_ole"
4881 if test "$no_cache" != 1; then
4882 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4883 fi
4884
4885 if test "$wxUSE_OLE" = yes; then
4886 echo "$as_me:$LINENO: result: yes" >&5
4887echo "${ECHO_T}yes" >&6
4888 else
4889 echo "$as_me:$LINENO: result: no" >&5
4890echo "${ECHO_T}no" >&6
4891 fi
4892
4893
4894 enablestring=
4895 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4896echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4897 no_cache=0
4898 # Check whether --enable-dataobj or --disable-dataobj was given.
4899if test "${enable_dataobj+set}" = set; then
4900 enableval="$enable_dataobj"
4901
4902 if test "$enableval" = yes; then
4903 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4904 else
4905 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4906 fi
4907
4908else
4909
4910 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4911 if test "x$LINE" != x ; then
4912 eval "DEFAULT_$LINE"
4913 else
4914 no_cache=1
4915 fi
4916
4917 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4918
4919fi;
4920
4921 eval "$ac_cv_use_dataobj"
4922 if test "$no_cache" != 1; then
4923 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4924 fi
4925
4926 if test "$wxUSE_DATAOBJ" = yes; then
4927 echo "$as_me:$LINENO: result: yes" >&5
4928echo "${ECHO_T}yes" >&6
4929 else
4930 echo "$as_me:$LINENO: result: no" >&5
4931echo "${ECHO_T}no" >&6
4932 fi
4933
4934
4935
4936 enablestring=
4937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4938echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4939 no_cache=0
4940 # Check whether --enable-ipc or --disable-ipc was given.
4941if test "${enable_ipc+set}" = set; then
4942 enableval="$enable_ipc"
4943
4944 if test "$enableval" = yes; then
4945 ac_cv_use_ipc='wxUSE_IPC=yes'
4946 else
4947 ac_cv_use_ipc='wxUSE_IPC=no'
4948 fi
4949
4950else
4951
4952 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4953 if test "x$LINE" != x ; then
4954 eval "DEFAULT_$LINE"
4955 else
4956 no_cache=1
4957 fi
4958
4959 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4960
4961fi;
4962
4963 eval "$ac_cv_use_ipc"
4964 if test "$no_cache" != 1; then
4965 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4966 fi
4967
4968 if test "$wxUSE_IPC" = yes; then
4969 echo "$as_me:$LINENO: result: yes" >&5
4970echo "${ECHO_T}yes" >&6
4971 else
4972 echo "$as_me:$LINENO: result: no" >&5
4973echo "${ECHO_T}no" >&6
4974 fi
4975
4976
4977
4978 enablestring=
4979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4980echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4981 no_cache=0
4982 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4983if test "${enable_apple_ieee+set}" = set; then
4984 enableval="$enable_apple_ieee"
4985
4986 if test "$enableval" = yes; then
4987 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4988 else
4989 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4990 fi
4991
4992else
4993
4994 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4995 if test "x$LINE" != x ; then
4996 eval "DEFAULT_$LINE"
4997 else
4998 no_cache=1
4999 fi
5000
5001 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5002
5003fi;
5004
5005 eval "$ac_cv_use_apple_ieee"
5006 if test "$no_cache" != 1; then
5007 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
5008 fi
5009
5010 if test "$wxUSE_APPLE_IEEE" = yes; then
5011 echo "$as_me:$LINENO: result: yes" >&5
5012echo "${ECHO_T}yes" >&6
5013 else
5014 echo "$as_me:$LINENO: result: no" >&5
5015echo "${ECHO_T}no" >&6
5016 fi
5017
5018
81f90336
MW
5019 enablestring=
5020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
5021echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
5022 no_cache=0
5023 # Check whether --enable-arcstream or --disable-arcstream was given.
5024if test "${enable_arcstream+set}" = set; then
5025 enableval="$enable_arcstream"
5026
5027 if test "$enableval" = yes; then
9e8e867f 5028 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 5029 else
9e8e867f 5030 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
5031 fi
5032
5033else
5034
9e8e867f 5035 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
5036 if test "x$LINE" != x ; then
5037 eval "DEFAULT_$LINE"
5038 else
5039 no_cache=1
5040 fi
5041
9e8e867f 5042 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
5043
5044fi;
5045
5046 eval "$ac_cv_use_arcstream"
5047 if test "$no_cache" != 1; then
5048 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5049 fi
5050
9e8e867f 5051 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
5052 echo "$as_me:$LINENO: result: yes" >&5
5053echo "${ECHO_T}yes" >&6
5054 else
5055 echo "$as_me:$LINENO: result: no" >&5
5056echo "${ECHO_T}no" >&6
5057 fi
5058
5059
a848cd7e 5060 enablestring=
36b6448c
VZ
5061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5062echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 5063 no_cache=0
36b6448c
VZ
5064 # Check whether --enable-backtrace or --disable-backtrace was given.
5065if test "${enable_backtrace+set}" = set; then
5066 enableval="$enable_backtrace"
a848cd7e
SC
5067
5068 if test "$enableval" = yes; then
36b6448c 5069 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 5070 else
36b6448c 5071 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
5072 fi
5073
5074else
5075
36b6448c 5076 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
5077 if test "x$LINE" != x ; then
5078 eval "DEFAULT_$LINE"
5079 else
5080 no_cache=1
5081 fi
5082
36b6448c 5083 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
5084
5085fi;
5086
36b6448c 5087 eval "$ac_cv_use_backtrace"
a848cd7e 5088 if test "$no_cache" != 1; then
36b6448c 5089 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5090 fi
5091
36b6448c 5092 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
5093 echo "$as_me:$LINENO: result: yes" >&5
5094echo "${ECHO_T}yes" >&6
5095 else
5096 echo "$as_me:$LINENO: result: no" >&5
5097echo "${ECHO_T}no" >&6
5098 fi
5099
5100
eaff0f0d 5101 enablestring=
36b6448c
VZ
5102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5103echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 5104 no_cache=0
36b6448c
VZ
5105 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5106if test "${enable_catch_segvs+set}" = set; then
5107 enableval="$enable_catch_segvs"
eaff0f0d
VZ
5108
5109 if test "$enableval" = yes; then
36b6448c 5110 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 5111 else
36b6448c 5112 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
5113 fi
5114
5115else
5116
36b6448c 5117 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
5118 if test "x$LINE" != x ; then
5119 eval "DEFAULT_$LINE"
5120 else
5121 no_cache=1
5122 fi
5123
36b6448c 5124 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
5125
5126fi;
5127
36b6448c 5128 eval "$ac_cv_use_catch_segvs"
eaff0f0d 5129 if test "$no_cache" != 1; then
36b6448c 5130 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
5131 fi
5132
36b6448c 5133 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
5134 echo "$as_me:$LINENO: result: yes" >&5
5135echo "${ECHO_T}yes" >&6
5136 else
5137 echo "$as_me:$LINENO: result: no" >&5
5138echo "${ECHO_T}no" >&6
5139 fi
5140
5141
a848cd7e
SC
5142 enablestring=
5143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5144echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5145 no_cache=0
5146 # Check whether --enable-cmdline or --disable-cmdline was given.
5147if test "${enable_cmdline+set}" = set; then
5148 enableval="$enable_cmdline"
5149
5150 if test "$enableval" = yes; then
5151 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5152 else
5153 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5154 fi
5155
5156else
5157
5158 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5159 if test "x$LINE" != x ; then
5160 eval "DEFAULT_$LINE"
5161 else
5162 no_cache=1
5163 fi
5164
5165 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5166
5167fi;
5168
5169 eval "$ac_cv_use_cmdline"
5170 if test "$no_cache" != 1; then
5171 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5172 fi
5173
5174 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5175 echo "$as_me:$LINENO: result: yes" >&5
5176echo "${ECHO_T}yes" >&6
5177 else
5178 echo "$as_me:$LINENO: result: no" >&5
5179echo "${ECHO_T}no" >&6
5180 fi
5181
5182
5183 enablestring=
5184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5185echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5186 no_cache=0
5187 # Check whether --enable-datetime or --disable-datetime was given.
5188if test "${enable_datetime+set}" = set; then
5189 enableval="$enable_datetime"
5190
5191 if test "$enableval" = yes; then
5192 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5193 else
5194 ac_cv_use_datetime='wxUSE_DATETIME=no'
5195 fi
5196
5197else
5198
5199 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5200 if test "x$LINE" != x ; then
5201 eval "DEFAULT_$LINE"
5202 else
5203 no_cache=1
5204 fi
5205
5206 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5207
5208fi;
5209
5210 eval "$ac_cv_use_datetime"
5211 if test "$no_cache" != 1; then
5212 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5213 fi
5214
5215 if test "$wxUSE_DATETIME" = yes; then
5216 echo "$as_me:$LINENO: result: yes" >&5
5217echo "${ECHO_T}yes" >&6
5218 else
5219 echo "$as_me:$LINENO: result: no" >&5
5220echo "${ECHO_T}no" >&6
5221 fi
5222
5223
36b6448c
VZ
5224 enablestring=
5225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5226echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5227 no_cache=0
5228 # Check whether --enable-debugreport or --disable-debugreport was given.
5229if test "${enable_debugreport+set}" = set; then
5230 enableval="$enable_debugreport"
5231
5232 if test "$enableval" = yes; then
5233 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5234 else
5235 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5236 fi
5237
5238else
5239
5240 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5241 if test "x$LINE" != x ; then
5242 eval "DEFAULT_$LINE"
5243 else
5244 no_cache=1
5245 fi
5246
5247 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5248
5249fi;
5250
5251 eval "$ac_cv_use_debugreport"
5252 if test "$no_cache" != 1; then
5253 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5254 fi
5255
5256 if test "$wxUSE_DEBUGREPORT" = yes; then
5257 echo "$as_me:$LINENO: result: yes" >&5
5258echo "${ECHO_T}yes" >&6
5259 else
5260 echo "$as_me:$LINENO: result: no" >&5
5261echo "${ECHO_T}no" >&6
5262 fi
5263
5264
a848cd7e
SC
5265 enablestring=
5266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5267echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5268 no_cache=0
5269 # Check whether --enable-dialupman or --disable-dialupman was given.
5270if test "${enable_dialupman+set}" = set; then
5271 enableval="$enable_dialupman"
5272
5273 if test "$enableval" = yes; then
5274 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5275 else
5276 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5277 fi
5278
5279else
5280
5281 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5282 if test "x$LINE" != x ; then
5283 eval "DEFAULT_$LINE"
5284 else
5285 no_cache=1
5286 fi
5287
5288 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5289
5290fi;
5291
5292 eval "$ac_cv_use_dialupman"
5293 if test "$no_cache" != 1; then
5294 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5295 fi
5296
5297 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5298 echo "$as_me:$LINENO: result: yes" >&5
5299echo "${ECHO_T}yes" >&6
5300 else
5301 echo "$as_me:$LINENO: result: no" >&5
5302echo "${ECHO_T}no" >&6
5303 fi
5304
5305
5306 enablestring=
5307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5308echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5309 no_cache=0
5310 # Check whether --enable-dynlib or --disable-dynlib was given.
5311if test "${enable_dynlib+set}" = set; then
5312 enableval="$enable_dynlib"
5313
5314 if test "$enableval" = yes; then
5315 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5316 else
5317 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5318 fi
5319
5320else
5321
5322 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5323 if test "x$LINE" != x ; then
5324 eval "DEFAULT_$LINE"
5325 else
5326 no_cache=1
5327 fi
5328
5329 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5330
5331fi;
5332
5333 eval "$ac_cv_use_dynlib"
5334 if test "$no_cache" != 1; then
5335 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5336 fi
5337
5338 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5339 echo "$as_me:$LINENO: result: yes" >&5
5340echo "${ECHO_T}yes" >&6
5341 else
5342 echo "$as_me:$LINENO: result: no" >&5
5343echo "${ECHO_T}no" >&6
5344 fi
5345
5346
5347 enablestring=
5348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5349echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5350 no_cache=0
5351 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5352if test "${enable_dynamicloader+set}" = set; then
5353 enableval="$enable_dynamicloader"
5354
5355 if test "$enableval" = yes; then
5356 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5357 else
5358 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5359 fi
5360
5361else
5362
5363 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5364 if test "x$LINE" != x ; then
5365 eval "DEFAULT_$LINE"
5366 else
5367 no_cache=1
5368 fi
5369
5370 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5371
5372fi;
5373
5374 eval "$ac_cv_use_dynamicloader"
5375 if test "$no_cache" != 1; then
5376 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5377 fi
5378
5379 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5380 echo "$as_me:$LINENO: result: yes" >&5
5381echo "${ECHO_T}yes" >&6
5382 else
5383 echo "$as_me:$LINENO: result: no" >&5
5384echo "${ECHO_T}no" >&6
5385 fi
5386
5387
5388 enablestring=
5389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5390echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5391 no_cache=0
5392 # Check whether --enable-exceptions or --disable-exceptions was given.
5393if test "${enable_exceptions+set}" = set; then
5394 enableval="$enable_exceptions"
5395
5396 if test "$enableval" = yes; then
5397 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5398 else
5399 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5400 fi
5401
5402else
5403
5404 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5405 if test "x$LINE" != x ; then
5406 eval "DEFAULT_$LINE"
5407 else
5408 no_cache=1
5409 fi
5410
5411 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5412
5413fi;
5414
5415 eval "$ac_cv_use_exceptions"
5416 if test "$no_cache" != 1; then
5417 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5418 fi
5419
5420 if test "$wxUSE_EXCEPTIONS" = yes; then
5421 echo "$as_me:$LINENO: result: yes" >&5
5422echo "${ECHO_T}yes" >&6
5423 else
5424 echo "$as_me:$LINENO: result: no" >&5
5425echo "${ECHO_T}no" >&6
5426 fi
5427
5428
5429 enablestring=
5430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5431echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5432 no_cache=0
5433 # Check whether --enable-ffile or --disable-ffile was given.
5434if test "${enable_ffile+set}" = set; then
5435 enableval="$enable_ffile"
5436
5437 if test "$enableval" = yes; then
5438 ac_cv_use_ffile='wxUSE_FFILE=yes'
5439 else
5440 ac_cv_use_ffile='wxUSE_FFILE=no'
5441 fi
5442
5443else
5444
5445 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5446 if test "x$LINE" != x ; then
5447 eval "DEFAULT_$LINE"
5448 else
5449 no_cache=1
5450 fi
5451
5452 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5453
5454fi;
5455
5456 eval "$ac_cv_use_ffile"
5457 if test "$no_cache" != 1; then
5458 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5459 fi
5460
5461 if test "$wxUSE_FFILE" = yes; then
5462 echo "$as_me:$LINENO: result: yes" >&5
5463echo "${ECHO_T}yes" >&6
5464 else
5465 echo "$as_me:$LINENO: result: no" >&5
5466echo "${ECHO_T}no" >&6
5467 fi
5468
5469
5470 enablestring=
5471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5472echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5473 no_cache=0
5474 # Check whether --enable-file or --disable-file was given.
5475if test "${enable_file+set}" = set; then
5476 enableval="$enable_file"
5477
5478 if test "$enableval" = yes; then
5479 ac_cv_use_file='wxUSE_FILE=yes'
5480 else
5481 ac_cv_use_file='wxUSE_FILE=no'
5482 fi
5483
5484else
5485
5486 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5487 if test "x$LINE" != x ; then
5488 eval "DEFAULT_$LINE"
5489 else
5490 no_cache=1
5491 fi
5492
5493 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5494
5495fi;
5496
5497 eval "$ac_cv_use_file"
5498 if test "$no_cache" != 1; then
5499 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5500 fi
5501
5502 if test "$wxUSE_FILE" = yes; then
5503 echo "$as_me:$LINENO: result: yes" >&5
5504echo "${ECHO_T}yes" >&6
5505 else
5506 echo "$as_me:$LINENO: result: no" >&5
5507echo "${ECHO_T}no" >&6
5508 fi
5509
5510
5511 enablestring=
5512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5513echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5514 no_cache=0
5515 # Check whether --enable-filesystem or --disable-filesystem was given.
5516if test "${enable_filesystem+set}" = set; then
5517 enableval="$enable_filesystem"
5518
5519 if test "$enableval" = yes; then
5520 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5521 else
5522 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5523 fi
5524
5525else
5526
5527 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5528 if test "x$LINE" != x ; then
5529 eval "DEFAULT_$LINE"
5530 else
5531 no_cache=1
5532 fi
5533
5534 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5535
5536fi;
5537
5538 eval "$ac_cv_use_filesystem"
5539 if test "$no_cache" != 1; then
5540 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5541 fi
5542
5543 if test "$wxUSE_FILESYSTEM" = yes; then
5544 echo "$as_me:$LINENO: result: yes" >&5
5545echo "${ECHO_T}yes" >&6
5546 else
5547 echo "$as_me:$LINENO: result: no" >&5
5548echo "${ECHO_T}no" >&6
5549 fi
5550
5551
5552 enablestring=
5553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5554echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5555 no_cache=0
5556 # Check whether --enable-fontmap or --disable-fontmap was given.
5557if test "${enable_fontmap+set}" = set; then
5558 enableval="$enable_fontmap"
5559
5560 if test "$enableval" = yes; then
5561 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5562 else
5563 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5564 fi
5565
5566else
5567
5568 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5569 if test "x$LINE" != x ; then
5570 eval "DEFAULT_$LINE"
5571 else
5572 no_cache=1
5573 fi
5574
5575 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5576
5577fi;
5578
5579 eval "$ac_cv_use_fontmap"
5580 if test "$no_cache" != 1; then
5581 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5582 fi
5583
5584 if test "$wxUSE_FONTMAP" = yes; then
5585 echo "$as_me:$LINENO: result: yes" >&5
5586echo "${ECHO_T}yes" >&6
5587 else
5588 echo "$as_me:$LINENO: result: no" >&5
5589echo "${ECHO_T}no" >&6
5590 fi
5591
5592
5593 enablestring=
5594 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5595echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5596 no_cache=0
5597 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5598if test "${enable_fs_inet+set}" = set; then
5599 enableval="$enable_fs_inet"
5600
5601 if test "$enableval" = yes; then
5602 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5603 else
5604 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5605 fi
5606
5607else
5608
5609 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5610 if test "x$LINE" != x ; then
5611 eval "DEFAULT_$LINE"
5612 else
5613 no_cache=1
5614 fi
5615
5616 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5617
5618fi;
5619
5620 eval "$ac_cv_use_fs_inet"
5621 if test "$no_cache" != 1; then
5622 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5623 fi
5624
5625 if test "$wxUSE_FS_INET" = yes; then
5626 echo "$as_me:$LINENO: result: yes" >&5
5627echo "${ECHO_T}yes" >&6
5628 else
5629 echo "$as_me:$LINENO: result: no" >&5
5630echo "${ECHO_T}no" >&6
5631 fi
5632
5633
5634 enablestring=
5635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5636echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5637 no_cache=0
5638 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5639if test "${enable_fs_zip+set}" = set; then
5640 enableval="$enable_fs_zip"
5641
5642 if test "$enableval" = yes; then
5643 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5644 else
5645 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5646 fi
5647
5648else
5649
5650 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5651 if test "x$LINE" != x ; then
5652 eval "DEFAULT_$LINE"
5653 else
5654 no_cache=1
5655 fi
5656
5657 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5658
5659fi;
5660
5661 eval "$ac_cv_use_fs_zip"
5662 if test "$no_cache" != 1; then
5663 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5664 fi
5665
5666 if test "$wxUSE_FS_ZIP" = yes; then
5667 echo "$as_me:$LINENO: result: yes" >&5
5668echo "${ECHO_T}yes" >&6
5669 else
5670 echo "$as_me:$LINENO: result: no" >&5
5671echo "${ECHO_T}no" >&6
5672 fi
5673
5674
5675 enablestring=
5676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5677echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5678 no_cache=0
5679 # Check whether --enable-geometry or --disable-geometry was given.
5680if test "${enable_geometry+set}" = set; then
5681 enableval="$enable_geometry"
5682
5683 if test "$enableval" = yes; then
5684 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5685 else
5686 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5687 fi
5688
5689else
5690
5691 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5692 if test "x$LINE" != x ; then
5693 eval "DEFAULT_$LINE"
5694 else
5695 no_cache=1
5696 fi
5697
5698 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5699
5700fi;
5701
5702 eval "$ac_cv_use_geometry"
5703 if test "$no_cache" != 1; then
5704 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5705 fi
5706
5707 if test "$wxUSE_GEOMETRY" = yes; then
5708 echo "$as_me:$LINENO: result: yes" >&5
5709echo "${ECHO_T}yes" >&6
5710 else
5711 echo "$as_me:$LINENO: result: no" >&5
5712echo "${ECHO_T}no" >&6
5713 fi
5714
5715
5716 enablestring=
5717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5718echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5719 no_cache=0
5720 # Check whether --enable-log or --disable-log was given.
5721if test "${enable_log+set}" = set; then
5722 enableval="$enable_log"
5723
5724 if test "$enableval" = yes; then
5725 ac_cv_use_log='wxUSE_LOG=yes'
5726 else
5727 ac_cv_use_log='wxUSE_LOG=no'
5728 fi
5729
5730else
5731
5732 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5733 if test "x$LINE" != x ; then
5734 eval "DEFAULT_$LINE"
5735 else
5736 no_cache=1
5737 fi
5738
5739 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5740
5741fi;
5742
5743 eval "$ac_cv_use_log"
5744 if test "$no_cache" != 1; then
5745 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5746 fi
5747
5748 if test "$wxUSE_LOG" = yes; then
5749 echo "$as_me:$LINENO: result: yes" >&5
5750echo "${ECHO_T}yes" >&6
5751 else
5752 echo "$as_me:$LINENO: result: no" >&5
5753echo "${ECHO_T}no" >&6
5754 fi
5755
5756
5757 enablestring=
5758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5759echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5760 no_cache=0
5761 # Check whether --enable-longlong or --disable-longlong was given.
5762if test "${enable_longlong+set}" = set; then
5763 enableval="$enable_longlong"
5764
5765 if test "$enableval" = yes; then
5766 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5767 else
5768 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5769 fi
5770
5771else
5772
5773 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5774 if test "x$LINE" != x ; then
5775 eval "DEFAULT_$LINE"
5776 else
5777 no_cache=1
5778 fi
5779
5780 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5781
5782fi;
5783
5784 eval "$ac_cv_use_longlong"
5785 if test "$no_cache" != 1; then
5786 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5787 fi
5788
5789 if test "$wxUSE_LONGLONG" = yes; then
5790 echo "$as_me:$LINENO: result: yes" >&5
5791echo "${ECHO_T}yes" >&6
5792 else
5793 echo "$as_me:$LINENO: result: no" >&5
5794echo "${ECHO_T}no" >&6
5795 fi
5796
5797
5798 enablestring=
5799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5800echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5801 no_cache=0
5802 # Check whether --enable-mimetype or --disable-mimetype was given.
5803if test "${enable_mimetype+set}" = set; then
5804 enableval="$enable_mimetype"
5805
5806 if test "$enableval" = yes; then
5807 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5808 else
5809 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5810 fi
5811
5812else
5813
5814 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5815 if test "x$LINE" != x ; then
5816 eval "DEFAULT_$LINE"
5817 else
5818 no_cache=1
5819 fi
5820
5821 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5822
5823fi;
5824
5825 eval "$ac_cv_use_mimetype"
5826 if test "$no_cache" != 1; then
5827 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5828 fi
5829
5830 if test "$wxUSE_MIMETYPE" = yes; then
5831 echo "$as_me:$LINENO: result: yes" >&5
5832echo "${ECHO_T}yes" >&6
5833 else
5834 echo "$as_me:$LINENO: result: no" >&5
5835echo "${ECHO_T}no" >&6
5836 fi
5837
5838
5839 enablestring=
5840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5841echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5842 no_cache=0
5843 # Check whether --enable-mslu or --disable-mslu was given.
5844if test "${enable_mslu+set}" = set; then
5845 enableval="$enable_mslu"
5846
5847 if test "$enableval" = yes; then
5848 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5849 else
5850 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5851 fi
5852
5853else
5854
5855 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5856 if test "x$LINE" != x ; then
5857 eval "DEFAULT_$LINE"
5858 else
5859 no_cache=1
5860 fi
5861
5862 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5863
5864fi;
5865
5866 eval "$ac_cv_use_mslu"
5867 if test "$no_cache" != 1; then
5868 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5869 fi
5870
5871 if test "$wxUSE_UNICODE_MSLU" = yes; then
5872 echo "$as_me:$LINENO: result: yes" >&5
5873echo "${ECHO_T}yes" >&6
5874 else
5875 echo "$as_me:$LINENO: result: no" >&5
5876echo "${ECHO_T}no" >&6
5877 fi
5878
5879
5880 enablestring=
5881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5882echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5883 no_cache=0
5884 # Check whether --enable-snglinst or --disable-snglinst was given.
5885if test "${enable_snglinst+set}" = set; then
5886 enableval="$enable_snglinst"
5887
5888 if test "$enableval" = yes; then
5889 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5890 else
5891 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5892 fi
5893
5894else
5895
5896 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5897 if test "x$LINE" != x ; then
5898 eval "DEFAULT_$LINE"
5899 else
5900 no_cache=1
5901 fi
5902
5903 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5904
5905fi;
5906
5907 eval "$ac_cv_use_snglinst"
5908 if test "$no_cache" != 1; then
5909 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5910 fi
5911
5912 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5913 echo "$as_me:$LINENO: result: yes" >&5
5914echo "${ECHO_T}yes" >&6
5915 else
5916 echo "$as_me:$LINENO: result: no" >&5
5917echo "${ECHO_T}no" >&6
5918 fi
5919
5920
5921 enablestring=
07158944
VZ
5922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5923echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5924 no_cache=0
07158944
VZ
5925 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5926if test "${enable_std_iostreams+set}" = set; then
5927 enableval="$enable_std_iostreams"
a848cd7e
SC
5928
5929 if test "$enableval" = yes; then
07158944 5930 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5931 else
07158944 5932 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5933 fi
5934
5935else
5936
07158944 5937 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5938 if test "x$LINE" != x ; then
5939 eval "DEFAULT_$LINE"
5940 else
5941 no_cache=1
5942 fi
5943
07158944 5944 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5945
5946fi;
5947
07158944 5948 eval "$ac_cv_use_std_iostreams"
a848cd7e 5949 if test "$no_cache" != 1; then
07158944 5950 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5951 fi
5952
07158944 5953 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5954 echo "$as_me:$LINENO: result: yes" >&5
5955echo "${ECHO_T}yes" >&6
5956 else
5957 echo "$as_me:$LINENO: result: no" >&5
5958echo "${ECHO_T}no" >&6
5959 fi
5960
5961
59746b65
MW
5962 enablestring=
5963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5964echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5965 no_cache=0
5966 # Check whether --enable-std_string or --disable-std_string was given.
5967if test "${enable_std_string+set}" = set; then
5968 enableval="$enable_std_string"
5969
5970 if test "$enableval" = yes; then
5971 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5972 else
5973 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5974 fi
5975
5976else
5977
5978 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5979 if test "x$LINE" != x ; then
5980 eval "DEFAULT_$LINE"
5981 else
5982 no_cache=1
5983 fi
5984
5985 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5986
5987fi;
5988
5989 eval "$ac_cv_use_std_string"
5990 if test "$no_cache" != 1; then
5991 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5992 fi
5993
5994 if test "$wxUSE_STD_STRING" = yes; then
5995 echo "$as_me:$LINENO: result: yes" >&5
5996echo "${ECHO_T}yes" >&6
5997 else
5998 echo "$as_me:$LINENO: result: no" >&5
5999echo "${ECHO_T}no" >&6
6000 fi
6001
6002
a848cd7e 6003 enablestring=
07158944
VZ
6004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
6005echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 6006 no_cache=0
07158944
VZ
6007 # Check whether --enable-stdpaths or --disable-stdpaths was given.
6008if test "${enable_stdpaths+set}" = set; then
6009 enableval="$enable_stdpaths"
a848cd7e
SC
6010
6011 if test "$enableval" = yes; then
07158944 6012 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 6013 else
07158944 6014 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
6015 fi
6016
6017else
6018
07158944 6019 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
6020 if test "x$LINE" != x ; then
6021 eval "DEFAULT_$LINE"
6022 else
6023 no_cache=1
6024 fi
6025
07158944 6026 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
6027
6028fi;
6029
07158944 6030 eval "$ac_cv_use_stdpaths"
a848cd7e 6031 if test "$no_cache" != 1; then
07158944 6032 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6033 fi
6034
07158944 6035 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
6036 echo "$as_me:$LINENO: result: yes" >&5
6037echo "${ECHO_T}yes" >&6
6038 else
6039 echo "$as_me:$LINENO: result: no" >&5
6040echo "${ECHO_T}no" >&6
6041 fi
6042
6043
6044 enablestring=
6045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6046echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
6047 no_cache=0
6048 # Check whether --enable-stopwatch or --disable-stopwatch was given.
6049if test "${enable_stopwatch+set}" = set; then
6050 enableval="$enable_stopwatch"
6051
6052 if test "$enableval" = yes; then
6053 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6054 else
6055 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6056 fi
6057
6058else
6059
6060 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6061 if test "x$LINE" != x ; then
6062 eval "DEFAULT_$LINE"
6063 else
6064 no_cache=1
6065 fi
6066
6067 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6068
6069fi;
6070
6071 eval "$ac_cv_use_stopwatch"
6072 if test "$no_cache" != 1; then
6073 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6074 fi
6075
6076 if test "$wxUSE_STOPWATCH" = yes; then
6077 echo "$as_me:$LINENO: result: yes" >&5
6078echo "${ECHO_T}yes" >&6
6079 else
6080 echo "$as_me:$LINENO: result: no" >&5
6081echo "${ECHO_T}no" >&6
6082 fi
6083
6084
07158944
VZ
6085 enablestring=
6086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6087echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6088 no_cache=0
6089 # Check whether --enable-streams or --disable-streams was given.
6090if test "${enable_streams+set}" = set; then
6091 enableval="$enable_streams"
6092
6093 if test "$enableval" = yes; then
6094 ac_cv_use_streams='wxUSE_STREAMS=yes'
6095 else
6096 ac_cv_use_streams='wxUSE_STREAMS=no'
6097 fi
6098
6099else
6100
6101 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6102 if test "x$LINE" != x ; then
6103 eval "DEFAULT_$LINE"
6104 else
6105 no_cache=1
6106 fi
6107
6108 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6109
6110fi;
6111
6112 eval "$ac_cv_use_streams"
6113 if test "$no_cache" != 1; then
6114 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6115 fi
6116
6117 if test "$wxUSE_STREAMS" = yes; then
6118 echo "$as_me:$LINENO: result: yes" >&5
6119echo "${ECHO_T}yes" >&6
6120 else
6121 echo "$as_me:$LINENO: result: no" >&5
6122echo "${ECHO_T}no" >&6
6123 fi
6124
6125
a848cd7e
SC
6126 enablestring=
6127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6128echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6129 no_cache=0
6130 # Check whether --enable-system_options or --disable-system_options was given.
6131if test "${enable_system_options+set}" = set; then
6132 enableval="$enable_system_options"
6133
6134 if test "$enableval" = yes; then
6135 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6136 else
6137 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6138 fi
6139
6140else
6141
6142 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6143 if test "x$LINE" != x ; then
6144 eval "DEFAULT_$LINE"
6145 else
6146 no_cache=1
6147 fi
6148
6149 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6150
6151fi;
6152
6153 eval "$ac_cv_use_system_options"
6154 if test "$no_cache" != 1; then
6155 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6156 fi
6157
6158 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6159 echo "$as_me:$LINENO: result: yes" >&5
6160echo "${ECHO_T}yes" >&6
6161 else
6162 echo "$as_me:$LINENO: result: no" >&5
6163echo "${ECHO_T}no" >&6
6164 fi
6165
6166
6167 enablestring=
6168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6169echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6170 no_cache=0
6171 # Check whether --enable-textbuf or --disable-textbuf was given.
6172if test "${enable_textbuf+set}" = set; then
6173 enableval="$enable_textbuf"
6174
6175 if test "$enableval" = yes; then
6176 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6177 else
6178 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6179 fi
6180
6181else
6182
6183 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6184 if test "x$LINE" != x ; then
6185 eval "DEFAULT_$LINE"
6186 else
6187 no_cache=1
6188 fi
6189
6190 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6191
6192fi;
6193
6194 eval "$ac_cv_use_textbuf"
6195 if test "$no_cache" != 1; then
6196 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6197 fi
6198
6199 if test "$wxUSE_TEXTBUFFER" = yes; then
6200 echo "$as_me:$LINENO: result: yes" >&5
6201echo "${ECHO_T}yes" >&6
6202 else
6203 echo "$as_me:$LINENO: result: no" >&5
6204echo "${ECHO_T}no" >&6
6205 fi
6206
6207
6208 enablestring=
6209 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6210echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6211 no_cache=0
6212 # Check whether --enable-textfile or --disable-textfile was given.
6213if test "${enable_textfile+set}" = set; then
6214 enableval="$enable_textfile"
6215
6216 if test "$enableval" = yes; then
6217 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6218 else
6219 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6220 fi
6221
6222else
6223
6224 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6225 if test "x$LINE" != x ; then
6226 eval "DEFAULT_$LINE"
6227 else
6228 no_cache=1
6229 fi
6230
6231 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6232
6233fi;
6234
6235 eval "$ac_cv_use_textfile"
6236 if test "$no_cache" != 1; then
6237 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6238 fi
6239
6240 if test "$wxUSE_TEXTFILE" = yes; then
6241 echo "$as_me:$LINENO: result: yes" >&5
6242echo "${ECHO_T}yes" >&6
6243 else
6244 echo "$as_me:$LINENO: result: no" >&5
6245echo "${ECHO_T}no" >&6
6246 fi
6247
6248
6249 enablestring=
6250 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6251echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6252 no_cache=0
6253 # Check whether --enable-timer or --disable-timer was given.
6254if test "${enable_timer+set}" = set; then
6255 enableval="$enable_timer"
6256
6257 if test "$enableval" = yes; then
6258 ac_cv_use_timer='wxUSE_TIMER=yes'
6259 else
6260 ac_cv_use_timer='wxUSE_TIMER=no'
6261 fi
6262
6263else
6264
6265 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6266 if test "x$LINE" != x ; then
6267 eval "DEFAULT_$LINE"
6268 else
6269 no_cache=1
6270 fi
6271
6272 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6273
6274fi;
6275
6276 eval "$ac_cv_use_timer"
6277 if test "$no_cache" != 1; then
6278 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6279 fi
6280
6281 if test "$wxUSE_TIMER" = yes; then
6282 echo "$as_me:$LINENO: result: yes" >&5
6283echo "${ECHO_T}yes" >&6
6284 else
6285 echo "$as_me:$LINENO: result: no" >&5
6286echo "${ECHO_T}no" >&6
6287 fi
6288
6289
6290 enablestring=
6291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6292echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6293 no_cache=0
6294 # Check whether --enable-unicode or --disable-unicode was given.
6295if test "${enable_unicode+set}" = set; then
6296 enableval="$enable_unicode"
6297
6298 if test "$enableval" = yes; then
6299 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6300 else
6301 ac_cv_use_unicode='wxUSE_UNICODE=no'
6302 fi
6303
6304else
6305
6306 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6307 if test "x$LINE" != x ; then
6308 eval "DEFAULT_$LINE"
6309 else
6310 no_cache=1
6311 fi
6312
6313 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6314
6315fi;
6316
6317 eval "$ac_cv_use_unicode"
6318 if test "$no_cache" != 1; then
6319 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6320 fi
6321
6322 if test "$wxUSE_UNICODE" = yes; then
6323 echo "$as_me:$LINENO: result: yes" >&5
6324echo "${ECHO_T}yes" >&6
6325 else
6326 echo "$as_me:$LINENO: result: no" >&5
6327echo "${ECHO_T}no" >&6
6328 fi
6329
6330
6331 enablestring=
6332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6333echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6334 no_cache=0
6335 # Check whether --enable-sound or --disable-sound was given.
6336if test "${enable_sound+set}" = set; then
6337 enableval="$enable_sound"
6338
6339 if test "$enableval" = yes; then
6340 ac_cv_use_sound='wxUSE_SOUND=yes'
6341 else
6342 ac_cv_use_sound='wxUSE_SOUND=no'
6343 fi
6344
6345else
6346
6347 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6348 if test "x$LINE" != x ; then
6349 eval "DEFAULT_$LINE"
6350 else
6351 no_cache=1
6352 fi
6353
6354 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6355
6356fi;
6357
6358 eval "$ac_cv_use_sound"
6359 if test "$no_cache" != 1; then
6360 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6361 fi
6362
6363 if test "$wxUSE_SOUND" = yes; then
6364 echo "$as_me:$LINENO: result: yes" >&5
6365echo "${ECHO_T}yes" >&6
6366 else
6367 echo "$as_me:$LINENO: result: no" >&5
6368echo "${ECHO_T}no" >&6
6369 fi
6370
6371
3b57de8b
RL
6372 enablestring=
6373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6374echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6375 no_cache=0
6376 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6377if test "${enable_mediactrl+set}" = set; then
6378 enableval="$enable_mediactrl"
6379
6380 if test "$enableval" = yes; then
6381 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6382 else
6383 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6384 fi
6385
6386else
6387
6388 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6389 if test "x$LINE" != x ; then
6390 eval "DEFAULT_$LINE"
6391 else
6392 no_cache=1
6393 fi
6394
6395 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6396
6397fi;
6398
6399 eval "$ac_cv_use_mediactrl"
6400 if test "$no_cache" != 1; then
6401 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6402 fi
6403
6404 if test "$wxUSE_MEDIACTRL" = yes; then
6405 echo "$as_me:$LINENO: result: yes" >&5
6406echo "${ECHO_T}yes" >&6
6407 else
6408 echo "$as_me:$LINENO: result: no" >&5
6409echo "${ECHO_T}no" >&6
6410 fi
6411
6412
f10e38c4
VZ
6413 enablestring=
6414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6415echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6416 no_cache=0
6417 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6418if test "${enable_gstreamer8+set}" = set; then
6419 enableval="$enable_gstreamer8"
6420
6421 if test "$enableval" = yes; then
6422 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6423 else
6424 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6425 fi
6426
6427else
6428
6429 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6430 if test "x$LINE" != x ; then
6431 eval "DEFAULT_$LINE"
6432 else
6433 no_cache=1
6434 fi
6435
6436 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6437
6438fi;
6439
6440 eval "$ac_cv_use_gstreamer8"
6441 if test "$no_cache" != 1; then
6442 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6443 fi
6444
6445 if test "$wxUSE_GSTREAMER8" = yes; then
6446 echo "$as_me:$LINENO: result: yes" >&5
6447echo "${ECHO_T}yes" >&6
6448 else
6449 echo "$as_me:$LINENO: result: no" >&5
6450echo "${ECHO_T}no" >&6
6451 fi
6452
6453
a848cd7e 6454 enablestring=
8b6682b9
JS
6455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6456echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
a848cd7e 6457 no_cache=0
8b6682b9
JS
6458 # Check whether --enable-printfposparam or --disable-printfposparam was given.
6459if test "${enable_printfposparam+set}" = set; then
6460 enableval="$enable_printfposparam"
a848cd7e
SC
6461
6462 if test "$enableval" = yes; then
8b6682b9 6463 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 6464 else
8b6682b9 6465 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e
SC
6466 fi
6467
6468else
6469
8b6682b9 6470 LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
a848cd7e
SC
6471 if test "x$LINE" != x ; then
6472 eval "DEFAULT_$LINE"
6473 else
6474 no_cache=1
6475 fi
6476
8b6682b9 6477 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
a848cd7e
SC
6478
6479fi;
6480
8b6682b9 6481 eval "$ac_cv_use_printfposparam"
a848cd7e 6482 if test "$no_cache" != 1; then
8b6682b9 6483 echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6484 fi
6485
8b6682b9 6486 if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
a848cd7e
SC
6487 echo "$as_me:$LINENO: result: yes" >&5
6488echo "${ECHO_T}yes" >&6
6489 else
6490 echo "$as_me:$LINENO: result: no" >&5
6491echo "${ECHO_T}no" >&6
6492 fi
6493
6494
6495 enablestring=
6496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6497echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6498 no_cache=0
6499 # Check whether --enable-zipstream or --disable-zipstream was given.
6500if test "${enable_zipstream+set}" = set; then
6501 enableval="$enable_zipstream"
6502
6503 if test "$enableval" = yes; then
6504 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6505 else
6506 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6507 fi
6508
6509else
6510
6511 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6512 if test "x$LINE" != x ; then
6513 eval "DEFAULT_$LINE"
6514 else
6515 no_cache=1
6516 fi
6517
6518 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6519
6520fi;
6521
6522 eval "$ac_cv_use_zipstream"
6523 if test "$no_cache" != 1; then
6524 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6525 fi
6526
6527 if test "$wxUSE_ZIPSTREAM" = yes; then
6528 echo "$as_me:$LINENO: result: yes" >&5
6529echo "${ECHO_T}yes" >&6
6530 else
6531 echo "$as_me:$LINENO: result: no" >&5
6532echo "${ECHO_T}no" >&6
6533 fi
6534
6535
a848cd7e
SC
6536
6537 enablestring=
6538 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6539echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6540 no_cache=0
6541 # Check whether --enable-url or --disable-url was given.
6542if test "${enable_url+set}" = set; then
6543 enableval="$enable_url"
6544
6545 if test "$enableval" = yes; then
6546 ac_cv_use_url='wxUSE_URL=yes'
6547 else
6548 ac_cv_use_url='wxUSE_URL=no'
6549 fi
6550
6551else
6552
6553 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6554 if test "x$LINE" != x ; then
6555 eval "DEFAULT_$LINE"
6556 else
6557 no_cache=1
6558 fi
6559
6560 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6561
6562fi;
6563
6564 eval "$ac_cv_use_url"
6565 if test "$no_cache" != 1; then
6566 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6567 fi
6568
6569 if test "$wxUSE_URL" = yes; then
6570 echo "$as_me:$LINENO: result: yes" >&5
6571echo "${ECHO_T}yes" >&6
6572 else
6573 echo "$as_me:$LINENO: result: no" >&5
6574echo "${ECHO_T}no" >&6
6575 fi
6576
6577
ca5c6ac3
VZ
6578 enablestring=
6579 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
6580echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6
6581 no_cache=0
6582 # Check whether --enable-variant or --disable-variant was given.
6583if test "${enable_variant+set}" = set; then
6584 enableval="$enable_variant"
6585
6586 if test "$enableval" = yes; then
6587 ac_cv_use_variant='wxUSE_VARIANT=yes'
6588 else
6589 ac_cv_use_variant='wxUSE_VARIANT=no'
6590 fi
6591
6592else
6593
6594 LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}`
6595 if test "x$LINE" != x ; then
6596 eval "DEFAULT_$LINE"
6597 else
6598 no_cache=1
6599 fi
6600
6601 ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT
6602
6603fi;
6604
6605 eval "$ac_cv_use_variant"
6606 if test "$no_cache" != 1; then
6607 echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp
6608 fi
6609
6610 if test "$wxUSE_VARIANT" = yes; then
6611 echo "$as_me:$LINENO: result: yes" >&5
6612echo "${ECHO_T}yes" >&6
6613 else
6614 echo "$as_me:$LINENO: result: no" >&5
6615echo "${ECHO_T}no" >&6
6616 fi
6617
6618
a848cd7e
SC
6619 enablestring=
6620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6621echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6622 no_cache=0
6623 # Check whether --enable-protocol or --disable-protocol was given.
6624if test "${enable_protocol+set}" = set; then
6625 enableval="$enable_protocol"
6626
6627 if test "$enableval" = yes; then
6628 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6629 else
6630 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6631 fi
6632
6633else
6634
6635 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6636 if test "x$LINE" != x ; then
6637 eval "DEFAULT_$LINE"
6638 else
6639 no_cache=1
6640 fi
6641
6642 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6643
6644fi;
6645
6646 eval "$ac_cv_use_protocol"
6647 if test "$no_cache" != 1; then
6648 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6649 fi
6650
6651 if test "$wxUSE_PROTOCOL" = yes; then
6652 echo "$as_me:$LINENO: result: yes" >&5
6653echo "${ECHO_T}yes" >&6
6654 else
6655 echo "$as_me:$LINENO: result: no" >&5
6656echo "${ECHO_T}no" >&6
6657 fi
6658
6659
6660 enablestring=
6661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6662echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6663 no_cache=0
6664 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6665if test "${enable_protocol_http+set}" = set; then
6666 enableval="$enable_protocol_http"
6667
6668 if test "$enableval" = yes; then
6669 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6670 else
6671 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6672 fi
6673
6674else
6675
6676 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6677 if test "x$LINE" != x ; then
6678 eval "DEFAULT_$LINE"
6679 else
6680 no_cache=1
6681 fi
6682
6683 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6684
6685fi;
6686
6687 eval "$ac_cv_use_protocol_http"
6688 if test "$no_cache" != 1; then
6689 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6690 fi
6691
6692 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6693 echo "$as_me:$LINENO: result: yes" >&5
6694echo "${ECHO_T}yes" >&6
6695 else
6696 echo "$as_me:$LINENO: result: no" >&5
6697echo "${ECHO_T}no" >&6
6698 fi
6699
6700
6701 enablestring=
6702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6703echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6704 no_cache=0
6705 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6706if test "${enable_protocol_ftp+set}" = set; then
6707 enableval="$enable_protocol_ftp"
6708
6709 if test "$enableval" = yes; then
6710 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6711 else
6712 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6713 fi
6714
6715else
6716
6717 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6718 if test "x$LINE" != x ; then
6719 eval "DEFAULT_$LINE"
6720 else
6721 no_cache=1
6722 fi
6723
6724 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6725
6726fi;
6727
6728 eval "$ac_cv_use_protocol_ftp"
6729 if test "$no_cache" != 1; then
6730 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6731 fi
6732
6733 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6734 echo "$as_me:$LINENO: result: yes" >&5
6735echo "${ECHO_T}yes" >&6
6736 else
6737 echo "$as_me:$LINENO: result: no" >&5
6738echo "${ECHO_T}no" >&6
6739 fi
6740
6741
6742 enablestring=
6743 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6744echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6745 no_cache=0
6746 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6747if test "${enable_protocol_file+set}" = set; then
6748 enableval="$enable_protocol_file"
6749
6750 if test "$enableval" = yes; then
6751 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6752 else
6753 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6754 fi
6755
6756else
6757
6758 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6759 if test "x$LINE" != x ; then
6760 eval "DEFAULT_$LINE"
6761 else
6762 no_cache=1
6763 fi
6764
6765 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6766
6767fi;
6768
6769 eval "$ac_cv_use_protocol_file"
6770 if test "$no_cache" != 1; then
6771 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6772 fi
6773
6774 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6775 echo "$as_me:$LINENO: result: yes" >&5
6776echo "${ECHO_T}yes" >&6
6777 else
6778 echo "$as_me:$LINENO: result: no" >&5
6779echo "${ECHO_T}no" >&6
6780 fi
6781
6782
6783
6784
6785
6786 enablestring=
6787 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6788echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6789 no_cache=0
6790 # Check whether --enable-threads or --disable-threads was given.
6791if test "${enable_threads+set}" = set; then
6792 enableval="$enable_threads"
6793
6794 if test "$enableval" = yes; then
6795 ac_cv_use_threads='wxUSE_THREADS=yes'
6796 else
6797 ac_cv_use_threads='wxUSE_THREADS=no'
6798 fi
6799
6800else
6801
6802 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6803 if test "x$LINE" != x ; then
6804 eval "DEFAULT_$LINE"
6805 else
6806 no_cache=1
6807 fi
6808
6809 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6810
6811fi;
6812
6813 eval "$ac_cv_use_threads"
6814 if test "$no_cache" != 1; then
6815 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6816 fi
6817
6818 if test "$wxUSE_THREADS" = yes; then
6819 echo "$as_me:$LINENO: result: yes" >&5
6820echo "${ECHO_T}yes" >&6
6821 else
6822 echo "$as_me:$LINENO: result: no" >&5
6823echo "${ECHO_T}no" >&6
6824 fi
6825
6826
6827if test "$wxUSE_GUI" = "yes"; then
6828
6829
6830
6831 enablestring=
6832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6833echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6834 no_cache=0
6835 # Check whether --enable-docview or --disable-docview was given.
6836if test "${enable_docview+set}" = set; then
6837 enableval="$enable_docview"
6838
6839 if test "$enableval" = yes; then
6840 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6841 else
6842 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6843 fi
6844
6845else
6846
6847 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6848 if test "x$LINE" != x ; then
6849 eval "DEFAULT_$LINE"
6850 else
6851 no_cache=1
6852 fi
6853
6854 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6855
6856fi;
6857
6858 eval "$ac_cv_use_docview"
6859 if test "$no_cache" != 1; then
6860 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6861 fi
6862
6863 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6864 echo "$as_me:$LINENO: result: yes" >&5
6865echo "${ECHO_T}yes" >&6
6866 else
6867 echo "$as_me:$LINENO: result: no" >&5
6868echo "${ECHO_T}no" >&6
6869 fi
6870
6871
6872 enablestring=
6873 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6874echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6875 no_cache=0
6876 # Check whether --enable-help or --disable-help was given.
6877if test "${enable_help+set}" = set; then
6878 enableval="$enable_help"
6879
6880 if test "$enableval" = yes; then
6881 ac_cv_use_help='wxUSE_HELP=yes'
6882 else
6883 ac_cv_use_help='wxUSE_HELP=no'
6884 fi
6885
6886else
6887
6888 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6889 if test "x$LINE" != x ; then
6890 eval "DEFAULT_$LINE"
6891 else
6892 no_cache=1
6893 fi
6894
6895 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6896
6897fi;
6898
6899 eval "$ac_cv_use_help"
6900 if test "$no_cache" != 1; then
6901 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6902 fi
6903
6904 if test "$wxUSE_HELP" = yes; then
6905 echo "$as_me:$LINENO: result: yes" >&5
6906echo "${ECHO_T}yes" >&6
6907 else
6908 echo "$as_me:$LINENO: result: no" >&5
6909echo "${ECHO_T}no" >&6
6910 fi
6911
6912
6913 enablestring=
6914 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6915echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6916 no_cache=0
6917 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6918if test "${enable_mshtmlhelp+set}" = set; then
6919 enableval="$enable_mshtmlhelp"
6920
6921 if test "$enableval" = yes; then
6922 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6923 else
6924 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6925 fi
6926
6927else
6928
6929 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6930 if test "x$LINE" != x ; then
6931 eval "DEFAULT_$LINE"
6932 else
6933 no_cache=1
6934 fi
6935
6936 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6937
6938fi;
6939
6940 eval "$ac_cv_use_mshtmlhelp"
6941 if test "$no_cache" != 1; then
6942 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6943 fi
6944
6945 if test "$wxUSE_MS_HTML_HELP" = yes; then
6946 echo "$as_me:$LINENO: result: yes" >&5
6947echo "${ECHO_T}yes" >&6
6948 else
6949 echo "$as_me:$LINENO: result: no" >&5
6950echo "${ECHO_T}no" >&6
6951 fi
6952
6953
6954 enablestring=
6955 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6956echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6957 no_cache=0
6958 # Check whether --enable-html or --disable-html was given.
6959if test "${enable_html+set}" = set; then
6960 enableval="$enable_html"
6961
6962 if test "$enableval" = yes; then
6963 ac_cv_use_html='wxUSE_HTML=yes'
6964 else
6965 ac_cv_use_html='wxUSE_HTML=no'
6966 fi
6967
6968else
6969
6970 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6971 if test "x$LINE" != x ; then
6972 eval "DEFAULT_$LINE"
6973 else
6974 no_cache=1
6975 fi
6976
6977 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6978
6979fi;
6980
6981 eval "$ac_cv_use_html"
6982 if test "$no_cache" != 1; then
6983 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6984 fi
6985
6986 if test "$wxUSE_HTML" = yes; then
6987 echo "$as_me:$LINENO: result: yes" >&5
6988echo "${ECHO_T}yes" >&6
6989 else
6990 echo "$as_me:$LINENO: result: no" >&5
6991echo "${ECHO_T}no" >&6
6992 fi
6993
6994
6995 enablestring=
6996 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6997echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6998 no_cache=0
6999 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
7000if test "${enable_htmlhelp+set}" = set; then
7001 enableval="$enable_htmlhelp"
7002
7003 if test "$enableval" = yes; then
7004 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
7005 else
7006 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
7007 fi
7008
7009else
7010
7011 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
7012 if test "x$LINE" != x ; then
7013 eval "DEFAULT_$LINE"
7014 else
7015 no_cache=1
7016 fi
7017
7018 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
7019
7020fi;
7021
7022 eval "$ac_cv_use_htmlhelp"
7023 if test "$no_cache" != 1; then
7024 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
7025 fi
7026
7027 if test "$wxUSE_WXHTML_HELP" = yes; then
7028 echo "$as_me:$LINENO: result: yes" >&5
7029echo "${ECHO_T}yes" >&6
7030 else
7031 echo "$as_me:$LINENO: result: no" >&5
7032echo "${ECHO_T}no" >&6
7033 fi
7034
7035
9a8f0513
VS
7036 enablestring=
7037 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
7038echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
7039 no_cache=0
7040 # Check whether --enable-xrc or --disable-xrc was given.
7041if test "${enable_xrc+set}" = set; then
7042 enableval="$enable_xrc"
7043
7044 if test "$enableval" = yes; then
7045 ac_cv_use_xrc='wxUSE_XRC=yes'
7046 else
7047 ac_cv_use_xrc='wxUSE_XRC=no'
7048 fi
7049
7050else
7051
7052 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
7053 if test "x$LINE" != x ; then
7054 eval "DEFAULT_$LINE"
7055 else
7056 no_cache=1
7057 fi
7058
7059 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
7060
7061fi;
7062
7063 eval "$ac_cv_use_xrc"
7064 if test "$no_cache" != 1; then
7065 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
7066 fi
7067
7068 if test "$wxUSE_XRC" = yes; then
7069 echo "$as_me:$LINENO: result: yes" >&5
7070echo "${ECHO_T}yes" >&6
7071 else
7072 echo "$as_me:$LINENO: result: no" >&5
7073echo "${ECHO_T}no" >&6
7074 fi
7075
7076
3f60522a
JS
7077 enablestring=
7078 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7079echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
7080 no_cache=0
7081 # Check whether --enable-aui or --disable-aui was given.
7082if test "${enable_aui+set}" = set; then
7083 enableval="$enable_aui"
7084
7085 if test "$enableval" = yes; then
7086 ac_cv_use_aui='wxUSE_AUI=yes'
7087 else
7088 ac_cv_use_aui='wxUSE_AUI=no'
7089 fi
7090
7091else
7092
7093 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7094 if test "x$LINE" != x ; then
7095 eval "DEFAULT_$LINE"
7096 else
7097 no_cache=1
7098 fi
7099
7100 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7101
7102fi;
7103
7104 eval "$ac_cv_use_aui"
7105 if test "$no_cache" != 1; then
7106 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7107 fi
7108
7109 if test "$wxUSE_AUI" = yes; then
7110 echo "$as_me:$LINENO: result: yes" >&5
7111echo "${ECHO_T}yes" >&6
7112 else
7113 echo "$as_me:$LINENO: result: no" >&5
7114echo "${ECHO_T}no" >&6
7115 fi
7116
7117
a848cd7e
SC
7118 enablestring=
7119 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7120echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7121 no_cache=0
7122 # Check whether --enable-constraints or --disable-constraints was given.
7123if test "${enable_constraints+set}" = set; then
7124 enableval="$enable_constraints"
7125
7126 if test "$enableval" = yes; then
7127 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7128 else
7129 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7130 fi
7131
7132else
7133
7134 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7135 if test "x$LINE" != x ; then
7136 eval "DEFAULT_$LINE"
7137 else
7138 no_cache=1
7139 fi
7140
7141 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7142
7143fi;
7144
7145 eval "$ac_cv_use_constraints"
7146 if test "$no_cache" != 1; then
7147 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7148 fi
7149
7150 if test "$wxUSE_CONSTRAINTS" = yes; then
7151 echo "$as_me:$LINENO: result: yes" >&5
7152echo "${ECHO_T}yes" >&6
7153 else
7154 echo "$as_me:$LINENO: result: no" >&5
7155echo "${ECHO_T}no" >&6
7156 fi
7157
7158
7159 enablestring=
7160 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7161echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7162 no_cache=0
7163 # Check whether --enable-printarch or --disable-printarch was given.
7164if test "${enable_printarch+set}" = set; then
7165 enableval="$enable_printarch"
7166
7167 if test "$enableval" = yes; then
7168 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7169 else
7170 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7171 fi
7172
7173else
7174
7175 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7176 if test "x$LINE" != x ; then
7177 eval "DEFAULT_$LINE"
7178 else
7179 no_cache=1
7180 fi
7181
7182 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7183
7184fi;
7185
7186 eval "$ac_cv_use_printarch"
7187 if test "$no_cache" != 1; then
7188 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7189 fi
7190
7191 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7192 echo "$as_me:$LINENO: result: yes" >&5
7193echo "${ECHO_T}yes" >&6
7194 else
7195 echo "$as_me:$LINENO: result: no" >&5
7196echo "${ECHO_T}no" >&6
7197 fi
7198
7199
7200 enablestring=
7201 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7202echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7203 no_cache=0
7204 # Check whether --enable-mdi or --disable-mdi was given.
7205if test "${enable_mdi+set}" = set; then
7206 enableval="$enable_mdi"
7207
7208 if test "$enableval" = yes; then
8a7b1113 7209 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7210 else
8a7b1113 7211 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7212 fi
7213
7214else
7215
8a7b1113 7216 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7217 if test "x$LINE" != x ; then
7218 eval "DEFAULT_$LINE"
7219 else
7220 no_cache=1
7221 fi
7222
8a7b1113 7223 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7224
7225fi;
7226
7227 eval "$ac_cv_use_mdi"
7228 if test "$no_cache" != 1; then
7229 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7230 fi
7231
8a7b1113
VZ
7232 if test "$wxUSE_MDI" = yes; then
7233 echo "$as_me:$LINENO: result: yes" >&5
7234echo "${ECHO_T}yes" >&6
7235 else
7236 echo "$as_me:$LINENO: result: no" >&5
7237echo "${ECHO_T}no" >&6
7238 fi
7239
7240
7241 enablestring=
7242 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7243echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7244 no_cache=0
7245 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7246if test "${enable_mdidoc+set}" = set; then
7247 enableval="$enable_mdidoc"
7248
7249 if test "$enableval" = yes; then
7250 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7251 else
7252 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7253 fi
7254
7255else
7256
7257 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7258 if test "x$LINE" != x ; then
7259 eval "DEFAULT_$LINE"
7260 else
7261 no_cache=1
7262 fi
7263
7264 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7265
7266fi;
7267
7268 eval "$ac_cv_use_mdidoc"
7269 if test "$no_cache" != 1; then
7270 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7271 fi
7272
a848cd7e
SC
7273 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7274 echo "$as_me:$LINENO: result: yes" >&5
7275echo "${ECHO_T}yes" >&6
7276 else
7277 echo "$as_me:$LINENO: result: no" >&5
7278echo "${ECHO_T}no" >&6
7279 fi
7280
7281
7282 enablestring=
7283 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7284echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7285 no_cache=0
7286 # Check whether --enable-loggui or --disable-loggui was given.
7287if test "${enable_loggui+set}" = set; then
7288 enableval="$enable_loggui"
7289
7290 if test "$enableval" = yes; then
7291 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7292 else
7293 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7294 fi
7295
7296else
7297
7298 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7299 if test "x$LINE" != x ; then
7300 eval "DEFAULT_$LINE"
7301 else
7302 no_cache=1
7303 fi
7304
7305 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7306
7307fi;
7308
7309 eval "$ac_cv_use_loggui"
7310 if test "$no_cache" != 1; then
7311 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7312 fi
7313
7314 if test "$wxUSE_LOGGUI" = yes; then
7315 echo "$as_me:$LINENO: result: yes" >&5
7316echo "${ECHO_T}yes" >&6
7317 else
7318 echo "$as_me:$LINENO: result: no" >&5
7319echo "${ECHO_T}no" >&6
7320 fi
7321
7322
7323 enablestring=
7324 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7325echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7326 no_cache=0
7327 # Check whether --enable-logwin or --disable-logwin was given.
7328if test "${enable_logwin+set}" = set; then
7329 enableval="$enable_logwin"
7330
7331 if test "$enableval" = yes; then
7332 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7333 else
7334 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7335 fi
7336
7337else
7338
7339 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7340 if test "x$LINE" != x ; then
7341 eval "DEFAULT_$LINE"
7342 else
7343 no_cache=1
7344 fi
7345
7346 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7347
7348fi;
7349
7350 eval "$ac_cv_use_logwin"
7351 if test "$no_cache" != 1; then
7352 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7353 fi
7354
7355 if test "$wxUSE_LOGWINDOW" = yes; then
7356 echo "$as_me:$LINENO: result: yes" >&5
7357echo "${ECHO_T}yes" >&6
7358 else
7359 echo "$as_me:$LINENO: result: no" >&5
7360echo "${ECHO_T}no" >&6
7361 fi
7362
7363
7364 enablestring=
7365 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7366echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7367 no_cache=0
7368 # Check whether --enable-logdialog or --disable-logdialog was given.
7369if test "${enable_logdialog+set}" = set; then
7370 enableval="$enable_logdialog"
7371
7372 if test "$enableval" = yes; then
7373 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7374 else
7375 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7376 fi
7377
7378else
7379
7380 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7381 if test "x$LINE" != x ; then
7382 eval "DEFAULT_$LINE"
7383 else
7384 no_cache=1
7385 fi
7386
7387 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7388
7389fi;
7390
7391 eval "$ac_cv_use_logdialog"
7392 if test "$no_cache" != 1; then
7393 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7394 fi
7395
7396 if test "$wxUSE_LOGDIALOG" = yes; then
7397 echo "$as_me:$LINENO: result: yes" >&5
7398echo "${ECHO_T}yes" >&6
7399 else
7400 echo "$as_me:$LINENO: result: no" >&5
7401echo "${ECHO_T}no" >&6
7402 fi
7403
7404
646b6ec1
VS
7405 enablestring=
7406 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7407echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7408 no_cache=0
7409 # Check whether --enable-webkit or --disable-webkit was given.
7410if test "${enable_webkit+set}" = set; then
7411 enableval="$enable_webkit"
7412
7413 if test "$enableval" = yes; then
7414 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7415 else
7416 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7417 fi
7418
7419else
7420
7421 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7422 if test "x$LINE" != x ; then
7423 eval "DEFAULT_$LINE"
7424 else
7425 no_cache=1
7426 fi
7427
7428 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7429
7430fi;
7431
7432 eval "$ac_cv_use_webkit"
7433 if test "$no_cache" != 1; then
7434 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7435 fi
7436
7437 if test "$wxUSE_WEBKIT" = yes; then
7438 echo "$as_me:$LINENO: result: yes" >&5
7439echo "${ECHO_T}yes" >&6
7440 else
7441 echo "$as_me:$LINENO: result: no" >&5
7442echo "${ECHO_T}no" >&6
7443 fi
7444
7445
91dea314
MW
7446 enablestring=
7447 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7448echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7449 no_cache=0
7450 # Check whether --enable-html or --disable-html was given.
7451if test "${enable_html+set}" = set; then
7452 enableval="$enable_html"
7453
7454 if test "$enableval" = yes; then
7455 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7456 else
7457 ac_cv_use_html='wxUSE_RICHTEXT=no'
7458 fi
7459
7460else
7461
7462 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7463 if test "x$LINE" != x ; then
7464 eval "DEFAULT_$LINE"
7465 else
7466 no_cache=1
7467 fi
7468
7469 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7470
7471fi;
7472
7473 eval "$ac_cv_use_html"
7474 if test "$no_cache" != 1; then
7475 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7476 fi
7477
7478 if test "$wxUSE_RICHTEXT" = yes; then
7479 echo "$as_me:$LINENO: result: yes" >&5
7480echo "${ECHO_T}yes" >&6
7481 else
7482 echo "$as_me:$LINENO: result: no" >&5
7483echo "${ECHO_T}no" >&6
7484 fi
7485
7486
f43426c1
RD
7487 enablestring=
7488 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
7489echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6
7490 no_cache=0
7491 # Check whether --enable-graphics_ctx or --disable-graphics_ctx was given.
7492if test "${enable_graphics_ctx+set}" = set; then
7493 enableval="$enable_graphics_ctx"
7494
7495 if test "$enableval" = yes; then
7496 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
7497 else
7498 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
7499 fi
7500
7501else
7502
7503 LINE=`grep "wxUSE_GRAPHICS_CONTEXT" ${wx_arg_cache_file}`
7504 if test "x$LINE" != x ; then
7505 eval "DEFAULT_$LINE"
7506 else
7507 no_cache=1
7508 fi
7509
7510 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT='$DEFAULT_wxUSE_GRAPHICS_CONTEXT
7511
7512fi;
7513
7514 eval "$ac_cv_use_graphics_ctx"
7515 if test "$no_cache" != 1; then
7516 echo $ac_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
7517 fi
7518
7519 if test "$wxUSE_GRAPHICS_CONTEXT" = yes; then
7520 echo "$as_me:$LINENO: result: yes" >&5
7521echo "${ECHO_T}yes" >&6
7522 else
7523 echo "$as_me:$LINENO: result: no" >&5
7524echo "${ECHO_T}no" >&6
7525 fi
7526
7527
a848cd7e
SC
7528
7529 enablestring=
7530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7531echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7532 no_cache=0
7533 # Check whether --enable-postscript or --disable-postscript was given.
7534if test "${enable_postscript+set}" = set; then
7535 enableval="$enable_postscript"
7536
7537 if test "$enableval" = yes; then
7538 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7539 else
7540 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7541 fi
7542
7543else
7544
7545 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7546 if test "x$LINE" != x ; then
7547 eval "DEFAULT_$LINE"
7548 else
7549 no_cache=1
7550 fi
7551
7552 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7553
7554fi;
7555
7556 eval "$ac_cv_use_postscript"
7557 if test "$no_cache" != 1; then
7558 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7559 fi
7560
7561 if test "$wxUSE_POSTSCRIPT" = yes; then
7562 echo "$as_me:$LINENO: result: yes" >&5
7563echo "${ECHO_T}yes" >&6
7564 else
7565 echo "$as_me:$LINENO: result: no" >&5
7566echo "${ECHO_T}no" >&6
7567 fi
7568
7569
7570
7571
7572
7573 enablestring=
7574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7575echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7576 no_cache=0
7577 # Check whether --enable-prologio or --disable-prologio was given.
7578if test "${enable_prologio+set}" = set; then
7579 enableval="$enable_prologio"
7580
7581 if test "$enableval" = yes; then
7582 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7583 else
7584 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7585 fi
7586
7587else
7588
7589 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7590 if test "x$LINE" != x ; then
7591 eval "DEFAULT_$LINE"
7592 else
7593 no_cache=1
7594 fi
7595
7596 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7597
7598fi;
7599
7600 eval "$ac_cv_use_prologio"
7601 if test "$no_cache" != 1; then
7602 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7603 fi
7604
7605 if test "$wxUSE_PROLOGIO" = yes; then
7606 echo "$as_me:$LINENO: result: yes" >&5
7607echo "${ECHO_T}yes" >&6
7608 else
7609 echo "$as_me:$LINENO: result: no" >&5
7610echo "${ECHO_T}no" >&6
7611 fi
7612
7613
7614 enablestring=
7615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7616echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7617 no_cache=0
7618 # Check whether --enable-resources or --disable-resources was given.
7619if test "${enable_resources+set}" = set; then
7620 enableval="$enable_resources"
7621
7622 if test "$enableval" = yes; then
7623 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7624 else
7625 ac_cv_use_resources='wxUSE_RESOURCES=no'
7626 fi
7627
7628else
7629
7630 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7631 if test "x$LINE" != x ; then
7632 eval "DEFAULT_$LINE"
7633 else
7634 no_cache=1
7635 fi
7636
7637 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7638
7639fi;
7640
7641 eval "$ac_cv_use_resources"
7642 if test "$no_cache" != 1; then
7643 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7644 fi
7645
7646 if test "$wxUSE_RESOURCES" = yes; then
7647 echo "$as_me:$LINENO: result: yes" >&5
7648echo "${ECHO_T}yes" >&6
7649 else
7650 echo "$as_me:$LINENO: result: no" >&5
7651echo "${ECHO_T}no" >&6
7652 fi
7653
7654
7655
7656
7657 enablestring=
7658 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7659echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7660 no_cache=0
7661 # Check whether --enable-clipboard or --disable-clipboard was given.
7662if test "${enable_clipboard+set}" = set; then
7663 enableval="$enable_clipboard"
7664
7665 if test "$enableval" = yes; then
7666 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7667 else
7668 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7669 fi
7670
7671else
7672
7673 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7674 if test "x$LINE" != x ; then
7675 eval "DEFAULT_$LINE"
7676 else
7677 no_cache=1
7678 fi
7679
7680 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7681
7682fi;
7683
7684 eval "$ac_cv_use_clipboard"
7685 if test "$no_cache" != 1; then
7686 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7687 fi
7688
7689 if test "$wxUSE_CLIPBOARD" = yes; then
7690 echo "$as_me:$LINENO: result: yes" >&5
7691echo "${ECHO_T}yes" >&6
7692 else
7693 echo "$as_me:$LINENO: result: no" >&5
7694echo "${ECHO_T}no" >&6
7695 fi
7696
7697
7698 enablestring=
7699 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7700echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7701 no_cache=0
7702 # Check whether --enable-dnd or --disable-dnd was given.
7703if test "${enable_dnd+set}" = set; then
7704 enableval="$enable_dnd"
7705
7706 if test "$enableval" = yes; then
7707 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7708 else
7709 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7710 fi
7711
7712else
7713
7714 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7715 if test "x$LINE" != x ; then
7716 eval "DEFAULT_$LINE"
7717 else
7718 no_cache=1
7719 fi
7720
7721 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7722
7723fi;
7724
7725 eval "$ac_cv_use_dnd"
7726 if test "$no_cache" != 1; then
7727 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7728 fi
7729
7730 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7731 echo "$as_me:$LINENO: result: yes" >&5
7732echo "${ECHO_T}yes" >&6
7733 else
7734 echo "$as_me:$LINENO: result: no" >&5
7735echo "${ECHO_T}no" >&6
7736 fi
7737
7738
7739 enablestring=
7740 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7741echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7742 no_cache=0
7743 # Check whether --enable-metafile or --disable-metafile was given.
7744if test "${enable_metafile+set}" = set; then
7745 enableval="$enable_metafile"
7746
7747 if test "$enableval" = yes; then
7748 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7749 else
7750 ac_cv_use_metafile='wxUSE_METAFILE=no'
7751 fi
7752
7753else
7754
7755 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7756 if test "x$LINE" != x ; then
7757 eval "DEFAULT_$LINE"
7758 else
7759 no_cache=1
7760 fi
7761
7762 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7763
7764fi;
7765
7766 eval "$ac_cv_use_metafile"
7767 if test "$no_cache" != 1; then
7768 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7769 fi
7770
7771 if test "$wxUSE_METAFILE" = yes; then
7772 echo "$as_me:$LINENO: result: yes" >&5
7773echo "${ECHO_T}yes" >&6
7774 else
7775 echo "$as_me:$LINENO: result: no" >&5
7776echo "${ECHO_T}no" >&6
7777 fi
7778
7779
7780
7781
7782
7783 enablestring=
7784 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7785echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7786 no_cache=0
7787 # Check whether --enable-controls or --disable-controls was given.
7788if test "${enable_controls+set}" = set; then
7789 enableval="$enable_controls"
7790
7791 if test "$enableval" = yes; then
7792 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7793 else
7794 ac_cv_use_controls='wxUSE_CONTROLS=no'
7795 fi
7796
7797else
7798
7799 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7800 if test "x$LINE" != x ; then
7801 eval "DEFAULT_$LINE"
7802 else
7803 no_cache=1
7804 fi
7805
7806 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7807
7808fi;
7809
7810 eval "$ac_cv_use_controls"
7811 if test "$no_cache" != 1; then
7812 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7813 fi
7814
7815 if test "$wxUSE_CONTROLS" = yes; then
7816 echo "$as_me:$LINENO: result: yes" >&5
7817echo "${ECHO_T}yes" >&6
7818 else
7819 echo "$as_me:$LINENO: result: no" >&5
7820echo "${ECHO_T}no" >&6
7821 fi
7822
7823
7824if test "$wxUSE_CONTROLS" = "yes"; then
7825 DEFAULT_wxUSE_ACCEL=yes
3ea50042 7826 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
7827 DEFAULT_wxUSE_BMPBUTTON=yes
7828 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7829 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7830 DEFAULT_wxUSE_CARET=yes
7831 DEFAULT_wxUSE_COMBOBOX=yes
7832 DEFAULT_wxUSE_CHECKBOX=yes
7833 DEFAULT_wxUSE_CHECKLISTBOX=yes
7834 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7835 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684
VZ
7836 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7837 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7838 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684
VZ
7839 DEFAULT_wxUSE_DISPLAY=yes
7840 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7841 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7842 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7843 DEFAULT_wxUSE_GAUGE=yes
7844 DEFAULT_wxUSE_GRID=yes
6954625c 7845 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7846 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7847 DEFAULT_wxUSE_IMAGLIST=yes
7848 DEFAULT_wxUSE_LISTBOOK=yes
7849 DEFAULT_wxUSE_LISTBOX=yes
7850 DEFAULT_wxUSE_LISTCTRL=yes
7851 DEFAULT_wxUSE_NOTEBOOK=yes
7852 DEFAULT_wxUSE_RADIOBOX=yes
7853 DEFAULT_wxUSE_RADIOBTN=yes
7854 DEFAULT_wxUSE_SASH=yes
7855 DEFAULT_wxUSE_SCROLLBAR=yes
7856 DEFAULT_wxUSE_SLIDER=yes
7857 DEFAULT_wxUSE_SPINBTN=yes
7858 DEFAULT_wxUSE_SPINCTRL=yes
7859 DEFAULT_wxUSE_SPLITTER=yes
7860 DEFAULT_wxUSE_STATBMP=yes
7861 DEFAULT_wxUSE_STATBOX=yes
7862 DEFAULT_wxUSE_STATLINE=yes
7863 DEFAULT_wxUSE_STATUSBAR=yes
7864 DEFAULT_wxUSE_TAB_DIALOG=yes
7865 DEFAULT_wxUSE_TOGGLEBTN=yes
7866 DEFAULT_wxUSE_TOOLBAR=yes
7867 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
a848cd7e 7868 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7869 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7870 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7871 DEFAULT_wxUSE_TREECTRL=yes
7872 DEFAULT_wxUSE_POPUPWIN=yes
7873 DEFAULT_wxUSE_TIPWINDOW=yes
7874elif test "$wxUSE_CONTROLS" = "no"; then
7875 DEFAULT_wxUSE_ACCEL=no
3ea50042 7876 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
7877 DEFAULT_wxUSE_BMPBUTTON=no
7878 DEFAULT_wxUSE_BUTTON=no
7879 DEFAULT_wxUSE_CALCTRL=no
7880 DEFAULT_wxUSE_CARET=no
7881 DEFAULT_wxUSE_COMBOBOX=no
7882 DEFAULT_wxUSE_CHECKBOX=no
7883 DEFAULT_wxUSE_CHECKLISTBOX=no
7884 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7885 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
7886 DEFAULT_wxUSE_COLOURPICKERCTRL=no
7887 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 7888 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684
VZ
7889 DEFAULT_wxUSE_DISPLAY=no
7890 DEFAULT_wxUSE_DIRPICKERCTRL=no
7891 DEFAULT_wxUSE_FILEPICKERCTRL=no
7892 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
7893 DEFAULT_wxUSE_GAUGE=no
7894 DEFAULT_wxUSE_GRID=no
6954625c 7895 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7896 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7897 DEFAULT_wxUSE_IMAGLIST=no
7898 DEFAULT_wxUSE_LISTBOOK=no
7899 DEFAULT_wxUSE_LISTBOX=no
7900 DEFAULT_wxUSE_LISTCTRL=no
7901 DEFAULT_wxUSE_NOTEBOOK=no
7902 DEFAULT_wxUSE_RADIOBOX=no
7903 DEFAULT_wxUSE_RADIOBTN=no
7904 DEFAULT_wxUSE_SASH=no
7905 DEFAULT_wxUSE_SCROLLBAR=no
7906 DEFAULT_wxUSE_SLIDER=no
7907 DEFAULT_wxUSE_SPINBTN=no
7908 DEFAULT_wxUSE_SPINCTRL=no
7909 DEFAULT_wxUSE_SPLITTER=no
7910 DEFAULT_wxUSE_STATBMP=no
7911 DEFAULT_wxUSE_STATBOX=no
7912 DEFAULT_wxUSE_STATLINE=no
7913 DEFAULT_wxUSE_STATUSBAR=no
7914 DEFAULT_wxUSE_TAB_DIALOG=no
7915 DEFAULT_wxUSE_TOGGLEBTN=no
7916 DEFAULT_wxUSE_TOOLBAR=no
7917 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
a848cd7e 7918 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7919 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7920 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7921 DEFAULT_wxUSE_TREECTRL=no
7922 DEFAULT_wxUSE_POPUPWIN=no
7923 DEFAULT_wxUSE_TIPWINDOW=no
7924fi
7925
a848cd7e
SC
7926
7927 enablestring=
7928 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7929echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7930 no_cache=0
7931 # Check whether --enable-accel or --disable-accel was given.
7932if test "${enable_accel+set}" = set; then
7933 enableval="$enable_accel"
7934
7935 if test "$enableval" = yes; then
7936 ac_cv_use_accel='wxUSE_ACCEL=yes'
7937 else
7938 ac_cv_use_accel='wxUSE_ACCEL=no'
7939 fi
7940
7941else
7942
7943 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7944 if test "x$LINE" != x ; then
7945 eval "DEFAULT_$LINE"
7946 else
7947 no_cache=1
7948 fi
7949
7950 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7951
7952fi;
7953
7954 eval "$ac_cv_use_accel"
7955 if test "$no_cache" != 1; then
7956 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7957 fi
7958
7959 if test "$wxUSE_ACCEL" = yes; then
7960 echo "$as_me:$LINENO: result: yes" >&5
7961echo "${ECHO_T}yes" >&6
7962 else
7963 echo "$as_me:$LINENO: result: no" >&5
7964echo "${ECHO_T}no" >&6
7965 fi
7966
7967
3ea50042
VZ
7968 enablestring=
7969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
7970echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6
7971 no_cache=0
7972 # Check whether --enable-animatectrl or --disable-animatectrl was given.
7973if test "${enable_animatectrl+set}" = set; then
7974 enableval="$enable_animatectrl"
7975
7976 if test "$enableval" = yes; then
7977 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
7978 else
7979 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
7980 fi
7981
7982else
7983
7984 LINE=`grep "wxUSE_ANIMATIONCTRL" ${wx_arg_cache_file}`
7985 if test "x$LINE" != x ; then
7986 eval "DEFAULT_$LINE"
7987 else
7988 no_cache=1
7989 fi
7990
7991 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL='$DEFAULT_wxUSE_ANIMATIONCTRL
7992
7993fi;
7994
7995 eval "$ac_cv_use_animatectrl"
7996 if test "$no_cache" != 1; then
7997 echo $ac_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp
7998 fi
7999
8000 if test "$wxUSE_ANIMATIONCTRL" = yes; then
8001 echo "$as_me:$LINENO: result: yes" >&5
8002echo "${ECHO_T}yes" >&6
8003 else
8004 echo "$as_me:$LINENO: result: no" >&5
8005echo "${ECHO_T}no" >&6
8006 fi
8007
8008
a848cd7e
SC
8009 enablestring=
8010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
8011echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
8012 no_cache=0
8013 # Check whether --enable-button or --disable-button was given.
8014if test "${enable_button+set}" = set; then
8015 enableval="$enable_button"
8016
8017 if test "$enableval" = yes; then
8018 ac_cv_use_button='wxUSE_BUTTON=yes'
8019 else
8020 ac_cv_use_button='wxUSE_BUTTON=no'
8021 fi
8022
8023else
8024
8025 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
8026 if test "x$LINE" != x ; then
8027 eval "DEFAULT_$LINE"
8028 else
8029 no_cache=1
8030 fi
8031
8032 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
8033
8034fi;
8035
8036 eval "$ac_cv_use_button"
8037 if test "$no_cache" != 1; then
8038 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
8039 fi
8040
8041 if test "$wxUSE_BUTTON" = yes; then
8042 echo "$as_me:$LINENO: result: yes" >&5
8043echo "${ECHO_T}yes" >&6
8044 else
8045 echo "$as_me:$LINENO: result: no" >&5
8046echo "${ECHO_T}no" >&6
8047 fi
8048
8049
8050 enablestring=
8051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
8052echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
8053 no_cache=0
8054 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
8055if test "${enable_bmpbutton+set}" = set; then
8056 enableval="$enable_bmpbutton"
8057
8058 if test "$enableval" = yes; then
8059 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
8060 else
8061 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
8062 fi
8063
8064else
8065
8066 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
8067 if test "x$LINE" != x ; then
8068 eval "DEFAULT_$LINE"
8069 else
8070 no_cache=1
8071 fi
8072
8073 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
8074
8075fi;
8076
8077 eval "$ac_cv_use_bmpbutton"
8078 if test "$no_cache" != 1; then
8079 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
8080 fi
8081
8082 if test "$wxUSE_BMPBUTTON" = yes; then
8083 echo "$as_me:$LINENO: result: yes" >&5
8084echo "${ECHO_T}yes" >&6
8085 else
8086 echo "$as_me:$LINENO: result: no" >&5
8087echo "${ECHO_T}no" >&6
8088 fi
8089
8090
95a46303
RR
8091 enablestring=
8092 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
8093echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6
8094 no_cache=0
8095 # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given.
8096if test "${enable_bmpcombobox+set}" = set; then
8097 enableval="$enable_bmpcombobox"
8098
8099 if test "$enableval" = yes; then
8100 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
8101 else
8102 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
8103 fi
8104
8105else
8106
8107 LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}`
8108 if test "x$LINE" != x ; then
8109 eval "DEFAULT_$LINE"
8110 else
8111 no_cache=1
8112 fi
8113
8114 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
8115
8116fi;
8117
8118 eval "$ac_cv_use_bmpcombobox"
8119 if test "$no_cache" != 1; then
8120 echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
8121 fi
8122
8123 if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
8124 echo "$as_me:$LINENO: result: yes" >&5
8125echo "${ECHO_T}yes" >&6
8126 else
8127 echo "$as_me:$LINENO: result: no" >&5
8128echo "${ECHO_T}no" >&6
8129 fi
8130
8131
a848cd7e
SC
8132 enablestring=
8133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
8134echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
8135 no_cache=0
8136 # Check whether --enable-calendar or --disable-calendar was given.
8137if test "${enable_calendar+set}" = set; then
8138 enableval="$enable_calendar"
8139
8140 if test "$enableval" = yes; then
8141 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
8142 else
8143 ac_cv_use_calendar='wxUSE_CALCTRL=no'
8144 fi
8145
8146else
8147
8148 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
8149 if test "x$LINE" != x ; then
8150 eval "DEFAULT_$LINE"
8151 else
8152 no_cache=1
8153 fi
8154
8155 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
8156
8157fi;
8158
8159 eval "$ac_cv_use_calendar"
8160 if test "$no_cache" != 1; then
8161 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
8162 fi
8163
8164 if test "$wxUSE_CALCTRL" = yes; then
8165 echo "$as_me:$LINENO: result: yes" >&5
8166echo "${ECHO_T}yes" >&6
8167 else
8168 echo "$as_me:$LINENO: result: no" >&5
8169echo "${ECHO_T}no" >&6
8170 fi
8171
8172
8173 enablestring=
8174 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
8175echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
8176 no_cache=0
8177 # Check whether --enable-caret or --disable-caret was given.
8178if test "${enable_caret+set}" = set; then
8179 enableval="$enable_caret"
8180
8181 if test "$enableval" = yes; then
8182 ac_cv_use_caret='wxUSE_CARET=yes'
8183 else
8184 ac_cv_use_caret='wxUSE_CARET=no'
8185 fi
8186
8187else
8188
8189 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
8190 if test "x$LINE" != x ; then
8191 eval "DEFAULT_$LINE"
8192 else
8193 no_cache=1
8194 fi
8195
8196 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
8197
8198fi;
8199
8200 eval "$ac_cv_use_caret"
8201 if test "$no_cache" != 1; then
8202 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
8203 fi
8204
8205 if test "$wxUSE_CARET" = yes; then
8206 echo "$as_me:$LINENO: result: yes" >&5
8207echo "${ECHO_T}yes" >&6
8208 else
8209 echo "$as_me:$LINENO: result: no" >&5
8210echo "${ECHO_T}no" >&6
8211 fi
8212
8213
8214 enablestring=
8215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
8216echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
8217 no_cache=0
8218 # Check whether --enable-checkbox or --disable-checkbox was given.
8219if test "${enable_checkbox+set}" = set; then
8220 enableval="$enable_checkbox"
8221
8222 if test "$enableval" = yes; then
8223 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8224 else
8225 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8226 fi
8227
8228else
8229
8230 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8231 if test "x$LINE" != x ; then
8232 eval "DEFAULT_$LINE"
8233 else
8234 no_cache=1
8235 fi
8236
8237 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8238
8239fi;
8240
8241 eval "$ac_cv_use_checkbox"
8242 if test "$no_cache" != 1; then
8243 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8244 fi
8245
8246 if test "$wxUSE_CHECKBOX" = yes; then
8247 echo "$as_me:$LINENO: result: yes" >&5
8248echo "${ECHO_T}yes" >&6
8249 else
8250 echo "$as_me:$LINENO: result: no" >&5
8251echo "${ECHO_T}no" >&6
8252 fi
8253
8254
8255 enablestring=
8256 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8257echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8258 no_cache=0
8259 # Check whether --enable-checklst or --disable-checklst was given.
8260if test "${enable_checklst+set}" = set; then
8261 enableval="$enable_checklst"
8262
8263 if test "$enableval" = yes; then
8264 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8265 else
8266 ac_cv_use_checklst='wxUSE_CHECKLST=no'
8267 fi
8268
8269else
8270
8271 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8272 if test "x$LINE" != x ; then
8273 eval "DEFAULT_$LINE"
8274 else
8275 no_cache=1
8276 fi
8277
8278 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8279
8280fi;
8281
8282 eval "$ac_cv_use_checklst"
8283 if test "$no_cache" != 1; then
8284 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8285 fi
8286
8287 if test "$wxUSE_CHECKLST" = yes; then
8288 echo "$as_me:$LINENO: result: yes" >&5
8289echo "${ECHO_T}yes" >&6
8290 else
8291 echo "$as_me:$LINENO: result: no" >&5
8292echo "${ECHO_T}no" >&6
8293 fi
8294
8295
8296 enablestring=
8297 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8298echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8299 no_cache=0
8300 # Check whether --enable-choice or --disable-choice was given.
8301if test "${enable_choice+set}" = set; then
8302 enableval="$enable_choice"
8303
8304 if test "$enableval" = yes; then
8305 ac_cv_use_choice='wxUSE_CHOICE=yes'
8306 else
8307 ac_cv_use_choice='wxUSE_CHOICE=no'
8308 fi
8309
8310else
8311
8312 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8313 if test "x$LINE" != x ; then
8314 eval "DEFAULT_$LINE"
8315 else
8316 no_cache=1
8317 fi
8318
8319 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8320
8321fi;
8322
8323 eval "$ac_cv_use_choice"
8324 if test "$no_cache" != 1; then
8325 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8326 fi
8327
8328 if test "$wxUSE_CHOICE" = yes; then
8329 echo "$as_me:$LINENO: result: yes" >&5
8330echo "${ECHO_T}yes" >&6
8331 else
8332 echo "$as_me:$LINENO: result: no" >&5
8333echo "${ECHO_T}no" >&6
8334 fi
8335
8336
92bbdbcd
WS
8337 enablestring=
8338 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8339echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8340 no_cache=0
8341 # Check whether --enable-choicebook or --disable-choicebook was given.
8342if test "${enable_choicebook+set}" = set; then
8343 enableval="$enable_choicebook"
8344
8345 if test "$enableval" = yes; then
8346 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8347 else
8348 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8349 fi
8350
8351else
8352
8353 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8354 if test "x$LINE" != x ; then
8355 eval "DEFAULT_$LINE"
8356 else
8357 no_cache=1
8358 fi
8359
8360 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8361
8362fi;
8363
8364 eval "$ac_cv_use_choicebook"
8365 if test "$no_cache" != 1; then
8366 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8367 fi
8368
8369 if test "$wxUSE_CHOICEBOOK" = yes; then
8370 echo "$as_me:$LINENO: result: yes" >&5
8371echo "${ECHO_T}yes" >&6
8372 else
8373 echo "$as_me:$LINENO: result: no" >&5
8374echo "${ECHO_T}no" >&6
8375 fi
8376
8377
e9263684
VZ
8378 enablestring=
8379 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8380echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8381 no_cache=0
8382 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8383if test "${enable_colourpicker+set}" = set; then
8384 enableval="$enable_colourpicker"
8385
8386 if test "$enableval" = yes; then
8387 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8388 else
8389 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8390 fi
8391
8392else
8393
8394 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8395 if test "x$LINE" != x ; then
8396 eval "DEFAULT_$LINE"
8397 else
8398 no_cache=1
8399 fi
8400
8401 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8402
8403fi;
8404
8405 eval "$ac_cv_use_colourpicker"
8406 if test "$no_cache" != 1; then
8407 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8408 fi
8409
8410 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8411 echo "$as_me:$LINENO: result: yes" >&5
8412echo "${ECHO_T}yes" >&6
8413 else
8414 echo "$as_me:$LINENO: result: no" >&5
8415echo "${ECHO_T}no" >&6
8416 fi
8417
8418
a848cd7e
SC
8419 enablestring=
8420 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8421echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8422 no_cache=0
8423 # Check whether --enable-combobox or --disable-combobox was given.
8424if test "${enable_combobox+set}" = set; then
8425 enableval="$enable_combobox"
8426
8427 if test "$enableval" = yes; then
8428 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8429 else
8430 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8431 fi
8432
8433else
8434
8435 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8436 if test "x$LINE" != x ; then
8437 eval "DEFAULT_$LINE"
8438 else
8439 no_cache=1
8440 fi
8441
8442 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8443
8444fi;
8445
8446 eval "$ac_cv_use_combobox"
8447 if test "$no_cache" != 1; then
8448 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8449 fi
8450
8451 if test "$wxUSE_COMBOBOX" = yes; then
8452 echo "$as_me:$LINENO: result: yes" >&5
8453echo "${ECHO_T}yes" >&6
8454 else
8455 echo "$as_me:$LINENO: result: no" >&5
8456echo "${ECHO_T}no" >&6
8457 fi
8458
8459
642bcba9 8460 enablestring=
a57d600f
VZ
8461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8462echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8463 no_cache=0
a57d600f
VZ
8464 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8465if test "${enable_comboctrl+set}" = set; then
8466 enableval="$enable_comboctrl"
642bcba9
VZ
8467
8468 if test "$enableval" = yes; then
a57d600f 8469 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8470 else
a57d600f 8471 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8472 fi
8473
8474else
8475
a57d600f 8476 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8477 if test "x$LINE" != x ; then
8478 eval "DEFAULT_$LINE"
8479 else
8480 no_cache=1
8481 fi
8482
a57d600f 8483 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8484
8485fi;
8486
a57d600f 8487 eval "$ac_cv_use_comboctrl"
642bcba9 8488 if test "$no_cache" != 1; then
a57d600f 8489 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8490 fi
8491
a57d600f 8492 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8493 echo "$as_me:$LINENO: result: yes" >&5
8494echo "${ECHO_T}yes" >&6
8495 else
8496 echo "$as_me:$LINENO: result: no" >&5
8497echo "${ECHO_T}no" >&6
8498 fi
8499
8500
da98e9be
VZ
8501 enablestring=
8502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8503echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8504 no_cache=0
8505 # Check whether --enable-datepick or --disable-datepick was given.
8506if test "${enable_datepick+set}" = set; then
8507 enableval="$enable_datepick"
8508
8509 if test "$enableval" = yes; then
8510 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8511 else
8512 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8513 fi
8514
8515else
8516
8517 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8518 if test "x$LINE" != x ; then
8519 eval "DEFAULT_$LINE"
8520 else
8521 no_cache=1
8522 fi
8523
8524 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8525
8526fi;
8527
8528 eval "$ac_cv_use_datepick"
8529 if test "$no_cache" != 1; then
8530 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8531 fi
8532
8533 if test "$wxUSE_DATEPICKCTRL" = yes; then
8534 echo "$as_me:$LINENO: result: yes" >&5
8535echo "${ECHO_T}yes" >&6
8536 else
8537 echo "$as_me:$LINENO: result: no" >&5
8538echo "${ECHO_T}no" >&6
8539 fi
8540
8541
e9263684
VZ
8542 enablestring=
8543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8544echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8545 no_cache=0
8546 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8547if test "${enable_dirpicker+set}" = set; then
8548 enableval="$enable_dirpicker"
8549
8550 if test "$enableval" = yes; then
8551 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8552 else
8553 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8554 fi
8555
8556else
8557
8558 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8559 if test "x$LINE" != x ; then
8560 eval "DEFAULT_$LINE"
8561 else
8562 no_cache=1
8563 fi
8564
8565 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8566
8567fi;
8568
8569 eval "$ac_cv_use_dirpicker"
8570 if test "$no_cache" != 1; then
8571 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8572 fi
8573
8574 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8575 echo "$as_me:$LINENO: result: yes" >&5
8576echo "${ECHO_T}yes" >&6
8577 else
8578 echo "$as_me:$LINENO: result: no" >&5
8579echo "${ECHO_T}no" >&6
8580 fi
8581
8582
a848cd7e
SC
8583 enablestring=
8584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8585echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8586 no_cache=0
8587 # Check whether --enable-display or --disable-display was given.
8588if test "${enable_display+set}" = set; then
8589 enableval="$enable_display"
8590
8591 if test "$enableval" = yes; then
8592 ac_cv_use_display='wxUSE_DISPLAY=yes'
8593 else
8594 ac_cv_use_display='wxUSE_DISPLAY=no'
8595 fi
8596
8597else
8598
8599 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8600 if test "x$LINE" != x ; then
8601 eval "DEFAULT_$LINE"
8602 else
8603 no_cache=1
8604 fi
8605
8606 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8607
8608fi;
8609
8610 eval "$ac_cv_use_display"
8611 if test "$no_cache" != 1; then
8612 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8613 fi
8614
8615 if test "$wxUSE_DISPLAY" = yes; then
8616 echo "$as_me:$LINENO: result: yes" >&5
8617echo "${ECHO_T}yes" >&6
8618 else
8619 echo "$as_me:$LINENO: result: no" >&5
8620echo "${ECHO_T}no" >&6
8621 fi
8622
8623
e9263684
VZ
8624 enablestring=
8625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8626echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8627 no_cache=0
8628 # Check whether --enable-filepicker or --disable-filepicker was given.
8629if test "${enable_filepicker+set}" = set; then
8630 enableval="$enable_filepicker"
8631
8632 if test "$enableval" = yes; then
8633 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8634 else
8635 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8636 fi
8637
8638else
8639
8640 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8641 if test "x$LINE" != x ; then
8642 eval "DEFAULT_$LINE"
8643 else
8644 no_cache=1
8645 fi
8646
8647 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8648
8649fi;
8650
8651 eval "$ac_cv_use_filepicker"
8652 if test "$no_cache" != 1; then
8653 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8654 fi
8655
8656 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8657 echo "$as_me:$LINENO: result: yes" >&5
8658echo "${ECHO_T}yes" >&6
8659 else
8660 echo "$as_me:$LINENO: result: no" >&5
8661echo "${ECHO_T}no" >&6
8662 fi
8663
8664
8665 enablestring=
8666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8667echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8668 no_cache=0
8669 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8670if test "${enable_fontpicker+set}" = set; then
8671 enableval="$enable_fontpicker"
8672
8673 if test "$enableval" = yes; then
8674 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8675 else
8676 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8677 fi
8678
8679else
8680
8681 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8682 if test "x$LINE" != x ; then
8683 eval "DEFAULT_$LINE"
8684 else
8685 no_cache=1
8686 fi
8687
8688 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8689
8690fi;
8691
8692 eval "$ac_cv_use_fontpicker"
8693 if test "$no_cache" != 1; then
8694 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8695 fi
8696
8697 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8698 echo "$as_me:$LINENO: result: yes" >&5
8699echo "${ECHO_T}yes" >&6
8700 else
8701 echo "$as_me:$LINENO: result: no" >&5
8702echo "${ECHO_T}no" >&6
8703 fi
8704
8705
a848cd7e
SC
8706 enablestring=
8707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8708echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8709 no_cache=0
8710 # Check whether --enable-gauge or --disable-gauge was given.
8711if test "${enable_gauge+set}" = set; then
8712 enableval="$enable_gauge"
8713
8714 if test "$enableval" = yes; then
8715 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8716 else
8717 ac_cv_use_gauge='wxUSE_GAUGE=no'
8718 fi
8719
8720else
8721
8722 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8723 if test "x$LINE" != x ; then
8724 eval "DEFAULT_$LINE"
8725 else
8726 no_cache=1
8727 fi
8728
8729 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8730
8731fi;
8732
8733 eval "$ac_cv_use_gauge"
8734 if test "$no_cache" != 1; then
8735 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8736 fi
8737
8738 if test "$wxUSE_GAUGE" = yes; then
8739 echo "$as_me:$LINENO: result: yes" >&5
8740echo "${ECHO_T}yes" >&6
8741 else
8742 echo "$as_me:$LINENO: result: no" >&5
8743echo "${ECHO_T}no" >&6
8744 fi
8745
8746
8747 enablestring=
8748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8749echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8750 no_cache=0
8751 # Check whether --enable-grid or --disable-grid was given.
8752if test "${enable_grid+set}" = set; then
8753 enableval="$enable_grid"
8754
8755 if test "$enableval" = yes; then
8756 ac_cv_use_grid='wxUSE_GRID=yes'
8757 else
8758 ac_cv_use_grid='wxUSE_GRID=no'
8759 fi
8760
8761else
8762
8763 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8764 if test "x$LINE" != x ; then
8765 eval "DEFAULT_$LINE"
8766 else
8767 no_cache=1
8768 fi
8769
8770 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8771
8772fi;
8773
8774 eval "$ac_cv_use_grid"
8775 if test "$no_cache" != 1; then
8776 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8777 fi
8778
8779 if test "$wxUSE_GRID" = yes; then
8780 echo "$as_me:$LINENO: result: yes" >&5
8781echo "${ECHO_T}yes" >&6
8782 else
8783 echo "$as_me:$LINENO: result: no" >&5
8784echo "${ECHO_T}no" >&6
8785 fi
8786
8787
20e34ecc
RR
8788 enablestring=
8789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8790echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8791 no_cache=0
8792 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8793if test "${enable_dataviewctrl+set}" = set; then
8794 enableval="$enable_dataviewctrl"
8795
8796 if test "$enableval" = yes; then
8797 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8798 else
8799 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8800 fi
8801
8802else
8803
8804 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8805 if test "x$LINE" != x ; then
8806 eval "DEFAULT_$LINE"
8807 else
8808 no_cache=1
8809 fi
8810
8811 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8812
8813fi;
8814
8815 eval "$ac_cv_use_dataviewctrl"
8816 if test "$no_cache" != 1; then
8817 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8818 fi
8819
8820 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8821 echo "$as_me:$LINENO: result: yes" >&5
8822echo "${ECHO_T}yes" >&6
8823 else
8824 echo "$as_me:$LINENO: result: no" >&5
8825echo "${ECHO_T}no" >&6
8826 fi
8827
8828
6954625c
VZ
8829 enablestring=
8830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8831echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8832 no_cache=0
8833 # Check whether --enable-hyperlink or --disable-hyperlink was given.
8834if test "${enable_hyperlink+set}" = set; then
8835 enableval="$enable_hyperlink"
8836
8837 if test "$enableval" = yes; then
8838 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8839 else
8840 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8841 fi
8842
8843else
8844
8845 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8846 if test "x$LINE" != x ; then
8847 eval "DEFAULT_$LINE"
8848 else
8849 no_cache=1
8850 fi
8851
8852 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8853
8854fi;
8855
8856 eval "$ac_cv_use_hyperlink"
8857 if test "$no_cache" != 1; then
8858 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8859 fi
8860
8861 if test "$wxUSE_HYPERLINKCTRL" = yes; then
8862 echo "$as_me:$LINENO: result: yes" >&5
8863echo "${ECHO_T}yes" >&6
8864 else
8865 echo "$as_me:$LINENO: result: no" >&5
8866echo "${ECHO_T}no" >&6
8867 fi
8868
8869
a848cd7e
SC
8870 enablestring=
8871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8872echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8873 no_cache=0
8874 # Check whether --enable-imaglist or --disable-imaglist was given.
8875if test "${enable_imaglist+set}" = set; then
8876 enableval="$enable_imaglist"
8877
8878 if test "$enableval" = yes; then
8879 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8880 else
8881 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8882 fi
8883
8884else
8885
8886 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8887 if test "x$LINE" != x ; then
8888 eval "DEFAULT_$LINE"
8889 else
8890 no_cache=1
8891 fi
8892
8893 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8894
8895fi;
8896
8897 eval "$ac_cv_use_imaglist"
8898 if test "$no_cache" != 1; then
8899 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8900 fi
8901
8902 if test "$wxUSE_IMAGLIST" = yes; then
8903 echo "$as_me:$LINENO: result: yes" >&5
8904echo "${ECHO_T}yes" >&6
8905 else
8906 echo "$as_me:$LINENO: result: no" >&5
8907echo "${ECHO_T}no" >&6
8908 fi
8909
8910
8911 enablestring=
8912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8913echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8914 no_cache=0
8915 # Check whether --enable-listbook or --disable-listbook was given.
8916if test "${enable_listbook+set}" = set; then
8917 enableval="$enable_listbook"
8918
8919 if test "$enableval" = yes; then
8920 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8921 else
8922 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8923 fi
8924
8925else
8926
8927 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8928 if test "x$LINE" != x ; then
8929 eval "DEFAULT_$LINE"
8930 else
8931 no_cache=1
8932 fi
8933
8934 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8935
8936fi;
8937
8938 eval "$ac_cv_use_listbook"
8939 if test "$no_cache" != 1; then
8940 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8941 fi
8942
8943 if test "$wxUSE_LISTBOOK" = yes; then
8944 echo "$as_me:$LINENO: result: yes" >&5
8945echo "${ECHO_T}yes" >&6
8946 else
8947 echo "$as_me:$LINENO: result: no" >&5
8948echo "${ECHO_T}no" >&6
8949 fi
8950
8951
8952 enablestring=
8953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8954echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8955 no_cache=0
8956 # Check whether --enable-listbox or --disable-listbox was given.
8957if test "${enable_listbox+set}" = set; then
8958 enableval="$enable_listbox"
8959
8960 if test "$enableval" = yes; then
8961 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8962 else
8963 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8964 fi
8965
8966else
8967
8968 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8969 if test "x$LINE" != x ; then
8970 eval "DEFAULT_$LINE"
8971 else
8972 no_cache=1
8973 fi
8974
8975 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8976
8977fi;
8978
8979 eval "$ac_cv_use_listbox"
8980 if test "$no_cache" != 1; then
8981 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8982 fi
8983
8984 if test "$wxUSE_LISTBOX" = yes; then
8985 echo "$as_me:$LINENO: result: yes" >&5
8986echo "${ECHO_T}yes" >&6
8987 else
8988 echo "$as_me:$LINENO: result: no" >&5
8989echo "${ECHO_T}no" >&6
8990 fi
8991
8992
8993 enablestring=
8994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8995echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8996 no_cache=0
8997 # Check whether --enable-listctrl or --disable-listctrl was given.
8998if test "${enable_listctrl+set}" = set; then
8999 enableval="$enable_listctrl"
9000
9001 if test "$enableval" = yes; then
9002 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
9003 else
9004 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
9005 fi
9006
9007else
9008
9009 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
9010 if test "x$LINE" != x ; then
9011 eval "DEFAULT_$LINE"
9012 else
9013 no_cache=1
9014 fi
9015
9016 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
9017
9018fi;
9019
9020 eval "$ac_cv_use_listctrl"
9021 if test "$no_cache" != 1; then
9022 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
9023 fi
9024
9025 if test "$wxUSE_LISTCTRL" = yes; then
9026 echo "$as_me:$LINENO: result: yes" >&5
9027echo "${ECHO_T}yes" >&6
9028 else
9029 echo "$as_me:$LINENO: result: no" >&5
9030echo "${ECHO_T}no" >&6
9031 fi
9032
9033
9034 enablestring=
9035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
9036echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
9037 no_cache=0
9038 # Check whether --enable-notebook or --disable-notebook was given.
9039if test "${enable_notebook+set}" = set; then
9040 enableval="$enable_notebook"
9041
9042 if test "$enableval" = yes; then
9043 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
9044 else
9045 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
9046 fi
9047
9048else
9049
9050 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
9051 if test "x$LINE" != x ; then
9052 eval "DEFAULT_$LINE"
9053 else
9054 no_cache=1
9055 fi
9056
9057 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
9058
9059fi;
9060
9061 eval "$ac_cv_use_notebook"
9062 if test "$no_cache" != 1; then
9063 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
9064 fi
9065
9066 if test "$wxUSE_NOTEBOOK" = yes; then
9067 echo "$as_me:$LINENO: result: yes" >&5
9068echo "${ECHO_T}yes" >&6
9069 else
9070 echo "$as_me:$LINENO: result: no" >&5
9071echo "${ECHO_T}no" >&6
9072 fi
9073
9074
642bcba9 9075 enablestring=
a57d600f
VZ
9076 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
9077echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 9078 no_cache=0
a57d600f
VZ
9079 # Check whether --enable-odcombobox or --disable-odcombobox was given.
9080if test "${enable_odcombobox+set}" = set; then
9081 enableval="$enable_odcombobox"
642bcba9
VZ
9082
9083 if test "$enableval" = yes; then
a57d600f 9084 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 9085 else
a57d600f 9086 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
9087 fi
9088
9089else
9090
a57d600f 9091 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
9092 if test "x$LINE" != x ; then
9093 eval "DEFAULT_$LINE"
9094 else
9095 no_cache=1
9096 fi
9097
a57d600f 9098 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
9099
9100fi;
9101
a57d600f 9102 eval "$ac_cv_use_odcombobox"
642bcba9 9103 if test "$no_cache" != 1; then
a57d600f 9104 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
9105 fi
9106
a57d600f 9107 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
9108 echo "$as_me:$LINENO: result: yes" >&5
9109echo "${ECHO_T}yes" >&6
9110 else
9111 echo "$as_me:$LINENO: result: no" >&5
9112echo "${ECHO_T}no" >&6
9113 fi
9114
9115
a848cd7e
SC
9116 enablestring=
9117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
9118echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
9119 no_cache=0
9120 # Check whether --enable-radiobox or --disable-radiobox was given.
9121if test "${enable_radiobox+set}" = set; then
9122 enableval="$enable_radiobox"
9123
9124 if test "$enableval" = yes; then
9125 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
9126 else
9127 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
9128 fi
9129
9130else
9131
9132 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
9133 if test "x$LINE" != x ; then
9134 eval "DEFAULT_$LINE"
9135 else
9136 no_cache=1
9137 fi
9138
9139 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
9140
9141fi;
9142
9143 eval "$ac_cv_use_radiobox"
9144 if test "$no_cache" != 1; then
9145 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
9146 fi
9147
9148 if test "$wxUSE_RADIOBOX" = yes; then
9149 echo "$as_me:$LINENO: result: yes" >&5
9150echo "${ECHO_T}yes" >&6
9151 else
9152 echo "$as_me:$LINENO: result: no" >&5
9153echo "${ECHO_T}no" >&6
9154 fi
9155
9156
9157 enablestring=
9158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
9159echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
9160 no_cache=0
9161 # Check whether --enable-radiobtn or --disable-radiobtn was given.
9162if test "${enable_radiobtn+set}" = set; then
9163 enableval="$enable_radiobtn"
9164
9165 if test "$enableval" = yes; then
9166 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
9167 else
9168 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
9169 fi
9170
9171else
9172
9173 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
9174 if test "x$LINE" != x ; then
9175 eval "DEFAULT_$LINE"
9176 else
9177 no_cache=1
9178 fi
9179
9180 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
9181
9182fi;
9183
9184 eval "$ac_cv_use_radiobtn"
9185 if test "$no_cache" != 1; then
9186 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
9187 fi
9188
9189 if test "$wxUSE_RADIOBTN" = yes; then
9190 echo "$as_me:$LINENO: result: yes" >&5
9191echo "${ECHO_T}yes" >&6
9192 else
9193 echo "$as_me:$LINENO: result: no" >&5
9194echo "${ECHO_T}no" >&6
9195 fi
9196
9197
9198 enablestring=
9199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
9200echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
9201 no_cache=0
9202 # Check whether --enable-sash or --disable-sash was given.
9203if test "${enable_sash+set}" = set; then
9204 enableval="$enable_sash"
9205
9206 if test "$enableval" = yes; then
9207 ac_cv_use_sash='wxUSE_SASH=yes'
9208 else
9209 ac_cv_use_sash='wxUSE_SASH=no'
9210 fi
9211
9212else
9213
9214 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
9215 if test "x$LINE" != x ; then
9216 eval "DEFAULT_$LINE"
9217 else
9218 no_cache=1
9219 fi
9220
9221 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9222
9223fi;
9224
9225 eval "$ac_cv_use_sash"
9226 if test "$no_cache" != 1; then
9227 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9228 fi
9229
9230 if test "$wxUSE_SASH" = yes; then
9231 echo "$as_me:$LINENO: result: yes" >&5
9232echo "${ECHO_T}yes" >&6
9233 else
9234 echo "$as_me:$LINENO: result: no" >&5
9235echo "${ECHO_T}no" >&6
9236 fi
9237
9238
9239 enablestring=
9240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9241echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9242 no_cache=0
9243 # Check whether --enable-scrollbar or --disable-scrollbar was given.
9244if test "${enable_scrollbar+set}" = set; then
9245 enableval="$enable_scrollbar"
9246
9247 if test "$enableval" = yes; then
9248 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9249 else
9250 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9251 fi
9252
9253else
9254
9255 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9256 if test "x$LINE" != x ; then
9257 eval "DEFAULT_$LINE"
9258 else
9259 no_cache=1
9260 fi
9261
9262 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9263
9264fi;
9265
9266 eval "$ac_cv_use_scrollbar"
9267 if test "$no_cache" != 1; then
9268 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9269 fi
9270
9271 if test "$wxUSE_SCROLLBAR" = yes; then
9272 echo "$as_me:$LINENO: result: yes" >&5
9273echo "${ECHO_T}yes" >&6
9274 else
9275 echo "$as_me:$LINENO: result: no" >&5
9276echo "${ECHO_T}no" >&6
9277 fi
9278
9279
9280 enablestring=
9281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9282echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9283 no_cache=0
9284 # Check whether --enable-slider or --disable-slider was given.
9285if test "${enable_slider+set}" = set; then
9286 enableval="$enable_slider"
9287
9288 if test "$enableval" = yes; then
9289 ac_cv_use_slider='wxUSE_SLIDER=yes'
9290 else
9291 ac_cv_use_slider='wxUSE_SLIDER=no'
9292 fi
9293
9294else
9295
9296 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9297 if test "x$LINE" != x ; then
9298 eval "DEFAULT_$LINE"
9299 else
9300 no_cache=1
9301 fi
9302
9303 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9304
9305fi;
9306
9307 eval "$ac_cv_use_slider"
9308 if test "$no_cache" != 1; then
9309 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9310 fi
9311
9312 if test "$wxUSE_SLIDER" = yes; then
9313 echo "$as_me:$LINENO: result: yes" >&5
9314echo "${ECHO_T}yes" >&6
9315 else
9316 echo "$as_me:$LINENO: result: no" >&5
9317echo "${ECHO_T}no" >&6
9318 fi
9319
9320
9321 enablestring=
9322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9323echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9324 no_cache=0
9325 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9326if test "${enable_spinbtn+set}" = set; then
9327 enableval="$enable_spinbtn"
9328
9329 if test "$enableval" = yes; then
9330 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9331 else
9332 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9333 fi
9334
9335else
9336
9337 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9338 if test "x$LINE" != x ; then
9339 eval "DEFAULT_$LINE"
9340 else
9341 no_cache=1
9342 fi
9343
9344 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9345
9346fi;
9347
9348 eval "$ac_cv_use_spinbtn"
9349 if test "$no_cache" != 1; then
9350 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9351 fi
9352
9353 if test "$wxUSE_SPINBTN" = yes; then
9354 echo "$as_me:$LINENO: result: yes" >&5
9355echo "${ECHO_T}yes" >&6
9356 else
9357 echo "$as_me:$LINENO: result: no" >&5
9358echo "${ECHO_T}no" >&6
9359 fi
9360
9361
9362 enablestring=
9363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9364echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9365 no_cache=0
9366 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9367if test "${enable_spinctrl+set}" = set; then
9368 enableval="$enable_spinctrl"
9369
9370 if test "$enableval" = yes; then
9371 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9372 else
9373 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9374 fi
9375
9376else
9377
9378 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9379 if test "x$LINE" != x ; then
9380 eval "DEFAULT_$LINE"
9381 else
9382 no_cache=1
9383 fi
9384
9385 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9386
9387fi;
9388
9389 eval "$ac_cv_use_spinctrl"
9390 if test "$no_cache" != 1; then
9391 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9392 fi
9393
9394 if test "$wxUSE_SPINCTRL" = yes; then
9395 echo "$as_me:$LINENO: result: yes" >&5
9396echo "${ECHO_T}yes" >&6
9397 else
9398 echo "$as_me:$LINENO: result: no" >&5
9399echo "${ECHO_T}no" >&6
9400 fi
9401
9402
9403 enablestring=
9404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9405echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9406 no_cache=0
9407 # Check whether --enable-splitter or --disable-splitter was given.
9408if test "${enable_splitter+set}" = set; then
9409 enableval="$enable_splitter"
9410
9411 if test "$enableval" = yes; then
9412 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9413 else
9414 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9415 fi
9416
9417else
9418
9419 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9420 if test "x$LINE" != x ; then
9421 eval "DEFAULT_$LINE"
9422 else
9423 no_cache=1
9424 fi
9425
9426 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9427
9428fi;
9429
9430 eval "$ac_cv_use_splitter"
9431 if test "$no_cache" != 1; then
9432 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9433 fi
9434
9435 if test "$wxUSE_SPLITTER" = yes; then
9436 echo "$as_me:$LINENO: result: yes" >&5
9437echo "${ECHO_T}yes" >&6
9438 else
9439 echo "$as_me:$LINENO: result: no" >&5
9440echo "${ECHO_T}no" >&6
9441 fi
9442
9443
9444 enablestring=
9445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9446echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9447 no_cache=0
9448 # Check whether --enable-statbmp or --disable-statbmp was given.
9449if test "${enable_statbmp+set}" = set; then
9450 enableval="$enable_statbmp"
9451
9452 if test "$enableval" = yes; then
9453 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9454 else
9455 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9456 fi
9457
9458else
9459
9460 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9461 if test "x$LINE" != x ; then
9462 eval "DEFAULT_$LINE"
9463 else
9464 no_cache=1
9465 fi
9466
9467 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9468
9469fi;
9470
9471 eval "$ac_cv_use_statbmp"
9472 if test "$no_cache" != 1; then
9473 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9474 fi
9475
9476 if test "$wxUSE_STATBMP" = yes; then
9477 echo "$as_me:$LINENO: result: yes" >&5
9478echo "${ECHO_T}yes" >&6
9479 else
9480 echo "$as_me:$LINENO: result: no" >&5
9481echo "${ECHO_T}no" >&6
9482 fi
9483
9484
9485 enablestring=
9486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9487echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9488 no_cache=0
9489 # Check whether --enable-statbox or --disable-statbox was given.
9490if test "${enable_statbox+set}" = set; then
9491 enableval="$enable_statbox"
9492
9493 if test "$enableval" = yes; then
9494 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9495 else
9496 ac_cv_use_statbox='wxUSE_STATBOX=no'
9497 fi
9498
9499else
9500
9501 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9502 if test "x$LINE" != x ; then
9503 eval "DEFAULT_$LINE"
9504 else
9505 no_cache=1
9506 fi
9507
9508 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9509
9510fi;
9511
9512 eval "$ac_cv_use_statbox"
9513 if test "$no_cache" != 1; then
9514 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9515 fi
9516
9517 if test "$wxUSE_STATBOX" = yes; then
9518 echo "$as_me:$LINENO: result: yes" >&5
9519echo "${ECHO_T}yes" >&6
9520 else
9521 echo "$as_me:$LINENO: result: no" >&5
9522echo "${ECHO_T}no" >&6
9523 fi
9524
9525
9526 enablestring=
9527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9528echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9529 no_cache=0
9530 # Check whether --enable-statline or --disable-statline was given.
9531if test "${enable_statline+set}" = set; then
9532 enableval="$enable_statline"
9533
9534 if test "$enableval" = yes; then
9535 ac_cv_use_statline='wxUSE_STATLINE=yes'
9536 else
9537 ac_cv_use_statline='wxUSE_STATLINE=no'
9538 fi
9539
9540else
9541
9542 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9543 if test "x$LINE" != x ; then
9544 eval "DEFAULT_$LINE"
9545 else
9546 no_cache=1
9547 fi
9548
9549 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9550
9551fi;
9552
9553 eval "$ac_cv_use_statline"
9554 if test "$no_cache" != 1; then
9555 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9556 fi
9557
9558 if test "$wxUSE_STATLINE" = yes; then
9559 echo "$as_me:$LINENO: result: yes" >&5
9560echo "${ECHO_T}yes" >&6
9561 else
9562 echo "$as_me:$LINENO: result: no" >&5
9563echo "${ECHO_T}no" >&6
9564 fi
9565
9566
9567 enablestring=
9568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9569echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9570 no_cache=0
9571 # Check whether --enable-stattext or --disable-stattext was given.
9572if test "${enable_stattext+set}" = set; then
9573 enableval="$enable_stattext"
9574
9575 if test "$enableval" = yes; then
9576 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9577 else
9578 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9579 fi
9580
9581else
9582
9583 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9584 if test "x$LINE" != x ; then
9585 eval "DEFAULT_$LINE"
9586 else
9587 no_cache=1
9588 fi
9589
9590 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9591
9592fi;
9593
9594 eval "$ac_cv_use_stattext"
9595 if test "$no_cache" != 1; then
9596 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9597 fi
9598
9599 if test "$wxUSE_STATTEXT" = yes; then
9600 echo "$as_me:$LINENO: result: yes" >&5
9601echo "${ECHO_T}yes" >&6
9602 else
9603 echo "$as_me:$LINENO: result: no" >&5
9604echo "${ECHO_T}no" >&6
9605 fi
9606
9607
9608 enablestring=
9609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9610echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9611 no_cache=0
9612 # Check whether --enable-statusbar or --disable-statusbar was given.
9613if test "${enable_statusbar+set}" = set; then
9614 enableval="$enable_statusbar"
9615
9616 if test "$enableval" = yes; then
9617 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9618 else
9619 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9620 fi
9621
9622else
9623
9624 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9625 if test "x$LINE" != x ; then
9626 eval "DEFAULT_$LINE"
9627 else
9628 no_cache=1
9629 fi
9630
9631 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9632
9633fi;
9634
9635 eval "$ac_cv_use_statusbar"
9636 if test "$no_cache" != 1; then
9637 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9638 fi
9639
9640 if test "$wxUSE_STATUSBAR" = yes; then
9641 echo "$as_me:$LINENO: result: yes" >&5
9642echo "${ECHO_T}yes" >&6
9643 else
9644 echo "$as_me:$LINENO: result: no" >&5
9645echo "${ECHO_T}no" >&6
9646 fi
9647
9648
9649 enablestring=
9650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9651echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9652 no_cache=0
9653 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9654if test "${enable_tabdialog+set}" = set; then
9655 enableval="$enable_tabdialog"
9656
9657 if test "$enableval" = yes; then
f10e38c4 9658 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9659 else
f10e38c4 9660 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9661 fi
9662
9663else
9664
f10e38c4 9665 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9666 if test "x$LINE" != x ; then
9667 eval "DEFAULT_$LINE"
9668 else
9669 no_cache=1
9670 fi
9671
f10e38c4 9672 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9673
9674fi;
9675
9676 eval "$ac_cv_use_tabdialog"
9677 if test "$no_cache" != 1; then
9678 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9679 fi
9680
f10e38c4 9681 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9682 echo "$as_me:$LINENO: result: yes" >&5
9683echo "${ECHO_T}yes" >&6
9684 else
9685 echo "$as_me:$LINENO: result: no" >&5
9686echo "${ECHO_T}no" >&6
9687 fi
9688
9689
9690 enablestring=
9691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9692echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9693 no_cache=0
9694 # Check whether --enable-textctrl or --disable-textctrl was given.
9695if test "${enable_textctrl+set}" = set; then
9696 enableval="$enable_textctrl"
9697
9698 if test "$enableval" = yes; then
9699 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9700 else
9701 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9702 fi
9703
9704else
9705
9706 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9707 if test "x$LINE" != x ; then
9708 eval "DEFAULT_$LINE"
9709 else
9710 no_cache=1
9711 fi
9712
9713 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9714
9715fi;
9716
9717 eval "$ac_cv_use_textctrl"
9718 if test "$no_cache" != 1; then
9719 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9720 fi
9721
9722 if test "$wxUSE_TEXTCTRL" = yes; then
9723 echo "$as_me:$LINENO: result: yes" >&5
9724echo "${ECHO_T}yes" >&6
9725 else
9726 echo "$as_me:$LINENO: result: no" >&5
9727echo "${ECHO_T}no" >&6
9728 fi
9729
9730
9731 enablestring=
9732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9733echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9734 no_cache=0
9735 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9736if test "${enable_togglebtn+set}" = set; then
9737 enableval="$enable_togglebtn"
9738
9739 if test "$enableval" = yes; then
9740 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9741 else
9742 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9743 fi
9744
9745else
9746
9747 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9748 if test "x$LINE" != x ; then
9749 eval "DEFAULT_$LINE"
9750 else
9751 no_cache=1
9752 fi
9753
9754 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9755
9756fi;
9757
9758 eval "$ac_cv_use_togglebtn"
9759 if test "$no_cache" != 1; then
9760 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9761 fi
9762
9763 if test "$wxUSE_TOGGLEBTN" = yes; then
9764 echo "$as_me:$LINENO: result: yes" >&5
9765echo "${ECHO_T}yes" >&6
9766 else
9767 echo "$as_me:$LINENO: result: no" >&5
9768echo "${ECHO_T}no" >&6
9769 fi
9770
9771
9772 enablestring=
9773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9774echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9775 no_cache=0
9776 # Check whether --enable-toolbar or --disable-toolbar was given.
9777if test "${enable_toolbar+set}" = set; then
9778 enableval="$enable_toolbar"
9779
9780 if test "$enableval" = yes; then
9781 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9782 else
9783 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9784 fi
9785
9786else
9787
9788 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9789 if test "x$LINE" != x ; then
9790 eval "DEFAULT_$LINE"
9791 else
9792 no_cache=1
9793 fi
9794
9795 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9796
9797fi;
9798
9799 eval "$ac_cv_use_toolbar"
9800 if test "$no_cache" != 1; then
9801 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9802 fi
9803
9804 if test "$wxUSE_TOOLBAR" = yes; then
9805 echo "$as_me:$LINENO: result: yes" >&5
9806echo "${ECHO_T}yes" >&6
9807 else
9808 echo "$as_me:$LINENO: result: no" >&5
9809echo "${ECHO_T}no" >&6
9810 fi
9811
9812
9813 enablestring=
9814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9815echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9816 no_cache=0
9817 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9818if test "${enable_tbarnative+set}" = set; then
9819 enableval="$enable_tbarnative"
9820
9821 if test "$enableval" = yes; then
9822 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9823 else
9824 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9825 fi
9826
9827else
9828
9829 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9830 if test "x$LINE" != x ; then
9831 eval "DEFAULT_$LINE"
9832 else
9833 no_cache=1
9834 fi
9835
9836 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9837
9838fi;
9839
9840 eval "$ac_cv_use_tbarnative"
9841 if test "$no_cache" != 1; then
9842 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9843 fi
9844
9845 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9846 echo "$as_me:$LINENO: result: yes" >&5
9847echo "${ECHO_T}yes" >&6
9848 else
9849 echo "$as_me:$LINENO: result: no" >&5
9850echo "${ECHO_T}no" >&6
9851 fi
9852
9853
0093c2fc
VZ
9854 enablestring=
9855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9856echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9857 no_cache=0
9858 # Check whether --enable-treebook or --disable-treebook was given.
9859if test "${enable_treebook+set}" = set; then
9860 enableval="$enable_treebook"
9861
9862 if test "$enableval" = yes; then
9863 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9864 else
9865 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9866 fi
9867
9868else
9869
9870 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9871 if test "x$LINE" != x ; then
9872 eval "DEFAULT_$LINE"
9873 else
9874 no_cache=1
9875 fi
9876
9877 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9878
9879fi;
9880
9881 eval "$ac_cv_use_treebook"
9882 if test "$no_cache" != 1; then
9883 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9884 fi
9885
9886 if test "$wxUSE_TREEBOOK" = yes; then
9887 echo "$as_me:$LINENO: result: yes" >&5
9888echo "${ECHO_T}yes" >&6
9889 else
9890 echo "$as_me:$LINENO: result: no" >&5
9891echo "${ECHO_T}no" >&6
9892 fi
9893
9894
5ec3bc43
JS
9895 enablestring=
9896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9897echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9898 no_cache=0
9899 # Check whether --enable-toolbook or --disable-toolbook was given.
9900if test "${enable_toolbook+set}" = set; then
9901 enableval="$enable_toolbook"
9902
9903 if test "$enableval" = yes; then
9904 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9905 else
9906 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9907 fi
9908
9909else
9910
9911 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9912 if test "x$LINE" != x ; then
9913 eval "DEFAULT_$LINE"
9914 else
9915 no_cache=1
9916 fi
9917
9918 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9919
9920fi;
9921
9922 eval "$ac_cv_use_toolbook"
9923 if test "$no_cache" != 1; then
9924 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9925 fi
9926
9927 if test "$wxUSE_TOOLBOOK" = yes; then
9928 echo "$as_me:$LINENO: result: yes" >&5
9929echo "${ECHO_T}yes" >&6
9930 else
9931 echo "$as_me:$LINENO: result: no" >&5
9932echo "${ECHO_T}no" >&6
9933 fi
9934
9935
a848cd7e
SC
9936 enablestring=
9937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9938echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9939 no_cache=0
9940 # Check whether --enable-treectrl or --disable-treectrl was given.
9941if test "${enable_treectrl+set}" = set; then
9942 enableval="$enable_treectrl"
9943
9944 if test "$enableval" = yes; then
9945 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9946 else
9947 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9948 fi
9949
9950else
9951
9952 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9953 if test "x$LINE" != x ; then
9954 eval "DEFAULT_$LINE"
9955 else
9956 no_cache=1
9957 fi
9958
9959 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9960
9961fi;
9962
9963 eval "$ac_cv_use_treectrl"
9964 if test "$no_cache" != 1; then
9965 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9966 fi
9967
9968 if test "$wxUSE_TREECTRL" = yes; then
9969 echo "$as_me:$LINENO: result: yes" >&5
9970echo "${ECHO_T}yes" >&6
9971 else
9972 echo "$as_me:$LINENO: result: no" >&5
9973echo "${ECHO_T}no" >&6
9974 fi
9975
9976
9977 enablestring=
9978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9979echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9980 no_cache=0
9981 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9982if test "${enable_tipwindow+set}" = set; then
9983 enableval="$enable_tipwindow"
9984
9985 if test "$enableval" = yes; then
9986 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9987 else
9988 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9989 fi
9990
9991else
9992
9993 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9994 if test "x$LINE" != x ; then
9995 eval "DEFAULT_$LINE"
9996 else
9997 no_cache=1
9998 fi
9999
10000 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
10001
10002fi;
10003
10004 eval "$ac_cv_use_tipwindow"
10005 if test "$no_cache" != 1; then
10006 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
10007 fi
10008
10009 if test "$wxUSE_TIPWINDOW" = yes; then
10010 echo "$as_me:$LINENO: result: yes" >&5
10011echo "${ECHO_T}yes" >&6
10012 else
10013 echo "$as_me:$LINENO: result: no" >&5
10014echo "${ECHO_T}no" >&6
10015 fi
10016
10017
10018 enablestring=
10019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
10020echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
10021 no_cache=0
10022 # Check whether --enable-popupwin or --disable-popupwin was given.
10023if test "${enable_popupwin+set}" = set; then
10024 enableval="$enable_popupwin"
10025
10026 if test "$enableval" = yes; then
10027 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
10028 else
10029 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
10030 fi
10031
10032else
10033
10034 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
10035 if test "x$LINE" != x ; then
10036 eval "DEFAULT_$LINE"
10037 else
10038 no_cache=1
10039 fi
10040
10041 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
10042
10043fi;
10044
10045 eval "$ac_cv_use_popupwin"
10046 if test "$no_cache" != 1; then
10047 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
10048 fi
10049
10050 if test "$wxUSE_POPUPWIN" = yes; then
10051 echo "$as_me:$LINENO: result: yes" >&5
10052echo "${ECHO_T}yes" >&6
10053 else
10054 echo "$as_me:$LINENO: result: no" >&5
10055echo "${ECHO_T}no" >&6
10056 fi
10057
10058
10059
10060
10061 enablestring=
10062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
10063echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
10064 no_cache=0
10065 # Check whether --enable-commondlg or --disable-commondlg was given.
10066if test "${enable_commondlg+set}" = set; then
10067 enableval="$enable_commondlg"
10068
10069 if test "$enableval" = yes; then
10070 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
10071 else
10072 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
10073 fi
10074
10075else
10076
10077 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
10078 if test "x$LINE" != x ; then
10079 eval "DEFAULT_$LINE"
10080 else
10081 no_cache=1
10082 fi
10083
10084 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
10085
10086fi;
10087
10088 eval "$ac_cv_use_commondlg"
10089 if test "$no_cache" != 1; then
10090 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
10091 fi
10092
10093 if test "$wxUSE_COMMONDLGS" = yes; then
10094 echo "$as_me:$LINENO: result: yes" >&5
10095echo "${ECHO_T}yes" >&6
10096 else
10097 echo "$as_me:$LINENO: result: no" >&5
10098echo "${ECHO_T}no" >&6
10099 fi
10100
10101
319c5ed4
VZ
10102 enablestring=
10103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
10104echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6
10105 no_cache=0
10106 # Check whether --enable-aboutdlg or --disable-aboutdlg was given.
10107if test "${enable_aboutdlg+set}" = set; then
10108 enableval="$enable_aboutdlg"
10109
10110 if test "$enableval" = yes; then
10111 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
10112 else
10113 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
10114 fi
10115
10116else
10117
10118 LINE=`grep "wxUSE_ABOUTDLG" ${wx_arg_cache_file}`
10119 if test "x$LINE" != x ; then
10120 eval "DEFAULT_$LINE"
10121 else
10122 no_cache=1
10123 fi
10124
10125 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG='$DEFAULT_wxUSE_ABOUTDLG
10126
10127fi;
10128
10129 eval "$ac_cv_use_aboutdlg"
10130 if test "$no_cache" != 1; then
10131 echo $ac_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
10132 fi
10133
10134 if test "$wxUSE_ABOUTDLG" = yes; then
10135 echo "$as_me:$LINENO: result: yes" >&5
10136echo "${ECHO_T}yes" >&6
10137 else
10138 echo "$as_me:$LINENO: result: no" >&5
10139echo "${ECHO_T}no" >&6
10140 fi
10141
10142
a848cd7e
SC
10143 enablestring=
10144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
10145echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
10146 no_cache=0
10147 # Check whether --enable-choicedlg or --disable-choicedlg was given.
10148if test "${enable_choicedlg+set}" = set; then
10149 enableval="$enable_choicedlg"
10150
10151 if test "$enableval" = yes; then
10152 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
10153 else
10154 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
10155 fi
10156
10157else
10158
10159 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
10160 if test "x$LINE" != x ; then
10161 eval "DEFAULT_$LINE"
10162 else
10163 no_cache=1
10164 fi
10165
10166 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
10167
10168fi;
10169
10170 eval "$ac_cv_use_choicedlg"
10171 if test "$no_cache" != 1; then
10172 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
10173 fi
10174
10175 if test "$wxUSE_CHOICEDLG" = yes; then
10176 echo "$as_me:$LINENO: result: yes" >&5
10177echo "${ECHO_T}yes" >&6
10178 else
10179 echo "$as_me:$LINENO: result: no" >&5
10180echo "${ECHO_T}no" >&6
10181 fi
10182
10183
10184 enablestring=
10185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
10186echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
10187 no_cache=0
10188 # Check whether --enable-coldlg or --disable-coldlg was given.
10189if test "${enable_coldlg+set}" = set; then
10190 enableval="$enable_coldlg"
10191
10192 if test "$enableval" = yes; then
10193 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
10194 else
10195 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
10196 fi
10197
10198else
10199
10200 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
10201 if test "x$LINE" != x ; then
10202 eval "DEFAULT_$LINE"
10203 else
10204 no_cache=1
10205 fi
10206
10207 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
10208
10209fi;
10210
10211 eval "$ac_cv_use_coldlg"
10212 if test "$no_cache" != 1; then
10213 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
10214 fi
10215
10216 if test "$wxUSE_COLOURDLG" = yes; then
10217 echo "$as_me:$LINENO: result: yes" >&5
10218echo "${ECHO_T}yes" >&6
10219 else
10220 echo "$as_me:$LINENO: result: no" >&5
10221echo "${ECHO_T}no" >&6
10222 fi
10223
10224
10225 enablestring=
10226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10227echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
10228 no_cache=0
10229 # Check whether --enable-filedlg or --disable-filedlg was given.
10230if test "${enable_filedlg+set}" = set; then
10231 enableval="$enable_filedlg"
10232
10233 if test "$enableval" = yes; then
10234 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
10235 else
10236 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
10237 fi
10238
10239else
10240
10241 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10242 if test "x$LINE" != x ; then
10243 eval "DEFAULT_$LINE"
10244 else
10245 no_cache=1
10246 fi
10247
10248 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10249
10250fi;
10251
10252 eval "$ac_cv_use_filedlg"
10253 if test "$no_cache" != 1; then
10254 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10255 fi
10256
10257 if test "$wxUSE_FILEDLG" = yes; then
10258 echo "$as_me:$LINENO: result: yes" >&5
10259echo "${ECHO_T}yes" >&6
10260 else
10261 echo "$as_me:$LINENO: result: no" >&5
10262echo "${ECHO_T}no" >&6
10263 fi
10264
10265
10266 enablestring=
10267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10268echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10269 no_cache=0
10270 # Check whether --enable-finddlg or --disable-finddlg was given.
10271if test "${enable_finddlg+set}" = set; then
10272 enableval="$enable_finddlg"
10273
10274 if test "$enableval" = yes; then
10275 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10276 else
10277 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10278 fi
10279
10280else
10281
10282 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10283 if test "x$LINE" != x ; then
10284 eval "DEFAULT_$LINE"
10285 else
10286 no_cache=1
10287 fi
10288
10289 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10290
10291fi;
10292
10293 eval "$ac_cv_use_finddlg"
10294 if test "$no_cache" != 1; then
10295 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10296 fi
10297
10298 if test "$wxUSE_FINDREPLDLG" = yes; then
10299 echo "$as_me:$LINENO: result: yes" >&5
10300echo "${ECHO_T}yes" >&6
10301 else
10302 echo "$as_me:$LINENO: result: no" >&5
10303echo "${ECHO_T}no" >&6
10304 fi
10305
10306
10307 enablestring=
10308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10309echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10310 no_cache=0
10311 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10312if test "${enable_fontdlg+set}" = set; then
10313 enableval="$enable_fontdlg"
10314
10315 if test "$enableval" = yes; then
10316 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10317 else
10318 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10319 fi
10320
10321else
10322
10323 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10324 if test "x$LINE" != x ; then
10325 eval "DEFAULT_$LINE"
10326 else
10327 no_cache=1
10328 fi
10329
10330 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10331
10332fi;
10333
10334 eval "$ac_cv_use_fontdlg"
10335 if test "$no_cache" != 1; then
10336 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10337 fi
10338
10339 if test "$wxUSE_FONTDLG" = yes; then
10340 echo "$as_me:$LINENO: result: yes" >&5
10341echo "${ECHO_T}yes" >&6
10342 else
10343 echo "$as_me:$LINENO: result: no" >&5
10344echo "${ECHO_T}no" >&6
10345 fi
10346
10347
10348 enablestring=
10349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10350echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10351 no_cache=0
10352 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10353if test "${enable_dirdlg+set}" = set; then
10354 enableval="$enable_dirdlg"
10355
10356 if test "$enableval" = yes; then
10357 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10358 else
10359 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10360 fi
10361
10362else
10363
10364 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10365 if test "x$LINE" != x ; then
10366 eval "DEFAULT_$LINE"
10367 else
10368 no_cache=1
10369 fi
10370
10371 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10372
10373fi;
10374
10375 eval "$ac_cv_use_dirdlg"
10376 if test "$no_cache" != 1; then
10377 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10378 fi
10379
10380 if test "$wxUSE_DIRDLG" = yes; then
10381 echo "$as_me:$LINENO: result: yes" >&5
10382echo "${ECHO_T}yes" >&6
10383 else
10384 echo "$as_me:$LINENO: result: no" >&5
10385echo "${ECHO_T}no" >&6
10386 fi
10387
10388
10389 enablestring=
10390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10391echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10392 no_cache=0
10393 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10394if test "${enable_msgdlg+set}" = set; then
10395 enableval="$enable_msgdlg"
10396
10397 if test "$enableval" = yes; then
10398 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10399 else
10400 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10401 fi
10402
10403else
10404
10405 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10406 if test "x$LINE" != x ; then
10407 eval "DEFAULT_$LINE"
10408 else
10409 no_cache=1
10410 fi
10411
10412 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10413
10414fi;
10415
10416 eval "$ac_cv_use_msgdlg"
10417 if test "$no_cache" != 1; then
10418 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10419 fi
10420
10421 if test "$wxUSE_MSGDLG" = yes; then
10422 echo "$as_me:$LINENO: result: yes" >&5
10423echo "${ECHO_T}yes" >&6
10424 else
10425 echo "$as_me:$LINENO: result: no" >&5
10426echo "${ECHO_T}no" >&6
10427 fi
10428
10429
10430 enablestring=
10431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10432echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10433 no_cache=0
10434 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10435if test "${enable_numberdlg+set}" = set; then
10436 enableval="$enable_numberdlg"
10437
10438 if test "$enableval" = yes; then
10439 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10440 else
10441 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10442 fi
10443
10444else
10445
10446 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10447 if test "x$LINE" != x ; then
10448 eval "DEFAULT_$LINE"
10449 else
10450 no_cache=1
10451 fi
10452
10453 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10454
10455fi;
10456
10457 eval "$ac_cv_use_numberdlg"
10458 if test "$no_cache" != 1; then
10459 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10460 fi
10461
10462 if test "$wxUSE_NUMBERDLG" = yes; then
10463 echo "$as_me:$LINENO: result: yes" >&5
10464echo "${ECHO_T}yes" >&6
10465 else
10466 echo "$as_me:$LINENO: result: no" >&5
10467echo "${ECHO_T}no" >&6
10468 fi
10469
10470
10471 enablestring=
10472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10473echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10474 no_cache=0
10475 # Check whether --enable-splash or --disable-splash was given.
10476if test "${enable_splash+set}" = set; then
10477 enableval="$enable_splash"
10478
10479 if test "$enableval" = yes; then
10480 ac_cv_use_splash='wxUSE_SPLASH=yes'
10481 else
10482 ac_cv_use_splash='wxUSE_SPLASH=no'
10483 fi
10484
10485else
10486
10487 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10488 if test "x$LINE" != x ; then
10489 eval "DEFAULT_$LINE"
10490 else
10491 no_cache=1
10492 fi
10493
10494 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10495
10496fi;
10497
10498 eval "$ac_cv_use_splash"
10499 if test "$no_cache" != 1; then
10500 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10501 fi
10502
10503 if test "$wxUSE_SPLASH" = yes; then
10504 echo "$as_me:$LINENO: result: yes" >&5
10505echo "${ECHO_T}yes" >&6
10506 else
10507 echo "$as_me:$LINENO: result: no" >&5
10508echo "${ECHO_T}no" >&6
10509 fi
10510
10511
10512 enablestring=
10513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10514echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10515 no_cache=0
10516 # Check whether --enable-textdlg or --disable-textdlg was given.
10517if test "${enable_textdlg+set}" = set; then
10518 enableval="$enable_textdlg"
10519
10520 if test "$enableval" = yes; then
10521 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10522 else
10523 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10524 fi
10525
10526else
10527
10528 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10529 if test "x$LINE" != x ; then
10530 eval "DEFAULT_$LINE"
10531 else
10532 no_cache=1
10533 fi
10534
10535 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10536
10537fi;
10538
10539 eval "$ac_cv_use_textdlg"
10540 if test "$no_cache" != 1; then
10541 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10542 fi
10543
10544 if test "$wxUSE_TEXTDLG" = yes; then
10545 echo "$as_me:$LINENO: result: yes" >&5
10546echo "${ECHO_T}yes" >&6
10547 else
10548 echo "$as_me:$LINENO: result: no" >&5
10549echo "${ECHO_T}no" >&6
10550 fi
10551
10552
10553 enablestring=
10554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10555echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10556 no_cache=0
10557 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10558if test "${enable_tipdlg+set}" = set; then
10559 enableval="$enable_tipdlg"
10560
10561 if test "$enableval" = yes; then
10562 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10563 else
10564 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10565 fi
10566
10567else
10568
10569 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10570 if test "x$LINE" != x ; then
10571 eval "DEFAULT_$LINE"
10572 else
10573 no_cache=1
10574 fi
10575
10576 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10577
10578fi;
10579
10580 eval "$ac_cv_use_tipdlg"
10581 if test "$no_cache" != 1; then
10582 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10583 fi
10584
10585 if test "$wxUSE_STARTUP_TIPS" = yes; then
10586 echo "$as_me:$LINENO: result: yes" >&5
10587echo "${ECHO_T}yes" >&6
10588 else
10589 echo "$as_me:$LINENO: result: no" >&5
10590echo "${ECHO_T}no" >&6
10591 fi
10592
10593
10594 enablestring=
10595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10596echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10597 no_cache=0
10598 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10599if test "${enable_progressdlg+set}" = set; then
10600 enableval="$enable_progressdlg"
10601
10602 if test "$enableval" = yes; then
10603 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10604 else
10605 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10606 fi
10607
10608else
10609
10610 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10611 if test "x$LINE" != x ; then
10612 eval "DEFAULT_$LINE"
10613 else
10614 no_cache=1
10615 fi
10616
10617 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10618
10619fi;
10620
10621 eval "$ac_cv_use_progressdlg"
10622 if test "$no_cache" != 1; then
10623 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10624 fi
10625
10626 if test "$wxUSE_PROGRESSDLG" = yes; then
10627 echo "$as_me:$LINENO: result: yes" >&5
10628echo "${ECHO_T}yes" >&6
10629 else
10630 echo "$as_me:$LINENO: result: no" >&5
10631echo "${ECHO_T}no" >&6
10632 fi
10633
10634
10635 enablestring=
10636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10637echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10638 no_cache=0
10639 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10640if test "${enable_wizarddlg+set}" = set; then
10641 enableval="$enable_wizarddlg"
10642
10643 if test "$enableval" = yes; then
10644 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10645 else
10646 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10647 fi
10648
10649else
10650
10651 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10652 if test "x$LINE" != x ; then
10653 eval "DEFAULT_$LINE"
10654 else
10655 no_cache=1
10656 fi
10657
10658 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10659
10660fi;
10661
10662 eval "$ac_cv_use_wizarddlg"
10663 if test "$no_cache" != 1; then
10664 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10665 fi
10666
10667 if test "$wxUSE_WIZARDDLG" = yes; then
10668 echo "$as_me:$LINENO: result: yes" >&5
10669echo "${ECHO_T}yes" >&6
10670 else
10671 echo "$as_me:$LINENO: result: no" >&5
10672echo "${ECHO_T}no" >&6
10673 fi
10674
10675
10676
10677
10678 enablestring=
10679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10680echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10681 no_cache=0
10682 # Check whether --enable-menus or --disable-menus was given.
10683if test "${enable_menus+set}" = set; then
10684 enableval="$enable_menus"
10685
10686 if test "$enableval" = yes; then
10687 ac_cv_use_menus='wxUSE_MENUS=yes'
10688 else
10689 ac_cv_use_menus='wxUSE_MENUS=no'
10690 fi
10691
10692else
10693
10694 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10695 if test "x$LINE" != x ; then
10696 eval "DEFAULT_$LINE"
10697 else
10698 no_cache=1
10699 fi
10700
10701 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10702
10703fi;
10704
10705 eval "$ac_cv_use_menus"
10706 if test "$no_cache" != 1; then
10707 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10708 fi
10709
10710 if test "$wxUSE_MENUS" = yes; then
10711 echo "$as_me:$LINENO: result: yes" >&5
10712echo "${ECHO_T}yes" >&6
10713 else
10714 echo "$as_me:$LINENO: result: no" >&5
10715echo "${ECHO_T}no" >&6
10716 fi
10717
10718
10719 enablestring=
10720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10721echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10722 no_cache=0
10723 # Check whether --enable-miniframe or --disable-miniframe was given.
10724if test "${enable_miniframe+set}" = set; then
10725 enableval="$enable_miniframe"
10726
10727 if test "$enableval" = yes; then
10728 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10729 else
10730 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10731 fi
10732
10733else
10734
10735 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10736 if test "x$LINE" != x ; then
10737 eval "DEFAULT_$LINE"
10738 else
10739 no_cache=1
10740 fi
10741
10742 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10743
10744fi;
10745
10746 eval "$ac_cv_use_miniframe"
10747 if test "$no_cache" != 1; then
10748 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10749 fi
10750
10751 if test "$wxUSE_MINIFRAME" = yes; then
10752 echo "$as_me:$LINENO: result: yes" >&5
10753echo "${ECHO_T}yes" >&6
10754 else
10755 echo "$as_me:$LINENO: result: no" >&5
10756echo "${ECHO_T}no" >&6
10757 fi
10758
10759
10760 enablestring=
10761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10762echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10763 no_cache=0
10764 # Check whether --enable-tooltips or --disable-tooltips was given.
10765if test "${enable_tooltips+set}" = set; then
10766 enableval="$enable_tooltips"
10767
10768 if test "$enableval" = yes; then
10769 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10770 else
10771 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10772 fi
10773
10774else
10775
10776 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10777 if test "x$LINE" != x ; then
10778 eval "DEFAULT_$LINE"
10779 else
10780 no_cache=1
10781 fi
10782
10783 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10784
10785fi;
10786
10787 eval "$ac_cv_use_tooltips"
10788 if test "$no_cache" != 1; then
10789 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10790 fi
10791
10792 if test "$wxUSE_TOOLTIPS" = yes; then
10793 echo "$as_me:$LINENO: result: yes" >&5
10794echo "${ECHO_T}yes" >&6
10795 else
10796 echo "$as_me:$LINENO: result: no" >&5
10797echo "${ECHO_T}no" >&6
10798 fi
10799
10800
10801 enablestring=
10802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10803echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10804 no_cache=0
10805 # Check whether --enable-splines or --disable-splines was given.
10806if test "${enable_splines+set}" = set; then
10807 enableval="$enable_splines"
10808
10809 if test "$enableval" = yes; then
10810 ac_cv_use_splines='wxUSE_SPLINES=yes'
10811 else
10812 ac_cv_use_splines='wxUSE_SPLINES=no'
10813 fi
10814
10815else
10816
10817 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10818 if test "x$LINE" != x ; then
10819 eval "DEFAULT_$LINE"
10820 else
10821 no_cache=1
10822 fi
10823
10824 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10825
10826fi;
10827
10828 eval "$ac_cv_use_splines"
10829 if test "$no_cache" != 1; then
10830 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10831 fi
10832
10833 if test "$wxUSE_SPLINES" = yes; then
10834 echo "$as_me:$LINENO: result: yes" >&5
10835echo "${ECHO_T}yes" >&6
10836 else
10837 echo "$as_me:$LINENO: result: no" >&5
10838echo "${ECHO_T}no" >&6
10839 fi
10840
10841
fbe2ca43
SN
10842 enablestring=
10843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10844echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10845 no_cache=0
10846 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10847if test "${enable_mousewheel+set}" = set; then
10848 enableval="$enable_mousewheel"
10849
10850 if test "$enableval" = yes; then
10851 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10852 else
10853 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10854 fi
10855
10856else
10857
10858 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10859 if test "x$LINE" != x ; then
10860 eval "DEFAULT_$LINE"
10861 else
10862 no_cache=1
10863 fi
10864
10865 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10866
10867fi;
10868
10869 eval "$ac_cv_use_mousewheel"
10870 if test "$no_cache" != 1; then
10871 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10872 fi
10873
10874 if test "$wxUSE_MOUSEWHEEL" = yes; then
10875 echo "$as_me:$LINENO: result: yes" >&5
10876echo "${ECHO_T}yes" >&6
10877 else
10878 echo "$as_me:$LINENO: result: no" >&5
10879echo "${ECHO_T}no" >&6
10880 fi
10881
10882
a848cd7e
SC
10883 enablestring=
10884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10885echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10886 no_cache=0
10887 # Check whether --enable-validators or --disable-validators was given.
10888if test "${enable_validators+set}" = set; then
10889 enableval="$enable_validators"
10890
10891 if test "$enableval" = yes; then
10892 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10893 else
10894 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10895 fi
10896
10897else
10898
10899 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10900 if test "x$LINE" != x ; then
10901 eval "DEFAULT_$LINE"
10902 else
10903 no_cache=1
10904 fi
10905
10906 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10907
10908fi;
10909
10910 eval "$ac_cv_use_validators"
10911 if test "$no_cache" != 1; then
10912 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10913 fi
10914
10915 if test "$wxUSE_VALIDATORS" = yes; then
10916 echo "$as_me:$LINENO: result: yes" >&5
10917echo "${ECHO_T}yes" >&6
10918 else
10919 echo "$as_me:$LINENO: result: no" >&5
10920echo "${ECHO_T}no" >&6
10921 fi
10922
10923
10924 enablestring=
10925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10926echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10927 no_cache=0
10928 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10929if test "${enable_busyinfo+set}" = set; then
10930 enableval="$enable_busyinfo"
10931
10932 if test "$enableval" = yes; then
10933 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10934 else
10935 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10936 fi
10937
10938else
10939
10940 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10941 if test "x$LINE" != x ; then
10942 eval "DEFAULT_$LINE"
10943 else
10944 no_cache=1
10945 fi
10946
10947 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10948
10949fi;
10950
10951 eval "$ac_cv_use_busyinfo"
10952 if test "$no_cache" != 1; then
10953 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10954 fi
10955
10956 if test "$wxUSE_BUSYINFO" = yes; then
10957 echo "$as_me:$LINENO: result: yes" >&5
10958echo "${ECHO_T}yes" >&6
10959 else
10960 echo "$as_me:$LINENO: result: no" >&5
10961echo "${ECHO_T}no" >&6
10962 fi
10963
10964
10965 enablestring=
10966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10967echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10968 no_cache=0
10969 # Check whether --enable-joystick or --disable-joystick was given.
10970if test "${enable_joystick+set}" = set; then
10971 enableval="$enable_joystick"
10972
10973 if test "$enableval" = yes; then
10974 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10975 else
10976 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10977 fi
10978
10979else
10980
10981 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10982 if test "x$LINE" != x ; then
10983 eval "DEFAULT_$LINE"
10984 else
10985 no_cache=1
10986 fi
10987
10988 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10989
10990fi;
10991
10992 eval "$ac_cv_use_joystick"
10993 if test "$no_cache" != 1; then
10994 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10995 fi
10996
10997 if test "$wxUSE_JOYSTICK" = yes; then
10998 echo "$as_me:$LINENO: result: yes" >&5
10999echo "${ECHO_T}yes" >&6
11000 else
11001 echo "$as_me:$LINENO: result: no" >&5
11002echo "${ECHO_T}no" >&6
11003 fi
11004
11005
11006 enablestring=
11007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
11008echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
11009 no_cache=0
11010 # Check whether --enable-metafile or --disable-metafile was given.
11011if test "${enable_metafile+set}" = set; then
11012 enableval="$enable_metafile"
11013
11014 if test "$enableval" = yes; then
11015 ac_cv_use_metafile='wxUSE_METAFILE=yes'
11016 else
11017 ac_cv_use_metafile='wxUSE_METAFILE=no'
11018 fi
11019
11020else
11021
11022 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
11023 if test "x$LINE" != x ; then
11024 eval "DEFAULT_$LINE"
11025 else
11026 no_cache=1
11027 fi
11028
11029 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
11030
11031fi;
11032
11033 eval "$ac_cv_use_metafile"
11034 if test "$no_cache" != 1; then
11035 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
11036 fi
11037
11038 if test "$wxUSE_METAFILE" = yes; then
11039 echo "$as_me:$LINENO: result: yes" >&5
11040echo "${ECHO_T}yes" >&6
11041 else
11042 echo "$as_me:$LINENO: result: no" >&5
11043echo "${ECHO_T}no" >&6
11044 fi
11045
11046
11047 enablestring=
11048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
11049echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
11050 no_cache=0
11051 # Check whether --enable-dragimage or --disable-dragimage was given.
11052if test "${enable_dragimage+set}" = set; then
11053 enableval="$enable_dragimage"
11054
11055 if test "$enableval" = yes; then
11056 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
11057 else
11058 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
11059 fi
11060
11061else
11062
11063 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
11064 if test "x$LINE" != x ; then
11065 eval "DEFAULT_$LINE"
11066 else
11067 no_cache=1
11068 fi
11069
11070 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
11071
11072fi;
11073
11074 eval "$ac_cv_use_dragimage"
11075 if test "$no_cache" != 1; then
11076 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
11077 fi
11078
11079 if test "$wxUSE_DRAGIMAGE" = yes; then
11080 echo "$as_me:$LINENO: result: yes" >&5
11081echo "${ECHO_T}yes" >&6
11082 else
11083 echo "$as_me:$LINENO: result: no" >&5
11084echo "${ECHO_T}no" >&6
11085 fi
11086
11087
11088 enablestring=
11089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
11090echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
11091 no_cache=0
11092 # Check whether --enable-accessibility or --disable-accessibility was given.
11093if test "${enable_accessibility+set}" = set; then
11094 enableval="$enable_accessibility"
11095
11096 if test "$enableval" = yes; then
11097 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
11098 else
11099 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
11100 fi
11101
11102else
11103
11104 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
11105 if test "x$LINE" != x ; then
11106 eval "DEFAULT_$LINE"
11107 else
11108 no_cache=1
11109 fi
11110
11111 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
11112
11113fi;
11114
11115 eval "$ac_cv_use_accessibility"
11116 if test "$no_cache" != 1; then
11117 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
11118 fi
11119
11120 if test "$wxUSE_ACCESSIBILITY" = yes; then
11121 echo "$as_me:$LINENO: result: yes" >&5
11122echo "${ECHO_T}yes" >&6
11123 else
11124 echo "$as_me:$LINENO: result: no" >&5
11125echo "${ECHO_T}no" >&6
11126 fi
11127
11128
38b4a946
VZ
11129if test "$wxUSE_MSW" = "1"; then
11130
11131 enablestring=
11132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
11133echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
11134 no_cache=0
11135 # Check whether --enable-dccache or --disable-dccache was given.
11136if test "${enable_dccache+set}" = set; then
11137 enableval="$enable_dccache"
11138
11139 if test "$enableval" = yes; then
11140 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
11141 else
11142 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
11143 fi
11144
11145else
11146
11147 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
11148 if test "x$LINE" != x ; then
11149 eval "DEFAULT_$LINE"
11150 else
11151 no_cache=1
11152 fi
11153
11154 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
11155
11156fi;
11157
11158 eval "$ac_cv_use_dccache"
11159 if test "$no_cache" != 1; then
11160 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
11161 fi
11162
11163 if test "$wxUSE_DC_CACHEING" = yes; then
11164 echo "$as_me:$LINENO: result: yes" >&5
11165echo "${ECHO_T}yes" >&6
11166 else
11167 echo "$as_me:$LINENO: result: no" >&5
11168echo "${ECHO_T}no" >&6
11169 fi
11170
11171fi
11172
a848cd7e
SC
11173
11174
11175 enablestring=
11176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
11177echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
11178 no_cache=0
11179 # Check whether --enable-palette or --disable-palette was given.
11180if test "${enable_palette+set}" = set; then
11181 enableval="$enable_palette"
11182
11183 if test "$enableval" = yes; then
11184 ac_cv_use_palette='wxUSE_PALETTE=yes'
11185 else
11186 ac_cv_use_palette='wxUSE_PALETTE=no'
11187 fi
11188
11189else
11190
11191 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
11192 if test "x$LINE" != x ; then
11193 eval "DEFAULT_$LINE"
11194 else
11195 no_cache=1
11196 fi
11197
11198 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
11199
11200fi;
11201
11202 eval "$ac_cv_use_palette"
11203 if test "$no_cache" != 1; then
11204 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
11205 fi
11206
11207 if test "$wxUSE_PALETTE" = yes; then
11208 echo "$as_me:$LINENO: result: yes" >&5
11209echo "${ECHO_T}yes" >&6
11210 else
11211 echo "$as_me:$LINENO: result: no" >&5
11212echo "${ECHO_T}no" >&6
11213 fi
11214
11215
11216 enablestring=
11217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
11218echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
11219 no_cache=0
11220 # Check whether --enable-image or --disable-image was given.
11221if test "${enable_image+set}" = set; then
11222 enableval="$enable_image"
11223
11224 if test "$enableval" = yes; then
11225 ac_cv_use_image='wxUSE_IMAGE=yes'
11226 else
11227 ac_cv_use_image='wxUSE_IMAGE=no'
11228 fi
11229
11230else
11231
11232 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11233 if test "x$LINE" != x ; then
11234 eval "DEFAULT_$LINE"
11235 else
11236 no_cache=1
11237 fi
11238
11239 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11240
11241fi;
11242
11243 eval "$ac_cv_use_image"
11244 if test "$no_cache" != 1; then
11245 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11246 fi
11247
11248 if test "$wxUSE_IMAGE" = yes; then
11249 echo "$as_me:$LINENO: result: yes" >&5
11250echo "${ECHO_T}yes" >&6
11251 else
11252 echo "$as_me:$LINENO: result: no" >&5
11253echo "${ECHO_T}no" >&6
11254 fi
11255
11256
11257 enablestring=
11258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11259echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11260 no_cache=0
11261 # Check whether --enable-gif or --disable-gif was given.
11262if test "${enable_gif+set}" = set; then
11263 enableval="$enable_gif"
11264
11265 if test "$enableval" = yes; then
11266 ac_cv_use_gif='wxUSE_GIF=yes'
11267 else
11268 ac_cv_use_gif='wxUSE_GIF=no'
11269 fi
11270
11271else
11272
11273 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11274 if test "x$LINE" != x ; then
11275 eval "DEFAULT_$LINE"
11276 else
11277 no_cache=1
11278 fi
11279
11280 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11281
11282fi;
11283
11284 eval "$ac_cv_use_gif"
11285 if test "$no_cache" != 1; then
11286 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11287 fi
11288
11289 if test "$wxUSE_GIF" = yes; then
11290 echo "$as_me:$LINENO: result: yes" >&5
11291echo "${ECHO_T}yes" >&6
11292 else
11293 echo "$as_me:$LINENO: result: no" >&5
11294echo "${ECHO_T}no" >&6
11295 fi
11296
11297
11298 enablestring=
11299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11300echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11301 no_cache=0
11302 # Check whether --enable-pcx or --disable-pcx was given.
11303if test "${enable_pcx+set}" = set; then
11304 enableval="$enable_pcx"
11305
11306 if test "$enableval" = yes; then
11307 ac_cv_use_pcx='wxUSE_PCX=yes'
11308 else
11309 ac_cv_use_pcx='wxUSE_PCX=no'
11310 fi
11311
11312else
11313
11314 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11315 if test "x$LINE" != x ; then
11316 eval "DEFAULT_$LINE"
11317 else
11318 no_cache=1
11319 fi
11320
11321 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11322
11323fi;
11324
11325 eval "$ac_cv_use_pcx"
11326 if test "$no_cache" != 1; then
11327 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11328 fi
11329
11330 if test "$wxUSE_PCX" = yes; then
11331 echo "$as_me:$LINENO: result: yes" >&5
11332echo "${ECHO_T}yes" >&6
11333 else
11334 echo "$as_me:$LINENO: result: no" >&5
11335echo "${ECHO_T}no" >&6
11336 fi
11337
11338
11339 enablestring=
11340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11341echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11342 no_cache=0
11343 # Check whether --enable-iff or --disable-iff was given.
11344if test "${enable_iff+set}" = set; then
11345 enableval="$enable_iff"
11346
11347 if test "$enableval" = yes; then
11348 ac_cv_use_iff='wxUSE_IFF=yes'
11349 else
11350 ac_cv_use_iff='wxUSE_IFF=no'
11351 fi
11352
11353else
11354
11355 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11356 if test "x$LINE" != x ; then
11357 eval "DEFAULT_$LINE"
11358 else
11359 no_cache=1
11360 fi
11361
11362 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11363
11364fi;
11365
11366 eval "$ac_cv_use_iff"
11367 if test "$no_cache" != 1; then
11368 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11369 fi
11370
11371 if test "$wxUSE_IFF" = yes; then
11372 echo "$as_me:$LINENO: result: yes" >&5
11373echo "${ECHO_T}yes" >&6
11374 else
11375 echo "$as_me:$LINENO: result: no" >&5
11376echo "${ECHO_T}no" >&6
11377 fi
11378
11379
11380 enablestring=
11381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11382echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11383 no_cache=0
11384 # Check whether --enable-pnm or --disable-pnm was given.
11385if test "${enable_pnm+set}" = set; then
11386 enableval="$enable_pnm"
11387
11388 if test "$enableval" = yes; then
11389 ac_cv_use_pnm='wxUSE_PNM=yes'
11390 else
11391 ac_cv_use_pnm='wxUSE_PNM=no'
11392 fi
11393
11394else
11395
11396 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11397 if test "x$LINE" != x ; then
11398 eval "DEFAULT_$LINE"
11399 else
11400 no_cache=1
11401 fi
11402
11403 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11404
11405fi;
11406
11407 eval "$ac_cv_use_pnm"
11408 if test "$no_cache" != 1; then
11409 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11410 fi
11411
11412 if test "$wxUSE_PNM" = yes; then
11413 echo "$as_me:$LINENO: result: yes" >&5
11414echo "${ECHO_T}yes" >&6
11415 else
11416 echo "$as_me:$LINENO: result: no" >&5
11417echo "${ECHO_T}no" >&6
11418 fi
11419
11420
11421 enablestring=
11422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11423echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11424 no_cache=0
11425 # Check whether --enable-xpm or --disable-xpm was given.
11426if test "${enable_xpm+set}" = set; then
11427 enableval="$enable_xpm"
11428
11429 if test "$enableval" = yes; then
11430 ac_cv_use_xpm='wxUSE_XPM=yes'
11431 else
11432 ac_cv_use_xpm='wxUSE_XPM=no'
11433 fi
11434
11435else
11436
11437 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11438 if test "x$LINE" != x ; then
11439 eval "DEFAULT_$LINE"
11440 else
11441 no_cache=1
11442 fi
11443
11444 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11445
11446fi;
11447
11448 eval "$ac_cv_use_xpm"
11449 if test "$no_cache" != 1; then
11450 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11451 fi
11452
11453 if test "$wxUSE_XPM" = yes; then
11454 echo "$as_me:$LINENO: result: yes" >&5
11455echo "${ECHO_T}yes" >&6
11456 else
11457 echo "$as_me:$LINENO: result: no" >&5
11458echo "${ECHO_T}no" >&6
11459 fi
11460
11461
11462 enablestring=
11463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11464echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11465 no_cache=0
11466 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11467if test "${enable_ico_cur+set}" = set; then
11468 enableval="$enable_ico_cur"
11469
11470 if test "$enableval" = yes; then
11471 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11472 else
11473 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11474 fi
11475
11476else
11477
11478 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11479 if test "x$LINE" != x ; then
11480 eval "DEFAULT_$LINE"
11481 else
11482 no_cache=1
11483 fi
11484
11485 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11486
11487fi;
11488
11489 eval "$ac_cv_use_ico_cur"
11490 if test "$no_cache" != 1; then
11491 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11492 fi
11493
11494 if test "$wxUSE_ICO_CUR" = yes; then
11495 echo "$as_me:$LINENO: result: yes" >&5
11496echo "${ECHO_T}yes" >&6
11497 else
11498 echo "$as_me:$LINENO: result: no" >&5
11499echo "${ECHO_T}no" >&6
11500 fi
11501
11502
11503fi
11504
11505
11506
ceec2216
RL
11507# Check whether --with-flavour or --without-flavour was given.
11508if test "${with_flavour+set}" = set; then
11509 withval="$with_flavour"
11510 WX_FLAVOUR="$withval"
11511fi;
11512
11513
11514
a848cd7e
SC
11515 enablestring=
11516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11517echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11518 no_cache=0
11519 # Check whether --enable-official_build or --disable-official_build was given.
11520if test "${enable_official_build+set}" = set; then
11521 enableval="$enable_official_build"
11522
11523 if test "$enableval" = yes; then
11524 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11525 else
11526 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11527 fi
11528
11529else
11530
11531 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11532 if test "x$LINE" != x ; then
11533 eval "DEFAULT_$LINE"
11534 else
11535 no_cache=1
11536 fi
11537
11538 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11539
11540fi;
11541
11542 eval "$ac_cv_use_official_build"
11543 if test "$no_cache" != 1; then
11544 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11545 fi
11546
11547 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11548 echo "$as_me:$LINENO: result: yes" >&5
11549echo "${ECHO_T}yes" >&6
11550 else
11551 echo "$as_me:$LINENO: result: no" >&5
11552echo "${ECHO_T}no" >&6
11553 fi
11554
11555# Check whether --enable-vendor or --disable-vendor was given.
11556if test "${enable_vendor+set}" = set; then
11557 enableval="$enable_vendor"
11558 VENDOR="$enableval"
11559fi;
11560if test "x$VENDOR" = "x"; then
11561 VENDOR="custom"
11562fi
11563
a848cd7e
SC
11564
11565
11566
11567 echo "saving argument cache $wx_arg_cache_file"
11568 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11569
11570
11571
11572echo "$as_me:$LINENO: checking for toolkit" >&5
11573echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11574
11575# In Wine, we need to default to MSW, not GTK or MOTIF
11576if test "$wxUSE_WINE" = "yes"; then
11577 DEFAULT_DEFAULT_wxUSE_GTK=0
11578 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11579 DEFAULT_DEFAULT_wxUSE_MSW=1
11580 wxUSE_SHARED=no
11581fi
11582
f597b41c 11583
a848cd7e
SC
11584if test "$wxUSE_GUI" = "yes"; then
11585
11586 if test "$USE_BEOS" = 1; then
11587 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11588echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11589 { (exit 1); exit 1; }; }
11590 fi
11591
11592 if test "$TOOLKIT_GIVEN" = 1; then
11593 for toolkit in `echo $ALL_TOOLKITS`; do
11594 var=wxUSE_$toolkit
11595 eval "value=\$${var}"
f34ca037
MW
11596 if test "x$value" = "xno"; then
11597 eval "$var=0"
11598 elif test "x$value" != "x"; then
11599 eval "$var=1"
11600 fi
11601
11602 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11603 eval "wx${toolkit}_VERSION=$value"
11604 fi
a848cd7e
SC
11605 done
11606 else
11607 for toolkit in `echo $ALL_TOOLKITS`; do
11608 if test "$has_toolkit_in_cache" != 1; then
11609 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11610 else
11611 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11612
11613 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11614 if test "x$version" != "x"; then
11615 eval "wx${toolkit}_VERSION=$version"
11616 fi
a848cd7e
SC
11617 fi
11618 eval "wxUSE_$toolkit=\$${var}"
11619 done
11620 fi
11621
11622 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
b3c86150 11623 + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
a848cd7e
SC
11624 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11625
11626 case "${host}" in
11627 *-pc-os2_emx | *-pc-os2-emx )
11628 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11629 esac
11630
11631 case "$NUM_TOOLKITS" in
11632 1)
11633 ;;
11634 0)
11635 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11636echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11637 { (exit 1); exit 1; }; }
11638 ;;
11639 *)
11640 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11641echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11642 { (exit 1); exit 1; }; }
11643 esac
11644
f34ca037
MW
11645 # to be removed when --disable-gtk2 isn't needed
11646 if test "x$wxUSE_GTK2" = "xyes"; then
11647 wxGTK_VERSION=2
11648 elif test "x$wxUSE_GTK2" = "xno"; then
11649 wxGTK_VERSION=1
11650 fi
11651
a848cd7e
SC
11652 for toolkit in `echo $ALL_TOOLKITS`; do
11653 var=wxUSE_$toolkit
11654 eval "value=\$${var}"
11655 if test "x$value" != x; then
11656 cache_var=CACHE_$toolkit
11657 eval "cache=\$${cache_var}"
11658 if test "$cache" = 1; then
11659 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11660 eval "version=\$wx${toolkit}_VERSION"
11661 if test "x$version" != "x"; then
11662 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11663 fi
a848cd7e
SC
11664 fi
11665 if test "$value" = 1; then
11666 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11667 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11668echo "${ECHO_T}$toolkit_echo" >&6
11669 fi
11670 fi
11671 done
11672else
11673 if test "x$host_alias" != "x"; then
11674 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11675echo "${ECHO_T}base ($host_alias hosted) only" >&6
11676 else
11677 echo "$as_me:$LINENO: result: base only" >&5
11678echo "${ECHO_T}base only" >&6
11679 fi
11680fi
11681
11682wants_win32=0
11683doesnt_want_win32=0
11684case "${host}" in
11685 *-*-cygwin*)
11686 if test "$wxUSE_MSW" = 1 ; then
11687 wants_win32=1
7275146d 11688 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11689 else
11690 doesnt_want_win32=1
11691 fi
11692 ;;
11693 *-*-mingw*)
11694 wants_win32=1
11695 ;;
11696esac
11697
11698if test "$wxUSE_WINE" = "yes"; then
11699 wants_win32=1
11700 CC=winegcc
11701 CXX=wineg++
a848cd7e
SC
11702 LDFLAGS_GUI="-mwindows"
11703fi
11704
11705if test "$wants_win32" = 1 ; then
11706 USE_UNIX=0
11707 USE_WIN32=1
11708 cat >>confdefs.h <<\_ACEOF
11709#define __WIN32__ 1
11710_ACEOF
11711
11712 cat >>confdefs.h <<\_ACEOF
11713#define __WIN95__ 1
11714_ACEOF
11715
11716 cat >>confdefs.h <<\_ACEOF
11717#define __WINDOWS__ 1
11718_ACEOF
11719
11720 cat >>confdefs.h <<\_ACEOF
11721#define __GNUWIN32__ 1
11722_ACEOF
11723
11724 cat >>confdefs.h <<\_ACEOF
11725#define STRICT 1
11726_ACEOF
11727
11728 cat >>confdefs.h <<\_ACEOF
11729#define WINVER 0x0400
11730_ACEOF
11731
11732fi
11733if test "$doesnt_want_win32" = 1 ; then
11734 USE_UNIX=1
11735 USE_WIN32=0
11736fi
11737
11738if test "$USE_UNIX" = 1 ; then
11739 wxUSE_UNIX=yes
11740 cat >>confdefs.h <<\_ACEOF
11741#define __UNIX__ 1
11742_ACEOF
11743
11744fi
11745
11746
11747cat >confcache <<\_ACEOF
11748# This file is a shell script that caches the results of configure
11749# tests run on this system so they can be shared between configure
11750# scripts and configure runs, see configure's option --config-cache.
11751# It is not useful on other systems. If it contains results you don't
11752# want to keep, you may remove or edit it.
11753#
11754# config.status only pays attention to the cache file if you give it
11755# the --recheck option to rerun configure.
11756#
11757# `ac_cv_env_foo' variables (set or unset) will be overridden when
11758# loading this file, other *unset* `ac_cv_foo' will be assigned the
11759# following values.
11760
11761_ACEOF
11762
11763# The following way of writing the cache mishandles newlines in values,
11764# but we know of no workaround that is simple, portable, and efficient.
11765# So, don't put newlines in cache variables' values.
11766# Ultrix sh set writes to stderr and can't be redirected directly,
11767# and sets the high bit in the cache file unless we assign to the vars.
11768{
11769 (set) 2>&1 |
11770 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11771 *ac_space=\ *)
11772 # `set' does not quote correctly, so add quotes (double-quote
11773 # substitution turns \\\\ into \\, and sed turns \\ into \).
11774 sed -n \
ac1cb8d3
VS
11775 "s/'/'\\\\''/g;
11776 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11777 ;;
11778 *)
11779 # `set' quotes correctly as required by POSIX, so do not add quotes.
11780 sed -n \
ac1cb8d3 11781 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11782 ;;
11783 esac;
11784} |
11785 sed '
11786 t clear
11787 : clear
11788 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11789 t end
11790 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11791 : end' >>confcache
11792if diff $cache_file confcache >/dev/null 2>&1; then :; else
11793 if test -w $cache_file; then
11794 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11795 cat confcache >$cache_file
11796 else
11797 echo "not updating unwritable cache $cache_file"
11798 fi
11799fi
11800rm -f confcache
11801
a848cd7e 11802CFLAGS=${CFLAGS:=}
6dcfc289
DE
11803
11804
3006edc0 11805
6dcfc289 11806 ac_ext=c
a848cd7e
SC
11807ac_cpp='$CPP $CPPFLAGS'
11808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11810ac_compiler_gnu=$ac_cv_c_compiler_gnu
11811if test -n "$ac_tool_prefix"; then
11812 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11813set dummy ${ac_tool_prefix}gcc; ac_word=$2
11814echo "$as_me:$LINENO: checking for $ac_word" >&5
11815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11816if test "${ac_cv_prog_CC+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11818else
11819 if test -n "$CC"; then
11820 ac_cv_prog_CC="$CC" # Let the user override the test.
11821else
11822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11823for as_dir in $PATH
11824do
11825 IFS=$as_save_IFS
11826 test -z "$as_dir" && as_dir=.
11827 for ac_exec_ext in '' $ac_executable_extensions; do
11828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11829 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11831 break 2
11832 fi
11833done
11834done
11835
11836fi
11837fi
11838CC=$ac_cv_prog_CC
11839if test -n "$CC"; then
11840 echo "$as_me:$LINENO: result: $CC" >&5
11841echo "${ECHO_T}$CC" >&6
11842else
11843 echo "$as_me:$LINENO: result: no" >&5
11844echo "${ECHO_T}no" >&6
11845fi
11846
11847fi
11848if test -z "$ac_cv_prog_CC"; then
11849 ac_ct_CC=$CC
11850 # Extract the first word of "gcc", so it can be a program name with args.
11851set dummy gcc; ac_word=$2
11852echo "$as_me:$LINENO: checking for $ac_word" >&5
11853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11854if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11856else
11857 if test -n "$ac_ct_CC"; then
11858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11859else
11860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11861for as_dir in $PATH
11862do
11863 IFS=$as_save_IFS
11864 test -z "$as_dir" && as_dir=.
11865 for ac_exec_ext in '' $ac_executable_extensions; do
11866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11867 ac_cv_prog_ac_ct_CC="gcc"
11868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11869 break 2
11870 fi
11871done
11872done
11873
11874fi
11875fi
11876ac_ct_CC=$ac_cv_prog_ac_ct_CC
11877if test -n "$ac_ct_CC"; then
11878 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11879echo "${ECHO_T}$ac_ct_CC" >&6
11880else
11881 echo "$as_me:$LINENO: result: no" >&5
11882echo "${ECHO_T}no" >&6
11883fi
11884
11885 CC=$ac_ct_CC
11886else
11887 CC="$ac_cv_prog_CC"
11888fi
11889
11890if test -z "$CC"; then
11891 if test -n "$ac_tool_prefix"; then
11892 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11893set dummy ${ac_tool_prefix}cc; ac_word=$2
11894echo "$as_me:$LINENO: checking for $ac_word" >&5
11895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11896if test "${ac_cv_prog_CC+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11898else
11899 if test -n "$CC"; then
11900 ac_cv_prog_CC="$CC" # Let the user override the test.
11901else
11902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11903for as_dir in $PATH
11904do
11905 IFS=$as_save_IFS
11906 test -z "$as_dir" && as_dir=.
11907 for ac_exec_ext in '' $ac_executable_extensions; do
11908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11909 ac_cv_prog_CC="${ac_tool_prefix}cc"
11910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11911 break 2
11912 fi
11913done
11914done
11915
11916fi
11917fi
11918CC=$ac_cv_prog_CC
11919if test -n "$CC"; then
11920 echo "$as_me:$LINENO: result: $CC" >&5
11921echo "${ECHO_T}$CC" >&6
11922else
11923 echo "$as_me:$LINENO: result: no" >&5
11924echo "${ECHO_T}no" >&6
11925fi
11926
11927fi
11928if test -z "$ac_cv_prog_CC"; then
11929 ac_ct_CC=$CC
11930 # Extract the first word of "cc", so it can be a program name with args.
11931set dummy cc; ac_word=$2
11932echo "$as_me:$LINENO: checking for $ac_word" >&5
11933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11934if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11935 echo $ECHO_N "(cached) $ECHO_C" >&6
11936else
11937 if test -n "$ac_ct_CC"; then
11938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11939else
11940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11941for as_dir in $PATH
11942do
11943 IFS=$as_save_IFS
11944 test -z "$as_dir" && as_dir=.
11945 for ac_exec_ext in '' $ac_executable_extensions; do
11946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11947 ac_cv_prog_ac_ct_CC="cc"
11948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11949 break 2
11950 fi
11951done
11952done
11953
11954fi
11955fi
11956ac_ct_CC=$ac_cv_prog_ac_ct_CC
11957if test -n "$ac_ct_CC"; then
11958 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11959echo "${ECHO_T}$ac_ct_CC" >&6
11960else
11961 echo "$as_me:$LINENO: result: no" >&5
11962echo "${ECHO_T}no" >&6
11963fi
11964
11965 CC=$ac_ct_CC
11966else
11967 CC="$ac_cv_prog_CC"
11968fi
11969
11970fi
11971if test -z "$CC"; then
11972 # Extract the first word of "cc", so it can be a program name with args.
11973set dummy cc; ac_word=$2
11974echo "$as_me:$LINENO: checking for $ac_word" >&5
11975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11976if test "${ac_cv_prog_CC+set}" = set; then
11977 echo $ECHO_N "(cached) $ECHO_C" >&6
11978else
11979 if test -n "$CC"; then
11980 ac_cv_prog_CC="$CC" # Let the user override the test.
11981else
11982 ac_prog_rejected=no
11983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11984for as_dir in $PATH
11985do
11986 IFS=$as_save_IFS
11987 test -z "$as_dir" && as_dir=.
11988 for ac_exec_ext in '' $ac_executable_extensions; do
11989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11990 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11991 ac_prog_rejected=yes
11992 continue
11993 fi
11994 ac_cv_prog_CC="cc"
11995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11996 break 2
11997 fi
11998done
11999done
12000
12001if test $ac_prog_rejected = yes; then
12002 # We found a bogon in the path, so make sure we never use it.
12003 set dummy $ac_cv_prog_CC
12004 shift
12005 if test $# != 0; then
12006 # We chose a different compiler from the bogus one.
12007 # However, it has the same basename, so the bogon will be chosen
12008 # first if we set CC to just the basename; use the full file name.
12009 shift
12010 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12011 fi
12012fi
12013fi
12014fi
12015CC=$ac_cv_prog_CC
12016if test -n "$CC"; then
12017 echo "$as_me:$LINENO: result: $CC" >&5
12018echo "${ECHO_T}$CC" >&6
12019else
12020 echo "$as_me:$LINENO: result: no" >&5
12021echo "${ECHO_T}no" >&6
12022fi
12023
12024fi
12025if test -z "$CC"; then
12026 if test -n "$ac_tool_prefix"; then
12027 for ac_prog in cl
12028 do
12029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12030set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12031echo "$as_me:$LINENO: checking for $ac_word" >&5
12032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12033if test "${ac_cv_prog_CC+set}" = set; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12035else
12036 if test -n "$CC"; then
12037 ac_cv_prog_CC="$CC" # Let the user override the test.
12038else
12039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12040for as_dir in $PATH
12041do
12042 IFS=$as_save_IFS
12043 test -z "$as_dir" && as_dir=.
12044 for ac_exec_ext in '' $ac_executable_extensions; do
12045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12046 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12048 break 2
12049 fi
12050done
12051done
12052
12053fi
12054fi
12055CC=$ac_cv_prog_CC
12056if test -n "$CC"; then
12057 echo "$as_me:$LINENO: result: $CC" >&5
12058echo "${ECHO_T}$CC" >&6
12059else
12060 echo "$as_me:$LINENO: result: no" >&5
12061echo "${ECHO_T}no" >&6
12062fi
12063
12064 test -n "$CC" && break
12065 done
12066fi
12067if test -z "$CC"; then
12068 ac_ct_CC=$CC
12069 for ac_prog in cl
12070do
12071 # Extract the first word of "$ac_prog", so it can be a program name with args.
12072set dummy $ac_prog; ac_word=$2
12073echo "$as_me:$LINENO: checking for $ac_word" >&5
12074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12075if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12077else
12078 if test -n "$ac_ct_CC"; then
12079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12080else
12081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082for as_dir in $PATH
12083do
12084 IFS=$as_save_IFS
12085 test -z "$as_dir" && as_dir=.
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12088 ac_cv_prog_ac_ct_CC="$ac_prog"
12089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12090 break 2
12091 fi
12092done
12093done
12094
12095fi
12096fi
12097ac_ct_CC=$ac_cv_prog_ac_ct_CC
12098if test -n "$ac_ct_CC"; then
12099 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12100echo "${ECHO_T}$ac_ct_CC" >&6
12101else
12102 echo "$as_me:$LINENO: result: no" >&5
12103echo "${ECHO_T}no" >&6
12104fi
12105
12106 test -n "$ac_ct_CC" && break
12107done
12108
12109 CC=$ac_ct_CC
12110fi
12111
12112fi
12113
12114
12115test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12116See \`config.log' for more details." >&5
12117echo "$as_me: error: no acceptable C compiler found in \$PATH
12118See \`config.log' for more details." >&2;}
12119 { (exit 1); exit 1; }; }
12120
12121# Provide some information about the compiler.
12122echo "$as_me:$LINENO:" \
12123 "checking for C compiler version" >&5
12124ac_compiler=`set X $ac_compile; echo $2`
12125{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12126 (eval $ac_compiler --version </dev/null >&5) 2>&5
12127 ac_status=$?
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }
12130{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12131 (eval $ac_compiler -v </dev/null >&5) 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }
12135{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12136 (eval $ac_compiler -V </dev/null >&5) 2>&5
12137 ac_status=$?
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }
12140
12141cat >conftest.$ac_ext <<_ACEOF
12142/* confdefs.h. */
12143_ACEOF
12144cat confdefs.h >>conftest.$ac_ext
12145cat >>conftest.$ac_ext <<_ACEOF
12146/* end confdefs.h. */
12147
12148int
12149main ()
12150{
12151
12152 ;
12153 return 0;
12154}
12155_ACEOF
12156ac_clean_files_save=$ac_clean_files
12157ac_clean_files="$ac_clean_files a.out a.exe b.out"
12158# Try to create an executable without -o first, disregard a.out.
12159# It will help us diagnose broken compilers, and finding out an intuition
12160# of exeext.
ac1cb8d3
VS
12161echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12162echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
12163ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12164if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12165 (eval $ac_link_default) 2>&5
12166 ac_status=$?
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; then
12169 # Find the output, starting from the most likely. This scheme is
12170# not robust to junk in `.', hence go to wildcards (a.*) only as a last
12171# resort.
12172
12173# Be careful to initialize this variable, since it used to be cached.
12174# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12175ac_cv_exeext=
12176# b.out is created by i960 compilers.
12177for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12178do
12179 test -f "$ac_file" || continue
12180 case $ac_file in
12181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 12182 ;;
a848cd7e 12183 conftest.$ac_ext )
ac1cb8d3
VS
12184 # This is the source file.
12185 ;;
a848cd7e 12186 [ab].out )
ac1cb8d3
VS
12187 # We found the default executable, but exeext='' is most
12188 # certainly right.
12189 break;;
a848cd7e 12190 *.* )
ac1cb8d3
VS
12191 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12192 # FIXME: I believe we export ac_cv_exeext for Libtool,
12193 # but it would be cool to find out if it's true. Does anybody
12194 # maintain Libtool? --akim.
12195 export ac_cv_exeext
12196 break;;
a848cd7e 12197 * )
ac1cb8d3 12198 break;;
a848cd7e
SC
12199 esac
12200done
12201else
12202 echo "$as_me: failed program was:" >&5
12203sed 's/^/| /' conftest.$ac_ext >&5
12204
12205{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
12206See \`config.log' for more details." >&5
12207echo "$as_me: error: C compiler cannot create executables
12208See \`config.log' for more details." >&2;}
12209 { (exit 77); exit 77; }; }
12210fi
12211
12212ac_exeext=$ac_cv_exeext
12213echo "$as_me:$LINENO: result: $ac_file" >&5
12214echo "${ECHO_T}$ac_file" >&6
12215
12216# Check the compiler produces executables we can run. If not, either
12217# the compiler is broken, or we cross compile.
12218echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12219echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12220# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12221# If not cross compiling, check that we can run a simple program.
12222if test "$cross_compiling" != yes; then
12223 if { ac_try='./$ac_file'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 cross_compiling=no
12230 else
12231 if test "$cross_compiling" = maybe; then
12232 cross_compiling=yes
12233 else
12234 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12235If you meant to cross compile, use \`--host'.
12236See \`config.log' for more details." >&5
12237echo "$as_me: error: cannot run C compiled programs.
12238If you meant to cross compile, use \`--host'.
12239See \`config.log' for more details." >&2;}
12240 { (exit 1); exit 1; }; }
12241 fi
12242 fi
12243fi
12244echo "$as_me:$LINENO: result: yes" >&5
12245echo "${ECHO_T}yes" >&6
12246
12247rm -f a.out a.exe conftest$ac_cv_exeext b.out
12248ac_clean_files=$ac_clean_files_save
12249# Check the compiler produces executables we can run. If not, either
12250# the compiler is broken, or we cross compile.
12251echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12252echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12253echo "$as_me:$LINENO: result: $cross_compiling" >&5
12254echo "${ECHO_T}$cross_compiling" >&6
12255
12256echo "$as_me:$LINENO: checking for suffix of executables" >&5
12257echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12259 (eval $ac_link) 2>&5
12260 ac_status=$?
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; then
12263 # If both `conftest.exe' and `conftest' are `present' (well, observable)
12264# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
12265# work properly (i.e., refer to `conftest.exe'), while it won't with
12266# `rm'.
12267for ac_file in conftest.exe conftest conftest.*; do
12268 test -f "$ac_file" || continue
12269 case $ac_file in
12270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12271 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
12272 export ac_cv_exeext
12273 break;;
a848cd7e
SC
12274 * ) break;;
12275 esac
12276done
12277else
12278 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12279See \`config.log' for more details." >&5
12280echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12281See \`config.log' for more details." >&2;}
12282 { (exit 1); exit 1; }; }
12283fi
12284
12285rm -f conftest$ac_cv_exeext
12286echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12287echo "${ECHO_T}$ac_cv_exeext" >&6
12288
12289rm -f conftest.$ac_ext
12290EXEEXT=$ac_cv_exeext
12291ac_exeext=$EXEEXT
12292echo "$as_me:$LINENO: checking for suffix of object files" >&5
12293echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12294if test "${ac_cv_objext+set}" = set; then
12295 echo $ECHO_N "(cached) $ECHO_C" >&6
12296else
12297 cat >conftest.$ac_ext <<_ACEOF
12298/* confdefs.h. */
12299_ACEOF
12300cat confdefs.h >>conftest.$ac_ext
12301cat >>conftest.$ac_ext <<_ACEOF
12302/* end confdefs.h. */
12303
12304int
12305main ()
12306{
12307
12308 ;
12309 return 0;
12310}
12311_ACEOF
12312rm -f conftest.o conftest.obj
12313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12314 (eval $ac_compile) 2>&5
12315 ac_status=$?
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; then
12318 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12319 case $ac_file in
12320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12321 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12322 break;;
12323 esac
12324done
12325else
12326 echo "$as_me: failed program was:" >&5
12327sed 's/^/| /' conftest.$ac_ext >&5
12328
12329{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12330See \`config.log' for more details." >&5
12331echo "$as_me: error: cannot compute suffix of object files: cannot compile
12332See \`config.log' for more details." >&2;}
12333 { (exit 1); exit 1; }; }
12334fi
12335
12336rm -f conftest.$ac_cv_objext conftest.$ac_ext
12337fi
12338echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12339echo "${ECHO_T}$ac_cv_objext" >&6
12340OBJEXT=$ac_cv_objext
12341ac_objext=$OBJEXT
12342echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12343echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12344if test "${ac_cv_c_compiler_gnu+set}" = set; then
12345 echo $ECHO_N "(cached) $ECHO_C" >&6
12346else
12347 cat >conftest.$ac_ext <<_ACEOF
12348/* confdefs.h. */
12349_ACEOF
12350cat confdefs.h >>conftest.$ac_ext
12351cat >>conftest.$ac_ext <<_ACEOF
12352/* end confdefs.h. */
12353
12354int
12355main ()
12356{
12357#ifndef __GNUC__
12358 choke me
12359#endif
12360
12361 ;
12362 return 0;
12363}
12364_ACEOF
12365rm -f conftest.$ac_objext
12366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12367 (eval $ac_compile) 2>conftest.er1
a848cd7e 12368 ac_status=$?
ac1cb8d3
VS
12369 grep -v '^ *+' conftest.er1 >conftest.err
12370 rm -f conftest.er1
12371 cat conftest.err >&5
a848cd7e
SC
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } &&
64b75e64 12374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12377 ac_status=$?
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; } &&
12380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382 (eval $ac_try) 2>&5
12383 ac_status=$?
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; }; then
12386 ac_compiler_gnu=yes
12387else
12388 echo "$as_me: failed program was:" >&5
12389sed 's/^/| /' conftest.$ac_ext >&5
12390
12391ac_compiler_gnu=no
12392fi
ac1cb8d3 12393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12394ac_cv_c_compiler_gnu=$ac_compiler_gnu
12395
12396fi
12397echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12398echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12399GCC=`test $ac_compiler_gnu = yes && echo yes`
12400ac_test_CFLAGS=${CFLAGS+set}
12401ac_save_CFLAGS=$CFLAGS
15291213 12402CFLAGS="-g"
a848cd7e
SC
12403echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12404echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12405if test "${ac_cv_prog_cc_g+set}" = set; then
12406 echo $ECHO_N "(cached) $ECHO_C" >&6
12407else
12408 cat >conftest.$ac_ext <<_ACEOF
12409/* confdefs.h. */
12410_ACEOF
12411cat confdefs.h >>conftest.$ac_ext
12412cat >>conftest.$ac_ext <<_ACEOF
12413/* end confdefs.h. */
12414
12415int
12416main ()
12417{
12418
12419 ;
12420 return 0;
12421}
12422_ACEOF
12423rm -f conftest.$ac_objext
12424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12425 (eval $ac_compile) 2>conftest.er1
a848cd7e 12426 ac_status=$?
ac1cb8d3
VS
12427 grep -v '^ *+' conftest.er1 >conftest.err
12428 rm -f conftest.er1
12429 cat conftest.err >&5
a848cd7e
SC
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } &&
64b75e64 12432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; } &&
12438 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12441 ac_status=$?
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; }; then
12444 ac_cv_prog_cc_g=yes
12445else
12446 echo "$as_me: failed program was:" >&5
12447sed 's/^/| /' conftest.$ac_ext >&5
12448
12449ac_cv_prog_cc_g=no
12450fi
ac1cb8d3 12451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12452fi
12453echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12454echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12455if test "$ac_test_CFLAGS" = set; then
12456 CFLAGS=$ac_save_CFLAGS
12457elif test $ac_cv_prog_cc_g = yes; then
12458 if test "$GCC" = yes; then
12459 CFLAGS="-g -O2"
12460 else
12461 CFLAGS="-g"
12462 fi
12463else
12464 if test "$GCC" = yes; then
12465 CFLAGS="-O2"
12466 else
12467 CFLAGS=
12468 fi
12469fi
12470echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12471echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12472if test "${ac_cv_prog_cc_stdc+set}" = set; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12474else
12475 ac_cv_prog_cc_stdc=no
12476ac_save_CC=$CC
12477cat >conftest.$ac_ext <<_ACEOF
12478/* confdefs.h. */
12479_ACEOF
12480cat confdefs.h >>conftest.$ac_ext
12481cat >>conftest.$ac_ext <<_ACEOF
12482/* end confdefs.h. */
12483#include <stdarg.h>
12484#include <stdio.h>
12485#include <sys/types.h>
12486#include <sys/stat.h>
12487/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12488struct buf { int x; };
12489FILE * (*rcsopen) (struct buf *, struct stat *, int);
12490static char *e (p, i)
12491 char **p;
12492 int i;
12493{
12494 return p[i];
12495}
12496static char *f (char * (*g) (char **, int), char **p, ...)
12497{
12498 char *s;
12499 va_list v;
12500 va_start (v,p);
12501 s = g (p, va_arg (v,int));
12502 va_end (v);
12503 return s;
12504}
ac1cb8d3
VS
12505
12506/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12507 function prototypes and stuff, but not '\xHH' hex character constants.
12508 These don't provoke an error unfortunately, instead are silently treated
12509 as 'x'. The following induces an error, until -std1 is added to get
12510 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12511 array size at least. It's necessary to write '\x00'==0 to get something
12512 that's true only with -std1. */
12513int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12514
a848cd7e
SC
12515int test (int i, double x);
12516struct s1 {int (*f) (int a);};
12517struct s2 {int (*f) (double a);};
12518int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12519int argc;
12520char **argv;
12521int
12522main ()
12523{
12524return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12525 ;
12526 return 0;
12527}
12528_ACEOF
12529# Don't try gcc -ansi; that turns off useful extensions and
12530# breaks some systems' header files.
12531# AIX -qlanglvl=ansi
12532# Ultrix and OSF/1 -std1
12533# HP-UX 10.20 and later -Ae
12534# HP-UX older versions -Aa -D_HPUX_SOURCE
12535# SVR4 -Xc -D__EXTENSIONS__
12536for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12537do
12538 CC="$ac_save_CC $ac_arg"
12539 rm -f conftest.$ac_objext
12540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12541 (eval $ac_compile) 2>conftest.er1
a848cd7e 12542 ac_status=$?
ac1cb8d3
VS
12543 grep -v '^ *+' conftest.er1 >conftest.err
12544 rm -f conftest.er1
12545 cat conftest.err >&5
a848cd7e
SC
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } &&
64b75e64 12548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; } &&
12554 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12556 (eval $ac_try) 2>&5
12557 ac_status=$?
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; }; then
12560 ac_cv_prog_cc_stdc=$ac_arg
12561break
12562else
12563 echo "$as_me: failed program was:" >&5
12564sed 's/^/| /' conftest.$ac_ext >&5
12565
12566fi
ac1cb8d3 12567rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
12568done
12569rm -f conftest.$ac_ext conftest.$ac_objext
12570CC=$ac_save_CC
12571
12572fi
12573
12574case "x$ac_cv_prog_cc_stdc" in
12575 x|xno)
12576 echo "$as_me:$LINENO: result: none needed" >&5
12577echo "${ECHO_T}none needed" >&6 ;;
12578 *)
12579 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12580echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12581 CC="$CC $ac_cv_prog_cc_stdc" ;;
12582esac
12583
12584# Some people use a C++ compiler to compile C. Since we use `exit',
12585# in C++ we need to declare it. In case someone uses the same compiler
12586# for both compiling C and C++ we need to have the C++ compiler decide
12587# the declaration of exit, since it's the most demanding environment.
12588cat >conftest.$ac_ext <<_ACEOF
12589#ifndef __cplusplus
12590 choke me
12591#endif
12592_ACEOF
12593rm -f conftest.$ac_objext
12594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12595 (eval $ac_compile) 2>conftest.er1
a848cd7e 12596 ac_status=$?
ac1cb8d3
VS
12597 grep -v '^ *+' conftest.er1 >conftest.err
12598 rm -f conftest.er1
12599 cat conftest.err >&5
a848cd7e
SC
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } &&
64b75e64 12602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12605 ac_status=$?
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; } &&
12608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 for ac_declaration in \
ac1cb8d3 12615 '' \
a848cd7e
SC
12616 'extern "C" void std::exit (int) throw (); using std::exit;' \
12617 'extern "C" void std::exit (int); using std::exit;' \
12618 'extern "C" void exit (int) throw ();' \
12619 'extern "C" void exit (int);' \
12620 'void exit (int);'
12621do
12622 cat >conftest.$ac_ext <<_ACEOF
12623/* confdefs.h. */
12624_ACEOF
12625cat confdefs.h >>conftest.$ac_ext
12626cat >>conftest.$ac_ext <<_ACEOF
12627/* end confdefs.h. */
de59c161 12628$ac_declaration
ac1cb8d3 12629#include <stdlib.h>
a848cd7e
SC
12630int
12631main ()
12632{
12633exit (42);
12634 ;
12635 return 0;
12636}
12637_ACEOF
12638rm -f conftest.$ac_objext
12639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12640 (eval $ac_compile) 2>conftest.er1
a848cd7e 12641 ac_status=$?
ac1cb8d3
VS
12642 grep -v '^ *+' conftest.er1 >conftest.err
12643 rm -f conftest.er1
12644 cat conftest.err >&5
a848cd7e
SC
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } &&
64b75e64 12647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12650 ac_status=$?
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; } &&
12653 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655 (eval $ac_try) 2>&5
12656 ac_status=$?
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; }; then
12659 :
12660else
12661 echo "$as_me: failed program was:" >&5
12662sed 's/^/| /' conftest.$ac_ext >&5
12663
12664continue
12665fi
ac1cb8d3 12666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12667 cat >conftest.$ac_ext <<_ACEOF
12668/* confdefs.h. */
12669_ACEOF
12670cat confdefs.h >>conftest.$ac_ext
12671cat >>conftest.$ac_ext <<_ACEOF
12672/* end confdefs.h. */
12673$ac_declaration
12674int
12675main ()
12676{
12677exit (42);
12678 ;
12679 return 0;
12680}
12681_ACEOF
12682rm -f conftest.$ac_objext
12683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12684 (eval $ac_compile) 2>conftest.er1
a848cd7e 12685 ac_status=$?
ac1cb8d3
VS
12686 grep -v '^ *+' conftest.er1 >conftest.err
12687 rm -f conftest.er1
12688 cat conftest.err >&5
a848cd7e
SC
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); } &&
64b75e64 12691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693 (eval $ac_try) 2>&5
12694 ac_status=$?
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; } &&
12697 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699 (eval $ac_try) 2>&5
12700 ac_status=$?
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; }; then
12703 break
12704else
12705 echo "$as_me: failed program was:" >&5
12706sed 's/^/| /' conftest.$ac_ext >&5
12707
12708fi
ac1cb8d3 12709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12710done
12711rm -f conftest*
12712if test -n "$ac_declaration"; then
12713 echo '#ifdef __cplusplus' >>confdefs.h
12714 echo $ac_declaration >>confdefs.h
12715 echo '#endif' >>confdefs.h
12716fi
12717
12718else
12719 echo "$as_me: failed program was:" >&5
12720sed 's/^/| /' conftest.$ac_ext >&5
12721
12722fi
ac1cb8d3 12723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12724ac_ext=c
12725ac_cpp='$CPP $CPPFLAGS'
12726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12728ac_compiler_gnu=$ac_cv_c_compiler_gnu
12729
ab0ad5f1
VZ
12730
12731
12732 ac_ext=c
12733ac_cpp='$CPP $CPPFLAGS'
12734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12736ac_compiler_gnu=$ac_cv_c_compiler_gnu
12737
12738 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12739echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12740if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12741 echo $ECHO_N "(cached) $ECHO_C" >&6
12742else
12743 cat >conftest.$ac_ext <<_ACEOF
12744/* confdefs.h. */
12745_ACEOF
12746cat confdefs.h >>conftest.$ac_ext
12747cat >>conftest.$ac_ext <<_ACEOF
12748/* end confdefs.h. */
12749
12750int
12751main ()
12752{
12753
12754 #ifndef __INTEL_COMPILER
12755 choke me
12756 #endif
12757
12758 ;
12759 return 0;
12760}
12761_ACEOF
12762rm -f conftest.$ac_objext
12763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12764 (eval $ac_compile) 2>conftest.er1
12765 ac_status=$?
12766 grep -v '^ *+' conftest.er1 >conftest.err
12767 rm -f conftest.er1
12768 cat conftest.err >&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } &&
64b75e64 12771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773 (eval $ac_try) 2>&5
12774 ac_status=$?
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; } &&
12777 { ac_try='test -s conftest.$ac_objext'
12778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779 (eval $ac_try) 2>&5
12780 ac_status=$?
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; }; then
12783 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12784else
12785 echo "$as_me: failed program was:" >&5
12786sed 's/^/| /' conftest.$ac_ext >&5
12787
12788bakefile_cv_c_compiler___INTEL_COMPILER=no
12789
12790fi
12791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12792
12793
12794fi
12795echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12796echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12797 ac_ext=c
12798ac_cpp='$CPP $CPPFLAGS'
12799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12801ac_compiler_gnu=$ac_cv_c_compiler_gnu
12802
12803 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12804 :; INTELCC=yes
12805 else
12806 :;
12807 fi
12808
12809
12810 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12811 if test "xCC" = "xC"; then
12812 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12813echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12814if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12816else
12817 cat >conftest.$ac_ext <<_ACEOF
12818/* confdefs.h. */
12819_ACEOF
12820cat confdefs.h >>conftest.$ac_ext
12821cat >>conftest.$ac_ext <<_ACEOF
12822/* end confdefs.h. */
12823
12824int
12825main ()
12826{
12827
12828 ;
12829 return 0;
12830}
12831_ACEOF
12832rm -f conftest.$ac_objext conftest.$ac_ext.o
12833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12834 (eval $ac_compile) 2>&5
12835 ac_status=$?
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; then
12838 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12839 case $ac_file in
12840 conftest.$ac_ext.o)
0093c2fc 12841 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12842 ;;
12843 *)
12844 ;;
12845 esac
12846done
12847else
12848 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12849See \`config.log' for more details." >&5
12850echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12851See \`config.log' for more details." >&2;}
12852 { (exit 1); exit 1; }; }
12853
12854fi
12855
12856rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12857
12858fi
0093c2fc
VZ
12859echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12860echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12861if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12862 if test "c" = "c"; then
0093c2fc 12863 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12864 fi
12865 if test "c" = "cxx"; then
0093c2fc 12866 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12867 fi
12868fi
12869
0093c2fc 12870 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12871 unset ac_cv_prog_cc_g
12872 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12873ac_save_CFLAGS=$CFLAGS
15291213 12874CFLAGS="-g"
480ccd21
DE
12875echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12876echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12877if test "${ac_cv_prog_cc_g+set}" = set; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12879else
12880 cat >conftest.$ac_ext <<_ACEOF
12881/* confdefs.h. */
12882_ACEOF
12883cat confdefs.h >>conftest.$ac_ext
12884cat >>conftest.$ac_ext <<_ACEOF
12885/* end confdefs.h. */
12886
12887int
12888main ()
12889{
12890
12891 ;
12892 return 0;
12893}
12894_ACEOF
12895rm -f conftest.$ac_objext
12896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12897 (eval $ac_compile) 2>conftest.er1
12898 ac_status=$?
12899 grep -v '^ *+' conftest.er1 >conftest.err
12900 rm -f conftest.er1
12901 cat conftest.err >&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } &&
64b75e64 12904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906 (eval $ac_try) 2>&5
12907 ac_status=$?
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; } &&
12910 { ac_try='test -s conftest.$ac_objext'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12916 ac_cv_prog_cc_g=yes
12917else
12918 echo "$as_me: failed program was:" >&5
12919sed 's/^/| /' conftest.$ac_ext >&5
12920
12921ac_cv_prog_cc_g=no
12922fi
12923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12924fi
12925echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12926echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12927if test "$ac_test_CFLAGS" = set; then
12928 CFLAGS=$ac_save_CFLAGS
12929elif test $ac_cv_prog_cc_g = yes; then
12930 if test "$GCC" = yes; then
12931 CFLAGS="-g -O2"
12932 else
12933 CFLAGS="-g"
12934 fi
12935else
12936 if test "$GCC" = yes; then
12937 CFLAGS="-O2"
12938 else
12939 CFLAGS=
12940 fi
12941fi
3006edc0 12942 fi
ab0ad5f1 12943 fi
3006edc0
VZ
12944
12945 case `uname -s` in
12946 AIX*)
12947 ac_ext=c
12948ac_cpp='$CPP $CPPFLAGS'
12949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12951ac_compiler_gnu=$ac_cv_c_compiler_gnu
12952
12953echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12954echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12955if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12956 echo $ECHO_N "(cached) $ECHO_C" >&6
12957else
12958 cat >conftest.$ac_ext <<_ACEOF
12959/* confdefs.h. */
12960_ACEOF
12961cat confdefs.h >>conftest.$ac_ext
12962cat >>conftest.$ac_ext <<_ACEOF
12963/* end confdefs.h. */
12964
12965int
12966main ()
12967{
12968#ifndef __xlC__
12969 choke me
12970#endif
12971
12972 ;
12973 return 0;
12974}
12975_ACEOF
12976rm -f conftest.$ac_objext
12977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12978 (eval $ac_compile) 2>conftest.er1
12979 ac_status=$?
12980 grep -v '^ *+' conftest.er1 >conftest.err
12981 rm -f conftest.er1
12982 cat conftest.err >&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } &&
64b75e64 12985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; } &&
12991 { ac_try='test -s conftest.$ac_objext'
12992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993 (eval $ac_try) 2>&5
12994 ac_status=$?
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; }; then
0093c2fc 12997 bakefile_compiler_xlc=yes
3006edc0
VZ
12998else
12999 echo "$as_me: failed program was:" >&5
13000sed 's/^/| /' conftest.$ac_ext >&5
13001
0093c2fc 13002bakefile_compiler_xlc=no
3006edc0
VZ
13003fi
13004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13005 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13006
13007fi
0093c2fc
VZ
13008echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13009echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 13010
0093c2fc 13011XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
13012ac_ext=c
13013ac_cpp='$CPP $CPPFLAGS'
13014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13016ac_compiler_gnu=$ac_cv_c_compiler_gnu
13017
13018
13019 ;;
13020
13021 Darwin)
13022 ac_ext=c
95986553
DE
13023ac_cpp='$CPP $CPPFLAGS'
13024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13026ac_compiler_gnu=$ac_cv_c_compiler_gnu
13027
13028echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
13029echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
13030if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13032else
13033 cat >conftest.$ac_ext <<_ACEOF
13034/* confdefs.h. */
13035_ACEOF
13036cat confdefs.h >>conftest.$ac_ext
13037cat >>conftest.$ac_ext <<_ACEOF
13038/* end confdefs.h. */
13039
13040int
13041main ()
13042{
13043#ifndef __MWERKS__
13044 choke me
13045#endif
13046
13047 ;
13048 return 0;
13049}
13050_ACEOF
13051rm -f conftest.$ac_objext
13052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13053 (eval $ac_compile) 2>conftest.er1
13054 ac_status=$?
13055 grep -v '^ *+' conftest.er1 >conftest.err
13056 rm -f conftest.er1
13057 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
64b75e64 13060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; } &&
13066 { ac_try='test -s conftest.$ac_objext'
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13069 ac_status=$?
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; }; then
13072 bakefile_compiler_mwerks=yes
13073else
13074 echo "$as_me: failed program was:" >&5
13075sed 's/^/| /' conftest.$ac_ext >&5
13076
13077bakefile_compiler_mwerks=no
13078fi
13079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13080 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
13081
13082fi
13083echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
13084echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
13085
0e6fa1d9 13086MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
13087ac_ext=c
13088ac_cpp='$CPP $CPPFLAGS'
13089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13091ac_compiler_gnu=$ac_cv_c_compiler_gnu
13092
13093
3006edc0 13094 ac_ext=c
9273ffba
DE
13095ac_cpp='$CPP $CPPFLAGS'
13096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13098ac_compiler_gnu=$ac_cv_c_compiler_gnu
13099
13100echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13101echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 13102if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
13103 echo $ECHO_N "(cached) $ECHO_C" >&6
13104else
13105 cat >conftest.$ac_ext <<_ACEOF
13106/* confdefs.h. */
13107_ACEOF
13108cat confdefs.h >>conftest.$ac_ext
13109cat >>conftest.$ac_ext <<_ACEOF
13110/* end confdefs.h. */
13111
13112int
13113main ()
13114{
13115#ifndef __xlC__
13116 choke me
13117#endif
13118
13119 ;
13120 return 0;
13121}
13122_ACEOF
13123rm -f conftest.$ac_objext
13124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13125 (eval $ac_compile) 2>conftest.er1
13126 ac_status=$?
13127 grep -v '^ *+' conftest.er1 >conftest.err
13128 rm -f conftest.er1
13129 cat conftest.err >&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } &&
64b75e64 13132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
13133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134 (eval $ac_try) 2>&5
13135 ac_status=$?
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; } &&
13138 { ac_try='test -s conftest.$ac_objext'
13139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140 (eval $ac_try) 2>&5
13141 ac_status=$?
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; }; then
0093c2fc 13144 bakefile_compiler_xlc=yes
9273ffba
DE
13145else
13146 echo "$as_me: failed program was:" >&5
13147sed 's/^/| /' conftest.$ac_ext >&5
13148
0093c2fc 13149bakefile_compiler_xlc=no
9273ffba
DE
13150fi
13151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13152 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13153
13154fi
0093c2fc
VZ
13155echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13156echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 13157
0093c2fc 13158XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
13159ac_ext=c
13160ac_cpp='$CPP $CPPFLAGS'
13161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13163ac_compiler_gnu=$ac_cv_c_compiler_gnu
13164
13165
3006edc0
VZ
13166 ;;
13167
13168 IRIX*)
a848cd7e 13169
6dcfc289 13170
0ad5d837
VZ
13171 ac_ext=c
13172ac_cpp='$CPP $CPPFLAGS'
13173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13175ac_compiler_gnu=$ac_cv_c_compiler_gnu
13176
13177 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
13178echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
13179if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
13180 echo $ECHO_N "(cached) $ECHO_C" >&6
13181else
13182 cat >conftest.$ac_ext <<_ACEOF
13183/* confdefs.h. */
13184_ACEOF
13185cat confdefs.h >>conftest.$ac_ext
13186cat >>conftest.$ac_ext <<_ACEOF
13187/* end confdefs.h. */
13188
13189int
13190main ()
13191{
13192
13193 #ifndef _SGI_COMPILER_VERSION
13194 choke me
13195 #endif
13196
13197 ;
13198 return 0;
13199}
13200_ACEOF
13201rm -f conftest.$ac_objext
13202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13203 (eval $ac_compile) 2>conftest.er1
13204 ac_status=$?
13205 grep -v '^ *+' conftest.er1 >conftest.err
13206 rm -f conftest.er1
13207 cat conftest.err >&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } &&
64b75e64 13210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
13211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212 (eval $ac_try) 2>&5
13213 ac_status=$?
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; } &&
13216 { ac_try='test -s conftest.$ac_objext'
13217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13219 ac_status=$?
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; }; then
13222 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13223else
13224 echo "$as_me: failed program was:" >&5
13225sed 's/^/| /' conftest.$ac_ext >&5
13226
13227bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
13228
13229fi
13230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13231
13232
13233fi
13234echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13235echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13236 ac_ext=c
13237ac_cpp='$CPP $CPPFLAGS'
13238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13240ac_compiler_gnu=$ac_cv_c_compiler_gnu
13241
13242 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13243 :; SGICC=yes
13244 else
13245 :;
13246 fi
13247
13248
3006edc0
VZ
13249 ;;
13250
0093c2fc 13251 HP-UX*)
3006edc0
VZ
13252
13253
13254 ac_ext=c
13255ac_cpp='$CPP $CPPFLAGS'
13256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13258ac_compiler_gnu=$ac_cv_c_compiler_gnu
13259
0093c2fc
VZ
13260 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13261echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13262if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
13263 echo $ECHO_N "(cached) $ECHO_C" >&6
13264else
13265 cat >conftest.$ac_ext <<_ACEOF
13266/* confdefs.h. */
13267_ACEOF
13268cat confdefs.h >>conftest.$ac_ext
13269cat >>conftest.$ac_ext <<_ACEOF
13270/* end confdefs.h. */
13271
13272int
13273main ()
13274{
13275
0093c2fc 13276 #ifndef __HP_cc
3006edc0
VZ
13277 choke me
13278 #endif
13279
13280 ;
13281 return 0;
13282}
13283_ACEOF
13284rm -f conftest.$ac_objext
13285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13286 (eval $ac_compile) 2>conftest.er1
13287 ac_status=$?
13288 grep -v '^ *+' conftest.er1 >conftest.err
13289 rm -f conftest.er1
13290 cat conftest.err >&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); } &&
64b75e64 13293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295 (eval $ac_try) 2>&5
13296 ac_status=$?
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; } &&
13299 { ac_try='test -s conftest.$ac_objext'
13300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301 (eval $ac_try) 2>&5
13302 ac_status=$?
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; }; then
0093c2fc 13305 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13306else
13307 echo "$as_me: failed program was:" >&5
13308sed 's/^/| /' conftest.$ac_ext >&5
13309
0093c2fc 13310bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13311
13312fi
13313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13314
13315
13316fi
0093c2fc
VZ
13317echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13318echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13319 ac_ext=c
13320ac_cpp='$CPP $CPPFLAGS'
13321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13323ac_compiler_gnu=$ac_cv_c_compiler_gnu
13324
0093c2fc
VZ
13325 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13326 :; HPCC=yes
a1aa0349
VZ
13327 else
13328 :;
13329 fi
13330
13331
13332 ;;
13333
0093c2fc 13334 OSF1)
a1aa0349
VZ
13335
13336
13337 ac_ext=c
13338ac_cpp='$CPP $CPPFLAGS'
13339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13341ac_compiler_gnu=$ac_cv_c_compiler_gnu
13342
0093c2fc
VZ
13343 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13344echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13345if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13347else
13348 cat >conftest.$ac_ext <<_ACEOF
13349/* confdefs.h. */
13350_ACEOF
13351cat confdefs.h >>conftest.$ac_ext
13352cat >>conftest.$ac_ext <<_ACEOF
13353/* end confdefs.h. */
13354
13355int
13356main ()
13357{
13358
0093c2fc 13359 #ifndef __DECC
a1aa0349
VZ
13360 choke me
13361 #endif
13362
13363 ;
13364 return 0;
13365}
13366_ACEOF
13367rm -f conftest.$ac_objext
13368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13369 (eval $ac_compile) 2>conftest.er1
13370 ac_status=$?
13371 grep -v '^ *+' conftest.er1 >conftest.err
13372 rm -f conftest.er1
13373 cat conftest.err >&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); } &&
64b75e64 13376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13378 (eval $ac_try) 2>&5
13379 ac_status=$?
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); }; } &&
13382 { ac_try='test -s conftest.$ac_objext'
13383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384 (eval $ac_try) 2>&5
13385 ac_status=$?
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; }; then
0093c2fc 13388 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13389else
13390 echo "$as_me: failed program was:" >&5
13391sed 's/^/| /' conftest.$ac_ext >&5
13392
0093c2fc 13393bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13394
13395fi
13396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13397
13398
13399fi
0093c2fc
VZ
13400echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13401echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13402 ac_ext=c
13403ac_cpp='$CPP $CPPFLAGS'
13404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13406ac_compiler_gnu=$ac_cv_c_compiler_gnu
13407
0093c2fc
VZ
13408 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13409 :; COMPAQCC=yes
13410 else
13411 :;
13412 fi
13413
13414
13415 ;;
13416
13417 SunOS)
13418
13419
13420 ac_ext=c
13421ac_cpp='$CPP $CPPFLAGS'
13422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13424ac_compiler_gnu=$ac_cv_c_compiler_gnu
13425
13426 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13427echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13428if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13429 echo $ECHO_N "(cached) $ECHO_C" >&6
13430else
13431 cat >conftest.$ac_ext <<_ACEOF
13432/* confdefs.h. */
13433_ACEOF
13434cat confdefs.h >>conftest.$ac_ext
13435cat >>conftest.$ac_ext <<_ACEOF
13436/* end confdefs.h. */
13437
13438int
13439main ()
13440{
13441
13442 #ifndef __SUNPRO_C
13443 choke me
13444 #endif
13445
13446 ;
13447 return 0;
13448}
13449_ACEOF
13450rm -f conftest.$ac_objext
13451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13452 (eval $ac_compile) 2>conftest.er1
13453 ac_status=$?
13454 grep -v '^ *+' conftest.er1 >conftest.err
13455 rm -f conftest.er1
13456 cat conftest.err >&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); } &&
64b75e64 13459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
13460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13461 (eval $ac_try) 2>&5
13462 ac_status=$?
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); }; } &&
13465 { ac_try='test -s conftest.$ac_objext'
13466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467 (eval $ac_try) 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
13471 bakefile_cv_c_compiler___SUNPRO_C=yes
13472else
13473 echo "$as_me: failed program was:" >&5
13474sed 's/^/| /' conftest.$ac_ext >&5
13475
13476bakefile_cv_c_compiler___SUNPRO_C=no
13477
13478fi
13479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13480
13481
13482fi
13483echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13484echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13485 ac_ext=c
13486ac_cpp='$CPP $CPPFLAGS'
13487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13489ac_compiler_gnu=$ac_cv_c_compiler_gnu
13490
13491 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13492 :; SUNCC=yes
3006edc0
VZ
13493 else
13494 :;
13495 fi
13496
13497
13498 ;;
13499 esac
ab0ad5f1 13500 fi
a9e5b1f0
MW
13501
13502
3006edc0 13503
a848cd7e
SC
13504ac_ext=c
13505ac_cpp='$CPP $CPPFLAGS'
13506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13508ac_compiler_gnu=$ac_cv_c_compiler_gnu
13509echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13510echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13511# On Suns, sometimes $CPP names a directory.
13512if test -n "$CPP" && test -d "$CPP"; then
13513 CPP=
13514fi
13515if test -z "$CPP"; then
13516 if test "${ac_cv_prog_CPP+set}" = set; then
13517 echo $ECHO_N "(cached) $ECHO_C" >&6
13518else
13519 # Double quotes because CPP needs to be expanded
13520 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13521 do
13522 ac_preproc_ok=false
13523for ac_c_preproc_warn_flag in '' yes
13524do
13525 # Use a header file that comes with gcc, so configuring glibc
13526 # with a fresh cross-compiler works.
13527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13528 # <limits.h> exists even on freestanding compilers.
13529 # On the NeXT, cc -E runs the code through the compiler's parser,
13530 # not just through cpp. "Syntax error" is here to catch this case.
13531 cat >conftest.$ac_ext <<_ACEOF
13532/* confdefs.h. */
13533_ACEOF
13534cat confdefs.h >>conftest.$ac_ext
13535cat >>conftest.$ac_ext <<_ACEOF
13536/* end confdefs.h. */
13537#ifdef __STDC__
13538# include <limits.h>
13539#else
13540# include <assert.h>
13541#endif
ac1cb8d3 13542 Syntax error
a848cd7e
SC
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 :
13563else
13564 echo "$as_me: failed program was:" >&5
13565sed 's/^/| /' conftest.$ac_ext >&5
13566
13567 # Broken: fails on valid input.
13568continue
13569fi
13570rm -f conftest.err conftest.$ac_ext
13571
13572 # OK, works on sane cases. Now check whether non-existent headers
13573 # can be detected and how.
13574 cat >conftest.$ac_ext <<_ACEOF
13575/* confdefs.h. */
13576_ACEOF
13577cat confdefs.h >>conftest.$ac_ext
13578cat >>conftest.$ac_ext <<_ACEOF
13579/* end confdefs.h. */
13580#include <ac_nonexistent.h>
13581_ACEOF
13582if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13584 ac_status=$?
13585 grep -v '^ *+' conftest.er1 >conftest.err
13586 rm -f conftest.er1
13587 cat conftest.err >&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } >/dev/null; then
13590 if test -s conftest.err; then
13591 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13593 else
13594 ac_cpp_err=
13595 fi
13596else
13597 ac_cpp_err=yes
13598fi
13599if test -z "$ac_cpp_err"; then
13600 # Broken: success on invalid input.
13601continue
13602else
13603 echo "$as_me: failed program was:" >&5
13604sed 's/^/| /' conftest.$ac_ext >&5
13605
13606 # Passes both tests.
13607ac_preproc_ok=:
13608break
13609fi
13610rm -f conftest.err conftest.$ac_ext
13611
13612done
13613# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13614rm -f conftest.err conftest.$ac_ext
13615if $ac_preproc_ok; then
13616 break
13617fi
13618
13619 done
13620 ac_cv_prog_CPP=$CPP
13621
13622fi
13623 CPP=$ac_cv_prog_CPP
13624else
13625 ac_cv_prog_CPP=$CPP
13626fi
13627echo "$as_me:$LINENO: result: $CPP" >&5
13628echo "${ECHO_T}$CPP" >&6
13629ac_preproc_ok=false
13630for ac_c_preproc_warn_flag in '' yes
13631do
13632 # Use a header file that comes with gcc, so configuring glibc
13633 # with a fresh cross-compiler works.
13634 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13635 # <limits.h> exists even on freestanding compilers.
13636 # On the NeXT, cc -E runs the code through the compiler's parser,
13637 # not just through cpp. "Syntax error" is here to catch this case.
13638 cat >conftest.$ac_ext <<_ACEOF
13639/* confdefs.h. */
13640_ACEOF
13641cat confdefs.h >>conftest.$ac_ext
13642cat >>conftest.$ac_ext <<_ACEOF
13643/* end confdefs.h. */
13644#ifdef __STDC__
13645# include <limits.h>
13646#else
13647# include <assert.h>
13648#endif
ac1cb8d3 13649 Syntax error
a848cd7e
SC
13650_ACEOF
13651if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13653 ac_status=$?
13654 grep -v '^ *+' conftest.er1 >conftest.err
13655 rm -f conftest.er1
13656 cat conftest.err >&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); } >/dev/null; then
13659 if test -s conftest.err; then
13660 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13662 else
13663 ac_cpp_err=
13664 fi
13665else
13666 ac_cpp_err=yes
13667fi
13668if test -z "$ac_cpp_err"; then
13669 :
13670else
13671 echo "$as_me: failed program was:" >&5
13672sed 's/^/| /' conftest.$ac_ext >&5
13673
13674 # Broken: fails on valid input.
13675continue
13676fi
13677rm -f conftest.err conftest.$ac_ext
13678
13679 # OK, works on sane cases. Now check whether non-existent headers
13680 # can be detected and how.
13681 cat >conftest.$ac_ext <<_ACEOF
13682/* confdefs.h. */
13683_ACEOF
13684cat confdefs.h >>conftest.$ac_ext
13685cat >>conftest.$ac_ext <<_ACEOF
13686/* end confdefs.h. */
13687#include <ac_nonexistent.h>
13688_ACEOF
13689if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13691 ac_status=$?
13692 grep -v '^ *+' conftest.er1 >conftest.err
13693 rm -f conftest.er1
13694 cat conftest.err >&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); } >/dev/null; then
13697 if test -s conftest.err; then
13698 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13700 else
13701 ac_cpp_err=
13702 fi
13703else
13704 ac_cpp_err=yes
13705fi
13706if test -z "$ac_cpp_err"; then
13707 # Broken: success on invalid input.
13708continue
13709else
13710 echo "$as_me: failed program was:" >&5
13711sed 's/^/| /' conftest.$ac_ext >&5
13712
13713 # Passes both tests.
13714ac_preproc_ok=:
13715break
13716fi
13717rm -f conftest.err conftest.$ac_ext
13718
13719done
13720# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13721rm -f conftest.err conftest.$ac_ext
13722if $ac_preproc_ok; then
13723 :
13724else
13725 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13726See \`config.log' for more details." >&5
13727echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13728See \`config.log' for more details." >&2;}
13729 { (exit 1); exit 1; }; }
13730fi
13731
13732ac_ext=c
13733ac_cpp='$CPP $CPPFLAGS'
13734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13736ac_compiler_gnu=$ac_cv_c_compiler_gnu
13737
13738
13739echo "$as_me:$LINENO: checking for egrep" >&5
13740echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13741if test "${ac_cv_prog_egrep+set}" = set; then
13742 echo $ECHO_N "(cached) $ECHO_C" >&6
13743else
13744 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13745 then ac_cv_prog_egrep='grep -E'
13746 else ac_cv_prog_egrep='egrep'
13747 fi
13748fi
13749echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13750echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13751 EGREP=$ac_cv_prog_egrep
13752
13753
13754if test $ac_cv_c_compiler_gnu = yes; then
13755 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13756echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13757if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13758 echo $ECHO_N "(cached) $ECHO_C" >&6
13759else
13760 ac_pattern="Autoconf.*'x'"
13761 cat >conftest.$ac_ext <<_ACEOF
13762/* confdefs.h. */
13763_ACEOF
13764cat confdefs.h >>conftest.$ac_ext
13765cat >>conftest.$ac_ext <<_ACEOF
13766/* end confdefs.h. */
13767#include <sgtty.h>
13768Autoconf TIOCGETP
13769_ACEOF
13770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13771 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13772 ac_cv_prog_gcc_traditional=yes
13773else
13774 ac_cv_prog_gcc_traditional=no
13775fi
13776rm -f conftest*
13777
13778
13779 if test $ac_cv_prog_gcc_traditional = no; then
13780 cat >conftest.$ac_ext <<_ACEOF
13781/* confdefs.h. */
13782_ACEOF
13783cat confdefs.h >>conftest.$ac_ext
13784cat >>conftest.$ac_ext <<_ACEOF
13785/* end confdefs.h. */
13786#include <termio.h>
13787Autoconf TCGETA
13788_ACEOF
13789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13790 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13791 ac_cv_prog_gcc_traditional=yes
13792fi
13793rm -f conftest*
13794
13795 fi
13796fi
13797echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13798echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13799 if test $ac_cv_prog_gcc_traditional = yes; then
13800 CC="$CC -traditional"
13801 fi
13802fi
13803
13804
a848cd7e
SC
13805ac_ext=cc
13806ac_cpp='$CXXCPP $CPPFLAGS'
13807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13810
13811
13812CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13813
13814
3006edc0 13815
6dcfc289 13816 ac_ext=cc
a848cd7e
SC
13817ac_cpp='$CXXCPP $CPPFLAGS'
13818ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13819ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13820ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13821if test -n "$ac_tool_prefix"; then
13822 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13823 do
13824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13825set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13826echo "$as_me:$LINENO: checking for $ac_word" >&5
13827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13828if test "${ac_cv_prog_CXX+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13830else
13831 if test -n "$CXX"; then
13832 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13833else
13834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13835for as_dir in $PATH
13836do
13837 IFS=$as_save_IFS
13838 test -z "$as_dir" && as_dir=.
13839 for ac_exec_ext in '' $ac_executable_extensions; do
13840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13841 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13843 break 2
13844 fi
13845done
13846done
13847
13848fi
13849fi
13850CXX=$ac_cv_prog_CXX
13851if test -n "$CXX"; then
13852 echo "$as_me:$LINENO: result: $CXX" >&5
13853echo "${ECHO_T}$CXX" >&6
13854else
13855 echo "$as_me:$LINENO: result: no" >&5
13856echo "${ECHO_T}no" >&6
13857fi
13858
13859 test -n "$CXX" && break
13860 done
13861fi
13862if test -z "$CXX"; then
13863 ac_ct_CXX=$CXX
13864 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13865do
13866 # Extract the first word of "$ac_prog", so it can be a program name with args.
13867set dummy $ac_prog; ac_word=$2
13868echo "$as_me:$LINENO: checking for $ac_word" >&5
13869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13870if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872else
13873 if test -n "$ac_ct_CXX"; then
13874 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13875else
13876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13877for as_dir in $PATH
13878do
13879 IFS=$as_save_IFS
13880 test -z "$as_dir" && as_dir=.
13881 for ac_exec_ext in '' $ac_executable_extensions; do
13882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13883 ac_cv_prog_ac_ct_CXX="$ac_prog"
13884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13885 break 2
13886 fi
13887done
13888done
13889
13890fi
13891fi
13892ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13893if test -n "$ac_ct_CXX"; then
13894 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13895echo "${ECHO_T}$ac_ct_CXX" >&6
13896else
13897 echo "$as_me:$LINENO: result: no" >&5
13898echo "${ECHO_T}no" >&6
13899fi
13900
13901 test -n "$ac_ct_CXX" && break
13902done
13903test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13904
13905 CXX=$ac_ct_CXX
13906fi
13907
13908
13909# Provide some information about the compiler.
13910echo "$as_me:$LINENO:" \
13911 "checking for C++ compiler version" >&5
13912ac_compiler=`set X $ac_compile; echo $2`
13913{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13914 (eval $ac_compiler --version </dev/null >&5) 2>&5
13915 ac_status=$?
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }
13918{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13919 (eval $ac_compiler -v </dev/null >&5) 2>&5
13920 ac_status=$?
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }
13923{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13924 (eval $ac_compiler -V </dev/null >&5) 2>&5
13925 ac_status=$?
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }
13928
13929echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13930echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13931if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13932 echo $ECHO_N "(cached) $ECHO_C" >&6
13933else
13934 cat >conftest.$ac_ext <<_ACEOF
13935/* confdefs.h. */
13936_ACEOF
13937cat confdefs.h >>conftest.$ac_ext
13938cat >>conftest.$ac_ext <<_ACEOF
13939/* end confdefs.h. */
13940
13941int
13942main ()
13943{
13944#ifndef __GNUC__
13945 choke me
13946#endif
13947
13948 ;
13949 return 0;
13950}
13951_ACEOF
13952rm -f conftest.$ac_objext
13953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13954 (eval $ac_compile) 2>conftest.er1
a848cd7e 13955 ac_status=$?
ac1cb8d3
VS
13956 grep -v '^ *+' conftest.er1 >conftest.err
13957 rm -f conftest.er1
13958 cat conftest.err >&5
a848cd7e
SC
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } &&
64b75e64 13961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13963 (eval $ac_try) 2>&5
13964 ac_status=$?
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); }; } &&
13967 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969 (eval $ac_try) 2>&5
13970 ac_status=$?
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; }; then
13973 ac_compiler_gnu=yes
13974else
13975 echo "$as_me: failed program was:" >&5
13976sed 's/^/| /' conftest.$ac_ext >&5
13977
13978ac_compiler_gnu=no
13979fi
ac1cb8d3 13980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13981ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13982
13983fi
13984echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13985echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13986GXX=`test $ac_compiler_gnu = yes && echo yes`
13987ac_test_CXXFLAGS=${CXXFLAGS+set}
13988ac_save_CXXFLAGS=$CXXFLAGS
13989CXXFLAGS="-g"
13990echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13991echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13992if test "${ac_cv_prog_cxx_g+set}" = set; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13994else
13995 cat >conftest.$ac_ext <<_ACEOF
13996/* confdefs.h. */
13997_ACEOF
13998cat confdefs.h >>conftest.$ac_ext
13999cat >>conftest.$ac_ext <<_ACEOF
14000/* end confdefs.h. */
14001
14002int
14003main ()
14004{
14005
14006 ;
14007 return 0;
14008}
14009_ACEOF
14010rm -f conftest.$ac_objext
14011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14012 (eval $ac_compile) 2>conftest.er1
a848cd7e 14013 ac_status=$?
ac1cb8d3
VS
14014 grep -v '^ *+' conftest.er1 >conftest.err
14015 rm -f conftest.er1
14016 cat conftest.err >&5
a848cd7e
SC
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); } &&
64b75e64 14019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; } &&
14025 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14028 ac_status=$?
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
14031 ac_cv_prog_cxx_g=yes
14032else
14033 echo "$as_me: failed program was:" >&5
14034sed 's/^/| /' conftest.$ac_ext >&5
14035
14036ac_cv_prog_cxx_g=no
14037fi
ac1cb8d3 14038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14039fi
14040echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
14041echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
14042if test "$ac_test_CXXFLAGS" = set; then
14043 CXXFLAGS=$ac_save_CXXFLAGS
14044elif test $ac_cv_prog_cxx_g = yes; then
14045 if test "$GXX" = yes; then
15291213 14046 CXXFLAGS="-g -O2"
a848cd7e 14047 else
15291213 14048 CXXFLAGS="-g"
a848cd7e
SC
14049 fi
14050else
14051 if test "$GXX" = yes; then
14052 CXXFLAGS="-O2"
14053 else
14054 CXXFLAGS=
14055 fi
14056fi
14057for ac_declaration in \
ac1cb8d3 14058 '' \
a848cd7e
SC
14059 'extern "C" void std::exit (int) throw (); using std::exit;' \
14060 'extern "C" void std::exit (int); using std::exit;' \
14061 'extern "C" void exit (int) throw ();' \
14062 'extern "C" void exit (int);' \
14063 'void exit (int);'
14064do
14065 cat >conftest.$ac_ext <<_ACEOF
14066/* confdefs.h. */
14067_ACEOF
14068cat confdefs.h >>conftest.$ac_ext
14069cat >>conftest.$ac_ext <<_ACEOF
14070/* end confdefs.h. */
de59c161 14071$ac_declaration
ac1cb8d3 14072#include <stdlib.h>
a848cd7e
SC
14073int
14074main ()
14075{
14076exit (42);
14077 ;
14078 return 0;
14079}
14080_ACEOF
14081rm -f conftest.$ac_objext
14082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14083 (eval $ac_compile) 2>conftest.er1
a848cd7e 14084 ac_status=$?
ac1cb8d3
VS
14085 grep -v '^ *+' conftest.er1 >conftest.err
14086 rm -f conftest.er1
14087 cat conftest.err >&5
a848cd7e
SC
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } &&
64b75e64 14090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092 (eval $ac_try) 2>&5
14093 ac_status=$?
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; } &&
14096 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14099 ac_status=$?
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; }; then
14102 :
14103else
14104 echo "$as_me: failed program was:" >&5
14105sed 's/^/| /' conftest.$ac_ext >&5
14106
14107continue
14108fi
ac1cb8d3 14109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14110 cat >conftest.$ac_ext <<_ACEOF
14111/* confdefs.h. */
14112_ACEOF
14113cat confdefs.h >>conftest.$ac_ext
14114cat >>conftest.$ac_ext <<_ACEOF
14115/* end confdefs.h. */
14116$ac_declaration
14117int
14118main ()
14119{
14120exit (42);
14121 ;
14122 return 0;
14123}
14124_ACEOF
14125rm -f conftest.$ac_objext
14126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14127 (eval $ac_compile) 2>conftest.er1
a848cd7e 14128 ac_status=$?
ac1cb8d3
VS
14129 grep -v '^ *+' conftest.er1 >conftest.err
14130 rm -f conftest.er1
14131 cat conftest.err >&5
a848cd7e
SC
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); } &&
64b75e64 14134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14136 (eval $ac_try) 2>&5
14137 ac_status=$?
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }; } &&
14140 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14142 (eval $ac_try) 2>&5
14143 ac_status=$?
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }; }; then
14146 break
14147else
14148 echo "$as_me: failed program was:" >&5
14149sed 's/^/| /' conftest.$ac_ext >&5
14150
14151fi
ac1cb8d3 14152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14153done
14154rm -f conftest*
14155if test -n "$ac_declaration"; then
14156 echo '#ifdef __cplusplus' >>confdefs.h
14157 echo $ac_declaration >>confdefs.h
14158 echo '#endif' >>confdefs.h
14159fi
14160
14161ac_ext=cc
14162ac_cpp='$CXXCPP $CPPFLAGS'
14163ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14164ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14165ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14166
ab0ad5f1
VZ
14167
14168
14169 ac_ext=cc
14170ac_cpp='$CXXCPP $CPPFLAGS'
14171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14174
14175 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
14176echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
14177if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
14178 echo $ECHO_N "(cached) $ECHO_C" >&6
14179else
14180 cat >conftest.$ac_ext <<_ACEOF
14181/* confdefs.h. */
14182_ACEOF
14183cat confdefs.h >>conftest.$ac_ext
14184cat >>conftest.$ac_ext <<_ACEOF
14185/* end confdefs.h. */
14186
14187int
14188main ()
14189{
14190
14191 #ifndef __INTEL_COMPILER
14192 choke me
14193 #endif
14194
14195 ;
14196 return 0;
14197}
14198_ACEOF
14199rm -f conftest.$ac_objext
14200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14201 (eval $ac_compile) 2>conftest.er1
14202 ac_status=$?
14203 grep -v '^ *+' conftest.er1 >conftest.err
14204 rm -f conftest.er1
14205 cat conftest.err >&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } &&
64b75e64 14208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
14209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14210 (eval $ac_try) 2>&5
14211 ac_status=$?
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); }; } &&
14214 { ac_try='test -s conftest.$ac_objext'
14215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14216 (eval $ac_try) 2>&5
14217 ac_status=$?
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); }; }; then
14220 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14221else
14222 echo "$as_me: failed program was:" >&5
14223sed 's/^/| /' conftest.$ac_ext >&5
14224
14225bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14226
14227fi
14228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14229
14230
14231fi
14232echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14233echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
14234 ac_ext=cc
14235ac_cpp='$CXXCPP $CPPFLAGS'
14236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14238ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14239
14240 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
14241 :; INTELCXX=yes
14242 else
14243 :;
14244 fi
14245
14246
3006edc0
VZ
14247 if test "x$GCXX" != "xyes"; then
14248 if test "xCXX" = "xC"; then
14249 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 14250echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 14251if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
14252 echo $ECHO_N "(cached) $ECHO_C" >&6
14253else
14254 cat >conftest.$ac_ext <<_ACEOF
14255/* confdefs.h. */
14256_ACEOF
14257cat confdefs.h >>conftest.$ac_ext
14258cat >>conftest.$ac_ext <<_ACEOF
14259/* end confdefs.h. */
14260
14261int
14262main ()
14263{
14264
14265 ;
14266 return 0;
14267}
14268_ACEOF
14269rm -f conftest.$ac_objext conftest.$ac_ext.o
14270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14271 (eval $ac_compile) 2>&5
14272 ac_status=$?
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; then
14275 for ac_file in `(ls conftest.* 2>/dev/null)`; do
14276 case $ac_file in
14277 conftest.$ac_ext.o)
0093c2fc 14278 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
14279 ;;
14280 *)
14281 ;;
14282 esac
14283done
14284else
14285 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14286See \`config.log' for more details." >&5
14287echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14288See \`config.log' for more details." >&2;}
14289 { (exit 1); exit 1; }; }
14290
14291fi
14292
14293rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14294
14295fi
0093c2fc
VZ
14296echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14297echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14298if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 14299 if test "cxx" = "c"; then
0093c2fc 14300 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
14301 fi
14302 if test "cxx" = "cxx"; then
0093c2fc 14303 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
14304 fi
14305fi
14306
0093c2fc 14307 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14308 unset ac_cv_prog_cc_g
14309 ac_test_CFLAGS=${CFLAGS+set}
14310ac_save_CFLAGS=$CFLAGS
15291213 14311CFLAGS="-g"
3006edc0
VZ
14312echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14313echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14314if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
14316else
14317 cat >conftest.$ac_ext <<_ACEOF
14318/* confdefs.h. */
14319_ACEOF
14320cat confdefs.h >>conftest.$ac_ext
14321cat >>conftest.$ac_ext <<_ACEOF
14322/* end confdefs.h. */
14323
14324int
14325main ()
14326{
14327
14328 ;
14329 return 0;
14330}
14331_ACEOF
14332rm -f conftest.$ac_objext
14333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14334 (eval $ac_compile) 2>conftest.er1
14335 ac_status=$?
14336 grep -v '^ *+' conftest.er1 >conftest.err
14337 rm -f conftest.er1
14338 cat conftest.err >&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); } &&
64b75e64 14341 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
14342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343 (eval $ac_try) 2>&5
14344 ac_status=$?
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }; } &&
14347 { ac_try='test -s conftest.$ac_objext'
14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14350 ac_status=$?
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; }; then
3006edc0 14353 ac_cv_prog_cc_g=yes
480ccd21
DE
14354else
14355 echo "$as_me: failed program was:" >&5
14356sed 's/^/| /' conftest.$ac_ext >&5
14357
3006edc0 14358ac_cv_prog_cc_g=no
480ccd21
DE
14359fi
14360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14361fi
3006edc0
VZ
14362echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14363echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14364if test "$ac_test_CFLAGS" = set; then
14365 CFLAGS=$ac_save_CFLAGS
14366elif test $ac_cv_prog_cc_g = yes; then
14367 if test "$GCC" = yes; then
14368 CFLAGS="-g -O2"
480ccd21 14369 else
3006edc0 14370 CFLAGS="-g"
480ccd21
DE
14371 fi
14372else
3006edc0
VZ
14373 if test "$GCC" = yes; then
14374 CFLAGS="-O2"
480ccd21 14375 else
3006edc0 14376 CFLAGS=
480ccd21
DE
14377 fi
14378fi
3006edc0 14379 fi
ab0ad5f1 14380 fi
3006edc0
VZ
14381
14382 case `uname -s` in
14383 AIX*)
14384 ac_ext=cc
14385ac_cpp='$CXXCPP $CPPFLAGS'
14386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14389
14390echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14391echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14392if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14394else
14395 cat >conftest.$ac_ext <<_ACEOF
14396/* confdefs.h. */
14397_ACEOF
14398cat confdefs.h >>conftest.$ac_ext
14399cat >>conftest.$ac_ext <<_ACEOF
14400/* end confdefs.h. */
14401
14402int
14403main ()
14404{
14405#ifndef __xlC__
14406 choke me
14407#endif
14408
14409 ;
14410 return 0;
14411}
14412_ACEOF
14413rm -f conftest.$ac_objext
14414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14415 (eval $ac_compile) 2>conftest.er1
14416 ac_status=$?
14417 grep -v '^ *+' conftest.er1 >conftest.err
14418 rm -f conftest.er1
14419 cat conftest.err >&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); } &&
64b75e64 14422 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14425 ac_status=$?
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; } &&
14428 { ac_try='test -s conftest.$ac_objext'
14429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430 (eval $ac_try) 2>&5
14431 ac_status=$?
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; }; then
0093c2fc 14434 bakefile_compiler_xlc=yes
3006edc0
VZ
14435else
14436 echo "$as_me: failed program was:" >&5
14437sed 's/^/| /' conftest.$ac_ext >&5
14438
0093c2fc 14439bakefile_compiler_xlc=no
3006edc0
VZ
14440fi
14441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14442 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14443
14444fi
0093c2fc
VZ
14445echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14446echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14447
0093c2fc 14448XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
14449ac_ext=cc
14450ac_cpp='$CXXCPP $CPPFLAGS'
14451ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14452ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14453ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14454
14455
14456 ;;
14457
14458 Darwin)
14459 ac_ext=cc
95986553
DE
14460ac_cpp='$CXXCPP $CPPFLAGS'
14461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14464
14465echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14466echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14467if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14468 echo $ECHO_N "(cached) $ECHO_C" >&6
14469else
14470 cat >conftest.$ac_ext <<_ACEOF
14471/* confdefs.h. */
14472_ACEOF
14473cat confdefs.h >>conftest.$ac_ext
14474cat >>conftest.$ac_ext <<_ACEOF
14475/* end confdefs.h. */
14476
14477int
14478main ()
14479{
14480#ifndef __MWERKS__
14481 choke me
14482#endif
14483
14484 ;
14485 return 0;
14486}
14487_ACEOF
14488rm -f conftest.$ac_objext
14489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14490 (eval $ac_compile) 2>conftest.er1
14491 ac_status=$?
14492 grep -v '^ *+' conftest.er1 >conftest.err
14493 rm -f conftest.er1
14494 cat conftest.err >&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); } &&
64b75e64 14497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
14498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499 (eval $ac_try) 2>&5
14500 ac_status=$?
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; } &&
14503 { ac_try='test -s conftest.$ac_objext'
14504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14505 (eval $ac_try) 2>&5
14506 ac_status=$?
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); }; }; then
14509 bakefile_compiler_mwerks=yes
14510else
14511 echo "$as_me: failed program was:" >&5
14512sed 's/^/| /' conftest.$ac_ext >&5
14513
14514bakefile_compiler_mwerks=no
14515fi
14516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14517 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14518
14519fi
14520echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14521echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14522
0e6fa1d9 14523MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
14524ac_ext=cc
14525ac_cpp='$CXXCPP $CPPFLAGS'
14526ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14527ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14528ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14529
14530
3006edc0 14531 ac_ext=cc
9273ffba
DE
14532ac_cpp='$CXXCPP $CPPFLAGS'
14533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14536
14537echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14538echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14539if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14541else
14542 cat >conftest.$ac_ext <<_ACEOF
14543/* confdefs.h. */
14544_ACEOF
14545cat confdefs.h >>conftest.$ac_ext
14546cat >>conftest.$ac_ext <<_ACEOF
14547/* end confdefs.h. */
14548
14549int
14550main ()
14551{
14552#ifndef __xlC__
14553 choke me
14554#endif
14555
14556 ;
14557 return 0;
14558}
14559_ACEOF
14560rm -f conftest.$ac_objext
14561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14562 (eval $ac_compile) 2>conftest.er1
14563 ac_status=$?
14564 grep -v '^ *+' conftest.er1 >conftest.err
14565 rm -f conftest.er1
14566 cat conftest.err >&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); } &&
64b75e64 14569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
14570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571 (eval $ac_try) 2>&5
14572 ac_status=$?
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; } &&
14575 { ac_try='test -s conftest.$ac_objext'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14578 ac_status=$?
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; }; then
0093c2fc 14581 bakefile_compiler_xlc=yes
9273ffba
DE
14582else
14583 echo "$as_me: failed program was:" >&5
14584sed 's/^/| /' conftest.$ac_ext >&5
14585
0093c2fc 14586bakefile_compiler_xlc=no
9273ffba
DE
14587fi
14588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14589 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14590
14591fi
0093c2fc
VZ
14592echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14593echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14594
0093c2fc 14595XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14596ac_ext=cc
14597ac_cpp='$CXXCPP $CPPFLAGS'
14598ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14599ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14600ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14601
14602
3006edc0
VZ
14603 ;;
14604
14605 IRIX*)
95986553 14606
6dcfc289 14607
0ad5d837
VZ
14608 ac_ext=cc
14609ac_cpp='$CXXCPP $CPPFLAGS'
14610ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14611ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14612ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14613
14614 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14615echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14616if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14618else
14619 cat >conftest.$ac_ext <<_ACEOF
14620/* confdefs.h. */
14621_ACEOF
14622cat confdefs.h >>conftest.$ac_ext
14623cat >>conftest.$ac_ext <<_ACEOF
14624/* end confdefs.h. */
14625
14626int
14627main ()
14628{
14629
14630 #ifndef _SGI_COMPILER_VERSION
14631 choke me
14632 #endif
14633
14634 ;
14635 return 0;
14636}
14637_ACEOF
14638rm -f conftest.$ac_objext
14639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14640 (eval $ac_compile) 2>conftest.er1
14641 ac_status=$?
14642 grep -v '^ *+' conftest.er1 >conftest.err
14643 rm -f conftest.er1
14644 cat conftest.err >&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } &&
64b75e64 14647 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
14648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14649 (eval $ac_try) 2>&5
14650 ac_status=$?
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; } &&
14653 { ac_try='test -s conftest.$ac_objext'
14654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655 (eval $ac_try) 2>&5
14656 ac_status=$?
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; }; then
14659 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14660else
14661 echo "$as_me: failed program was:" >&5
14662sed 's/^/| /' conftest.$ac_ext >&5
14663
14664bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14665
14666fi
14667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14668
14669
14670fi
14671echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14672echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14673 ac_ext=cc
14674ac_cpp='$CXXCPP $CPPFLAGS'
14675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14678
14679 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14680 :; SGICXX=yes
14681 else
14682 :;
14683 fi
14684
14685
3006edc0
VZ
14686 ;;
14687
0093c2fc 14688 HP-UX*)
3006edc0
VZ
14689
14690
14691 ac_ext=cc
14692ac_cpp='$CXXCPP $CPPFLAGS'
14693ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14694ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14695ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14696
0093c2fc
VZ
14697 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14698echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14699if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14701else
14702 cat >conftest.$ac_ext <<_ACEOF
14703/* confdefs.h. */
14704_ACEOF
14705cat confdefs.h >>conftest.$ac_ext
14706cat >>conftest.$ac_ext <<_ACEOF
14707/* end confdefs.h. */
14708
14709int
14710main ()
14711{
14712
0093c2fc 14713 #ifndef __HP_aCC
3006edc0
VZ
14714 choke me
14715 #endif
14716
14717 ;
14718 return 0;
14719}
14720_ACEOF
14721rm -f conftest.$ac_objext
14722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14723 (eval $ac_compile) 2>conftest.er1
14724 ac_status=$?
14725 grep -v '^ *+' conftest.er1 >conftest.err
14726 rm -f conftest.er1
14727 cat conftest.err >&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } &&
64b75e64 14730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14733 ac_status=$?
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; } &&
14736 { ac_try='test -s conftest.$ac_objext'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14739 ac_status=$?
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
0093c2fc 14742 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14743else
14744 echo "$as_me: failed program was:" >&5
14745sed 's/^/| /' conftest.$ac_ext >&5
14746
0093c2fc 14747bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14748
14749fi
14750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14751
14752
14753fi
0093c2fc
VZ
14754echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14755echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14756 ac_ext=cc
14757ac_cpp='$CXXCPP $CPPFLAGS'
14758ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14759ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14760ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14761
0093c2fc
VZ
14762 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14763 :; HPCXX=yes
a1aa0349
VZ
14764 else
14765 :;
14766 fi
14767
14768
14769 ;;
14770
0093c2fc 14771 OSF1)
a1aa0349
VZ
14772
14773
14774 ac_ext=cc
14775ac_cpp='$CXXCPP $CPPFLAGS'
14776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14779
0093c2fc
VZ
14780 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14781echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14782if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14784else
14785 cat >conftest.$ac_ext <<_ACEOF
14786/* confdefs.h. */
14787_ACEOF
14788cat confdefs.h >>conftest.$ac_ext
14789cat >>conftest.$ac_ext <<_ACEOF
14790/* end confdefs.h. */
14791
14792int
14793main ()
14794{
14795
0093c2fc 14796 #ifndef __DECCXX
a1aa0349
VZ
14797 choke me
14798 #endif
14799
14800 ;
14801 return 0;
14802}
14803_ACEOF
14804rm -f conftest.$ac_objext
14805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14806 (eval $ac_compile) 2>conftest.er1
14807 ac_status=$?
14808 grep -v '^ *+' conftest.er1 >conftest.err
14809 rm -f conftest.er1
14810 cat conftest.err >&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } &&
64b75e64 14813 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14816 ac_status=$?
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; } &&
14819 { ac_try='test -s conftest.$ac_objext'
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14822 ac_status=$?
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; }; then
0093c2fc 14825 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14826else
14827 echo "$as_me: failed program was:" >&5
14828sed 's/^/| /' conftest.$ac_ext >&5
14829
0093c2fc 14830bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14831
14832fi
14833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14834
14835
14836fi
0093c2fc
VZ
14837echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14838echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14839 ac_ext=cc
14840ac_cpp='$CXXCPP $CPPFLAGS'
14841ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14842ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14843ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14844
0093c2fc
VZ
14845 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14846 :; COMPAQCXX=yes
14847 else
14848 :;
14849 fi
14850
14851
14852 ;;
14853
14854 SunOS)
14855
14856
14857 ac_ext=cc
14858ac_cpp='$CXXCPP $CPPFLAGS'
14859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14862
14863 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14864echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14865if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14866 echo $ECHO_N "(cached) $ECHO_C" >&6
14867else
14868 cat >conftest.$ac_ext <<_ACEOF
14869/* confdefs.h. */
14870_ACEOF
14871cat confdefs.h >>conftest.$ac_ext
14872cat >>conftest.$ac_ext <<_ACEOF
14873/* end confdefs.h. */
14874
14875int
14876main ()
14877{
14878
14879 #ifndef __SUNPRO_CC
14880 choke me
14881 #endif
14882
14883 ;
14884 return 0;
14885}
14886_ACEOF
14887rm -f conftest.$ac_objext
14888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14889 (eval $ac_compile) 2>conftest.er1
14890 ac_status=$?
14891 grep -v '^ *+' conftest.er1 >conftest.err
14892 rm -f conftest.er1
14893 cat conftest.err >&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } &&
64b75e64 14896 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14899 ac_status=$?
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; } &&
14902 { ac_try='test -s conftest.$ac_objext'
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14905 ac_status=$?
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; }; then
14908 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14909else
14910 echo "$as_me: failed program was:" >&5
14911sed 's/^/| /' conftest.$ac_ext >&5
14912
14913bakefile_cv_cxx_compiler___SUNPRO_CC=no
14914
14915fi
14916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14917
14918
14919fi
14920echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14921echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14922 ac_ext=cc
14923ac_cpp='$CXXCPP $CPPFLAGS'
14924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14927
14928 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14929 :; SUNCXX=yes
3006edc0
VZ
14930 else
14931 :;
ab0ad5f1 14932 fi
a9e5b1f0
MW
14933
14934
3006edc0
VZ
14935 ;;
14936 esac
14937 fi
14938
14939
14940
a848cd7e
SC
14941if test -n "$ac_tool_prefix"; then
14942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14943set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14944echo "$as_me:$LINENO: checking for $ac_word" >&5
14945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14946if test "${ac_cv_prog_RANLIB+set}" = set; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
14948else
14949 if test -n "$RANLIB"; then
14950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14951else
14952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14953for as_dir in $PATH
14954do
14955 IFS=$as_save_IFS
14956 test -z "$as_dir" && as_dir=.
14957 for ac_exec_ext in '' $ac_executable_extensions; do
14958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14961 break 2
14962 fi
14963done
14964done
14965
14966fi
14967fi
14968RANLIB=$ac_cv_prog_RANLIB
14969if test -n "$RANLIB"; then
14970 echo "$as_me:$LINENO: result: $RANLIB" >&5
14971echo "${ECHO_T}$RANLIB" >&6
14972else
14973 echo "$as_me:$LINENO: result: no" >&5
14974echo "${ECHO_T}no" >&6
14975fi
14976
14977fi
14978if test -z "$ac_cv_prog_RANLIB"; then
14979 ac_ct_RANLIB=$RANLIB
14980 # Extract the first word of "ranlib", so it can be a program name with args.
14981set dummy ranlib; ac_word=$2
14982echo "$as_me:$LINENO: checking for $ac_word" >&5
14983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14984if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
14986else
14987 if test -n "$ac_ct_RANLIB"; then
14988 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14989else
14990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14991for as_dir in $PATH
14992do
14993 IFS=$as_save_IFS
14994 test -z "$as_dir" && as_dir=.
14995 for ac_exec_ext in '' $ac_executable_extensions; do
14996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14997 ac_cv_prog_ac_ct_RANLIB="ranlib"
14998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14999 break 2
15000 fi
15001done
15002done
15003
15004 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15005fi
15006fi
15007ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15008if test -n "$ac_ct_RANLIB"; then
15009 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15010echo "${ECHO_T}$ac_ct_RANLIB" >&6
15011else
15012 echo "$as_me:$LINENO: result: no" >&5
15013echo "${ECHO_T}no" >&6
15014fi
15015
15016 RANLIB=$ac_ct_RANLIB
15017else
15018 RANLIB="$ac_cv_prog_RANLIB"
15019fi
15020
15021
8c80d384
DE
15022if test -n "$ac_tool_prefix"; then
15023 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15024set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
15025echo "$as_me:$LINENO: checking for $ac_word" >&5
15026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15027if test "${ac_cv_prog_AR+set}" = set; then
15028 echo $ECHO_N "(cached) $ECHO_C" >&6
15029else
15030 if test -n "$AR"; then
15031 ac_cv_prog_AR="$AR" # Let the user override the test.
15032else
15033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15034for as_dir in $PATH
15035do
15036 IFS=$as_save_IFS
15037 test -z "$as_dir" && as_dir=.
15038 for ac_exec_ext in '' $ac_executable_extensions; do
15039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15040 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
15041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15042 break 2
15043 fi
15044done
15045done
15046
15047fi
15048fi
15049AR=$ac_cv_prog_AR
15050if test -n "$AR"; then
15051 echo "$as_me:$LINENO: result: $AR" >&5
15052echo "${ECHO_T}$AR" >&6
15053else
15054 echo "$as_me:$LINENO: result: no" >&5
15055echo "${ECHO_T}no" >&6
15056fi
15057
8c80d384
DE
15058fi
15059if test -z "$ac_cv_prog_AR"; then
15060 ac_ct_AR=$AR
15061 # Extract the first word of "ar", so it can be a program name with args.
15062set dummy ar; ac_word=$2
15063echo "$as_me:$LINENO: checking for $ac_word" >&5
15064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15065if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15066 echo $ECHO_N "(cached) $ECHO_C" >&6
15067else
15068 if test -n "$ac_ct_AR"; then
15069 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15070else
15071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15072for as_dir in $PATH
15073do
15074 IFS=$as_save_IFS
15075 test -z "$as_dir" && as_dir=.
15076 for ac_exec_ext in '' $ac_executable_extensions; do
15077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15078 ac_cv_prog_ac_ct_AR="ar"
15079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15080 break 2
15081 fi
15082done
15083done
15084
15085fi
15086fi
15087ac_ct_AR=$ac_cv_prog_ac_ct_AR
15088if test -n "$ac_ct_AR"; then
15089 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15090echo "${ECHO_T}$ac_ct_AR" >&6
15091else
15092 echo "$as_me:$LINENO: result: no" >&5
15093echo "${ECHO_T}no" >&6
15094fi
15095
15096 AR=$ac_ct_AR
15097else
15098 AR="$ac_cv_prog_AR"
15099fi
15100
a848cd7e 15101if test "x$AR" = "x" ; then
77ffb593
JS
15102 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
15103echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
15104 { (exit 1); exit 1; }; }
15105fi
15106
15107# Find a good install program. We prefer a C program (faster),
15108# so one script is as good as another. But avoid the broken or
15109# incompatible versions:
15110# SysV /etc/install, /usr/sbin/install
15111# SunOS /usr/etc/install
15112# IRIX /sbin/install
15113# AIX /bin/install
15114# AmigaOS /C/install, which installs bootblocks on floppy discs
15115# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15116# AFS /usr/afsws/bin/install, which mishandles nonexistent args
15117# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 15118# OS/2's system install, which has a completely different semantic
a848cd7e
SC
15119# ./install, which can be erroneously created by make from ./install.sh.
15120echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
15121echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
15122if test -z "$INSTALL"; then
15123if test "${ac_cv_path_install+set}" = set; then
15124 echo $ECHO_N "(cached) $ECHO_C" >&6
15125else
15126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15127for as_dir in $PATH
15128do
15129 IFS=$as_save_IFS
15130 test -z "$as_dir" && as_dir=.
15131 # Account for people who put trailing slashes in PATH elements.
15132case $as_dir/ in
15133 ./ | .// | /cC/* | \
15134 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 15135 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
15136 /usr/ucb/* ) ;;
15137 *)
15138 # OSF1 and SCO ODT 3.0 have their own names for install.
15139 # Don't use installbsd from OSF since it installs stuff as root
15140 # by default.
15141 for ac_prog in ginstall scoinst install; do
15142 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
15143 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15144 if test $ac_prog = install &&
15145 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15146 # AIX install. It has an incompatible calling convention.
15147 :
15148 elif test $ac_prog = install &&
15149 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15150 # program-specific install script used by HP pwplus--don't use.
15151 :
15152 else
15153 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15154 break 3
15155 fi
15156 fi
a848cd7e
SC
15157 done
15158 done
15159 ;;
15160esac
15161done
15162
15163
15164fi
15165 if test "${ac_cv_path_install+set}" = set; then
15166 INSTALL=$ac_cv_path_install
15167 else
15168 # As a last resort, use the slow shell script. We don't cache a
15169 # path for INSTALL within a source directory, because that will
15170 # break other packages using the cache if that directory is
15171 # removed, or if the path is relative.
15172 INSTALL=$ac_install_sh
15173 fi
15174fi
15175echo "$as_me:$LINENO: result: $INSTALL" >&5
15176echo "${ECHO_T}$INSTALL" >&6
15177
15178# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15179# It thinks the first close brace ends the variable substitution.
15180test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15181
15182test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15183
15184test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15185
15186
15187case ${INSTALL} in
15188 /* ) # Absolute
15189 ;;
15190 ?:* ) # Drive letter, considered as absolute.
15191 ;;
15192 *)
15193 INSTALL=`pwd`/${INSTALL} ;;
15194esac
15195
a848cd7e
SC
15196
15197case "${host}" in
15198
cfda0ea8 15199 *-*-darwin* )
a848cd7e
SC
15200 INSTALL_PROGRAM="cp -fp"
15201 INSTALL_DATA="cp -fp"
15202 ;;
15203 *)
15204 ;;
15205esac
15206
8c80d384
DE
15207if test -n "$ac_tool_prefix"; then
15208 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15209set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
15210echo "$as_me:$LINENO: checking for $ac_word" >&5
15211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15212if test "${ac_cv_prog_STRIP+set}" = set; then
15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15214else
15215 if test -n "$STRIP"; then
15216 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15217else
15218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15219for as_dir in $PATH
15220do
15221 IFS=$as_save_IFS
15222 test -z "$as_dir" && as_dir=.
15223 for ac_exec_ext in '' $ac_executable_extensions; do
15224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15225 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
15226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15227 break 2
15228 fi
15229done
15230done
15231
a848cd7e
SC
15232fi
15233fi
15234STRIP=$ac_cv_prog_STRIP
15235if test -n "$STRIP"; then
15236 echo "$as_me:$LINENO: result: $STRIP" >&5
15237echo "${ECHO_T}$STRIP" >&6
15238else
15239 echo "$as_me:$LINENO: result: no" >&5
15240echo "${ECHO_T}no" >&6
15241fi
15242
8c80d384
DE
15243fi
15244if test -z "$ac_cv_prog_STRIP"; then
15245 ac_ct_STRIP=$STRIP
15246 # Extract the first word of "strip", so it can be a program name with args.
15247set dummy strip; ac_word=$2
15248echo "$as_me:$LINENO: checking for $ac_word" >&5
15249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15250if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15251 echo $ECHO_N "(cached) $ECHO_C" >&6
15252else
15253 if test -n "$ac_ct_STRIP"; then
15254 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15255else
15256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15257for as_dir in $PATH
15258do
15259 IFS=$as_save_IFS
15260 test -z "$as_dir" && as_dir=.
15261 for ac_exec_ext in '' $ac_executable_extensions; do
15262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15263 ac_cv_prog_ac_ct_STRIP="strip"
15264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15265 break 2
15266 fi
15267done
15268done
15269
15270 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15271fi
15272fi
15273ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15274if test -n "$ac_ct_STRIP"; then
15275 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15276echo "${ECHO_T}$ac_ct_STRIP" >&6
15277else
15278 echo "$as_me:$LINENO: result: no" >&5
15279echo "${ECHO_T}no" >&6
15280fi
15281
15282 STRIP=$ac_ct_STRIP
15283else
15284 STRIP="$ac_cv_prog_STRIP"
15285fi
15286
15287
15288if test "$wxUSE_WINE" = "yes"; then
15289 if test -n "$ac_tool_prefix"; then
15290 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15291set dummy ${ac_tool_prefix}wrc; ac_word=$2
15292echo "$as_me:$LINENO: checking for $ac_word" >&5
15293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15294if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
15295 echo $ECHO_N "(cached) $ECHO_C" >&6
15296else
8ced02f6
DE
15297 if test -n "$WINDRES"; then
15298 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15299else
15300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15301for as_dir in $PATH
15302do
15303 IFS=$as_save_IFS
15304 test -z "$as_dir" && as_dir=.
15305 for ac_exec_ext in '' $ac_executable_extensions; do
15306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15307 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15309 break 2
15310 fi
15311done
15312done
15313
15314fi
15315fi
8ced02f6
DE
15316WINDRES=$ac_cv_prog_WINDRES
15317if test -n "$WINDRES"; then
15318 echo "$as_me:$LINENO: result: $WINDRES" >&5
15319echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15320else
15321 echo "$as_me:$LINENO: result: no" >&5
15322echo "${ECHO_T}no" >&6
15323fi
15324
15325fi
8ced02f6
DE
15326if test -z "$ac_cv_prog_WINDRES"; then
15327 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15328 # Extract the first word of "wrc", so it can be a program name with args.
15329set dummy wrc; ac_word=$2
15330echo "$as_me:$LINENO: checking for $ac_word" >&5
15331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15332if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15333 echo $ECHO_N "(cached) $ECHO_C" >&6
15334else
8ced02f6
DE
15335 if test -n "$ac_ct_WINDRES"; then
15336 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15337else
15338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15339for as_dir in $PATH
15340do
15341 IFS=$as_save_IFS
15342 test -z "$as_dir" && as_dir=.
15343 for ac_exec_ext in '' $ac_executable_extensions; do
15344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15345 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15347 break 2
15348 fi
15349done
15350done
15351
15352fi
15353fi
8ced02f6
DE
15354ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15355if test -n "$ac_ct_WINDRES"; then
15356 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15357echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15358else
15359 echo "$as_me:$LINENO: result: no" >&5
15360echo "${ECHO_T}no" >&6
15361fi
15362
8ced02f6 15363 WINDRES=$ac_ct_WINDRES
8c80d384 15364else
8ced02f6 15365 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15366fi
15367
004ee6da 15368 RESCOMP="$WINDRES"
8c80d384
DE
15369else
15370 case "${host}" in
15371 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15372 if test -n "$ac_tool_prefix"; then
15373 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15374set dummy ${ac_tool_prefix}windres; ac_word=$2
15375echo "$as_me:$LINENO: checking for $ac_word" >&5
15376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15377if test "${ac_cv_prog_WINDRES+set}" = set; then
15378 echo $ECHO_N "(cached) $ECHO_C" >&6
15379else
15380 if test -n "$WINDRES"; then
15381 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15382else
15383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15384for as_dir in $PATH
15385do
15386 IFS=$as_save_IFS
15387 test -z "$as_dir" && as_dir=.
15388 for ac_exec_ext in '' $ac_executable_extensions; do
15389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15390 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15392 break 2
15393 fi
15394done
15395done
15396
15397fi
15398fi
15399WINDRES=$ac_cv_prog_WINDRES
15400if test -n "$WINDRES"; then
15401 echo "$as_me:$LINENO: result: $WINDRES" >&5
15402echo "${ECHO_T}$WINDRES" >&6
15403else
15404 echo "$as_me:$LINENO: result: no" >&5
15405echo "${ECHO_T}no" >&6
15406fi
15407
15408fi
15409if test -z "$ac_cv_prog_WINDRES"; then
15410 ac_ct_WINDRES=$WINDRES
15411 # Extract the first word of "windres", so it can be a program name with args.
15412set dummy windres; ac_word=$2
15413echo "$as_me:$LINENO: checking for $ac_word" >&5
15414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15415if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15416 echo $ECHO_N "(cached) $ECHO_C" >&6
15417else
15418 if test -n "$ac_ct_WINDRES"; then
15419 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15420else
15421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15422for as_dir in $PATH
15423do
15424 IFS=$as_save_IFS
15425 test -z "$as_dir" && as_dir=.
15426 for ac_exec_ext in '' $ac_executable_extensions; do
15427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15428 ac_cv_prog_ac_ct_WINDRES="windres"
15429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15430 break 2
15431 fi
15432done
15433done
15434
15435fi
15436fi
15437ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15438if test -n "$ac_ct_WINDRES"; then
15439 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15440echo "${ECHO_T}$ac_ct_WINDRES" >&6
15441else
15442 echo "$as_me:$LINENO: result: no" >&5
15443echo "${ECHO_T}no" >&6
15444fi
15445
15446 WINDRES=$ac_ct_WINDRES
15447else
15448 WINDRES="$ac_cv_prog_WINDRES"
15449fi
15450
15451 RESCOMP="$WINDRES"
15452 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15453 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15454set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15455echo "$as_me:$LINENO: checking for $ac_word" >&5
15456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15457if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15459else
15460 if test -n "$DLLTOOL"; then
15461 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15462else
15463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15464for as_dir in $PATH
15465do
15466 IFS=$as_save_IFS
15467 test -z "$as_dir" && as_dir=.
15468 for ac_exec_ext in '' $ac_executable_extensions; do
15469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15470 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15472 break 2
15473 fi
15474done
15475done
15476
15477fi
15478fi
15479DLLTOOL=$ac_cv_prog_DLLTOOL
15480if test -n "$DLLTOOL"; then
15481 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15482echo "${ECHO_T}$DLLTOOL" >&6
15483else
15484 echo "$as_me:$LINENO: result: no" >&5
15485echo "${ECHO_T}no" >&6
15486fi
15487
15488fi
15489if test -z "$ac_cv_prog_DLLTOOL"; then
15490 ac_ct_DLLTOOL=$DLLTOOL
15491 # Extract the first word of "dlltool", so it can be a program name with args.
15492set dummy dlltool; ac_word=$2
15493echo "$as_me:$LINENO: checking for $ac_word" >&5
15494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15495if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15496 echo $ECHO_N "(cached) $ECHO_C" >&6
15497else
15498 if test -n "$ac_ct_DLLTOOL"; then
15499 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15500else
15501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15502for as_dir in $PATH
15503do
15504 IFS=$as_save_IFS
15505 test -z "$as_dir" && as_dir=.
15506 for ac_exec_ext in '' $ac_executable_extensions; do
15507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15508 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15510 break 2
15511 fi
15512done
15513done
15514
15515fi
15516fi
15517ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15518if test -n "$ac_ct_DLLTOOL"; then
15519 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15520echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15521else
15522 echo "$as_me:$LINENO: result: no" >&5
15523echo "${ECHO_T}no" >&6
15524fi
15525
15526 DLLTOOL=$ac_ct_DLLTOOL
15527else
15528 DLLTOOL="$ac_cv_prog_DLLTOOL"
15529fi
15530
15531 ;;
15532 esac
15533fi
a848cd7e
SC
15534
15535echo "$as_me:$LINENO: checking if make is GNU make" >&5
15536echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15537if test "${wx_cv_prog_makeisgnu+set}" = set; then
15538 echo $ECHO_N "(cached) $ECHO_C" >&6
15539else
15540
15541 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15542 egrep -s GNU > /dev/null); then
15543 wx_cv_prog_makeisgnu="yes"
15544 else
15545 wx_cv_prog_makeisgnu="no"
15546 fi
15547
15548fi
15549echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15550echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15551
15552if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15553 IF_GNU_MAKE=""
15554else
15555 IF_GNU_MAKE="#"
15556fi
15557
15558
15559
15560if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15561echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15562echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15563if test "${wx_cv_prog_makevpath+set}" = set; then
15564 echo $ECHO_N "(cached) $ECHO_C" >&6
15565else
15566
15567cat - << EOF > confMake
15568check : file
15569 cp \$? \$@
15570 cp \$? final_file
15571EOF
15572
15573if test ! -d sub ; then
15574 mkdir sub
15575fi
15576echo dummy > sub/file
15577${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15578RESULT=$?
15579rm -f sub/file check final_file confMake
15580rmdir sub
15581if test "$RESULT" = 0; then
15582 wx_cv_prog_makevpath="yes"
15583else
15584 wx_cv_prog_makevpath="no"
15585fi
15586
15587fi
15588echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15589echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15590
15591if test "x$wx_cv_prog_makevpath" != "xyes"; then
15592{ { echo "$as_me:$LINENO: error:
15593You need a make-utility that is able to use the variable
15594VPATH correctly.
15595If your version of make does not support VPATH correctly,
15596please install GNU-make (possibly as gmake), and start
15597configure with the following command:
15598export MAKE=gmake; ./configure for sh-type shells
15599setenv MAKE gmake; ./configure for csh-type shells
15600Also please do remember to use gmake in this case every time
15601you are trying to compile.
15602" >&5
15603echo "$as_me: error:
15604You need a make-utility that is able to use the variable
15605VPATH correctly.
15606If your version of make does not support VPATH correctly,
15607please install GNU-make (possibly as gmake), and start
15608configure with the following command:
15609export MAKE=gmake; ./configure for sh-type shells
15610setenv MAKE gmake; ./configure for csh-type shells
15611Also please do remember to use gmake in this case every time
15612you are trying to compile.
15613" >&2;}
15614 { (exit 1); exit 1; }; }
15615fi fi
15616echo "$as_me:$LINENO: checking whether ln -s works" >&5
15617echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15618LN_S=$as_ln_s
15619if test "$LN_S" = "ln -s"; then
15620 echo "$as_me:$LINENO: result: yes" >&5
15621echo "${ECHO_T}yes" >&6
15622else
15623 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15624echo "${ECHO_T}no, using $LN_S" >&6
15625fi
15626
15627
bcaab0f9 15628
a848cd7e 15629
2113bc77 15630if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15631 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15632fi
15633
4d7ec9f1
DE
15634case "${host}" in
15635 powerpc-*-darwin* )
15636 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15637echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15638 cat >conftest.$ac_ext <<_ACEOF
15639/* confdefs.h. */
15640_ACEOF
15641cat confdefs.h >>conftest.$ac_ext
15642cat >>conftest.$ac_ext <<_ACEOF
15643/* end confdefs.h. */
15644
15645int
15646main ()
15647{
15648#ifndef __POWERPC__
15649 choke me for lack of PowerPC
15650#endif
15651
15652 ;
15653 return 0;
15654}
15655_ACEOF
15656rm -f conftest.$ac_objext
15657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15658 (eval $ac_compile) 2>conftest.er1
15659 ac_status=$?
15660 grep -v '^ *+' conftest.er1 >conftest.err
15661 rm -f conftest.er1
15662 cat conftest.err >&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } &&
64b75e64 15665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667 (eval $ac_try) 2>&5
15668 ac_status=$?
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); }; } &&
15671 { ac_try='test -s conftest.$ac_objext'
15672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15673 (eval $ac_try) 2>&5
15674 ac_status=$?
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; }; then
15677 echo "$as_me:$LINENO: result: yes" >&5
15678echo "${ECHO_T}yes" >&6
15679else
15680 echo "$as_me: failed program was:" >&5
15681sed 's/^/| /' conftest.$ac_ext >&5
15682
15683echo "$as_me:$LINENO: result: no" >&5
15684echo "${ECHO_T}no" >&6
15685 cat >>confdefs.h <<\_ACEOF
15686#define __POWERPC__ 1
15687_ACEOF
15688
15689
15690fi
15691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15692 ;;
15693esac
15694
15695case "${host}" in
15696 *-*-darwin* )
4d7ec9f1
DE
15697 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15698echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15699 cat >conftest.$ac_ext <<_ACEOF
15700/* confdefs.h. */
15701_ACEOF
15702cat confdefs.h >>conftest.$ac_ext
15703cat >>conftest.$ac_ext <<_ACEOF
15704/* end confdefs.h. */
15705#include <CoreFoundation/CFBase.h>
15706
15707int
15708main ()
15709{
15710
15711 ;
15712 return 0;
15713}
15714_ACEOF
15715rm -f conftest.$ac_objext
15716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15717 (eval $ac_compile) 2>conftest.er1
15718 ac_status=$?
15719 grep -v '^ *+' conftest.er1 >conftest.err
15720 rm -f conftest.er1
15721 cat conftest.err >&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } &&
64b75e64 15724 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15727 ac_status=$?
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; } &&
15730 { ac_try='test -s conftest.$ac_objext'
15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15733 ac_status=$?
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; }; then
15736 echo "$as_me:$LINENO: result: yes" >&5
15737echo "${ECHO_T}yes" >&6
15738else
15739 echo "$as_me: failed program was:" >&5
15740sed 's/^/| /' conftest.$ac_ext >&5
15741
15742echo "$as_me:$LINENO: result: no" >&5
15743echo "${ECHO_T}no" >&6
15744 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15745echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15746 cat >conftest.$ac_ext <<_ACEOF
15747/* confdefs.h. */
15748_ACEOF
15749cat confdefs.h >>conftest.$ac_ext
15750cat >>conftest.$ac_ext <<_ACEOF
15751/* end confdefs.h. */
15752#define __CF_USE_FRAMEWORK_INCLUDES__
15753#include <CoreFoundation/CFBase.h>
15754
15755int
15756main ()
15757{
15758
15759 ;
15760 return 0;
15761}
15762_ACEOF
15763rm -f conftest.$ac_objext
15764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15765 (eval $ac_compile) 2>conftest.er1
15766 ac_status=$?
15767 grep -v '^ *+' conftest.er1 >conftest.err
15768 rm -f conftest.er1
15769 cat conftest.err >&5
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } &&
64b75e64 15772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; } &&
15778 { ac_try='test -s conftest.$ac_objext'
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15781 ac_status=$?
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; }; then
15784 echo "$as_me:$LINENO: result: yes" >&5
15785echo "${ECHO_T}yes" >&6
c92ad099 15786 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15787else
15788 echo "$as_me: failed program was:" >&5
15789sed 's/^/| /' conftest.$ac_ext >&5
15790
15791{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15792See \`config.log' for more details." >&5
15793echo "$as_me: error: no. CoreFoundation not available.
15794See \`config.log' for more details." >&2;}
15795 { (exit 1); exit 1; }; }
15796
15797fi
15798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15799
15800
15801fi
15802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15803 ;;
15804esac
15805
a848cd7e
SC
15806case "${host}" in
15807 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15808 ac_ext=c
15809ac_cpp='$CPP $CPPFLAGS'
15810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15812ac_compiler_gnu=$ac_cv_c_compiler_gnu
15813
15814 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15815 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15816echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15817if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15818 echo $ECHO_N "(cached) $ECHO_C" >&6
15819else
15820 ac_check_lib_save_LIBS=$LIBS
15821LIBS="-lcExt $LIBS"
15822cat >conftest.$ac_ext <<_ACEOF
15823/* confdefs.h. */
15824_ACEOF
15825cat confdefs.h >>conftest.$ac_ext
15826cat >>conftest.$ac_ext <<_ACEOF
15827/* end confdefs.h. */
15828
15829/* Override any gcc2 internal prototype to avoid an error. */
15830#ifdef __cplusplus
15831extern "C"
15832#endif
15833/* We use char because int might match the return type of a gcc2
15834 builtin and then its argument prototype would still apply. */
15835char drand48 ();
15836int
15837main ()
15838{
15839drand48 ();
15840 ;
15841 return 0;
15842}
15843_ACEOF
15844rm -f conftest.$ac_objext conftest$ac_exeext
15845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15846 (eval $ac_link) 2>conftest.er1
a848cd7e 15847 ac_status=$?
ac1cb8d3
VS
15848 grep -v '^ *+' conftest.er1 >conftest.err
15849 rm -f conftest.er1
15850 cat conftest.err >&5
a848cd7e
SC
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } &&
64b75e64 15853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15855 (eval $ac_try) 2>&5
15856 ac_status=$?
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; } &&
15859 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15861 (eval $ac_try) 2>&5
15862 ac_status=$?
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; }; then
15865 ac_cv_lib_cExt_drand48=yes
15866else
15867 echo "$as_me: failed program was:" >&5
15868sed 's/^/| /' conftest.$ac_ext >&5
15869
15870ac_cv_lib_cExt_drand48=no
15871fi
ac1cb8d3
VS
15872rm -f conftest.err conftest.$ac_objext \
15873 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15874LIBS=$ac_check_lib_save_LIBS
15875fi
15876echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15877echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15878if test $ac_cv_lib_cExt_drand48 = yes; then
15879 LIBS="$LIBS -lcExt"
15880fi
15881
15882 else
15883 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15884 fi
69120ee4
VZ
15885 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15886echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15887if test "${wx_cv_gccversion+set}" = set; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15889else
15890
391a765e
VS
15891 if test "$cross_compiling" = yes; then
15892 wx_cv_gccversion="EMX2"
15893
15894else
15895 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15896/* confdefs.h. */
15897_ACEOF
15898cat confdefs.h >>conftest.$ac_ext
15899cat >>conftest.$ac_ext <<_ACEOF
15900/* end confdefs.h. */
15901
391a765e 15902 #include <stdio.h>
a848cd7e 15903
391a765e
VS
15904 int main()
15905 {
15906 FILE *f=fopen("conftestval", "w");
15907 if (!f) exit(1);
15908 fprintf(f,
a848cd7e 15909 #if (__GNUC__ < 3)
391a765e
VS
15910 "EMX2"
15911 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15912 "EMX3"
15913 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15914 "Innotek5"
15915 #else
15916 "Innotek6"
a848cd7e 15917 #endif
5039a2df 15918 );
391a765e
VS
15919 exit(0);
15920 }
a848cd7e 15921
a848cd7e 15922_ACEOF
391a765e
VS
15923rm -f conftest$ac_exeext
15924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15925 (eval $ac_link) 2>&5
ac1cb8d3
VS
15926 ac_status=$?
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930 (eval $ac_try) 2>&5
15931 ac_status=$?
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; }; then
391a765e 15934 wx_cv_gccversion=`cat conftestval`
a848cd7e 15935else
391a765e
VS
15936 echo "$as_me: program exited with status $ac_status" >&5
15937echo "$as_me: failed program was:" >&5
a848cd7e
SC
15938sed 's/^/| /' conftest.$ac_ext >&5
15939
391a765e
VS
15940( exit $ac_status )
15941wx_cv_gccversion="EMX2"
a848cd7e 15942fi
391a765e 15943rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15944fi
a848cd7e
SC
15945
15946fi
15947echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15948echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
15949 ac_ext=cc
15950ac_cpp='$CXXCPP $CPPFLAGS'
15951ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15952ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15953ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15954
391a765e 15955 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15956 LIBS="$LIBS -lstdcpp"
15957 LDFLAGS="$LDFLAGS -Zsysv-signals"
15958 else
391a765e 15959 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15960 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15961 LDFLAGS="$LDFLAGS -Zsysv-signals"
15962 else
15963 LIBS="$LIBS -lstdc++"
15964 fi
15965 fi
94acd38e
DE
15966 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15967 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15968echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15969 wxUSE_OMF=yes
2da0c077 15970 enable_omf=yes
a848cd7e
SC
15971 fi
15972 ;;
15973 *)
15974
95986553 15975 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15976echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15977if test "${ac_cv_string_strcasecmp+set}" = set; then
15978 echo $ECHO_N "(cached) $ECHO_C" >&6
15979else
15980
15981 cat >conftest.$ac_ext <<_ACEOF
15982/* confdefs.h. */
15983_ACEOF
15984cat confdefs.h >>conftest.$ac_ext
15985cat >>conftest.$ac_ext <<_ACEOF
15986/* end confdefs.h. */
15987
15988 #include <string.h>
15989
15990int
15991main ()
15992{
15993
15994 strcasecmp("foo", "bar");
15995
15996 ;
15997 return 0;
15998}
15999_ACEOF
16000rm -f conftest.$ac_objext conftest$ac_exeext
16001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16002 (eval $ac_link) 2>conftest.er1
a848cd7e 16003 ac_status=$?
ac1cb8d3
VS
16004 grep -v '^ *+' conftest.er1 >conftest.err
16005 rm -f conftest.er1
16006 cat conftest.err >&5
a848cd7e
SC
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); } &&
64b75e64 16009 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16011 (eval $ac_try) 2>&5
16012 ac_status=$?
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); }; } &&
16015 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16017 (eval $ac_try) 2>&5
16018 ac_status=$?
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); }; }; then
16021 ac_cv_string_strcasecmp=yes
16022else
16023 echo "$as_me: failed program was:" >&5
16024sed 's/^/| /' conftest.$ac_ext >&5
16025
16026ac_cv_string_strcasecmp=no
16027
16028fi
ac1cb8d3
VS
16029rm -f conftest.err conftest.$ac_objext \
16030 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16031
16032fi
16033echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
16034echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
16035
16036 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
16037 cat >>confdefs.h <<\_ACEOF
16038#define HAVE_STRCASECMP_IN_STRING_H 1
16039_ACEOF
16040
16041 else
16042 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
16043echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
16044if test "${ac_cv_strings_strcasecmp+set}" = set; then
16045 echo $ECHO_N "(cached) $ECHO_C" >&6
16046else
16047
16048 cat >conftest.$ac_ext <<_ACEOF
16049/* confdefs.h. */
16050_ACEOF
16051cat confdefs.h >>conftest.$ac_ext
16052cat >>conftest.$ac_ext <<_ACEOF
16053/* end confdefs.h. */
16054
16055 #include <strings.h>
16056
16057int
16058main ()
16059{
16060
16061 strcasecmp("foo", "bar");
16062
16063 ;
16064 return 0;
16065}
16066_ACEOF
16067rm -f conftest.$ac_objext conftest$ac_exeext
16068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16069 (eval $ac_link) 2>conftest.er1
a848cd7e 16070 ac_status=$?
ac1cb8d3
VS
16071 grep -v '^ *+' conftest.er1 >conftest.err
16072 rm -f conftest.er1
16073 cat conftest.err >&5
a848cd7e
SC
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } &&
64b75e64 16076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16078 (eval $ac_try) 2>&5
16079 ac_status=$?
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; } &&
16082 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16084 (eval $ac_try) 2>&5
16085 ac_status=$?
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }; }; then
16088 ac_cv_strings_strcasecmp=yes
16089else
16090 echo "$as_me: failed program was:" >&5
16091sed 's/^/| /' conftest.$ac_ext >&5
16092
16093ac_cv_strings_strcasecmp=no
16094
16095fi
ac1cb8d3
VS
16096rm -f conftest.err conftest.$ac_objext \
16097 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16098
16099fi
16100echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
16101echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
16102
0c3c69fc 16103 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
16104 cat >>confdefs.h <<\_ACEOF
16105#define HAVE_STRCASECMP_IN_STRINGS_H 1
16106_ACEOF
16107
16108 else
16109 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
16110echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
16111 { (exit 1); exit 1; }; }
16112 fi
16113 fi
16114
a848cd7e
SC
16115 ;;
16116esac
16117
16118
5d7b7554
VZ
16119ac_ext=cc
16120ac_cpp='$CXXCPP $CPPFLAGS'
16121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16124echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16125echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
16126if test -z "$CXXCPP"; then
16127 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16129else
16130 # Double quotes because CXXCPP needs to be expanded
16131 for CXXCPP in "$CXX -E" "/lib/cpp"
16132 do
16133 ac_preproc_ok=false
16134for ac_cxx_preproc_warn_flag in '' yes
16135do
16136 # Use a header file that comes with gcc, so configuring glibc
16137 # with a fresh cross-compiler works.
16138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16139 # <limits.h> exists even on freestanding compilers.
16140 # On the NeXT, cc -E runs the code through the compiler's parser,
16141 # not just through cpp. "Syntax error" is here to catch this case.
16142 cat >conftest.$ac_ext <<_ACEOF
16143/* confdefs.h. */
16144_ACEOF
16145cat confdefs.h >>conftest.$ac_ext
16146cat >>conftest.$ac_ext <<_ACEOF
16147/* end confdefs.h. */
16148#ifdef __STDC__
16149# include <limits.h>
16150#else
16151# include <assert.h>
16152#endif
16153 Syntax error
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 :
16174else
16175 echo "$as_me: failed program was:" >&5
16176sed 's/^/| /' conftest.$ac_ext >&5
16177
16178 # Broken: fails on valid input.
16179continue
16180fi
16181rm -f conftest.err conftest.$ac_ext
16182
16183 # OK, works on sane cases. Now check whether non-existent headers
16184 # can be detected and how.
16185 cat >conftest.$ac_ext <<_ACEOF
16186/* confdefs.h. */
16187_ACEOF
16188cat confdefs.h >>conftest.$ac_ext
16189cat >>conftest.$ac_ext <<_ACEOF
16190/* end confdefs.h. */
16191#include <ac_nonexistent.h>
16192_ACEOF
16193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16195 ac_status=$?
16196 grep -v '^ *+' conftest.er1 >conftest.err
16197 rm -f conftest.er1
16198 cat conftest.err >&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } >/dev/null; then
16201 if test -s conftest.err; then
16202 ac_cpp_err=$ac_cxx_preproc_warn_flag
16203 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16204 else
16205 ac_cpp_err=
16206 fi
16207else
16208 ac_cpp_err=yes
16209fi
16210if test -z "$ac_cpp_err"; then
16211 # Broken: success on invalid input.
16212continue
16213else
16214 echo "$as_me: failed program was:" >&5
16215sed 's/^/| /' conftest.$ac_ext >&5
16216
16217 # Passes both tests.
16218ac_preproc_ok=:
16219break
16220fi
16221rm -f conftest.err conftest.$ac_ext
16222
16223done
16224# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16225rm -f conftest.err conftest.$ac_ext
16226if $ac_preproc_ok; then
16227 break
16228fi
16229
16230 done
16231 ac_cv_prog_CXXCPP=$CXXCPP
16232
16233fi
16234 CXXCPP=$ac_cv_prog_CXXCPP
16235else
16236 ac_cv_prog_CXXCPP=$CXXCPP
16237fi
16238echo "$as_me:$LINENO: result: $CXXCPP" >&5
16239echo "${ECHO_T}$CXXCPP" >&6
16240ac_preproc_ok=false
16241for ac_cxx_preproc_warn_flag in '' yes
16242do
16243 # Use a header file that comes with gcc, so configuring glibc
16244 # with a fresh cross-compiler works.
16245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16246 # <limits.h> exists even on freestanding compilers.
16247 # On the NeXT, cc -E runs the code through the compiler's parser,
16248 # not just through cpp. "Syntax error" is here to catch this case.
16249 cat >conftest.$ac_ext <<_ACEOF
16250/* confdefs.h. */
16251_ACEOF
16252cat confdefs.h >>conftest.$ac_ext
16253cat >>conftest.$ac_ext <<_ACEOF
16254/* end confdefs.h. */
16255#ifdef __STDC__
16256# include <limits.h>
16257#else
16258# include <assert.h>
16259#endif
16260 Syntax error
16261_ACEOF
16262if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16264 ac_status=$?
16265 grep -v '^ *+' conftest.er1 >conftest.err
16266 rm -f conftest.er1
16267 cat conftest.err >&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } >/dev/null; then
16270 if test -s conftest.err; then
16271 ac_cpp_err=$ac_cxx_preproc_warn_flag
16272 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16273 else
16274 ac_cpp_err=
16275 fi
16276else
16277 ac_cpp_err=yes
16278fi
16279if test -z "$ac_cpp_err"; then
16280 :
16281else
16282 echo "$as_me: failed program was:" >&5
16283sed 's/^/| /' conftest.$ac_ext >&5
16284
16285 # Broken: fails on valid input.
16286continue
16287fi
16288rm -f conftest.err conftest.$ac_ext
16289
16290 # OK, works on sane cases. Now check whether non-existent headers
16291 # can be detected and how.
16292 cat >conftest.$ac_ext <<_ACEOF
16293/* confdefs.h. */
16294_ACEOF
16295cat confdefs.h >>conftest.$ac_ext
16296cat >>conftest.$ac_ext <<_ACEOF
16297/* end confdefs.h. */
16298#include <ac_nonexistent.h>
16299_ACEOF
16300if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16302 ac_status=$?
16303 grep -v '^ *+' conftest.er1 >conftest.err
16304 rm -f conftest.er1
16305 cat conftest.err >&5
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } >/dev/null; then
16308 if test -s conftest.err; then
16309 ac_cpp_err=$ac_cxx_preproc_warn_flag
16310 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16311 else
16312 ac_cpp_err=
16313 fi
16314else
16315 ac_cpp_err=yes
16316fi
16317if test -z "$ac_cpp_err"; then
16318 # Broken: success on invalid input.
16319continue
16320else
16321 echo "$as_me: failed program was:" >&5
16322sed 's/^/| /' conftest.$ac_ext >&5
16323
16324 # Passes both tests.
16325ac_preproc_ok=:
16326break
16327fi
16328rm -f conftest.err conftest.$ac_ext
16329
16330done
16331# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16332rm -f conftest.err conftest.$ac_ext
16333if $ac_preproc_ok; then
16334 :
16335else
16336 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16337See \`config.log' for more details." >&5
16338echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16339See \`config.log' for more details." >&2;}
16340 { (exit 1); exit 1; }; }
16341fi
16342
16343ac_ext=cc
16344ac_cpp='$CXXCPP $CPPFLAGS'
16345ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16346ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16347ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16348
16349
a848cd7e
SC
16350echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16351echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16352if test "${ac_cv_header_stdc+set}" = set; then
16353 echo $ECHO_N "(cached) $ECHO_C" >&6
16354else
16355 cat >conftest.$ac_ext <<_ACEOF
16356/* confdefs.h. */
16357_ACEOF
16358cat confdefs.h >>conftest.$ac_ext
16359cat >>conftest.$ac_ext <<_ACEOF
16360/* end confdefs.h. */
16361#include <stdlib.h>
16362#include <stdarg.h>
16363#include <string.h>
16364#include <float.h>
16365
16366int
16367main ()
16368{
16369
16370 ;
16371 return 0;
16372}
16373_ACEOF
16374rm -f conftest.$ac_objext
16375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16376 (eval $ac_compile) 2>conftest.er1
a848cd7e 16377 ac_status=$?
ac1cb8d3
VS
16378 grep -v '^ *+' conftest.er1 >conftest.err
16379 rm -f conftest.er1
16380 cat conftest.err >&5
a848cd7e
SC
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); } &&
64b75e64 16383 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385 (eval $ac_try) 2>&5
16386 ac_status=$?
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); }; } &&
16389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391 (eval $ac_try) 2>&5
16392 ac_status=$?
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; }; then
16395 ac_cv_header_stdc=yes
16396else
16397 echo "$as_me: failed program was:" >&5
16398sed 's/^/| /' conftest.$ac_ext >&5
16399
16400ac_cv_header_stdc=no
16401fi
ac1cb8d3 16402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16403
16404if test $ac_cv_header_stdc = yes; then
16405 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16406 cat >conftest.$ac_ext <<_ACEOF
16407/* confdefs.h. */
16408_ACEOF
16409cat confdefs.h >>conftest.$ac_ext
16410cat >>conftest.$ac_ext <<_ACEOF
16411/* end confdefs.h. */
16412#include <string.h>
16413
16414_ACEOF
16415if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16416 $EGREP "memchr" >/dev/null 2>&1; then
16417 :
16418else
16419 ac_cv_header_stdc=no
16420fi
16421rm -f conftest*
16422
16423fi
16424
16425if test $ac_cv_header_stdc = yes; then
16426 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16427 cat >conftest.$ac_ext <<_ACEOF
16428/* confdefs.h. */
16429_ACEOF
16430cat confdefs.h >>conftest.$ac_ext
16431cat >>conftest.$ac_ext <<_ACEOF
16432/* end confdefs.h. */
16433#include <stdlib.h>
16434
16435_ACEOF
16436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16437 $EGREP "free" >/dev/null 2>&1; then
16438 :
16439else
16440 ac_cv_header_stdc=no
16441fi
16442rm -f conftest*
16443
16444fi
16445
16446if test $ac_cv_header_stdc = yes; then
16447 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16448 if test "$cross_compiling" = yes; then
16449 :
16450else
16451 cat >conftest.$ac_ext <<_ACEOF
16452/* confdefs.h. */
16453_ACEOF
16454cat confdefs.h >>conftest.$ac_ext
16455cat >>conftest.$ac_ext <<_ACEOF
16456/* end confdefs.h. */
16457#include <ctype.h>
16458#if ((' ' & 0x0FF) == 0x020)
16459# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16460# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16461#else
16462# define ISLOWER(c) \
ac1cb8d3
VS
16463 (('a' <= (c) && (c) <= 'i') \
16464 || ('j' <= (c) && (c) <= 'r') \
16465 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16466# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16467#endif
16468
16469#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16470int
16471main ()
16472{
16473 int i;
16474 for (i = 0; i < 256; i++)
16475 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16476 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16477 exit(2);
16478 exit (0);
16479}
16480_ACEOF
16481rm -f conftest$ac_exeext
16482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16483 (eval $ac_link) 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488 (eval $ac_try) 2>&5
16489 ac_status=$?
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); }; }; then
16492 :
16493else
16494 echo "$as_me: program exited with status $ac_status" >&5
16495echo "$as_me: failed program was:" >&5
16496sed 's/^/| /' conftest.$ac_ext >&5
16497
16498( exit $ac_status )
16499ac_cv_header_stdc=no
16500fi
ac1cb8d3 16501rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16502fi
16503fi
16504fi
16505echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16506echo "${ECHO_T}$ac_cv_header_stdc" >&6
16507if test $ac_cv_header_stdc = yes; then
16508
16509cat >>confdefs.h <<\_ACEOF
16510#define STDC_HEADERS 1
16511_ACEOF
16512
16513fi
16514
16515# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16526 inttypes.h stdint.h unistd.h
a848cd7e
SC
16527do
16528as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16529echo "$as_me:$LINENO: checking for $ac_header" >&5
16530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16531if eval "test \"\${$as_ac_Header+set}\" = set"; then
16532 echo $ECHO_N "(cached) $ECHO_C" >&6
16533else
16534 cat >conftest.$ac_ext <<_ACEOF
16535/* confdefs.h. */
16536_ACEOF
16537cat confdefs.h >>conftest.$ac_ext
16538cat >>conftest.$ac_ext <<_ACEOF
16539/* end confdefs.h. */
16540$ac_includes_default
16541
16542#include <$ac_header>
16543_ACEOF
16544rm -f conftest.$ac_objext
16545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16546 (eval $ac_compile) 2>conftest.er1
a848cd7e 16547 ac_status=$?
ac1cb8d3
VS
16548 grep -v '^ *+' conftest.er1 >conftest.err
16549 rm -f conftest.er1
16550 cat conftest.err >&5
a848cd7e
SC
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } &&
64b75e64 16553 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16556 ac_status=$?
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; } &&
16559 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16562 ac_status=$?
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 eval "$as_ac_Header=yes"
16566else
16567 echo "$as_me: failed program was:" >&5
16568sed 's/^/| /' conftest.$ac_ext >&5
16569
16570eval "$as_ac_Header=no"
16571fi
ac1cb8d3 16572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16573fi
16574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16575echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16576if test `eval echo '${'$as_ac_Header'}'` = yes; then
16577 cat >>confdefs.h <<_ACEOF
16578#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16579_ACEOF
16580
16581fi
16582
16583done
16584
16585
16586
16587for ac_header in stdlib.h
16588do
16589as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16590if eval "test \"\${$as_ac_Header+set}\" = set"; then
16591 echo "$as_me:$LINENO: checking for $ac_header" >&5
16592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16593if eval "test \"\${$as_ac_Header+set}\" = set"; then
16594 echo $ECHO_N "(cached) $ECHO_C" >&6
16595fi
16596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16597echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16598else
16599 # Is the header compilable?
16600echo "$as_me:$LINENO: checking $ac_header usability" >&5
16601echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16602cat >conftest.$ac_ext <<_ACEOF
16603/* confdefs.h. */
16604_ACEOF
16605cat confdefs.h >>conftest.$ac_ext
16606cat >>conftest.$ac_ext <<_ACEOF
16607/* end confdefs.h. */
16608$ac_includes_default
16609#include <$ac_header>
16610_ACEOF
16611rm -f conftest.$ac_objext
16612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16613 (eval $ac_compile) 2>conftest.er1
a848cd7e 16614 ac_status=$?
ac1cb8d3
VS
16615 grep -v '^ *+' conftest.er1 >conftest.err
16616 rm -f conftest.er1
16617 cat conftest.err >&5
a848cd7e
SC
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
64b75e64 16620 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16623 ac_status=$?
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; } &&
16626 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16628 (eval $ac_try) 2>&5
16629 ac_status=$?
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); }; }; then
16632 ac_header_compiler=yes
16633else
16634 echo "$as_me: failed program was:" >&5
16635sed 's/^/| /' conftest.$ac_ext >&5
16636
16637ac_header_compiler=no
16638fi
ac1cb8d3 16639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16640echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16641echo "${ECHO_T}$ac_header_compiler" >&6
16642
16643# Is the header present?
16644echo "$as_me:$LINENO: checking $ac_header presence" >&5
16645echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16646cat >conftest.$ac_ext <<_ACEOF
16647/* confdefs.h. */
16648_ACEOF
16649cat confdefs.h >>conftest.$ac_ext
16650cat >>conftest.$ac_ext <<_ACEOF
16651/* end confdefs.h. */
16652#include <$ac_header>
16653_ACEOF
16654if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16656 ac_status=$?
16657 grep -v '^ *+' conftest.er1 >conftest.err
16658 rm -f conftest.er1
16659 cat conftest.err >&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); } >/dev/null; then
16662 if test -s conftest.err; then
5d7b7554
VZ
16663 ac_cpp_err=$ac_cxx_preproc_warn_flag
16664 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16665 else
16666 ac_cpp_err=
16667 fi
16668else
16669 ac_cpp_err=yes
16670fi
16671if test -z "$ac_cpp_err"; then
16672 ac_header_preproc=yes
16673else
16674 echo "$as_me: failed program was:" >&5
16675sed 's/^/| /' conftest.$ac_ext >&5
16676
16677 ac_header_preproc=no
16678fi
16679rm -f conftest.err conftest.$ac_ext
16680echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16681echo "${ECHO_T}$ac_header_preproc" >&6
16682
16683# So? What about this header?
5d7b7554 16684case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16685 yes:no: )
a848cd7e
SC
16686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16687echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16689echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16690 ac_header_preproc=yes
a848cd7e 16691 ;;
ac1cb8d3 16692 no:yes:* )
a848cd7e
SC
16693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16694echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16696echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16698echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16700echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16702echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16704echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16705 (
16706 cat <<\_ASBOX
ac1cb8d3
VS
16707## ----------------------------------------- ##
16708## Report this to wx-dev@lists.wxwidgets.org ##
16709## ----------------------------------------- ##
a848cd7e
SC
16710_ASBOX
16711 ) |
16712 sed "s/^/$as_me: WARNING: /" >&2
16713 ;;
16714esac
16715echo "$as_me:$LINENO: checking for $ac_header" >&5
16716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16717if eval "test \"\${$as_ac_Header+set}\" = set"; then
16718 echo $ECHO_N "(cached) $ECHO_C" >&6
16719else
ac1cb8d3 16720 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16721fi
16722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16723echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16724
16725fi
16726if test `eval echo '${'$as_ac_Header'}'` = yes; then
16727 cat >>confdefs.h <<_ACEOF
16728#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16729_ACEOF
16730
16731fi
16732
16733done
16734
16735
16736for ac_header in malloc.h
16737do
16738as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16739if eval "test \"\${$as_ac_Header+set}\" = set"; then
16740 echo "$as_me:$LINENO: checking for $ac_header" >&5
16741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16742if eval "test \"\${$as_ac_Header+set}\" = set"; then
16743 echo $ECHO_N "(cached) $ECHO_C" >&6
16744fi
16745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16746echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16747else
16748 # Is the header compilable?
16749echo "$as_me:$LINENO: checking $ac_header usability" >&5
16750echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16751cat >conftest.$ac_ext <<_ACEOF
16752/* confdefs.h. */
16753_ACEOF
16754cat confdefs.h >>conftest.$ac_ext
16755cat >>conftest.$ac_ext <<_ACEOF
16756/* end confdefs.h. */
16757$ac_includes_default
16758#include <$ac_header>
16759_ACEOF
16760rm -f conftest.$ac_objext
16761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16762 (eval $ac_compile) 2>conftest.er1
a848cd7e 16763 ac_status=$?
ac1cb8d3
VS
16764 grep -v '^ *+' conftest.er1 >conftest.err
16765 rm -f conftest.er1
16766 cat conftest.err >&5
a848cd7e
SC
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); } &&
64b75e64 16769 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771 (eval $ac_try) 2>&5
16772 ac_status=$?
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }; } &&
16775 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16777 (eval $ac_try) 2>&5
16778 ac_status=$?
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); }; }; then
16781 ac_header_compiler=yes
16782else
16783 echo "$as_me: failed program was:" >&5
16784sed 's/^/| /' conftest.$ac_ext >&5
16785
16786ac_header_compiler=no
16787fi
ac1cb8d3 16788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16789echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16790echo "${ECHO_T}$ac_header_compiler" >&6
16791
16792# Is the header present?
16793echo "$as_me:$LINENO: checking $ac_header presence" >&5
16794echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16795cat >conftest.$ac_ext <<_ACEOF
16796/* confdefs.h. */
16797_ACEOF
16798cat confdefs.h >>conftest.$ac_ext
16799cat >>conftest.$ac_ext <<_ACEOF
16800/* end confdefs.h. */
16801#include <$ac_header>
16802_ACEOF
16803if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16805 ac_status=$?
16806 grep -v '^ *+' conftest.er1 >conftest.err
16807 rm -f conftest.er1
16808 cat conftest.err >&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } >/dev/null; then
16811 if test -s conftest.err; then
5d7b7554
VZ
16812 ac_cpp_err=$ac_cxx_preproc_warn_flag
16813 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16814 else
16815 ac_cpp_err=
16816 fi
16817else
16818 ac_cpp_err=yes
16819fi
16820if test -z "$ac_cpp_err"; then
16821 ac_header_preproc=yes
16822else
16823 echo "$as_me: failed program was:" >&5
16824sed 's/^/| /' conftest.$ac_ext >&5
16825
16826 ac_header_preproc=no
16827fi
16828rm -f conftest.err conftest.$ac_ext
16829echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16830echo "${ECHO_T}$ac_header_preproc" >&6
16831
16832# So? What about this header?
5d7b7554 16833case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16834 yes:no: )
a848cd7e
SC
16835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16836echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16838echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16839 ac_header_preproc=yes
a848cd7e 16840 ;;
ac1cb8d3 16841 no:yes:* )
a848cd7e
SC
16842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16843echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16845echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16847echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16849echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16851echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16853echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16854 (
16855 cat <<\_ASBOX
ac1cb8d3
VS
16856## ----------------------------------------- ##
16857## Report this to wx-dev@lists.wxwidgets.org ##
16858## ----------------------------------------- ##
a848cd7e
SC
16859_ASBOX
16860 ) |
16861 sed "s/^/$as_me: WARNING: /" >&2
16862 ;;
16863esac
16864echo "$as_me:$LINENO: checking for $ac_header" >&5
16865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16866if eval "test \"\${$as_ac_Header+set}\" = set"; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16868else
ac1cb8d3 16869 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16870fi
16871echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16872echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16873
16874fi
16875if test `eval echo '${'$as_ac_Header'}'` = yes; then
16876 cat >>confdefs.h <<_ACEOF
16877#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16878_ACEOF
16879
16880fi
16881
16882done
16883
16884
16885for ac_header in unistd.h
16886do
16887as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16888if eval "test \"\${$as_ac_Header+set}\" = set"; then
16889 echo "$as_me:$LINENO: checking for $ac_header" >&5
16890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16891if eval "test \"\${$as_ac_Header+set}\" = set"; then
16892 echo $ECHO_N "(cached) $ECHO_C" >&6
16893fi
16894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16895echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16896else
16897 # Is the header compilable?
16898echo "$as_me:$LINENO: checking $ac_header usability" >&5
16899echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16900cat >conftest.$ac_ext <<_ACEOF
16901/* confdefs.h. */
16902_ACEOF
16903cat confdefs.h >>conftest.$ac_ext
16904cat >>conftest.$ac_ext <<_ACEOF
16905/* end confdefs.h. */
16906$ac_includes_default
16907#include <$ac_header>
16908_ACEOF
16909rm -f conftest.$ac_objext
16910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16911 (eval $ac_compile) 2>conftest.er1
a848cd7e 16912 ac_status=$?
ac1cb8d3
VS
16913 grep -v '^ *+' conftest.er1 >conftest.err
16914 rm -f conftest.er1
16915 cat conftest.err >&5
a848cd7e
SC
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } &&
64b75e64 16918 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920 (eval $ac_try) 2>&5
16921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; } &&
16924 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 ac_header_compiler=yes
16931else
16932 echo "$as_me: failed program was:" >&5
16933sed 's/^/| /' conftest.$ac_ext >&5
16934
16935ac_header_compiler=no
16936fi
ac1cb8d3 16937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16938echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16939echo "${ECHO_T}$ac_header_compiler" >&6
16940
16941# Is the header present?
16942echo "$as_me:$LINENO: checking $ac_header presence" >&5
16943echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16944cat >conftest.$ac_ext <<_ACEOF
16945/* confdefs.h. */
16946_ACEOF
16947cat confdefs.h >>conftest.$ac_ext
16948cat >>conftest.$ac_ext <<_ACEOF
16949/* end confdefs.h. */
16950#include <$ac_header>
16951_ACEOF
16952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16954 ac_status=$?
16955 grep -v '^ *+' conftest.er1 >conftest.err
16956 rm -f conftest.er1
16957 cat conftest.err >&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); } >/dev/null; then
16960 if test -s conftest.err; then
5d7b7554
VZ
16961 ac_cpp_err=$ac_cxx_preproc_warn_flag
16962 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16963 else
16964 ac_cpp_err=
16965 fi
16966else
16967 ac_cpp_err=yes
16968fi
16969if test -z "$ac_cpp_err"; then
16970 ac_header_preproc=yes
16971else
16972 echo "$as_me: failed program was:" >&5
16973sed 's/^/| /' conftest.$ac_ext >&5
16974
16975 ac_header_preproc=no
16976fi
16977rm -f conftest.err conftest.$ac_ext
16978echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16979echo "${ECHO_T}$ac_header_preproc" >&6
16980
16981# So? What about this header?
5d7b7554 16982case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16983 yes:no: )
a848cd7e
SC
16984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16985echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16987echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16988 ac_header_preproc=yes
a848cd7e 16989 ;;
ac1cb8d3 16990 no:yes:* )
a848cd7e
SC
16991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16992echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16994echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16996echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16998echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17000echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17002echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17003 (
17004 cat <<\_ASBOX
ac1cb8d3
VS
17005## ----------------------------------------- ##
17006## Report this to wx-dev@lists.wxwidgets.org ##
17007## ----------------------------------------- ##
a848cd7e
SC
17008_ASBOX
17009 ) |
17010 sed "s/^/$as_me: WARNING: /" >&2
17011 ;;
17012esac
17013echo "$as_me:$LINENO: checking for $ac_header" >&5
17014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17015if eval "test \"\${$as_ac_Header+set}\" = set"; then
17016 echo $ECHO_N "(cached) $ECHO_C" >&6
17017else
ac1cb8d3 17018 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17019fi
17020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17021echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17022
17023fi
17024if test `eval echo '${'$as_ac_Header'}'` = yes; then
17025 cat >>confdefs.h <<_ACEOF
17026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17027_ACEOF
17028
17029fi
17030
17031done
17032
17033
17034for ac_header in wchar.h
17035do
17036as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17037if eval "test \"\${$as_ac_Header+set}\" = set"; then
17038 echo "$as_me:$LINENO: checking for $ac_header" >&5
17039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17040if eval "test \"\${$as_ac_Header+set}\" = set"; then
17041 echo $ECHO_N "(cached) $ECHO_C" >&6
17042fi
17043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17044echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17045else
17046 # Is the header compilable?
17047echo "$as_me:$LINENO: checking $ac_header usability" >&5
17048echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17049cat >conftest.$ac_ext <<_ACEOF
17050/* confdefs.h. */
17051_ACEOF
17052cat confdefs.h >>conftest.$ac_ext
17053cat >>conftest.$ac_ext <<_ACEOF
17054/* end confdefs.h. */
17055$ac_includes_default
17056#include <$ac_header>
17057_ACEOF
17058rm -f conftest.$ac_objext
17059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17060 (eval $ac_compile) 2>conftest.er1
a848cd7e 17061 ac_status=$?
ac1cb8d3
VS
17062 grep -v '^ *+' conftest.er1 >conftest.err
17063 rm -f conftest.er1
17064 cat conftest.err >&5
a848cd7e
SC
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); } &&
64b75e64 17067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069 (eval $ac_try) 2>&5
17070 ac_status=$?
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; } &&
17073 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17079 ac_header_compiler=yes
17080else
17081 echo "$as_me: failed program was:" >&5
17082sed 's/^/| /' conftest.$ac_ext >&5
17083
17084ac_header_compiler=no
17085fi
ac1cb8d3 17086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17087echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17088echo "${ECHO_T}$ac_header_compiler" >&6
17089
17090# Is the header present?
17091echo "$as_me:$LINENO: checking $ac_header presence" >&5
17092echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17093cat >conftest.$ac_ext <<_ACEOF
17094/* confdefs.h. */
17095_ACEOF
17096cat confdefs.h >>conftest.$ac_ext
17097cat >>conftest.$ac_ext <<_ACEOF
17098/* end confdefs.h. */
17099#include <$ac_header>
17100_ACEOF
17101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17103 ac_status=$?
17104 grep -v '^ *+' conftest.er1 >conftest.err
17105 rm -f conftest.er1
17106 cat conftest.err >&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); } >/dev/null; then
17109 if test -s conftest.err; then
5d7b7554
VZ
17110 ac_cpp_err=$ac_cxx_preproc_warn_flag
17111 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17112 else
17113 ac_cpp_err=
17114 fi
17115else
17116 ac_cpp_err=yes
17117fi
17118if test -z "$ac_cpp_err"; then
17119 ac_header_preproc=yes
17120else
17121 echo "$as_me: failed program was:" >&5
17122sed 's/^/| /' conftest.$ac_ext >&5
17123
17124 ac_header_preproc=no
17125fi
17126rm -f conftest.err conftest.$ac_ext
17127echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17128echo "${ECHO_T}$ac_header_preproc" >&6
17129
17130# So? What about this header?
5d7b7554 17131case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17132 yes:no: )
a848cd7e
SC
17133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17134echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17136echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17137 ac_header_preproc=yes
a848cd7e 17138 ;;
ac1cb8d3 17139 no:yes:* )
a848cd7e
SC
17140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17141echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17143echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17144 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17145echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17146 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17147echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17149echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17150 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17151echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17152 (
17153 cat <<\_ASBOX
ac1cb8d3
VS
17154## ----------------------------------------- ##
17155## Report this to wx-dev@lists.wxwidgets.org ##
17156## ----------------------------------------- ##
a848cd7e
SC
17157_ASBOX
17158 ) |
17159 sed "s/^/$as_me: WARNING: /" >&2
17160 ;;
17161esac
17162echo "$as_me:$LINENO: checking for $ac_header" >&5
17163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17164if eval "test \"\${$as_ac_Header+set}\" = set"; then
17165 echo $ECHO_N "(cached) $ECHO_C" >&6
17166else
ac1cb8d3 17167 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17168fi
17169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17171
17172fi
17173if test `eval echo '${'$as_ac_Header'}'` = yes; then
17174 cat >>confdefs.h <<_ACEOF
17175#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17176_ACEOF
17177
17178fi
17179
17180done
17181
17182
17183if test "$ac_cv_header_wchar_h" != "yes"; then
17184
17185for ac_header in wcstr.h
17186do
17187as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17188if eval "test \"\${$as_ac_Header+set}\" = set"; then
17189 echo "$as_me:$LINENO: checking for $ac_header" >&5
17190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17191if eval "test \"\${$as_ac_Header+set}\" = set"; then
17192 echo $ECHO_N "(cached) $ECHO_C" >&6
17193fi
17194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17196else
17197 # Is the header compilable?
17198echo "$as_me:$LINENO: checking $ac_header usability" >&5
17199echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17200cat >conftest.$ac_ext <<_ACEOF
17201/* confdefs.h. */
17202_ACEOF
17203cat confdefs.h >>conftest.$ac_ext
17204cat >>conftest.$ac_ext <<_ACEOF
17205/* end confdefs.h. */
17206$ac_includes_default
17207#include <$ac_header>
17208_ACEOF
17209rm -f conftest.$ac_objext
17210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17211 (eval $ac_compile) 2>conftest.er1
a848cd7e 17212 ac_status=$?
ac1cb8d3
VS
17213 grep -v '^ *+' conftest.er1 >conftest.err
17214 rm -f conftest.er1
17215 cat conftest.err >&5
a848cd7e
SC
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } &&
64b75e64 17218 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17221 ac_status=$?
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; } &&
17224 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17230 ac_header_compiler=yes
17231else
17232 echo "$as_me: failed program was:" >&5
17233sed 's/^/| /' conftest.$ac_ext >&5
17234
17235ac_header_compiler=no
17236fi
ac1cb8d3 17237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17238echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17239echo "${ECHO_T}$ac_header_compiler" >&6
17240
17241# Is the header present?
17242echo "$as_me:$LINENO: checking $ac_header presence" >&5
17243echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17244cat >conftest.$ac_ext <<_ACEOF
17245/* confdefs.h. */
17246_ACEOF
17247cat confdefs.h >>conftest.$ac_ext
17248cat >>conftest.$ac_ext <<_ACEOF
17249/* end confdefs.h. */
17250#include <$ac_header>
17251_ACEOF
17252if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17254 ac_status=$?
17255 grep -v '^ *+' conftest.er1 >conftest.err
17256 rm -f conftest.er1
17257 cat conftest.err >&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } >/dev/null; then
17260 if test -s conftest.err; then
5d7b7554
VZ
17261 ac_cpp_err=$ac_cxx_preproc_warn_flag
17262 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17263 else
17264 ac_cpp_err=
17265 fi
17266else
17267 ac_cpp_err=yes
17268fi
17269if test -z "$ac_cpp_err"; then
17270 ac_header_preproc=yes
17271else
17272 echo "$as_me: failed program was:" >&5
17273sed 's/^/| /' conftest.$ac_ext >&5
17274
17275 ac_header_preproc=no
17276fi
17277rm -f conftest.err conftest.$ac_ext
17278echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17279echo "${ECHO_T}$ac_header_preproc" >&6
17280
17281# So? What about this header?
5d7b7554 17282case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17283 yes:no: )
a848cd7e
SC
17284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17285echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17287echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17288 ac_header_preproc=yes
a848cd7e 17289 ;;
ac1cb8d3 17290 no:yes:* )
a848cd7e
SC
17291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17292echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17294echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17296echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17298echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17300echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17302echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17303 (
17304 cat <<\_ASBOX
ac1cb8d3
VS
17305## ----------------------------------------- ##
17306## Report this to wx-dev@lists.wxwidgets.org ##
17307## ----------------------------------------- ##
a848cd7e
SC
17308_ASBOX
17309 ) |
17310 sed "s/^/$as_me: WARNING: /" >&2
17311 ;;
17312esac
17313echo "$as_me:$LINENO: checking for $ac_header" >&5
17314echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17315if eval "test \"\${$as_ac_Header+set}\" = set"; then
17316 echo $ECHO_N "(cached) $ECHO_C" >&6
17317else
ac1cb8d3 17318 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17319fi
17320echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17321echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17322
17323fi
17324if test `eval echo '${'$as_ac_Header'}'` = yes; then
17325 cat >>confdefs.h <<_ACEOF
17326#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17327_ACEOF
17328
17329fi
17330
17331done
17332
17333fi
17334
17335
17336for ac_header in fnmatch.h
17337do
17338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17339if eval "test \"\${$as_ac_Header+set}\" = set"; then
17340 echo "$as_me:$LINENO: checking for $ac_header" >&5
17341echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17342if eval "test \"\${$as_ac_Header+set}\" = set"; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17344fi
17345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17346echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17347else
17348 # Is the header compilable?
17349echo "$as_me:$LINENO: checking $ac_header usability" >&5
17350echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17351cat >conftest.$ac_ext <<_ACEOF
17352/* confdefs.h. */
17353_ACEOF
17354cat confdefs.h >>conftest.$ac_ext
17355cat >>conftest.$ac_ext <<_ACEOF
17356/* end confdefs.h. */
17357$ac_includes_default
17358#include <$ac_header>
17359_ACEOF
17360rm -f conftest.$ac_objext
17361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17362 (eval $ac_compile) 2>conftest.er1
a848cd7e 17363 ac_status=$?
ac1cb8d3
VS
17364 grep -v '^ *+' conftest.er1 >conftest.err
17365 rm -f conftest.er1
17366 cat conftest.err >&5
a848cd7e
SC
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); } &&
64b75e64 17369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17371 (eval $ac_try) 2>&5
17372 ac_status=$?
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; } &&
17375 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377 (eval $ac_try) 2>&5
17378 ac_status=$?
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; }; then
17381 ac_header_compiler=yes
17382else
17383 echo "$as_me: failed program was:" >&5
17384sed 's/^/| /' conftest.$ac_ext >&5
17385
17386ac_header_compiler=no
17387fi
ac1cb8d3 17388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17389echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17390echo "${ECHO_T}$ac_header_compiler" >&6
17391
17392# Is the header present?
17393echo "$as_me:$LINENO: checking $ac_header presence" >&5
17394echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17395cat >conftest.$ac_ext <<_ACEOF
17396/* confdefs.h. */
17397_ACEOF
17398cat confdefs.h >>conftest.$ac_ext
17399cat >>conftest.$ac_ext <<_ACEOF
17400/* end confdefs.h. */
17401#include <$ac_header>
17402_ACEOF
17403if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17405 ac_status=$?
17406 grep -v '^ *+' conftest.er1 >conftest.err
17407 rm -f conftest.er1
17408 cat conftest.err >&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); } >/dev/null; then
17411 if test -s conftest.err; then
5d7b7554
VZ
17412 ac_cpp_err=$ac_cxx_preproc_warn_flag
17413 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17414 else
17415 ac_cpp_err=
17416 fi
17417else
17418 ac_cpp_err=yes
17419fi
17420if test -z "$ac_cpp_err"; then
17421 ac_header_preproc=yes
17422else
17423 echo "$as_me: failed program was:" >&5
17424sed 's/^/| /' conftest.$ac_ext >&5
17425
17426 ac_header_preproc=no
17427fi
17428rm -f conftest.err conftest.$ac_ext
17429echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17430echo "${ECHO_T}$ac_header_preproc" >&6
17431
17432# So? What about this header?
5d7b7554 17433case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17434 yes:no: )
a848cd7e
SC
17435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17436echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17438echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17439 ac_header_preproc=yes
a848cd7e 17440 ;;
ac1cb8d3 17441 no:yes:* )
a848cd7e
SC
17442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17443echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17445echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17447echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17449echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17451echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17453echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17454 (
17455 cat <<\_ASBOX
ac1cb8d3
VS
17456## ----------------------------------------- ##
17457## Report this to wx-dev@lists.wxwidgets.org ##
17458## ----------------------------------------- ##
a848cd7e
SC
17459_ASBOX
17460 ) |
17461 sed "s/^/$as_me: WARNING: /" >&2
17462 ;;
17463esac
17464echo "$as_me:$LINENO: checking for $ac_header" >&5
17465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17466if eval "test \"\${$as_ac_Header+set}\" = set"; then
17467 echo $ECHO_N "(cached) $ECHO_C" >&6
17468else
ac1cb8d3 17469 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17470fi
17471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17473
17474fi
17475if test `eval echo '${'$as_ac_Header'}'` = yes; then
17476 cat >>confdefs.h <<_ACEOF
17477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17478_ACEOF
17479
17480fi
17481
17482done
17483
17484
a848cd7e
SC
17485
17486for ac_header in langinfo.h
17487do
17488as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17489if eval "test \"\${$as_ac_Header+set}\" = set"; then
17490 echo "$as_me:$LINENO: checking for $ac_header" >&5
17491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17492if eval "test \"\${$as_ac_Header+set}\" = set"; then
17493 echo $ECHO_N "(cached) $ECHO_C" >&6
17494fi
17495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17496echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17497else
17498 # Is the header compilable?
17499echo "$as_me:$LINENO: checking $ac_header usability" >&5
17500echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17501cat >conftest.$ac_ext <<_ACEOF
17502/* confdefs.h. */
17503_ACEOF
17504cat confdefs.h >>conftest.$ac_ext
17505cat >>conftest.$ac_ext <<_ACEOF
17506/* end confdefs.h. */
17507$ac_includes_default
17508#include <$ac_header>
17509_ACEOF
17510rm -f conftest.$ac_objext
17511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17512 (eval $ac_compile) 2>conftest.er1
a848cd7e 17513 ac_status=$?
ac1cb8d3
VS
17514 grep -v '^ *+' conftest.er1 >conftest.err
17515 rm -f conftest.er1
17516 cat conftest.err >&5
a848cd7e
SC
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); } &&
64b75e64 17519 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17521 (eval $ac_try) 2>&5
17522 ac_status=$?
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); }; } &&
17525 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17527 (eval $ac_try) 2>&5
17528 ac_status=$?
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); }; }; then
17531 ac_header_compiler=yes
17532else
17533 echo "$as_me: failed program was:" >&5
17534sed 's/^/| /' conftest.$ac_ext >&5
17535
17536ac_header_compiler=no
17537fi
ac1cb8d3 17538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17539echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17540echo "${ECHO_T}$ac_header_compiler" >&6
17541
17542# Is the header present?
17543echo "$as_me:$LINENO: checking $ac_header presence" >&5
17544echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17545cat >conftest.$ac_ext <<_ACEOF
17546/* confdefs.h. */
17547_ACEOF
17548cat confdefs.h >>conftest.$ac_ext
17549cat >>conftest.$ac_ext <<_ACEOF
17550/* end confdefs.h. */
17551#include <$ac_header>
17552_ACEOF
17553if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17555 ac_status=$?
17556 grep -v '^ *+' conftest.er1 >conftest.err
17557 rm -f conftest.er1
17558 cat conftest.err >&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); } >/dev/null; then
17561 if test -s conftest.err; then
5d7b7554
VZ
17562 ac_cpp_err=$ac_cxx_preproc_warn_flag
17563 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17564 else
17565 ac_cpp_err=
17566 fi
17567else
17568 ac_cpp_err=yes
17569fi
17570if test -z "$ac_cpp_err"; then
17571 ac_header_preproc=yes
17572else
17573 echo "$as_me: failed program was:" >&5
17574sed 's/^/| /' conftest.$ac_ext >&5
17575
17576 ac_header_preproc=no
17577fi
17578rm -f conftest.err conftest.$ac_ext
17579echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17580echo "${ECHO_T}$ac_header_preproc" >&6
17581
17582# So? What about this header?
5d7b7554 17583case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17584 yes:no: )
a848cd7e
SC
17585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17586echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17588echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17589 ac_header_preproc=yes
a848cd7e 17590 ;;
ac1cb8d3 17591 no:yes:* )
a848cd7e
SC
17592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17593echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17595echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17597echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17599echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17601echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17603echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17604 (
17605 cat <<\_ASBOX
ac1cb8d3
VS
17606## ----------------------------------------- ##
17607## Report this to wx-dev@lists.wxwidgets.org ##
17608## ----------------------------------------- ##
a848cd7e
SC
17609_ASBOX
17610 ) |
17611 sed "s/^/$as_me: WARNING: /" >&2
17612 ;;
17613esac
17614echo "$as_me:$LINENO: checking for $ac_header" >&5
17615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17616if eval "test \"\${$as_ac_Header+set}\" = set"; then
17617 echo $ECHO_N "(cached) $ECHO_C" >&6
17618else
ac1cb8d3 17619 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17620fi
17621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17622echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17623
17624fi
17625if test `eval echo '${'$as_ac_Header'}'` = yes; then
17626 cat >>confdefs.h <<_ACEOF
17627#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17628_ACEOF
17629
17630fi
17631
17632done
17633
17634
17635case "${host}" in
17636 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17637 if test $ac_cv_header_langinfo_h = "yes" \
17638 -a \( "$wx_cv_gccversion" = "EMX2" \
17639 -o "$wx_cv_gccversion" = "EMX3" \
17640 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17641 LIBS="$LIBS -lintl"
17642 fi
17643 ;;
17644esac
17645
bc023abb
MW
17646if test "$USE_UNIX" = 1 ; then
17647
17648for ac_header in sys/select.h
17649do
17650as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17651if eval "test \"\${$as_ac_Header+set}\" = set"; then
17652 echo "$as_me:$LINENO: checking for $ac_header" >&5
17653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17654if eval "test \"\${$as_ac_Header+set}\" = set"; then
17655 echo $ECHO_N "(cached) $ECHO_C" >&6
17656fi
17657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17658echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17659else
17660 # Is the header compilable?
17661echo "$as_me:$LINENO: checking $ac_header usability" >&5
17662echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17663cat >conftest.$ac_ext <<_ACEOF
17664/* confdefs.h. */
17665_ACEOF
17666cat confdefs.h >>conftest.$ac_ext
17667cat >>conftest.$ac_ext <<_ACEOF
17668/* end confdefs.h. */
17669$ac_includes_default
17670#include <$ac_header>
17671_ACEOF
17672rm -f conftest.$ac_objext
17673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17674 (eval $ac_compile) 2>conftest.er1
17675 ac_status=$?
17676 grep -v '^ *+' conftest.er1 >conftest.err
17677 rm -f conftest.er1
17678 cat conftest.err >&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); } &&
64b75e64 17681 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
bc023abb
MW
17682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17683 (eval $ac_try) 2>&5
17684 ac_status=$?
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); }; } &&
17687 { ac_try='test -s conftest.$ac_objext'
17688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17689 (eval $ac_try) 2>&5
17690 ac_status=$?
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; }; then
17693 ac_header_compiler=yes
17694else
17695 echo "$as_me: failed program was:" >&5
17696sed 's/^/| /' conftest.$ac_ext >&5
17697
17698ac_header_compiler=no
17699fi
17700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17701echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17702echo "${ECHO_T}$ac_header_compiler" >&6
17703
17704# Is the header present?
17705echo "$as_me:$LINENO: checking $ac_header presence" >&5
17706echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17707cat >conftest.$ac_ext <<_ACEOF
17708/* confdefs.h. */
17709_ACEOF
17710cat confdefs.h >>conftest.$ac_ext
17711cat >>conftest.$ac_ext <<_ACEOF
17712/* end confdefs.h. */
17713#include <$ac_header>
17714_ACEOF
17715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17717 ac_status=$?
17718 grep -v '^ *+' conftest.er1 >conftest.err
17719 rm -f conftest.er1
17720 cat conftest.err >&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); } >/dev/null; then
17723 if test -s conftest.err; then
17724 ac_cpp_err=$ac_cxx_preproc_warn_flag
17725 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17726 else
17727 ac_cpp_err=
17728 fi
17729else
17730 ac_cpp_err=yes
17731fi
17732if test -z "$ac_cpp_err"; then
17733 ac_header_preproc=yes
17734else
17735 echo "$as_me: failed program was:" >&5
17736sed 's/^/| /' conftest.$ac_ext >&5
17737
17738 ac_header_preproc=no
17739fi
17740rm -f conftest.err conftest.$ac_ext
17741echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17742echo "${ECHO_T}$ac_header_preproc" >&6
17743
17744# So? What about this header?
17745case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17746 yes:no: )
17747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17748echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17750echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17751 ac_header_preproc=yes
17752 ;;
17753 no:yes:* )
17754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17755echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17757echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17759echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17761echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17763echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17765echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17766 (
17767 cat <<\_ASBOX
17768## ----------------------------------------- ##
17769## Report this to wx-dev@lists.wxwidgets.org ##
17770## ----------------------------------------- ##
17771_ASBOX
17772 ) |
17773 sed "s/^/$as_me: WARNING: /" >&2
17774 ;;
17775esac
17776echo "$as_me:$LINENO: checking for $ac_header" >&5
17777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17778if eval "test \"\${$as_ac_Header+set}\" = set"; then
17779 echo $ECHO_N "(cached) $ECHO_C" >&6
17780else
17781 eval "$as_ac_Header=\$ac_header_preproc"
17782fi
17783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17784echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17785
17786fi
17787if test `eval echo '${'$as_ac_Header'}'` = yes; then
17788 cat >>confdefs.h <<_ACEOF
17789#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17790_ACEOF
17791
17792fi
17793
17794done
17795
17796fi
17797
a848cd7e
SC
17798
17799echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17800echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17801if test "${ac_cv_c_const+set}" = set; then
17802 echo $ECHO_N "(cached) $ECHO_C" >&6
17803else
17804 cat >conftest.$ac_ext <<_ACEOF
17805/* confdefs.h. */
17806_ACEOF
17807cat confdefs.h >>conftest.$ac_ext
17808cat >>conftest.$ac_ext <<_ACEOF
17809/* end confdefs.h. */
17810
17811int
17812main ()
17813{
17814/* FIXME: Include the comments suggested by Paul. */
17815#ifndef __cplusplus
17816 /* Ultrix mips cc rejects this. */
17817 typedef int charset[2];
17818 const charset x;
17819 /* SunOS 4.1.1 cc rejects this. */
17820 char const *const *ccp;
17821 char **p;
17822 /* NEC SVR4.0.2 mips cc rejects this. */
17823 struct point {int x, y;};
17824 static struct point const zero = {0,0};
17825 /* AIX XL C 1.02.0.0 rejects this.
17826 It does not let you subtract one const X* pointer from another in
17827 an arm of an if-expression whose if-part is not a constant
17828 expression */
17829 const char *g = "string";
17830 ccp = &g + (g ? g-g : 0);
17831 /* HPUX 7.0 cc rejects these. */
17832 ++ccp;
17833 p = (char**) ccp;
17834 ccp = (char const *const *) p;
17835 { /* SCO 3.2v4 cc rejects this. */
17836 char *t;
17837 char const *s = 0 ? (char *) 0 : (char const *) 0;
17838
17839 *t++ = 0;
17840 }
17841 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17842 int x[] = {25, 17};
17843 const int *foo = &x[0];
17844 ++foo;
17845 }
17846 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17847 typedef const int *iptr;
17848 iptr p = 0;
17849 ++p;
17850 }
17851 { /* AIX XL C 1.02.0.0 rejects this saying
17852 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17853 struct s { int j; const int *ap[3]; };
17854 struct s *b; b->j = 5;
17855 }
17856 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17857 const int foo = 10;
17858 }
17859#endif
17860
17861 ;
17862 return 0;
17863}
17864_ACEOF
17865rm -f conftest.$ac_objext
17866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17867 (eval $ac_compile) 2>conftest.er1
a848cd7e 17868 ac_status=$?
ac1cb8d3
VS
17869 grep -v '^ *+' conftest.er1 >conftest.err
17870 rm -f conftest.er1
17871 cat conftest.err >&5
a848cd7e
SC
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } &&
64b75e64 17874 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17876 (eval $ac_try) 2>&5
17877 ac_status=$?
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); }; } &&
17880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17882 (eval $ac_try) 2>&5
17883 ac_status=$?
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); }; }; then
17886 ac_cv_c_const=yes
17887else
17888 echo "$as_me: failed program was:" >&5
17889sed 's/^/| /' conftest.$ac_ext >&5
17890
17891ac_cv_c_const=no
17892fi
ac1cb8d3 17893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17894fi
17895echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17896echo "${ECHO_T}$ac_cv_c_const" >&6
17897if test $ac_cv_c_const = no; then
17898
17899cat >>confdefs.h <<\_ACEOF
17900#define const
17901_ACEOF
17902
17903fi
17904
17905echo "$as_me:$LINENO: checking for inline" >&5
17906echo $ECHO_N "checking for inline... $ECHO_C" >&6
17907if test "${ac_cv_c_inline+set}" = set; then
17908 echo $ECHO_N "(cached) $ECHO_C" >&6
17909else
17910 ac_cv_c_inline=no
17911for ac_kw in inline __inline__ __inline; do
17912 cat >conftest.$ac_ext <<_ACEOF
17913/* confdefs.h. */
17914_ACEOF
17915cat confdefs.h >>conftest.$ac_ext
17916cat >>conftest.$ac_ext <<_ACEOF
17917/* end confdefs.h. */
17918#ifndef __cplusplus
17919typedef int foo_t;
17920static $ac_kw foo_t static_foo () {return 0; }
17921$ac_kw foo_t foo () {return 0; }
17922#endif
17923
17924_ACEOF
17925rm -f conftest.$ac_objext
17926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17927 (eval $ac_compile) 2>conftest.er1
a848cd7e 17928 ac_status=$?
ac1cb8d3
VS
17929 grep -v '^ *+' conftest.er1 >conftest.err
17930 rm -f conftest.er1
17931 cat conftest.err >&5
a848cd7e
SC
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); } &&
64b75e64 17934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17937 ac_status=$?
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; } &&
17940 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17942 (eval $ac_try) 2>&5
17943 ac_status=$?
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; }; then
17946 ac_cv_c_inline=$ac_kw; break
17947else
17948 echo "$as_me: failed program was:" >&5
17949sed 's/^/| /' conftest.$ac_ext >&5
17950
17951fi
ac1cb8d3 17952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17953done
17954
17955fi
17956echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17957echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17958
17959
a848cd7e
SC
17960case $ac_cv_c_inline in
17961 inline | yes) ;;
ac1cb8d3
VS
17962 *)
17963 case $ac_cv_c_inline in
17964 no) ac_val=;;
17965 *) ac_val=$ac_cv_c_inline;;
17966 esac
17967 cat >>confdefs.h <<_ACEOF
17968#ifndef __cplusplus
17969#define inline $ac_val
17970#endif
de59c161 17971_ACEOF
ac1cb8d3 17972 ;;
a848cd7e
SC
17973esac
17974
17975
17976echo "$as_me:$LINENO: checking for char" >&5
17977echo $ECHO_N "checking for char... $ECHO_C" >&6
17978if test "${ac_cv_type_char+set}" = set; then
17979 echo $ECHO_N "(cached) $ECHO_C" >&6
17980else
17981 cat >conftest.$ac_ext <<_ACEOF
17982/* confdefs.h. */
17983_ACEOF
17984cat confdefs.h >>conftest.$ac_ext
17985cat >>conftest.$ac_ext <<_ACEOF
17986/* end confdefs.h. */
17987$ac_includes_default
17988int
17989main ()
17990{
17991if ((char *) 0)
17992 return 0;
17993if (sizeof (char))
17994 return 0;
17995 ;
17996 return 0;
17997}
17998_ACEOF
17999rm -f conftest.$ac_objext
18000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18001 (eval $ac_compile) 2>conftest.er1
a848cd7e 18002 ac_status=$?
ac1cb8d3
VS
18003 grep -v '^ *+' conftest.er1 >conftest.err
18004 rm -f conftest.er1
18005 cat conftest.err >&5
a848cd7e
SC
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); } &&
64b75e64 18008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18010 (eval $ac_try) 2>&5
18011 ac_status=$?
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); }; } &&
18014 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18016 (eval $ac_try) 2>&5
18017 ac_status=$?
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; }; then
18020 ac_cv_type_char=yes
18021else
18022 echo "$as_me: failed program was:" >&5
18023sed 's/^/| /' conftest.$ac_ext >&5
18024
18025ac_cv_type_char=no
18026fi
ac1cb8d3 18027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18028fi
18029echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18030echo "${ECHO_T}$ac_cv_type_char" >&6
18031
18032echo "$as_me:$LINENO: checking size of char" >&5
18033echo $ECHO_N "checking size of char... $ECHO_C" >&6
18034if test "${ac_cv_sizeof_char+set}" = set; then
18035 echo $ECHO_N "(cached) $ECHO_C" >&6
18036else
18037 if test "$ac_cv_type_char" = yes; then
18038 # The cast to unsigned long works around a bug in the HP C Compiler
18039 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18040 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18041 # This bug is HP SR number 8606223364.
18042 if test "$cross_compiling" = yes; then
18043 # Depending upon the size, compute the lo and hi bounds.
18044cat >conftest.$ac_ext <<_ACEOF
18045/* confdefs.h. */
18046_ACEOF
18047cat confdefs.h >>conftest.$ac_ext
18048cat >>conftest.$ac_ext <<_ACEOF
18049/* end confdefs.h. */
18050$ac_includes_default
18051int
18052main ()
18053{
18054static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
18055test_array [0] = 0
18056
18057 ;
18058 return 0;
18059}
18060_ACEOF
18061rm -f conftest.$ac_objext
18062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18063 (eval $ac_compile) 2>conftest.er1
a848cd7e 18064 ac_status=$?
ac1cb8d3
VS
18065 grep -v '^ *+' conftest.er1 >conftest.err
18066 rm -f conftest.er1
18067 cat conftest.err >&5
a848cd7e
SC
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); } &&
64b75e64 18070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072 (eval $ac_try) 2>&5
18073 ac_status=$?
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; } &&
18076 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18078 (eval $ac_try) 2>&5
18079 ac_status=$?
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); }; }; then
18082 ac_lo=0 ac_mid=0
18083 while :; do
18084 cat >conftest.$ac_ext <<_ACEOF
18085/* confdefs.h. */
18086_ACEOF
18087cat confdefs.h >>conftest.$ac_ext
18088cat >>conftest.$ac_ext <<_ACEOF
18089/* end confdefs.h. */
18090$ac_includes_default
18091int
18092main ()
18093{
18094static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18095test_array [0] = 0
18096
18097 ;
18098 return 0;
18099}
18100_ACEOF
18101rm -f conftest.$ac_objext
18102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18103 (eval $ac_compile) 2>conftest.er1
a848cd7e 18104 ac_status=$?
ac1cb8d3
VS
18105 grep -v '^ *+' conftest.er1 >conftest.err
18106 rm -f conftest.er1
18107 cat conftest.err >&5
a848cd7e
SC
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); } &&
64b75e64 18110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112 (eval $ac_try) 2>&5
18113 ac_status=$?
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; } &&
18116 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18119 ac_status=$?
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; }; then
18122 ac_hi=$ac_mid; break
18123else
18124 echo "$as_me: failed program was:" >&5
18125sed 's/^/| /' conftest.$ac_ext >&5
18126
18127ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18128 if test $ac_lo -le $ac_mid; then
18129 ac_lo= ac_hi=
18130 break
18131 fi
18132 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18133fi
ac1cb8d3 18134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18135 done
18136else
18137 echo "$as_me: failed program was:" >&5
18138sed 's/^/| /' conftest.$ac_ext >&5
18139
18140cat >conftest.$ac_ext <<_ACEOF
18141/* confdefs.h. */
18142_ACEOF
18143cat confdefs.h >>conftest.$ac_ext
18144cat >>conftest.$ac_ext <<_ACEOF
18145/* end confdefs.h. */
18146$ac_includes_default
18147int
18148main ()
18149{
18150static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
18151test_array [0] = 0
18152
18153 ;
18154 return 0;
18155}
18156_ACEOF
18157rm -f conftest.$ac_objext
18158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18159 (eval $ac_compile) 2>conftest.er1
a848cd7e 18160 ac_status=$?
ac1cb8d3
VS
18161 grep -v '^ *+' conftest.er1 >conftest.err
18162 rm -f conftest.er1
18163 cat conftest.err >&5
a848cd7e
SC
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); } &&
64b75e64 18166 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18168 (eval $ac_try) 2>&5
18169 ac_status=$?
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); }; } &&
18172 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18174 (eval $ac_try) 2>&5
18175 ac_status=$?
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; }; then
18178 ac_hi=-1 ac_mid=-1
18179 while :; do
18180 cat >conftest.$ac_ext <<_ACEOF
18181/* confdefs.h. */
18182_ACEOF
18183cat confdefs.h >>conftest.$ac_ext
18184cat >>conftest.$ac_ext <<_ACEOF
18185/* end confdefs.h. */
18186$ac_includes_default
18187int
18188main ()
18189{
18190static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
18191test_array [0] = 0
18192
18193 ;
18194 return 0;
18195}
18196_ACEOF
18197rm -f conftest.$ac_objext
18198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18199 (eval $ac_compile) 2>conftest.er1
a848cd7e 18200 ac_status=$?
ac1cb8d3
VS
18201 grep -v '^ *+' conftest.er1 >conftest.err
18202 rm -f conftest.er1
18203 cat conftest.err >&5
a848cd7e
SC
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); } &&
64b75e64 18206 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18208 (eval $ac_try) 2>&5
18209 ac_status=$?
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); }; } &&
18212 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214 (eval $ac_try) 2>&5
18215 ac_status=$?
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; }; then
18218 ac_lo=$ac_mid; break
18219else
18220 echo "$as_me: failed program was:" >&5
18221sed 's/^/| /' conftest.$ac_ext >&5
18222
18223ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18224 if test $ac_mid -le $ac_hi; then
18225 ac_lo= ac_hi=
18226 break
18227 fi
18228 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18229fi
ac1cb8d3 18230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18231 done
18232else
18233 echo "$as_me: failed program was:" >&5
18234sed 's/^/| /' conftest.$ac_ext >&5
18235
18236ac_lo= ac_hi=
18237fi
ac1cb8d3 18238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18239fi
ac1cb8d3 18240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18241# Binary search between lo and hi bounds.
18242while test "x$ac_lo" != "x$ac_hi"; do
18243 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18244 cat >conftest.$ac_ext <<_ACEOF
18245/* confdefs.h. */
18246_ACEOF
18247cat confdefs.h >>conftest.$ac_ext
18248cat >>conftest.$ac_ext <<_ACEOF
18249/* end confdefs.h. */
18250$ac_includes_default
18251int
18252main ()
18253{
18254static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18255test_array [0] = 0
18256
18257 ;
18258 return 0;
18259}
18260_ACEOF
18261rm -f conftest.$ac_objext
18262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18263 (eval $ac_compile) 2>conftest.er1
a848cd7e 18264 ac_status=$?
ac1cb8d3
VS
18265 grep -v '^ *+' conftest.er1 >conftest.err
18266 rm -f conftest.er1
18267 cat conftest.err >&5
a848cd7e
SC
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); } &&
64b75e64 18270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272 (eval $ac_try) 2>&5
18273 ac_status=$?
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); }; } &&
18276 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278 (eval $ac_try) 2>&5
18279 ac_status=$?
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; }; then
18282 ac_hi=$ac_mid
18283else
18284 echo "$as_me: failed program was:" >&5
18285sed 's/^/| /' conftest.$ac_ext >&5
18286
18287ac_lo=`expr '(' $ac_mid ')' + 1`
18288fi
ac1cb8d3 18289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18290done
18291case $ac_lo in
18292?*) ac_cv_sizeof_char=$ac_lo;;
18293'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18294See \`config.log' for more details." >&5
18295echo "$as_me: error: cannot compute sizeof (char), 77
18296See \`config.log' for more details." >&2;}
18297 { (exit 1); exit 1; }; } ;;
18298esac
18299else
18300 if test "$cross_compiling" = yes; then
64b75e64
RD
18301 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18302echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18303 { (exit 1); exit 1; }; }
18304else
18305 cat >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
18312long longval () { return (long) (sizeof (char)); }
18313unsigned long ulongval () { return (long) (sizeof (char)); }
18314#include <stdio.h>
18315#include <stdlib.h>
18316int
18317main ()
18318{
18319
18320 FILE *f = fopen ("conftest.val", "w");
18321 if (! f)
18322 exit (1);
18323 if (((long) (sizeof (char))) < 0)
18324 {
18325 long i = longval ();
18326 if (i != ((long) (sizeof (char))))
18327 exit (1);
18328 fprintf (f, "%ld\n", i);
18329 }
18330 else
18331 {
18332 unsigned long i = ulongval ();
18333 if (i != ((long) (sizeof (char))))
18334 exit (1);
18335 fprintf (f, "%lu\n", i);
18336 }
18337 exit (ferror (f) || fclose (f) != 0);
18338
18339 ;
18340 return 0;
18341}
18342_ACEOF
18343rm -f conftest$ac_exeext
18344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18345 (eval $ac_link) 2>&5
18346 ac_status=$?
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350 (eval $ac_try) 2>&5
18351 ac_status=$?
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; }; then
18354 ac_cv_sizeof_char=`cat conftest.val`
18355else
18356 echo "$as_me: program exited with status $ac_status" >&5
18357echo "$as_me: failed program was:" >&5
18358sed 's/^/| /' conftest.$ac_ext >&5
18359
18360( exit $ac_status )
18361{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18362See \`config.log' for more details." >&5
18363echo "$as_me: error: cannot compute sizeof (char), 77
18364See \`config.log' for more details." >&2;}
18365 { (exit 1); exit 1; }; }
18366fi
ac1cb8d3 18367rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18368fi
18369fi
18370rm -f conftest.val
18371else
18372 ac_cv_sizeof_char=0
18373fi
18374fi
18375echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18376echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18377cat >>confdefs.h <<_ACEOF
18378#define SIZEOF_CHAR $ac_cv_sizeof_char
18379_ACEOF
18380
18381
18382echo "$as_me:$LINENO: checking for short" >&5
18383echo $ECHO_N "checking for short... $ECHO_C" >&6
18384if test "${ac_cv_type_short+set}" = set; then
18385 echo $ECHO_N "(cached) $ECHO_C" >&6
18386else
18387 cat >conftest.$ac_ext <<_ACEOF
18388/* confdefs.h. */
18389_ACEOF
18390cat confdefs.h >>conftest.$ac_ext
18391cat >>conftest.$ac_ext <<_ACEOF
18392/* end confdefs.h. */
18393$ac_includes_default
18394int
18395main ()
18396{
18397if ((short *) 0)
18398 return 0;
18399if (sizeof (short))
18400 return 0;
18401 ;
18402 return 0;
18403}
18404_ACEOF
18405rm -f conftest.$ac_objext
18406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18407 (eval $ac_compile) 2>conftest.er1
a848cd7e 18408 ac_status=$?
ac1cb8d3
VS
18409 grep -v '^ *+' conftest.er1 >conftest.err
18410 rm -f conftest.er1
18411 cat conftest.err >&5
a848cd7e
SC
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); } &&
64b75e64 18414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18416 (eval $ac_try) 2>&5
18417 ac_status=$?
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; } &&
18420 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18422 (eval $ac_try) 2>&5
18423 ac_status=$?
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); }; }; then
18426 ac_cv_type_short=yes
18427else
18428 echo "$as_me: failed program was:" >&5
18429sed 's/^/| /' conftest.$ac_ext >&5
18430
18431ac_cv_type_short=no
18432fi
ac1cb8d3 18433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18434fi
18435echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18436echo "${ECHO_T}$ac_cv_type_short" >&6
18437
18438echo "$as_me:$LINENO: checking size of short" >&5
18439echo $ECHO_N "checking size of short... $ECHO_C" >&6
18440if test "${ac_cv_sizeof_short+set}" = set; then
18441 echo $ECHO_N "(cached) $ECHO_C" >&6
18442else
18443 if test "$ac_cv_type_short" = yes; then
18444 # The cast to unsigned long works around a bug in the HP C Compiler
18445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18447 # This bug is HP SR number 8606223364.
18448 if test "$cross_compiling" = yes; then
18449 # Depending upon the size, compute the lo and hi bounds.
18450cat >conftest.$ac_ext <<_ACEOF
18451/* confdefs.h. */
18452_ACEOF
18453cat confdefs.h >>conftest.$ac_ext
18454cat >>conftest.$ac_ext <<_ACEOF
18455/* end confdefs.h. */
18456$ac_includes_default
18457int
18458main ()
18459{
18460static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18461test_array [0] = 0
18462
18463 ;
18464 return 0;
18465}
18466_ACEOF
18467rm -f conftest.$ac_objext
18468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18469 (eval $ac_compile) 2>conftest.er1
a848cd7e 18470 ac_status=$?
ac1cb8d3
VS
18471 grep -v '^ *+' conftest.er1 >conftest.err
18472 rm -f conftest.er1
18473 cat conftest.err >&5
a848cd7e
SC
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); } &&
64b75e64 18476 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478 (eval $ac_try) 2>&5
18479 ac_status=$?
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; } &&
18482 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484 (eval $ac_try) 2>&5
18485 ac_status=$?
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; }; then
18488 ac_lo=0 ac_mid=0
18489 while :; do
18490 cat >conftest.$ac_ext <<_ACEOF
18491/* confdefs.h. */
18492_ACEOF
18493cat confdefs.h >>conftest.$ac_ext
18494cat >>conftest.$ac_ext <<_ACEOF
18495/* end confdefs.h. */
18496$ac_includes_default
18497int
18498main ()
18499{
18500static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18501test_array [0] = 0
18502
18503 ;
18504 return 0;
18505}
18506_ACEOF
18507rm -f conftest.$ac_objext
18508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18509 (eval $ac_compile) 2>conftest.er1
a848cd7e 18510 ac_status=$?
ac1cb8d3
VS
18511 grep -v '^ *+' conftest.er1 >conftest.err
18512 rm -f conftest.er1
18513 cat conftest.err >&5
a848cd7e
SC
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); } &&
64b75e64 18516 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18518 (eval $ac_try) 2>&5
18519 ac_status=$?
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; } &&
18522 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524 (eval $ac_try) 2>&5
18525 ac_status=$?
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; }; then
18528 ac_hi=$ac_mid; break
18529else
18530 echo "$as_me: failed program was:" >&5
18531sed 's/^/| /' conftest.$ac_ext >&5
18532
18533ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18534 if test $ac_lo -le $ac_mid; then
18535 ac_lo= ac_hi=
18536 break
18537 fi
18538 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18539fi
ac1cb8d3 18540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18541 done
18542else
18543 echo "$as_me: failed program was:" >&5
18544sed 's/^/| /' conftest.$ac_ext >&5
18545
18546cat >conftest.$ac_ext <<_ACEOF
18547/* confdefs.h. */
18548_ACEOF
18549cat confdefs.h >>conftest.$ac_ext
18550cat >>conftest.$ac_ext <<_ACEOF
18551/* end confdefs.h. */
18552$ac_includes_default
18553int
18554main ()
18555{
18556static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18557test_array [0] = 0
18558
18559 ;
18560 return 0;
18561}
18562_ACEOF
18563rm -f conftest.$ac_objext
18564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18565 (eval $ac_compile) 2>conftest.er1
a848cd7e 18566 ac_status=$?
ac1cb8d3
VS
18567 grep -v '^ *+' conftest.er1 >conftest.err
18568 rm -f conftest.er1
18569 cat conftest.err >&5
a848cd7e
SC
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); } &&
64b75e64 18572 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574 (eval $ac_try) 2>&5
18575 ac_status=$?
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); }; } &&
18578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18580 (eval $ac_try) 2>&5
18581 ac_status=$?
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); }; }; then
18584 ac_hi=-1 ac_mid=-1
18585 while :; do
18586 cat >conftest.$ac_ext <<_ACEOF
18587/* confdefs.h. */
18588_ACEOF
18589cat confdefs.h >>conftest.$ac_ext
18590cat >>conftest.$ac_ext <<_ACEOF
18591/* end confdefs.h. */
18592$ac_includes_default
18593int
18594main ()
18595{
18596static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18597test_array [0] = 0
18598
18599 ;
18600 return 0;
18601}
18602_ACEOF
18603rm -f conftest.$ac_objext
18604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18605 (eval $ac_compile) 2>conftest.er1
a848cd7e 18606 ac_status=$?
ac1cb8d3
VS
18607 grep -v '^ *+' conftest.er1 >conftest.err
18608 rm -f conftest.er1
18609 cat conftest.err >&5
a848cd7e
SC
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); } &&
64b75e64 18612 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; } &&
18618 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620 (eval $ac_try) 2>&5
18621 ac_status=$?
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; }; then
18624 ac_lo=$ac_mid; break
18625else
18626 echo "$as_me: failed program was:" >&5
18627sed 's/^/| /' conftest.$ac_ext >&5
18628
18629ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18630 if test $ac_mid -le $ac_hi; then
18631 ac_lo= ac_hi=
18632 break
18633 fi
18634 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18635fi
ac1cb8d3 18636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18637 done
18638else
18639 echo "$as_me: failed program was:" >&5
18640sed 's/^/| /' conftest.$ac_ext >&5
18641
18642ac_lo= ac_hi=
18643fi
ac1cb8d3 18644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18645fi
ac1cb8d3 18646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18647# Binary search between lo and hi bounds.
18648while test "x$ac_lo" != "x$ac_hi"; do
18649 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18650 cat >conftest.$ac_ext <<_ACEOF
18651/* confdefs.h. */
18652_ACEOF
18653cat confdefs.h >>conftest.$ac_ext
18654cat >>conftest.$ac_ext <<_ACEOF
18655/* end confdefs.h. */
18656$ac_includes_default
18657int
18658main ()
18659{
18660static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18661test_array [0] = 0
18662
18663 ;
18664 return 0;
18665}
18666_ACEOF
18667rm -f conftest.$ac_objext
18668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18669 (eval $ac_compile) 2>conftest.er1
a848cd7e 18670 ac_status=$?
ac1cb8d3
VS
18671 grep -v '^ *+' conftest.er1 >conftest.err
18672 rm -f conftest.er1
18673 cat conftest.err >&5
a848cd7e
SC
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); } &&
64b75e64 18676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18678 (eval $ac_try) 2>&5
18679 ac_status=$?
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); }; } &&
18682 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18684 (eval $ac_try) 2>&5
18685 ac_status=$?
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); }; }; then
18688 ac_hi=$ac_mid
18689else
18690 echo "$as_me: failed program was:" >&5
18691sed 's/^/| /' conftest.$ac_ext >&5
18692
18693ac_lo=`expr '(' $ac_mid ')' + 1`
18694fi
ac1cb8d3 18695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18696done
18697case $ac_lo in
18698?*) ac_cv_sizeof_short=$ac_lo;;
18699'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18700See \`config.log' for more details." >&5
18701echo "$as_me: error: cannot compute sizeof (short), 77
18702See \`config.log' for more details." >&2;}
18703 { (exit 1); exit 1; }; } ;;
18704esac
18705else
18706 if test "$cross_compiling" = yes; then
64b75e64
RD
18707 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18708echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18709 { (exit 1); exit 1; }; }
18710else
18711 cat >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
18718long longval () { return (long) (sizeof (short)); }
18719unsigned long ulongval () { return (long) (sizeof (short)); }
18720#include <stdio.h>
18721#include <stdlib.h>
18722int
18723main ()
18724{
18725
18726 FILE *f = fopen ("conftest.val", "w");
18727 if (! f)
18728 exit (1);
18729 if (((long) (sizeof (short))) < 0)
18730 {
18731 long i = longval ();
18732 if (i != ((long) (sizeof (short))))
18733 exit (1);
18734 fprintf (f, "%ld\n", i);
18735 }
18736 else
18737 {
18738 unsigned long i = ulongval ();
18739 if (i != ((long) (sizeof (short))))
18740 exit (1);
18741 fprintf (f, "%lu\n", i);
18742 }
18743 exit (ferror (f) || fclose (f) != 0);
18744
18745 ;
18746 return 0;
18747}
18748_ACEOF
18749rm -f conftest$ac_exeext
18750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18751 (eval $ac_link) 2>&5
18752 ac_status=$?
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18756 (eval $ac_try) 2>&5
18757 ac_status=$?
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); }; }; then
18760 ac_cv_sizeof_short=`cat conftest.val`
18761else
18762 echo "$as_me: program exited with status $ac_status" >&5
18763echo "$as_me: failed program was:" >&5
18764sed 's/^/| /' conftest.$ac_ext >&5
18765
18766( exit $ac_status )
18767{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18768See \`config.log' for more details." >&5
18769echo "$as_me: error: cannot compute sizeof (short), 77
18770See \`config.log' for more details." >&2;}
18771 { (exit 1); exit 1; }; }
18772fi
ac1cb8d3 18773rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18774fi
18775fi
18776rm -f conftest.val
18777else
18778 ac_cv_sizeof_short=0
18779fi
18780fi
18781echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18782echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18783cat >>confdefs.h <<_ACEOF
18784#define SIZEOF_SHORT $ac_cv_sizeof_short
18785_ACEOF
18786
18787
18788echo "$as_me:$LINENO: checking for void *" >&5
18789echo $ECHO_N "checking for void *... $ECHO_C" >&6
18790if test "${ac_cv_type_void_p+set}" = set; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18792else
18793 cat >conftest.$ac_ext <<_ACEOF
18794/* confdefs.h. */
18795_ACEOF
18796cat confdefs.h >>conftest.$ac_ext
18797cat >>conftest.$ac_ext <<_ACEOF
18798/* end confdefs.h. */
18799$ac_includes_default
18800int
18801main ()
18802{
18803if ((void * *) 0)
18804 return 0;
18805if (sizeof (void *))
18806 return 0;
18807 ;
18808 return 0;
18809}
18810_ACEOF
18811rm -f conftest.$ac_objext
18812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18813 (eval $ac_compile) 2>conftest.er1
a848cd7e 18814 ac_status=$?
ac1cb8d3
VS
18815 grep -v '^ *+' conftest.er1 >conftest.err
18816 rm -f conftest.er1
18817 cat conftest.err >&5
a848cd7e
SC
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); } &&
64b75e64 18820 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822 (eval $ac_try) 2>&5
18823 ac_status=$?
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; } &&
18826 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; }; then
18832 ac_cv_type_void_p=yes
18833else
18834 echo "$as_me: failed program was:" >&5
18835sed 's/^/| /' conftest.$ac_ext >&5
18836
18837ac_cv_type_void_p=no
18838fi
ac1cb8d3 18839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18840fi
18841echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18842echo "${ECHO_T}$ac_cv_type_void_p" >&6
18843
18844echo "$as_me:$LINENO: checking size of void *" >&5
18845echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18846if test "${ac_cv_sizeof_void_p+set}" = set; then
18847 echo $ECHO_N "(cached) $ECHO_C" >&6
18848else
18849 if test "$ac_cv_type_void_p" = yes; then
18850 # The cast to unsigned long works around a bug in the HP C Compiler
18851 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18852 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18853 # This bug is HP SR number 8606223364.
18854 if test "$cross_compiling" = yes; then
18855 # Depending upon the size, compute the lo and hi bounds.
18856cat >conftest.$ac_ext <<_ACEOF
18857/* confdefs.h. */
18858_ACEOF
18859cat confdefs.h >>conftest.$ac_ext
18860cat >>conftest.$ac_ext <<_ACEOF
18861/* end confdefs.h. */
18862$ac_includes_default
18863int
18864main ()
18865{
18866static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18867test_array [0] = 0
18868
18869 ;
18870 return 0;
18871}
18872_ACEOF
18873rm -f conftest.$ac_objext
18874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18875 (eval $ac_compile) 2>conftest.er1
a848cd7e 18876 ac_status=$?
ac1cb8d3
VS
18877 grep -v '^ *+' conftest.er1 >conftest.err
18878 rm -f conftest.er1
18879 cat conftest.err >&5
a848cd7e
SC
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); } &&
64b75e64 18882 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; } &&
18888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18891 ac_status=$?
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; }; then
18894 ac_lo=0 ac_mid=0
18895 while :; do
18896 cat >conftest.$ac_ext <<_ACEOF
18897/* confdefs.h. */
18898_ACEOF
18899cat confdefs.h >>conftest.$ac_ext
18900cat >>conftest.$ac_ext <<_ACEOF
18901/* end confdefs.h. */
18902$ac_includes_default
18903int
18904main ()
18905{
18906static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18907test_array [0] = 0
18908
18909 ;
18910 return 0;
18911}
18912_ACEOF
18913rm -f conftest.$ac_objext
18914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18915 (eval $ac_compile) 2>conftest.er1
a848cd7e 18916 ac_status=$?
ac1cb8d3
VS
18917 grep -v '^ *+' conftest.er1 >conftest.err
18918 rm -f conftest.er1
18919 cat conftest.err >&5
a848cd7e
SC
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); } &&
64b75e64 18922 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924 (eval $ac_try) 2>&5
18925 ac_status=$?
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); }; } &&
18928 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18930 (eval $ac_try) 2>&5
18931 ac_status=$?
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); }; }; then
18934 ac_hi=$ac_mid; break
18935else
18936 echo "$as_me: failed program was:" >&5
18937sed 's/^/| /' conftest.$ac_ext >&5
18938
18939ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18940 if test $ac_lo -le $ac_mid; then
18941 ac_lo= ac_hi=
18942 break
18943 fi
18944 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18945fi
ac1cb8d3 18946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18947 done
18948else
18949 echo "$as_me: failed program was:" >&5
18950sed 's/^/| /' conftest.$ac_ext >&5
18951
18952cat >conftest.$ac_ext <<_ACEOF
18953/* confdefs.h. */
18954_ACEOF
18955cat confdefs.h >>conftest.$ac_ext
18956cat >>conftest.$ac_ext <<_ACEOF
18957/* end confdefs.h. */
18958$ac_includes_default
18959int
18960main ()
18961{
18962static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18963test_array [0] = 0
18964
18965 ;
18966 return 0;
18967}
18968_ACEOF
18969rm -f conftest.$ac_objext
18970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18971 (eval $ac_compile) 2>conftest.er1
a848cd7e 18972 ac_status=$?
ac1cb8d3
VS
18973 grep -v '^ *+' conftest.er1 >conftest.err
18974 rm -f conftest.er1
18975 cat conftest.err >&5
a848cd7e
SC
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); } &&
64b75e64 18978 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18980 (eval $ac_try) 2>&5
18981 ac_status=$?
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }; } &&
18984 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18986 (eval $ac_try) 2>&5
18987 ac_status=$?
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; }; then
18990 ac_hi=-1 ac_mid=-1
18991 while :; do
18992 cat >conftest.$ac_ext <<_ACEOF
18993/* confdefs.h. */
18994_ACEOF
18995cat confdefs.h >>conftest.$ac_ext
18996cat >>conftest.$ac_ext <<_ACEOF
18997/* end confdefs.h. */
18998$ac_includes_default
18999int
19000main ()
19001{
19002static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
19003test_array [0] = 0
19004
19005 ;
19006 return 0;
19007}
19008_ACEOF
19009rm -f conftest.$ac_objext
19010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19011 (eval $ac_compile) 2>conftest.er1
a848cd7e 19012 ac_status=$?
ac1cb8d3
VS
19013 grep -v '^ *+' conftest.er1 >conftest.err
19014 rm -f conftest.er1
19015 cat conftest.err >&5
a848cd7e
SC
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); } &&
64b75e64 19018 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19020 (eval $ac_try) 2>&5
19021 ac_status=$?
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; } &&
19024 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19026 (eval $ac_try) 2>&5
19027 ac_status=$?
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); }; }; then
19030 ac_lo=$ac_mid; break
19031else
19032 echo "$as_me: failed program was:" >&5
19033sed 's/^/| /' conftest.$ac_ext >&5
19034
19035ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19036 if test $ac_mid -le $ac_hi; then
19037 ac_lo= ac_hi=
19038 break
19039 fi
19040 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19041fi
ac1cb8d3 19042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19043 done
19044else
19045 echo "$as_me: failed program was:" >&5
19046sed 's/^/| /' conftest.$ac_ext >&5
19047
19048ac_lo= ac_hi=
19049fi
ac1cb8d3 19050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19051fi
ac1cb8d3 19052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19053# Binary search between lo and hi bounds.
19054while test "x$ac_lo" != "x$ac_hi"; do
19055 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19056 cat >conftest.$ac_ext <<_ACEOF
19057/* confdefs.h. */
19058_ACEOF
19059cat confdefs.h >>conftest.$ac_ext
19060cat >>conftest.$ac_ext <<_ACEOF
19061/* end confdefs.h. */
19062$ac_includes_default
19063int
19064main ()
19065{
19066static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
19067test_array [0] = 0
19068
19069 ;
19070 return 0;
19071}
19072_ACEOF
19073rm -f conftest.$ac_objext
19074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19075 (eval $ac_compile) 2>conftest.er1
a848cd7e 19076 ac_status=$?
ac1cb8d3
VS
19077 grep -v '^ *+' conftest.er1 >conftest.err
19078 rm -f conftest.er1
19079 cat conftest.err >&5
a848cd7e
SC
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); } &&
64b75e64 19082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19084 (eval $ac_try) 2>&5
19085 ac_status=$?
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; } &&
19088 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19090 (eval $ac_try) 2>&5
19091 ac_status=$?
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); }; }; then
19094 ac_hi=$ac_mid
19095else
19096 echo "$as_me: failed program was:" >&5
19097sed 's/^/| /' conftest.$ac_ext >&5
19098
19099ac_lo=`expr '(' $ac_mid ')' + 1`
19100fi
ac1cb8d3 19101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19102done
19103case $ac_lo in
19104?*) ac_cv_sizeof_void_p=$ac_lo;;
19105'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19106See \`config.log' for more details." >&5
19107echo "$as_me: error: cannot compute sizeof (void *), 77
19108See \`config.log' for more details." >&2;}
19109 { (exit 1); exit 1; }; } ;;
19110esac
19111else
19112 if test "$cross_compiling" = yes; then
64b75e64
RD
19113 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19114echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19115 { (exit 1); exit 1; }; }
19116else
19117 cat >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
19124long longval () { return (long) (sizeof (void *)); }
19125unsigned long ulongval () { return (long) (sizeof (void *)); }
19126#include <stdio.h>
19127#include <stdlib.h>
19128int
19129main ()
19130{
19131
19132 FILE *f = fopen ("conftest.val", "w");
19133 if (! f)
19134 exit (1);
19135 if (((long) (sizeof (void *))) < 0)
19136 {
19137 long i = longval ();
19138 if (i != ((long) (sizeof (void *))))
19139 exit (1);
19140 fprintf (f, "%ld\n", i);
19141 }
19142 else
19143 {
19144 unsigned long i = ulongval ();
19145 if (i != ((long) (sizeof (void *))))
19146 exit (1);
19147 fprintf (f, "%lu\n", i);
19148 }
19149 exit (ferror (f) || fclose (f) != 0);
19150
19151 ;
19152 return 0;
19153}
19154_ACEOF
19155rm -f conftest$ac_exeext
19156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19157 (eval $ac_link) 2>&5
19158 ac_status=$?
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19162 (eval $ac_try) 2>&5
19163 ac_status=$?
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); }; }; then
19166 ac_cv_sizeof_void_p=`cat conftest.val`
19167else
19168 echo "$as_me: program exited with status $ac_status" >&5
19169echo "$as_me: failed program was:" >&5
19170sed 's/^/| /' conftest.$ac_ext >&5
19171
19172( exit $ac_status )
19173{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19174See \`config.log' for more details." >&5
19175echo "$as_me: error: cannot compute sizeof (void *), 77
19176See \`config.log' for more details." >&2;}
19177 { (exit 1); exit 1; }; }
19178fi
ac1cb8d3 19179rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19180fi
19181fi
19182rm -f conftest.val
19183else
19184 ac_cv_sizeof_void_p=0
19185fi
19186fi
19187echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
19188echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
19189cat >>confdefs.h <<_ACEOF
19190#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19191_ACEOF
19192
19193
19194echo "$as_me:$LINENO: checking for int" >&5
19195echo $ECHO_N "checking for int... $ECHO_C" >&6
19196if test "${ac_cv_type_int+set}" = set; then
19197 echo $ECHO_N "(cached) $ECHO_C" >&6
19198else
19199 cat >conftest.$ac_ext <<_ACEOF
19200/* confdefs.h. */
19201_ACEOF
19202cat confdefs.h >>conftest.$ac_ext
19203cat >>conftest.$ac_ext <<_ACEOF
19204/* end confdefs.h. */
19205$ac_includes_default
19206int
19207main ()
19208{
19209if ((int *) 0)
19210 return 0;
19211if (sizeof (int))
19212 return 0;
19213 ;
19214 return 0;
19215}
19216_ACEOF
19217rm -f conftest.$ac_objext
19218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19219 (eval $ac_compile) 2>conftest.er1
a848cd7e 19220 ac_status=$?
ac1cb8d3
VS
19221 grep -v '^ *+' conftest.er1 >conftest.err
19222 rm -f conftest.er1
19223 cat conftest.err >&5
a848cd7e
SC
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } &&
64b75e64 19226 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19228 (eval $ac_try) 2>&5
19229 ac_status=$?
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); }; } &&
19232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234 (eval $ac_try) 2>&5
19235 ac_status=$?
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
19238 ac_cv_type_int=yes
19239else
19240 echo "$as_me: failed program was:" >&5
19241sed 's/^/| /' conftest.$ac_ext >&5
19242
19243ac_cv_type_int=no
19244fi
ac1cb8d3 19245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19246fi
19247echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19248echo "${ECHO_T}$ac_cv_type_int" >&6
19249
19250echo "$as_me:$LINENO: checking size of int" >&5
19251echo $ECHO_N "checking size of int... $ECHO_C" >&6
19252if test "${ac_cv_sizeof_int+set}" = set; then
19253 echo $ECHO_N "(cached) $ECHO_C" >&6
19254else
19255 if test "$ac_cv_type_int" = yes; then
19256 # The cast to unsigned long works around a bug in the HP C Compiler
19257 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19258 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19259 # This bug is HP SR number 8606223364.
19260 if test "$cross_compiling" = yes; then
19261 # Depending upon the size, compute the lo and hi bounds.
19262cat >conftest.$ac_ext <<_ACEOF
19263/* confdefs.h. */
19264_ACEOF
19265cat confdefs.h >>conftest.$ac_ext
19266cat >>conftest.$ac_ext <<_ACEOF
19267/* end confdefs.h. */
19268$ac_includes_default
19269int
19270main ()
19271{
19272static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19273test_array [0] = 0
19274
19275 ;
19276 return 0;
19277}
19278_ACEOF
19279rm -f conftest.$ac_objext
19280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19281 (eval $ac_compile) 2>conftest.er1
a848cd7e 19282 ac_status=$?
ac1cb8d3
VS
19283 grep -v '^ *+' conftest.er1 >conftest.err
19284 rm -f conftest.er1
19285 cat conftest.err >&5
a848cd7e
SC
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); } &&
64b75e64 19288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19290 (eval $ac_try) 2>&5
19291 ac_status=$?
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; } &&
19294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296 (eval $ac_try) 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; }; then
19300 ac_lo=0 ac_mid=0
19301 while :; do
19302 cat >conftest.$ac_ext <<_ACEOF
19303/* confdefs.h. */
19304_ACEOF
19305cat confdefs.h >>conftest.$ac_ext
19306cat >>conftest.$ac_ext <<_ACEOF
19307/* end confdefs.h. */
19308$ac_includes_default
19309int
19310main ()
19311{
19312static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19313test_array [0] = 0
19314
19315 ;
19316 return 0;
19317}
19318_ACEOF
19319rm -f conftest.$ac_objext
19320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19321 (eval $ac_compile) 2>conftest.er1
a848cd7e 19322 ac_status=$?
ac1cb8d3
VS
19323 grep -v '^ *+' conftest.er1 >conftest.err
19324 rm -f conftest.er1
19325 cat conftest.err >&5
a848cd7e
SC
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); } &&
64b75e64 19328 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19330 (eval $ac_try) 2>&5
19331 ac_status=$?
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; } &&
19334 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19337 ac_status=$?
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; }; then
19340 ac_hi=$ac_mid; break
19341else
19342 echo "$as_me: failed program was:" >&5
19343sed 's/^/| /' conftest.$ac_ext >&5
19344
19345ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19346 if test $ac_lo -le $ac_mid; then
19347 ac_lo= ac_hi=
19348 break
19349 fi
19350 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19351fi
ac1cb8d3 19352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19353 done
19354else
19355 echo "$as_me: failed program was:" >&5
19356sed 's/^/| /' conftest.$ac_ext >&5
19357
19358cat >conftest.$ac_ext <<_ACEOF
19359/* confdefs.h. */
19360_ACEOF
19361cat confdefs.h >>conftest.$ac_ext
19362cat >>conftest.$ac_ext <<_ACEOF
19363/* end confdefs.h. */
19364$ac_includes_default
19365int
19366main ()
19367{
19368static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19369test_array [0] = 0
19370
19371 ;
19372 return 0;
19373}
19374_ACEOF
19375rm -f conftest.$ac_objext
19376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19377 (eval $ac_compile) 2>conftest.er1
a848cd7e 19378 ac_status=$?
ac1cb8d3
VS
19379 grep -v '^ *+' conftest.er1 >conftest.err
19380 rm -f conftest.er1
19381 cat conftest.err >&5
a848cd7e
SC
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); } &&
64b75e64 19384 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19387 ac_status=$?
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; } &&
19390 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; }; then
19396 ac_hi=-1 ac_mid=-1
19397 while :; do
19398 cat >conftest.$ac_ext <<_ACEOF
19399/* confdefs.h. */
19400_ACEOF
19401cat confdefs.h >>conftest.$ac_ext
19402cat >>conftest.$ac_ext <<_ACEOF
19403/* end confdefs.h. */
19404$ac_includes_default
19405int
19406main ()
19407{
19408static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19409test_array [0] = 0
19410
19411 ;
19412 return 0;
19413}
19414_ACEOF
19415rm -f conftest.$ac_objext
19416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19417 (eval $ac_compile) 2>conftest.er1
a848cd7e 19418 ac_status=$?
ac1cb8d3
VS
19419 grep -v '^ *+' conftest.er1 >conftest.err
19420 rm -f conftest.er1
19421 cat conftest.err >&5
a848cd7e
SC
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); } &&
64b75e64 19424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19426 (eval $ac_try) 2>&5
19427 ac_status=$?
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }; } &&
19430 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432 (eval $ac_try) 2>&5
19433 ac_status=$?
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; }; then
19436 ac_lo=$ac_mid; break
19437else
19438 echo "$as_me: failed program was:" >&5
19439sed 's/^/| /' conftest.$ac_ext >&5
19440
19441ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19442 if test $ac_mid -le $ac_hi; then
19443 ac_lo= ac_hi=
19444 break
19445 fi
19446 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19447fi
ac1cb8d3 19448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19449 done
19450else
19451 echo "$as_me: failed program was:" >&5
19452sed 's/^/| /' conftest.$ac_ext >&5
19453
19454ac_lo= ac_hi=
19455fi
ac1cb8d3 19456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19457fi
ac1cb8d3 19458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19459# Binary search between lo and hi bounds.
19460while test "x$ac_lo" != "x$ac_hi"; do
19461 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19462 cat >conftest.$ac_ext <<_ACEOF
19463/* confdefs.h. */
19464_ACEOF
19465cat confdefs.h >>conftest.$ac_ext
19466cat >>conftest.$ac_ext <<_ACEOF
19467/* end confdefs.h. */
19468$ac_includes_default
19469int
19470main ()
19471{
19472static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19473test_array [0] = 0
19474
19475 ;
19476 return 0;
19477}
19478_ACEOF
19479rm -f conftest.$ac_objext
19480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19481 (eval $ac_compile) 2>conftest.er1
a848cd7e 19482 ac_status=$?
ac1cb8d3
VS
19483 grep -v '^ *+' conftest.er1 >conftest.err
19484 rm -f conftest.er1
19485 cat conftest.err >&5
a848cd7e
SC
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } &&
64b75e64 19488 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; } &&
19494 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496 (eval $ac_try) 2>&5
19497 ac_status=$?
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; }; then
19500 ac_hi=$ac_mid
19501else
19502 echo "$as_me: failed program was:" >&5
19503sed 's/^/| /' conftest.$ac_ext >&5
19504
19505ac_lo=`expr '(' $ac_mid ')' + 1`
19506fi
ac1cb8d3 19507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19508done
19509case $ac_lo in
19510?*) ac_cv_sizeof_int=$ac_lo;;
19511'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19512See \`config.log' for more details." >&5
19513echo "$as_me: error: cannot compute sizeof (int), 77
19514See \`config.log' for more details." >&2;}
19515 { (exit 1); exit 1; }; } ;;
19516esac
19517else
19518 if test "$cross_compiling" = yes; then
64b75e64
RD
19519 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19520echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19521 { (exit 1); exit 1; }; }
19522else
19523 cat >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
19530long longval () { return (long) (sizeof (int)); }
19531unsigned long ulongval () { return (long) (sizeof (int)); }
19532#include <stdio.h>
19533#include <stdlib.h>
19534int
19535main ()
19536{
19537
19538 FILE *f = fopen ("conftest.val", "w");
19539 if (! f)
19540 exit (1);
19541 if (((long) (sizeof (int))) < 0)
19542 {
19543 long i = longval ();
19544 if (i != ((long) (sizeof (int))))
19545 exit (1);
19546 fprintf (f, "%ld\n", i);
19547 }
19548 else
19549 {
19550 unsigned long i = ulongval ();
19551 if (i != ((long) (sizeof (int))))
19552 exit (1);
19553 fprintf (f, "%lu\n", i);
19554 }
19555 exit (ferror (f) || fclose (f) != 0);
19556
19557 ;
19558 return 0;
19559}
19560_ACEOF
19561rm -f conftest$ac_exeext
19562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19563 (eval $ac_link) 2>&5
19564 ac_status=$?
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568 (eval $ac_try) 2>&5
19569 ac_status=$?
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; }; then
19572 ac_cv_sizeof_int=`cat conftest.val`
19573else
19574 echo "$as_me: program exited with status $ac_status" >&5
19575echo "$as_me: failed program was:" >&5
19576sed 's/^/| /' conftest.$ac_ext >&5
19577
19578( exit $ac_status )
19579{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19580See \`config.log' for more details." >&5
19581echo "$as_me: error: cannot compute sizeof (int), 77
19582See \`config.log' for more details." >&2;}
19583 { (exit 1); exit 1; }; }
19584fi
ac1cb8d3 19585rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19586fi
19587fi
19588rm -f conftest.val
19589else
19590 ac_cv_sizeof_int=0
19591fi
19592fi
19593echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19594echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19595cat >>confdefs.h <<_ACEOF
19596#define SIZEOF_INT $ac_cv_sizeof_int
19597_ACEOF
19598
19599
19600echo "$as_me:$LINENO: checking for long" >&5
19601echo $ECHO_N "checking for long... $ECHO_C" >&6
19602if test "${ac_cv_type_long+set}" = set; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
19604else
19605 cat >conftest.$ac_ext <<_ACEOF
19606/* confdefs.h. */
19607_ACEOF
19608cat confdefs.h >>conftest.$ac_ext
19609cat >>conftest.$ac_ext <<_ACEOF
19610/* end confdefs.h. */
19611$ac_includes_default
19612int
19613main ()
19614{
19615if ((long *) 0)
19616 return 0;
19617if (sizeof (long))
19618 return 0;
19619 ;
19620 return 0;
19621}
19622_ACEOF
19623rm -f conftest.$ac_objext
19624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19625 (eval $ac_compile) 2>conftest.er1
a848cd7e 19626 ac_status=$?
ac1cb8d3
VS
19627 grep -v '^ *+' conftest.er1 >conftest.err
19628 rm -f conftest.er1
19629 cat conftest.err >&5
a848cd7e
SC
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } &&
64b75e64 19632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634 (eval $ac_try) 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; } &&
19638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19641 ac_status=$?
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
19644 ac_cv_type_long=yes
19645else
19646 echo "$as_me: failed program was:" >&5
19647sed 's/^/| /' conftest.$ac_ext >&5
19648
19649ac_cv_type_long=no
19650fi
ac1cb8d3 19651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19652fi
19653echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19654echo "${ECHO_T}$ac_cv_type_long" >&6
19655
19656echo "$as_me:$LINENO: checking size of long" >&5
19657echo $ECHO_N "checking size of long... $ECHO_C" >&6
19658if test "${ac_cv_sizeof_long+set}" = set; then
19659 echo $ECHO_N "(cached) $ECHO_C" >&6
19660else
19661 if test "$ac_cv_type_long" = yes; then
19662 # The cast to unsigned long works around a bug in the HP C Compiler
19663 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19664 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19665 # This bug is HP SR number 8606223364.
19666 if test "$cross_compiling" = yes; then
19667 # Depending upon the size, compute the lo and hi bounds.
19668cat >conftest.$ac_ext <<_ACEOF
19669/* confdefs.h. */
19670_ACEOF
19671cat confdefs.h >>conftest.$ac_ext
19672cat >>conftest.$ac_ext <<_ACEOF
19673/* end confdefs.h. */
19674$ac_includes_default
19675int
19676main ()
19677{
19678static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19679test_array [0] = 0
19680
19681 ;
19682 return 0;
19683}
19684_ACEOF
19685rm -f conftest.$ac_objext
19686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19687 (eval $ac_compile) 2>conftest.er1
a848cd7e 19688 ac_status=$?
ac1cb8d3
VS
19689 grep -v '^ *+' conftest.er1 >conftest.err
19690 rm -f conftest.er1
19691 cat conftest.err >&5
a848cd7e
SC
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); } &&
64b75e64 19694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19696 (eval $ac_try) 2>&5
19697 ac_status=$?
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); }; } &&
19700 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19702 (eval $ac_try) 2>&5
19703 ac_status=$?
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); }; }; then
19706 ac_lo=0 ac_mid=0
19707 while :; do
19708 cat >conftest.$ac_ext <<_ACEOF
19709/* confdefs.h. */
19710_ACEOF
19711cat confdefs.h >>conftest.$ac_ext
19712cat >>conftest.$ac_ext <<_ACEOF
19713/* end confdefs.h. */
19714$ac_includes_default
19715int
19716main ()
19717{
19718static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19719test_array [0] = 0
19720
19721 ;
19722 return 0;
19723}
19724_ACEOF
19725rm -f conftest.$ac_objext
19726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19727 (eval $ac_compile) 2>conftest.er1
a848cd7e 19728 ac_status=$?
ac1cb8d3
VS
19729 grep -v '^ *+' conftest.er1 >conftest.err
19730 rm -f conftest.er1
19731 cat conftest.err >&5
a848cd7e
SC
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); } &&
64b75e64 19734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736 (eval $ac_try) 2>&5
19737 ac_status=$?
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; } &&
19740 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742 (eval $ac_try) 2>&5
19743 ac_status=$?
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; }; then
19746 ac_hi=$ac_mid; break
19747else
19748 echo "$as_me: failed program was:" >&5
19749sed 's/^/| /' conftest.$ac_ext >&5
19750
19751ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19752 if test $ac_lo -le $ac_mid; then
19753 ac_lo= ac_hi=
19754 break
19755 fi
19756 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19757fi
ac1cb8d3 19758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19759 done
19760else
19761 echo "$as_me: failed program was:" >&5
19762sed 's/^/| /' conftest.$ac_ext >&5
19763
19764cat >conftest.$ac_ext <<_ACEOF
19765/* confdefs.h. */
19766_ACEOF
19767cat confdefs.h >>conftest.$ac_ext
19768cat >>conftest.$ac_ext <<_ACEOF
19769/* end confdefs.h. */
19770$ac_includes_default
19771int
19772main ()
19773{
19774static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19775test_array [0] = 0
19776
19777 ;
19778 return 0;
19779}
19780_ACEOF
19781rm -f conftest.$ac_objext
19782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19783 (eval $ac_compile) 2>conftest.er1
a848cd7e 19784 ac_status=$?
ac1cb8d3
VS
19785 grep -v '^ *+' conftest.er1 >conftest.err
19786 rm -f conftest.er1
19787 cat conftest.err >&5
a848cd7e
SC
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } &&
64b75e64 19790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19792 (eval $ac_try) 2>&5
19793 ac_status=$?
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; } &&
19796 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798 (eval $ac_try) 2>&5
19799 ac_status=$?
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); }; }; then
19802 ac_hi=-1 ac_mid=-1
19803 while :; do
19804 cat >conftest.$ac_ext <<_ACEOF
19805/* confdefs.h. */
19806_ACEOF
19807cat confdefs.h >>conftest.$ac_ext
19808cat >>conftest.$ac_ext <<_ACEOF
19809/* end confdefs.h. */
19810$ac_includes_default
19811int
19812main ()
19813{
19814static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19815test_array [0] = 0
19816
19817 ;
19818 return 0;
19819}
19820_ACEOF
19821rm -f conftest.$ac_objext
19822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19823 (eval $ac_compile) 2>conftest.er1
a848cd7e 19824 ac_status=$?
ac1cb8d3
VS
19825 grep -v '^ *+' conftest.er1 >conftest.err
19826 rm -f conftest.er1
19827 cat conftest.err >&5
a848cd7e
SC
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); } &&
64b75e64 19830 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19832 (eval $ac_try) 2>&5
19833 ac_status=$?
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); }; } &&
19836 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19838 (eval $ac_try) 2>&5
19839 ac_status=$?
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; }; then
19842 ac_lo=$ac_mid; break
19843else
19844 echo "$as_me: failed program was:" >&5
19845sed 's/^/| /' conftest.$ac_ext >&5
19846
19847ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19848 if test $ac_mid -le $ac_hi; then
19849 ac_lo= ac_hi=
19850 break
19851 fi
19852 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19853fi
ac1cb8d3 19854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19855 done
19856else
19857 echo "$as_me: failed program was:" >&5
19858sed 's/^/| /' conftest.$ac_ext >&5
19859
19860ac_lo= ac_hi=
19861fi
ac1cb8d3 19862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19863fi
ac1cb8d3 19864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19865# Binary search between lo and hi bounds.
19866while test "x$ac_lo" != "x$ac_hi"; do
19867 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19868 cat >conftest.$ac_ext <<_ACEOF
19869/* confdefs.h. */
19870_ACEOF
19871cat confdefs.h >>conftest.$ac_ext
19872cat >>conftest.$ac_ext <<_ACEOF
19873/* end confdefs.h. */
19874$ac_includes_default
19875int
19876main ()
19877{
19878static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19879test_array [0] = 0
19880
19881 ;
19882 return 0;
19883}
19884_ACEOF
19885rm -f conftest.$ac_objext
19886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19887 (eval $ac_compile) 2>conftest.er1
a848cd7e 19888 ac_status=$?
ac1cb8d3
VS
19889 grep -v '^ *+' conftest.er1 >conftest.err
19890 rm -f conftest.er1
19891 cat conftest.err >&5
a848cd7e
SC
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } &&
64b75e64 19894 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896 (eval $ac_try) 2>&5
19897 ac_status=$?
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; } &&
19900 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19902 (eval $ac_try) 2>&5
19903 ac_status=$?
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; }; then
19906 ac_hi=$ac_mid
19907else
19908 echo "$as_me: failed program was:" >&5
19909sed 's/^/| /' conftest.$ac_ext >&5
19910
19911ac_lo=`expr '(' $ac_mid ')' + 1`
19912fi
ac1cb8d3 19913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19914done
19915case $ac_lo in
19916?*) ac_cv_sizeof_long=$ac_lo;;
19917'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19918See \`config.log' for more details." >&5
19919echo "$as_me: error: cannot compute sizeof (long), 77
19920See \`config.log' for more details." >&2;}
19921 { (exit 1); exit 1; }; } ;;
19922esac
19923else
19924 if test "$cross_compiling" = yes; then
64b75e64
RD
19925 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19926echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19927 { (exit 1); exit 1; }; }
19928else
19929 cat >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
19936long longval () { return (long) (sizeof (long)); }
19937unsigned long ulongval () { return (long) (sizeof (long)); }
19938#include <stdio.h>
19939#include <stdlib.h>
19940int
19941main ()
19942{
19943
19944 FILE *f = fopen ("conftest.val", "w");
19945 if (! f)
19946 exit (1);
19947 if (((long) (sizeof (long))) < 0)
19948 {
19949 long i = longval ();
19950 if (i != ((long) (sizeof (long))))
19951 exit (1);
19952 fprintf (f, "%ld\n", i);
19953 }
19954 else
19955 {
19956 unsigned long i = ulongval ();
19957 if (i != ((long) (sizeof (long))))
19958 exit (1);
19959 fprintf (f, "%lu\n", i);
19960 }
19961 exit (ferror (f) || fclose (f) != 0);
19962
19963 ;
19964 return 0;
19965}
19966_ACEOF
19967rm -f conftest$ac_exeext
19968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19969 (eval $ac_link) 2>&5
19970 ac_status=$?
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19974 (eval $ac_try) 2>&5
19975 ac_status=$?
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); }; }; then
19978 ac_cv_sizeof_long=`cat conftest.val`
19979else
19980 echo "$as_me: program exited with status $ac_status" >&5
19981echo "$as_me: failed program was:" >&5
19982sed 's/^/| /' conftest.$ac_ext >&5
19983
19984( exit $ac_status )
19985{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19986See \`config.log' for more details." >&5
19987echo "$as_me: error: cannot compute sizeof (long), 77
19988See \`config.log' for more details." >&2;}
19989 { (exit 1); exit 1; }; }
19990fi
ac1cb8d3 19991rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19992fi
19993fi
19994rm -f conftest.val
19995else
19996 ac_cv_sizeof_long=0
19997fi
19998fi
19999echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20000echo "${ECHO_T}$ac_cv_sizeof_long" >&6
20001cat >>confdefs.h <<_ACEOF
20002#define SIZEOF_LONG $ac_cv_sizeof_long
20003_ACEOF
20004
20005
20006echo "$as_me:$LINENO: checking for size_t" >&5
20007echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20008if test "${ac_cv_type_size_t+set}" = set; then
20009 echo $ECHO_N "(cached) $ECHO_C" >&6
20010else
20011 cat >conftest.$ac_ext <<_ACEOF
20012/* confdefs.h. */
20013_ACEOF
20014cat confdefs.h >>conftest.$ac_ext
20015cat >>conftest.$ac_ext <<_ACEOF
20016/* end confdefs.h. */
20017$ac_includes_default
20018int
20019main ()
20020{
20021if ((size_t *) 0)
20022 return 0;
20023if (sizeof (size_t))
20024 return 0;
20025 ;
20026 return 0;
20027}
20028_ACEOF
20029rm -f conftest.$ac_objext
20030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20031 (eval $ac_compile) 2>conftest.er1
a848cd7e 20032 ac_status=$?
ac1cb8d3
VS
20033 grep -v '^ *+' conftest.er1 >conftest.err
20034 rm -f conftest.er1
20035 cat conftest.err >&5
a848cd7e
SC
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } &&
64b75e64 20038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20040 (eval $ac_try) 2>&5
20041 ac_status=$?
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); }; } &&
20044 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046 (eval $ac_try) 2>&5
20047 ac_status=$?
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; }; then
20050 ac_cv_type_size_t=yes
20051else
20052 echo "$as_me: failed program was:" >&5
20053sed 's/^/| /' conftest.$ac_ext >&5
20054
20055ac_cv_type_size_t=no
20056fi
ac1cb8d3 20057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20058fi
20059echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20060echo "${ECHO_T}$ac_cv_type_size_t" >&6
20061
20062echo "$as_me:$LINENO: checking size of size_t" >&5
20063echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
20064if test "${ac_cv_sizeof_size_t+set}" = set; then
20065 echo $ECHO_N "(cached) $ECHO_C" >&6
20066else
20067 if test "$ac_cv_type_size_t" = yes; then
20068 # The cast to unsigned long works around a bug in the HP C Compiler
20069 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20070 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20071 # This bug is HP SR number 8606223364.
20072 if test "$cross_compiling" = yes; then
20073 # Depending upon the size, compute the lo and hi bounds.
20074cat >conftest.$ac_ext <<_ACEOF
20075/* confdefs.h. */
20076_ACEOF
20077cat confdefs.h >>conftest.$ac_ext
20078cat >>conftest.$ac_ext <<_ACEOF
20079/* end confdefs.h. */
20080$ac_includes_default
20081int
20082main ()
20083{
20084static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
20085test_array [0] = 0
20086
20087 ;
20088 return 0;
20089}
20090_ACEOF
20091rm -f conftest.$ac_objext
20092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20093 (eval $ac_compile) 2>conftest.er1
a848cd7e 20094 ac_status=$?
ac1cb8d3
VS
20095 grep -v '^ *+' conftest.er1 >conftest.err
20096 rm -f conftest.er1
20097 cat conftest.err >&5
a848cd7e
SC
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); } &&
64b75e64 20100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20102 (eval $ac_try) 2>&5
20103 ac_status=$?
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); }; } &&
20106 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20108 (eval $ac_try) 2>&5
20109 ac_status=$?
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }; }; then
20112 ac_lo=0 ac_mid=0
20113 while :; do
20114 cat >conftest.$ac_ext <<_ACEOF
20115/* confdefs.h. */
20116_ACEOF
20117cat confdefs.h >>conftest.$ac_ext
20118cat >>conftest.$ac_ext <<_ACEOF
20119/* end confdefs.h. */
20120$ac_includes_default
20121int
20122main ()
20123{
20124static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20125test_array [0] = 0
20126
20127 ;
20128 return 0;
20129}
20130_ACEOF
20131rm -f conftest.$ac_objext
20132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20133 (eval $ac_compile) 2>conftest.er1
a848cd7e 20134 ac_status=$?
ac1cb8d3
VS
20135 grep -v '^ *+' conftest.er1 >conftest.err
20136 rm -f conftest.er1
20137 cat conftest.err >&5
a848cd7e
SC
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); } &&
64b75e64 20140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20142 (eval $ac_try) 2>&5
20143 ac_status=$?
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); }; } &&
20146 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148 (eval $ac_try) 2>&5
20149 ac_status=$?
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; }; then
20152 ac_hi=$ac_mid; break
20153else
20154 echo "$as_me: failed program was:" >&5
20155sed 's/^/| /' conftest.$ac_ext >&5
20156
20157ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20158 if test $ac_lo -le $ac_mid; then
20159 ac_lo= ac_hi=
20160 break
20161 fi
20162 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20163fi
ac1cb8d3 20164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20165 done
20166else
20167 echo "$as_me: failed program was:" >&5
20168sed 's/^/| /' conftest.$ac_ext >&5
20169
20170cat >conftest.$ac_ext <<_ACEOF
20171/* confdefs.h. */
20172_ACEOF
20173cat confdefs.h >>conftest.$ac_ext
20174cat >>conftest.$ac_ext <<_ACEOF
20175/* end confdefs.h. */
20176$ac_includes_default
20177int
20178main ()
20179{
20180static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
20181test_array [0] = 0
20182
20183 ;
20184 return 0;
20185}
20186_ACEOF
20187rm -f conftest.$ac_objext
20188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20189 (eval $ac_compile) 2>conftest.er1
a848cd7e 20190 ac_status=$?
ac1cb8d3
VS
20191 grep -v '^ *+' conftest.er1 >conftest.err
20192 rm -f conftest.er1
20193 cat conftest.err >&5
a848cd7e
SC
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } &&
64b75e64 20196 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20199 ac_status=$?
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; } &&
20202 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204 (eval $ac_try) 2>&5
20205 ac_status=$?
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; }; then
20208 ac_hi=-1 ac_mid=-1
20209 while :; do
20210 cat >conftest.$ac_ext <<_ACEOF
20211/* confdefs.h. */
20212_ACEOF
20213cat confdefs.h >>conftest.$ac_ext
20214cat >>conftest.$ac_ext <<_ACEOF
20215/* end confdefs.h. */
20216$ac_includes_default
20217int
20218main ()
20219{
20220static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20221test_array [0] = 0
20222
20223 ;
20224 return 0;
20225}
20226_ACEOF
20227rm -f conftest.$ac_objext
20228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20229 (eval $ac_compile) 2>conftest.er1
a848cd7e 20230 ac_status=$?
ac1cb8d3
VS
20231 grep -v '^ *+' conftest.er1 >conftest.err
20232 rm -f conftest.er1
20233 cat conftest.err >&5
a848cd7e
SC
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); } &&
64b75e64 20236 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20238 (eval $ac_try) 2>&5
20239 ac_status=$?
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); }; } &&
20242 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244 (eval $ac_try) 2>&5
20245 ac_status=$?
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; }; then
20248 ac_lo=$ac_mid; break
20249else
20250 echo "$as_me: failed program was:" >&5
20251sed 's/^/| /' conftest.$ac_ext >&5
20252
20253ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20254 if test $ac_mid -le $ac_hi; then
20255 ac_lo= ac_hi=
20256 break
20257 fi
20258 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20259fi
ac1cb8d3 20260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20261 done
20262else
20263 echo "$as_me: failed program was:" >&5
20264sed 's/^/| /' conftest.$ac_ext >&5
20265
20266ac_lo= ac_hi=
20267fi
ac1cb8d3 20268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20269fi
ac1cb8d3 20270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20271# Binary search between lo and hi bounds.
20272while test "x$ac_lo" != "x$ac_hi"; do
20273 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20274 cat >conftest.$ac_ext <<_ACEOF
20275/* confdefs.h. */
20276_ACEOF
20277cat confdefs.h >>conftest.$ac_ext
20278cat >>conftest.$ac_ext <<_ACEOF
20279/* end confdefs.h. */
20280$ac_includes_default
20281int
20282main ()
20283{
20284static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20285test_array [0] = 0
20286
20287 ;
20288 return 0;
20289}
20290_ACEOF
20291rm -f conftest.$ac_objext
20292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20293 (eval $ac_compile) 2>conftest.er1
a848cd7e 20294 ac_status=$?
ac1cb8d3
VS
20295 grep -v '^ *+' conftest.er1 >conftest.err
20296 rm -f conftest.er1
20297 cat conftest.err >&5
a848cd7e
SC
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } &&
64b75e64 20300 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302 (eval $ac_try) 2>&5
20303 ac_status=$?
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); }; } &&
20306 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308 (eval $ac_try) 2>&5
20309 ac_status=$?
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; }; then
20312 ac_hi=$ac_mid
20313else
20314 echo "$as_me: failed program was:" >&5
20315sed 's/^/| /' conftest.$ac_ext >&5
20316
20317ac_lo=`expr '(' $ac_mid ')' + 1`
20318fi
ac1cb8d3 20319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20320done
20321case $ac_lo in
20322?*) ac_cv_sizeof_size_t=$ac_lo;;
20323'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20324See \`config.log' for more details." >&5
20325echo "$as_me: error: cannot compute sizeof (size_t), 77
20326See \`config.log' for more details." >&2;}
20327 { (exit 1); exit 1; }; } ;;
20328esac
20329else
20330 if test "$cross_compiling" = yes; then
64b75e64
RD
20331 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20332echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20333 { (exit 1); exit 1; }; }
20334else
20335 cat >conftest.$ac_ext <<_ACEOF
20336/* confdefs.h. */
20337_ACEOF
20338cat confdefs.h >>conftest.$ac_ext
20339cat >>conftest.$ac_ext <<_ACEOF
20340/* end confdefs.h. */
20341$ac_includes_default
20342long longval () { return (long) (sizeof (size_t)); }
20343unsigned long ulongval () { return (long) (sizeof (size_t)); }
20344#include <stdio.h>
20345#include <stdlib.h>
20346int
20347main ()
20348{
20349
20350 FILE *f = fopen ("conftest.val", "w");
20351 if (! f)
20352 exit (1);
20353 if (((long) (sizeof (size_t))) < 0)
20354 {
20355 long i = longval ();
20356 if (i != ((long) (sizeof (size_t))))
20357 exit (1);
20358 fprintf (f, "%ld\n", i);
20359 }
20360 else
20361 {
20362 unsigned long i = ulongval ();
20363 if (i != ((long) (sizeof (size_t))))
20364 exit (1);
20365 fprintf (f, "%lu\n", i);
20366 }
20367 exit (ferror (f) || fclose (f) != 0);
20368
20369 ;
20370 return 0;
20371}
20372_ACEOF
20373rm -f conftest$ac_exeext
20374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20375 (eval $ac_link) 2>&5
20376 ac_status=$?
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20380 (eval $ac_try) 2>&5
20381 ac_status=$?
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); }; }; then
20384 ac_cv_sizeof_size_t=`cat conftest.val`
20385else
20386 echo "$as_me: program exited with status $ac_status" >&5
20387echo "$as_me: failed program was:" >&5
20388sed 's/^/| /' conftest.$ac_ext >&5
20389
20390( exit $ac_status )
20391{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20392See \`config.log' for more details." >&5
20393echo "$as_me: error: cannot compute sizeof (size_t), 77
20394See \`config.log' for more details." >&2;}
20395 { (exit 1); exit 1; }; }
20396fi
ac1cb8d3 20397rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20398fi
20399fi
20400rm -f conftest.val
20401else
20402 ac_cv_sizeof_size_t=0
20403fi
20404fi
20405echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20406echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20407cat >>confdefs.h <<_ACEOF
20408#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20409_ACEOF
20410
20411
20412
20413case "${host}" in
20414 arm-*-linux* )
20415 echo "$as_me:$LINENO: checking for long long" >&5
20416echo $ECHO_N "checking for long long... $ECHO_C" >&6
20417if test "${ac_cv_type_long_long+set}" = set; then
20418 echo $ECHO_N "(cached) $ECHO_C" >&6
20419else
20420 cat >conftest.$ac_ext <<_ACEOF
20421/* confdefs.h. */
20422_ACEOF
20423cat confdefs.h >>conftest.$ac_ext
20424cat >>conftest.$ac_ext <<_ACEOF
20425/* end confdefs.h. */
20426$ac_includes_default
20427int
20428main ()
20429{
20430if ((long long *) 0)
20431 return 0;
20432if (sizeof (long long))
20433 return 0;
20434 ;
20435 return 0;
20436}
20437_ACEOF
20438rm -f conftest.$ac_objext
20439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20440 (eval $ac_compile) 2>conftest.er1
a848cd7e 20441 ac_status=$?
ac1cb8d3
VS
20442 grep -v '^ *+' conftest.er1 >conftest.err
20443 rm -f conftest.er1
20444 cat conftest.err >&5
a848cd7e
SC
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); } &&
64b75e64 20447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449 (eval $ac_try) 2>&5
20450 ac_status=$?
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; } &&
20453 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455 (eval $ac_try) 2>&5
20456 ac_status=$?
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); }; }; then
20459 ac_cv_type_long_long=yes
20460else
20461 echo "$as_me: failed program was:" >&5
20462sed 's/^/| /' conftest.$ac_ext >&5
20463
20464ac_cv_type_long_long=no
20465fi
ac1cb8d3 20466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20467fi
20468echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20469echo "${ECHO_T}$ac_cv_type_long_long" >&6
20470
20471echo "$as_me:$LINENO: checking size of long long" >&5
20472echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20473if test "${ac_cv_sizeof_long_long+set}" = set; then
20474 echo $ECHO_N "(cached) $ECHO_C" >&6
20475else
20476 if test "$ac_cv_type_long_long" = yes; then
20477 # The cast to unsigned long works around a bug in the HP C Compiler
20478 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20479 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20480 # This bug is HP SR number 8606223364.
20481 if test "$cross_compiling" = yes; then
20482 # Depending upon the size, compute the lo and hi bounds.
20483cat >conftest.$ac_ext <<_ACEOF
20484/* confdefs.h. */
20485_ACEOF
20486cat confdefs.h >>conftest.$ac_ext
20487cat >>conftest.$ac_ext <<_ACEOF
20488/* end confdefs.h. */
20489$ac_includes_default
20490int
20491main ()
20492{
20493static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20494test_array [0] = 0
20495
20496 ;
20497 return 0;
20498}
20499_ACEOF
20500rm -f conftest.$ac_objext
20501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20502 (eval $ac_compile) 2>conftest.er1
a848cd7e 20503 ac_status=$?
ac1cb8d3
VS
20504 grep -v '^ *+' conftest.er1 >conftest.err
20505 rm -f conftest.er1
20506 cat conftest.err >&5
a848cd7e
SC
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } &&
64b75e64 20509 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511 (eval $ac_try) 2>&5
20512 ac_status=$?
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); }; } &&
20515 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517 (eval $ac_try) 2>&5
20518 ac_status=$?
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); }; }; then
20521 ac_lo=0 ac_mid=0
20522 while :; do
20523 cat >conftest.$ac_ext <<_ACEOF
20524/* confdefs.h. */
20525_ACEOF
20526cat confdefs.h >>conftest.$ac_ext
20527cat >>conftest.$ac_ext <<_ACEOF
20528/* end confdefs.h. */
20529$ac_includes_default
20530int
20531main ()
20532{
20533static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20534test_array [0] = 0
20535
20536 ;
20537 return 0;
20538}
20539_ACEOF
20540rm -f conftest.$ac_objext
20541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20542 (eval $ac_compile) 2>conftest.er1
a848cd7e 20543 ac_status=$?
ac1cb8d3
VS
20544 grep -v '^ *+' conftest.er1 >conftest.err
20545 rm -f conftest.er1
20546 cat conftest.err >&5
a848cd7e
SC
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } &&
64b75e64 20549 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551 (eval $ac_try) 2>&5
20552 ac_status=$?
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; } &&
20555 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557 (eval $ac_try) 2>&5
20558 ac_status=$?
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; }; then
20561 ac_hi=$ac_mid; break
20562else
20563 echo "$as_me: failed program was:" >&5
20564sed 's/^/| /' conftest.$ac_ext >&5
20565
20566ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20567 if test $ac_lo -le $ac_mid; then
20568 ac_lo= ac_hi=
20569 break
20570 fi
20571 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20572fi
ac1cb8d3 20573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20574 done
20575else
20576 echo "$as_me: failed program was:" >&5
20577sed 's/^/| /' conftest.$ac_ext >&5
20578
20579cat >conftest.$ac_ext <<_ACEOF
20580/* confdefs.h. */
20581_ACEOF
20582cat confdefs.h >>conftest.$ac_ext
20583cat >>conftest.$ac_ext <<_ACEOF
20584/* end confdefs.h. */
20585$ac_includes_default
20586int
20587main ()
20588{
20589static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20590test_array [0] = 0
20591
20592 ;
20593 return 0;
20594}
20595_ACEOF
20596rm -f conftest.$ac_objext
20597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20598 (eval $ac_compile) 2>conftest.er1
a848cd7e 20599 ac_status=$?
ac1cb8d3
VS
20600 grep -v '^ *+' conftest.er1 >conftest.err
20601 rm -f conftest.er1
20602 cat conftest.err >&5
a848cd7e
SC
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } &&
64b75e64 20605 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20607 (eval $ac_try) 2>&5
20608 ac_status=$?
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); }; } &&
20611 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20613 (eval $ac_try) 2>&5
20614 ac_status=$?
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); }; }; then
20617 ac_hi=-1 ac_mid=-1
20618 while :; do
20619 cat >conftest.$ac_ext <<_ACEOF
20620/* confdefs.h. */
20621_ACEOF
20622cat confdefs.h >>conftest.$ac_ext
20623cat >>conftest.$ac_ext <<_ACEOF
20624/* end confdefs.h. */
20625$ac_includes_default
20626int
20627main ()
20628{
20629static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20630test_array [0] = 0
20631
20632 ;
20633 return 0;
20634}
20635_ACEOF
20636rm -f conftest.$ac_objext
20637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20638 (eval $ac_compile) 2>conftest.er1
a848cd7e 20639 ac_status=$?
ac1cb8d3
VS
20640 grep -v '^ *+' conftest.er1 >conftest.err
20641 rm -f conftest.er1
20642 cat conftest.err >&5
a848cd7e
SC
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } &&
64b75e64 20645 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20647 (eval $ac_try) 2>&5
20648 ac_status=$?
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); }; } &&
20651 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20653 (eval $ac_try) 2>&5
20654 ac_status=$?
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); }; }; then
20657 ac_lo=$ac_mid; break
20658else
20659 echo "$as_me: failed program was:" >&5
20660sed 's/^/| /' conftest.$ac_ext >&5
20661
20662ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20663 if test $ac_mid -le $ac_hi; then
20664 ac_lo= ac_hi=
20665 break
20666 fi
20667 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20668fi
ac1cb8d3 20669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20670 done
20671else
20672 echo "$as_me: failed program was:" >&5
20673sed 's/^/| /' conftest.$ac_ext >&5
20674
20675ac_lo= ac_hi=
20676fi
ac1cb8d3 20677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20678fi
ac1cb8d3 20679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20680# Binary search between lo and hi bounds.
20681while test "x$ac_lo" != "x$ac_hi"; do
20682 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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{
20693static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20694test_array [0] = 0
20695
20696 ;
20697 return 0;
20698}
20699_ACEOF
20700rm -f conftest.$ac_objext
20701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20702 (eval $ac_compile) 2>conftest.er1
a848cd7e 20703 ac_status=$?
ac1cb8d3
VS
20704 grep -v '^ *+' conftest.er1 >conftest.err
20705 rm -f conftest.er1
20706 cat conftest.err >&5
a848cd7e
SC
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); } &&
64b75e64 20709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20712 ac_status=$?
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; } &&
20715 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20717 (eval $ac_try) 2>&5
20718 ac_status=$?
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); }; }; then
20721 ac_hi=$ac_mid
20722else
20723 echo "$as_me: failed program was:" >&5
20724sed 's/^/| /' conftest.$ac_ext >&5
20725
20726ac_lo=`expr '(' $ac_mid ')' + 1`
20727fi
ac1cb8d3 20728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20729done
20730case $ac_lo in
20731?*) ac_cv_sizeof_long_long=$ac_lo;;
20732'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20733See \`config.log' for more details." >&5
20734echo "$as_me: error: cannot compute sizeof (long long), 77
20735See \`config.log' for more details." >&2;}
20736 { (exit 1); exit 1; }; } ;;
20737esac
20738else
20739 if test "$cross_compiling" = yes; then
64b75e64
RD
20740 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20741echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20742 { (exit 1); exit 1; }; }
20743else
20744 cat >conftest.$ac_ext <<_ACEOF
20745/* confdefs.h. */
20746_ACEOF
20747cat confdefs.h >>conftest.$ac_ext
20748cat >>conftest.$ac_ext <<_ACEOF
20749/* end confdefs.h. */
20750$ac_includes_default
20751long longval () { return (long) (sizeof (long long)); }
20752unsigned long ulongval () { return (long) (sizeof (long long)); }
20753#include <stdio.h>
20754#include <stdlib.h>
20755int
20756main ()
20757{
20758
20759 FILE *f = fopen ("conftest.val", "w");
20760 if (! f)
20761 exit (1);
20762 if (((long) (sizeof (long long))) < 0)
20763 {
20764 long i = longval ();
20765 if (i != ((long) (sizeof (long long))))
20766 exit (1);
20767 fprintf (f, "%ld\n", i);
20768 }
20769 else
20770 {
20771 unsigned long i = ulongval ();
20772 if (i != ((long) (sizeof (long long))))
20773 exit (1);
20774 fprintf (f, "%lu\n", i);
20775 }
20776 exit (ferror (f) || fclose (f) != 0);
20777
20778 ;
20779 return 0;
20780}
20781_ACEOF
20782rm -f conftest$ac_exeext
20783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20784 (eval $ac_link) 2>&5
20785 ac_status=$?
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20789 (eval $ac_try) 2>&5
20790 ac_status=$?
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); }; }; then
20793 ac_cv_sizeof_long_long=`cat conftest.val`
20794else
20795 echo "$as_me: program exited with status $ac_status" >&5
20796echo "$as_me: failed program was:" >&5
20797sed 's/^/| /' conftest.$ac_ext >&5
20798
20799( exit $ac_status )
20800{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20801See \`config.log' for more details." >&5
20802echo "$as_me: error: cannot compute sizeof (long long), 77
20803See \`config.log' for more details." >&2;}
20804 { (exit 1); exit 1; }; }
20805fi
ac1cb8d3 20806rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20807fi
20808fi
20809rm -f conftest.val
20810else
20811 ac_cv_sizeof_long_long=0
20812fi
20813fi
20814echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20815echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20816cat >>confdefs.h <<_ACEOF
20817#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20818_ACEOF
20819
20820
20821 ;;
20822 *-hp-hpux* )
20823 echo "$as_me:$LINENO: checking for long long" >&5
20824echo $ECHO_N "checking for long long... $ECHO_C" >&6
20825if test "${ac_cv_type_long_long+set}" = set; then
20826 echo $ECHO_N "(cached) $ECHO_C" >&6
20827else
20828 cat >conftest.$ac_ext <<_ACEOF
20829/* confdefs.h. */
20830_ACEOF
20831cat confdefs.h >>conftest.$ac_ext
20832cat >>conftest.$ac_ext <<_ACEOF
20833/* end confdefs.h. */
20834$ac_includes_default
20835int
20836main ()
20837{
20838if ((long long *) 0)
20839 return 0;
20840if (sizeof (long long))
20841 return 0;
20842 ;
20843 return 0;
20844}
20845_ACEOF
20846rm -f conftest.$ac_objext
20847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20848 (eval $ac_compile) 2>conftest.er1
a848cd7e 20849 ac_status=$?
ac1cb8d3
VS
20850 grep -v '^ *+' conftest.er1 >conftest.err
20851 rm -f conftest.er1
20852 cat conftest.err >&5
a848cd7e
SC
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); } &&
64b75e64 20855 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20857 (eval $ac_try) 2>&5
20858 ac_status=$?
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); }; } &&
20861 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20863 (eval $ac_try) 2>&5
20864 ac_status=$?
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); }; }; then
20867 ac_cv_type_long_long=yes
20868else
20869 echo "$as_me: failed program was:" >&5
20870sed 's/^/| /' conftest.$ac_ext >&5
20871
20872ac_cv_type_long_long=no
20873fi
ac1cb8d3 20874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20875fi
20876echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20877echo "${ECHO_T}$ac_cv_type_long_long" >&6
20878
20879echo "$as_me:$LINENO: checking size of long long" >&5
20880echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20881if test "${ac_cv_sizeof_long_long+set}" = set; then
20882 echo $ECHO_N "(cached) $ECHO_C" >&6
20883else
20884 if test "$ac_cv_type_long_long" = yes; then
20885 # The cast to unsigned long works around a bug in the HP C Compiler
20886 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20887 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20888 # This bug is HP SR number 8606223364.
20889 if test "$cross_compiling" = yes; then
20890 # Depending upon the size, compute the lo and hi bounds.
20891cat >conftest.$ac_ext <<_ACEOF
20892/* confdefs.h. */
20893_ACEOF
20894cat confdefs.h >>conftest.$ac_ext
20895cat >>conftest.$ac_ext <<_ACEOF
20896/* end confdefs.h. */
20897$ac_includes_default
20898int
20899main ()
20900{
20901static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20902test_array [0] = 0
20903
20904 ;
20905 return 0;
20906}
20907_ACEOF
20908rm -f conftest.$ac_objext
20909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20910 (eval $ac_compile) 2>conftest.er1
a848cd7e 20911 ac_status=$?
ac1cb8d3
VS
20912 grep -v '^ *+' conftest.er1 >conftest.err
20913 rm -f conftest.er1
20914 cat conftest.err >&5
a848cd7e
SC
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); } &&
64b75e64 20917 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20919 (eval $ac_try) 2>&5
20920 ac_status=$?
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); }; } &&
20923 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20925 (eval $ac_try) 2>&5
20926 ac_status=$?
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); }; }; then
20929 ac_lo=0 ac_mid=0
20930 while :; do
20931 cat >conftest.$ac_ext <<_ACEOF
20932/* confdefs.h. */
20933_ACEOF
20934cat confdefs.h >>conftest.$ac_ext
20935cat >>conftest.$ac_ext <<_ACEOF
20936/* end confdefs.h. */
20937$ac_includes_default
20938int
20939main ()
20940{
20941static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20942test_array [0] = 0
20943
20944 ;
20945 return 0;
20946}
20947_ACEOF
20948rm -f conftest.$ac_objext
20949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20950 (eval $ac_compile) 2>conftest.er1
a848cd7e 20951 ac_status=$?
ac1cb8d3
VS
20952 grep -v '^ *+' conftest.er1 >conftest.err
20953 rm -f conftest.er1
20954 cat conftest.err >&5
a848cd7e
SC
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); } &&
64b75e64 20957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20959 (eval $ac_try) 2>&5
20960 ac_status=$?
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); }; } &&
20963 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20965 (eval $ac_try) 2>&5
20966 ac_status=$?
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); }; }; then
20969 ac_hi=$ac_mid; break
20970else
20971 echo "$as_me: failed program was:" >&5
20972sed 's/^/| /' conftest.$ac_ext >&5
20973
20974ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20975 if test $ac_lo -le $ac_mid; then
20976 ac_lo= ac_hi=
20977 break
20978 fi
20979 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20980fi
ac1cb8d3 20981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20982 done
20983else
20984 echo "$as_me: failed program was:" >&5
20985sed 's/^/| /' conftest.$ac_ext >&5
20986
20987cat >conftest.$ac_ext <<_ACEOF
20988/* confdefs.h. */
20989_ACEOF
20990cat confdefs.h >>conftest.$ac_ext
20991cat >>conftest.$ac_ext <<_ACEOF
20992/* end confdefs.h. */
20993$ac_includes_default
20994int
20995main ()
20996{
20997static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20998test_array [0] = 0
20999
21000 ;
21001 return 0;
21002}
21003_ACEOF
21004rm -f conftest.$ac_objext
21005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21006 (eval $ac_compile) 2>conftest.er1
a848cd7e 21007 ac_status=$?
ac1cb8d3
VS
21008 grep -v '^ *+' conftest.er1 >conftest.err
21009 rm -f conftest.er1
21010 cat conftest.err >&5
a848cd7e
SC
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); } &&
64b75e64 21013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21015 (eval $ac_try) 2>&5
21016 ac_status=$?
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; } &&
21019 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21021 (eval $ac_try) 2>&5
21022 ac_status=$?
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); }; }; then
21025 ac_hi=-1 ac_mid=-1
21026 while :; do
21027 cat >conftest.$ac_ext <<_ACEOF
21028/* confdefs.h. */
21029_ACEOF
21030cat confdefs.h >>conftest.$ac_ext
21031cat >>conftest.$ac_ext <<_ACEOF
21032/* end confdefs.h. */
21033$ac_includes_default
21034int
21035main ()
21036{
21037static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21038test_array [0] = 0
21039
21040 ;
21041 return 0;
21042}
21043_ACEOF
21044rm -f conftest.$ac_objext
21045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21046 (eval $ac_compile) 2>conftest.er1
a848cd7e 21047 ac_status=$?
ac1cb8d3
VS
21048 grep -v '^ *+' conftest.er1 >conftest.err
21049 rm -f conftest.er1
21050 cat conftest.err >&5
a848cd7e
SC
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); } &&
64b75e64 21053 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21055 (eval $ac_try) 2>&5
21056 ac_status=$?
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); }; } &&
21059 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21061 (eval $ac_try) 2>&5
21062 ac_status=$?
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); }; }; then
21065 ac_lo=$ac_mid; break
21066else
21067 echo "$as_me: failed program was:" >&5
21068sed 's/^/| /' conftest.$ac_ext >&5
21069
21070ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21071 if test $ac_mid -le $ac_hi; then
21072 ac_lo= ac_hi=
21073 break
21074 fi
21075 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21076fi
ac1cb8d3 21077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21078 done
21079else
21080 echo "$as_me: failed program was:" >&5
21081sed 's/^/| /' conftest.$ac_ext >&5
21082
21083ac_lo= ac_hi=
21084fi
ac1cb8d3 21085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21086fi
ac1cb8d3 21087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21088# Binary search between lo and hi bounds.
21089while test "x$ac_lo" != "x$ac_hi"; do
21090 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21091 cat >conftest.$ac_ext <<_ACEOF
21092/* confdefs.h. */
21093_ACEOF
21094cat confdefs.h >>conftest.$ac_ext
21095cat >>conftest.$ac_ext <<_ACEOF
21096/* end confdefs.h. */
21097$ac_includes_default
21098int
21099main ()
21100{
21101static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21102test_array [0] = 0
21103
21104 ;
21105 return 0;
21106}
21107_ACEOF
21108rm -f conftest.$ac_objext
21109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21110 (eval $ac_compile) 2>conftest.er1
a848cd7e 21111 ac_status=$?
ac1cb8d3
VS
21112 grep -v '^ *+' conftest.er1 >conftest.err
21113 rm -f conftest.er1
21114 cat conftest.err >&5
a848cd7e
SC
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); } &&
64b75e64 21117 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119 (eval $ac_try) 2>&5
21120 ac_status=$?
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); }; } &&
21123 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21125 (eval $ac_try) 2>&5
21126 ac_status=$?
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); }; }; then
21129 ac_hi=$ac_mid
21130else
21131 echo "$as_me: failed program was:" >&5
21132sed 's/^/| /' conftest.$ac_ext >&5
21133
21134ac_lo=`expr '(' $ac_mid ')' + 1`
21135fi
ac1cb8d3 21136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21137done
21138case $ac_lo in
21139?*) ac_cv_sizeof_long_long=$ac_lo;;
21140'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21141See \`config.log' for more details." >&5
21142echo "$as_me: error: cannot compute sizeof (long long), 77
21143See \`config.log' for more details." >&2;}
21144 { (exit 1); exit 1; }; } ;;
21145esac
21146else
21147 if test "$cross_compiling" = yes; then
64b75e64
RD
21148 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21149echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21150 { (exit 1); exit 1; }; }
21151else
21152 cat >conftest.$ac_ext <<_ACEOF
21153/* confdefs.h. */
21154_ACEOF
21155cat confdefs.h >>conftest.$ac_ext
21156cat >>conftest.$ac_ext <<_ACEOF
21157/* end confdefs.h. */
21158$ac_includes_default
21159long longval () { return (long) (sizeof (long long)); }
21160unsigned long ulongval () { return (long) (sizeof (long long)); }
21161#include <stdio.h>
21162#include <stdlib.h>
21163int
21164main ()
21165{
21166
21167 FILE *f = fopen ("conftest.val", "w");
21168 if (! f)
21169 exit (1);
21170 if (((long) (sizeof (long long))) < 0)
21171 {
21172 long i = longval ();
21173 if (i != ((long) (sizeof (long long))))
21174 exit (1);
21175 fprintf (f, "%ld\n", i);
21176 }
21177 else
21178 {
21179 unsigned long i = ulongval ();
21180 if (i != ((long) (sizeof (long long))))
21181 exit (1);
21182 fprintf (f, "%lu\n", i);
21183 }
21184 exit (ferror (f) || fclose (f) != 0);
21185
21186 ;
21187 return 0;
21188}
21189_ACEOF
21190rm -f conftest$ac_exeext
21191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21192 (eval $ac_link) 2>&5
21193 ac_status=$?
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21197 (eval $ac_try) 2>&5
21198 ac_status=$?
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); }; }; then
21201 ac_cv_sizeof_long_long=`cat conftest.val`
21202else
21203 echo "$as_me: program exited with status $ac_status" >&5
21204echo "$as_me: failed program was:" >&5
21205sed 's/^/| /' conftest.$ac_ext >&5
21206
21207( exit $ac_status )
21208{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21209See \`config.log' for more details." >&5
21210echo "$as_me: error: cannot compute sizeof (long long), 77
21211See \`config.log' for more details." >&2;}
21212 { (exit 1); exit 1; }; }
21213fi
ac1cb8d3 21214rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21215fi
21216fi
21217rm -f conftest.val
21218else
21219 ac_cv_sizeof_long_long=0
21220fi
21221fi
21222echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21223echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21224cat >>confdefs.h <<_ACEOF
21225#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21226_ACEOF
21227
21228
21229 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 21230 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
21231 fi
21232 ;;
21233 * )
21234 echo "$as_me:$LINENO: checking for long long" >&5
21235echo $ECHO_N "checking for long long... $ECHO_C" >&6
21236if test "${ac_cv_type_long_long+set}" = set; then
21237 echo $ECHO_N "(cached) $ECHO_C" >&6
21238else
21239 cat >conftest.$ac_ext <<_ACEOF
21240/* confdefs.h. */
21241_ACEOF
21242cat confdefs.h >>conftest.$ac_ext
21243cat >>conftest.$ac_ext <<_ACEOF
21244/* end confdefs.h. */
21245$ac_includes_default
21246int
21247main ()
21248{
21249if ((long long *) 0)
21250 return 0;
21251if (sizeof (long long))
21252 return 0;
21253 ;
21254 return 0;
21255}
21256_ACEOF
21257rm -f conftest.$ac_objext
21258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21259 (eval $ac_compile) 2>conftest.er1
a848cd7e 21260 ac_status=$?
ac1cb8d3
VS
21261 grep -v '^ *+' conftest.er1 >conftest.err
21262 rm -f conftest.er1
21263 cat conftest.err >&5
a848cd7e
SC
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); } &&
64b75e64 21266 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21268 (eval $ac_try) 2>&5
21269 ac_status=$?
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; } &&
21272 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21274 (eval $ac_try) 2>&5
21275 ac_status=$?
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); }; }; then
21278 ac_cv_type_long_long=yes
21279else
21280 echo "$as_me: failed program was:" >&5
21281sed 's/^/| /' conftest.$ac_ext >&5
21282
21283ac_cv_type_long_long=no
21284fi
ac1cb8d3 21285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21286fi
21287echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21288echo "${ECHO_T}$ac_cv_type_long_long" >&6
21289
21290echo "$as_me:$LINENO: checking size of long long" >&5
21291echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21292if test "${ac_cv_sizeof_long_long+set}" = set; then
21293 echo $ECHO_N "(cached) $ECHO_C" >&6
21294else
21295 if test "$ac_cv_type_long_long" = yes; then
21296 # The cast to unsigned long works around a bug in the HP C Compiler
21297 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21298 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21299 # This bug is HP SR number 8606223364.
21300 if test "$cross_compiling" = yes; then
21301 # Depending upon the size, compute the lo and hi bounds.
21302cat >conftest.$ac_ext <<_ACEOF
21303/* confdefs.h. */
21304_ACEOF
21305cat confdefs.h >>conftest.$ac_ext
21306cat >>conftest.$ac_ext <<_ACEOF
21307/* end confdefs.h. */
21308$ac_includes_default
21309int
21310main ()
21311{
21312static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21313test_array [0] = 0
21314
21315 ;
21316 return 0;
21317}
21318_ACEOF
21319rm -f conftest.$ac_objext
21320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21321 (eval $ac_compile) 2>conftest.er1
a848cd7e 21322 ac_status=$?
ac1cb8d3
VS
21323 grep -v '^ *+' conftest.er1 >conftest.err
21324 rm -f conftest.er1
21325 cat conftest.err >&5
a848cd7e
SC
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); } &&
64b75e64 21328 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21330 (eval $ac_try) 2>&5
21331 ac_status=$?
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); }; } &&
21334 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21336 (eval $ac_try) 2>&5
21337 ac_status=$?
21338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); }; }; then
21340 ac_lo=0 ac_mid=0
21341 while :; do
21342 cat >conftest.$ac_ext <<_ACEOF
21343/* confdefs.h. */
21344_ACEOF
21345cat confdefs.h >>conftest.$ac_ext
21346cat >>conftest.$ac_ext <<_ACEOF
21347/* end confdefs.h. */
21348$ac_includes_default
21349int
21350main ()
21351{
21352static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21353test_array [0] = 0
21354
21355 ;
21356 return 0;
21357}
21358_ACEOF
21359rm -f conftest.$ac_objext
21360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21361 (eval $ac_compile) 2>conftest.er1
a848cd7e 21362 ac_status=$?
ac1cb8d3
VS
21363 grep -v '^ *+' conftest.er1 >conftest.err
21364 rm -f conftest.er1
21365 cat conftest.err >&5
a848cd7e
SC
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); } &&
64b75e64 21368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370 (eval $ac_try) 2>&5
21371 ac_status=$?
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }; } &&
21374 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376 (eval $ac_try) 2>&5
21377 ac_status=$?
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; }; then
21380 ac_hi=$ac_mid; break
21381else
21382 echo "$as_me: failed program was:" >&5
21383sed 's/^/| /' conftest.$ac_ext >&5
21384
21385ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21386 if test $ac_lo -le $ac_mid; then
21387 ac_lo= ac_hi=
21388 break
21389 fi
21390 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21391fi
ac1cb8d3 21392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21393 done
21394else
21395 echo "$as_me: failed program was:" >&5
21396sed 's/^/| /' conftest.$ac_ext >&5
21397
21398cat >conftest.$ac_ext <<_ACEOF
21399/* confdefs.h. */
21400_ACEOF
21401cat confdefs.h >>conftest.$ac_ext
21402cat >>conftest.$ac_ext <<_ACEOF
21403/* end confdefs.h. */
21404$ac_includes_default
21405int
21406main ()
21407{
21408static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21409test_array [0] = 0
21410
21411 ;
21412 return 0;
21413}
21414_ACEOF
21415rm -f conftest.$ac_objext
21416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21417 (eval $ac_compile) 2>conftest.er1
a848cd7e 21418 ac_status=$?
ac1cb8d3
VS
21419 grep -v '^ *+' conftest.er1 >conftest.err
21420 rm -f conftest.er1
21421 cat conftest.err >&5
a848cd7e
SC
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); } &&
64b75e64 21424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21427 ac_status=$?
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; } &&
21430 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432 (eval $ac_try) 2>&5
21433 ac_status=$?
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); }; }; then
21436 ac_hi=-1 ac_mid=-1
21437 while :; do
21438 cat >conftest.$ac_ext <<_ACEOF
21439/* confdefs.h. */
21440_ACEOF
21441cat confdefs.h >>conftest.$ac_ext
21442cat >>conftest.$ac_ext <<_ACEOF
21443/* end confdefs.h. */
21444$ac_includes_default
21445int
21446main ()
21447{
21448static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21449test_array [0] = 0
21450
21451 ;
21452 return 0;
21453}
21454_ACEOF
21455rm -f conftest.$ac_objext
21456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21457 (eval $ac_compile) 2>conftest.er1
a848cd7e 21458 ac_status=$?
ac1cb8d3
VS
21459 grep -v '^ *+' conftest.er1 >conftest.err
21460 rm -f conftest.er1
21461 cat conftest.err >&5
a848cd7e
SC
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); } &&
64b75e64 21464 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21466 (eval $ac_try) 2>&5
21467 ac_status=$?
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); }; } &&
21470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472 (eval $ac_try) 2>&5
21473 ac_status=$?
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; }; then
21476 ac_lo=$ac_mid; break
21477else
21478 echo "$as_me: failed program was:" >&5
21479sed 's/^/| /' conftest.$ac_ext >&5
21480
21481ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21482 if test $ac_mid -le $ac_hi; then
21483 ac_lo= ac_hi=
21484 break
21485 fi
21486 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21487fi
ac1cb8d3 21488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21489 done
21490else
21491 echo "$as_me: failed program was:" >&5
21492sed 's/^/| /' conftest.$ac_ext >&5
21493
21494ac_lo= ac_hi=
21495fi
ac1cb8d3 21496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21497fi
ac1cb8d3 21498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21499# Binary search between lo and hi bounds.
21500while test "x$ac_lo" != "x$ac_hi"; do
21501 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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$ac_includes_default
21509int
21510main ()
21511{
21512static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21513test_array [0] = 0
21514
21515 ;
21516 return 0;
21517}
21518_ACEOF
21519rm -f conftest.$ac_objext
21520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21521 (eval $ac_compile) 2>conftest.er1
a848cd7e 21522 ac_status=$?
ac1cb8d3
VS
21523 grep -v '^ *+' conftest.er1 >conftest.err
21524 rm -f conftest.er1
21525 cat conftest.err >&5
a848cd7e
SC
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } &&
64b75e64 21528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21530 (eval $ac_try) 2>&5
21531 ac_status=$?
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); }; } &&
21534 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536 (eval $ac_try) 2>&5
21537 ac_status=$?
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; }; then
21540 ac_hi=$ac_mid
21541else
21542 echo "$as_me: failed program was:" >&5
21543sed 's/^/| /' conftest.$ac_ext >&5
21544
21545ac_lo=`expr '(' $ac_mid ')' + 1`
21546fi
ac1cb8d3 21547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21548done
21549case $ac_lo in
21550?*) ac_cv_sizeof_long_long=$ac_lo;;
21551'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21552See \`config.log' for more details." >&5
21553echo "$as_me: error: cannot compute sizeof (long long), 77
21554See \`config.log' for more details." >&2;}
21555 { (exit 1); exit 1; }; } ;;
21556esac
21557else
21558 if test "$cross_compiling" = yes; then
64b75e64
RD
21559 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21560echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21561 { (exit 1); exit 1; }; }
21562else
21563 cat >conftest.$ac_ext <<_ACEOF
21564/* confdefs.h. */
21565_ACEOF
21566cat confdefs.h >>conftest.$ac_ext
21567cat >>conftest.$ac_ext <<_ACEOF
21568/* end confdefs.h. */
21569$ac_includes_default
21570long longval () { return (long) (sizeof (long long)); }
21571unsigned long ulongval () { return (long) (sizeof (long long)); }
21572#include <stdio.h>
21573#include <stdlib.h>
21574int
21575main ()
21576{
21577
21578 FILE *f = fopen ("conftest.val", "w");
21579 if (! f)
21580 exit (1);
21581 if (((long) (sizeof (long long))) < 0)
21582 {
21583 long i = longval ();
21584 if (i != ((long) (sizeof (long long))))
21585 exit (1);
21586 fprintf (f, "%ld\n", i);
21587 }
21588 else
21589 {
21590 unsigned long i = ulongval ();
21591 if (i != ((long) (sizeof (long long))))
21592 exit (1);
21593 fprintf (f, "%lu\n", i);
21594 }
21595 exit (ferror (f) || fclose (f) != 0);
21596
21597 ;
21598 return 0;
21599}
21600_ACEOF
21601rm -f conftest$ac_exeext
21602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21603 (eval $ac_link) 2>&5
21604 ac_status=$?
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608 (eval $ac_try) 2>&5
21609 ac_status=$?
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); }; }; then
21612 ac_cv_sizeof_long_long=`cat conftest.val`
21613else
21614 echo "$as_me: program exited with status $ac_status" >&5
21615echo "$as_me: failed program was:" >&5
21616sed 's/^/| /' conftest.$ac_ext >&5
21617
21618( exit $ac_status )
21619{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21620See \`config.log' for more details." >&5
21621echo "$as_me: error: cannot compute sizeof (long long), 77
21622See \`config.log' for more details." >&2;}
21623 { (exit 1); exit 1; }; }
21624fi
ac1cb8d3 21625rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21626fi
21627fi
21628rm -f conftest.val
21629else
21630 ac_cv_sizeof_long_long=0
21631fi
21632fi
21633echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21634echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21635cat >>confdefs.h <<_ACEOF
21636#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21637_ACEOF
21638
21639
21640esac
21641
238ecede
MW
21642echo "$as_me:$LINENO: checking for wchar_t" >&5
21643echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21644if test "${ac_cv_type_wchar_t+set}" = set; then
21645 echo $ECHO_N "(cached) $ECHO_C" >&6
21646else
21647 cat >conftest.$ac_ext <<_ACEOF
21648/* confdefs.h. */
21649_ACEOF
21650cat confdefs.h >>conftest.$ac_ext
21651cat >>conftest.$ac_ext <<_ACEOF
21652/* end confdefs.h. */
21653
83d8eb47
MW
21654 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21655 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21656 # error "fake wchar_t"
21657 #endif
21658 #ifdef HAVE_WCHAR_H
21659 # ifdef __CYGWIN__
21660 # include <stddef.h>
21661 # endif
21662 # include <wchar.h>
21663 #endif
21664 #ifdef HAVE_STDLIB_H
21665 # include <stdlib.h>
21666 #endif
21667 #include <stdio.h>
21668
21669
21670
21671int
21672main ()
21673{
21674if ((wchar_t *) 0)
21675 return 0;
21676if (sizeof (wchar_t))
21677 return 0;
21678 ;
21679 return 0;
21680}
21681_ACEOF
21682rm -f conftest.$ac_objext
21683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21684 (eval $ac_compile) 2>conftest.er1
21685 ac_status=$?
21686 grep -v '^ *+' conftest.er1 >conftest.err
21687 rm -f conftest.er1
21688 cat conftest.err >&5
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); } &&
64b75e64 21691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693 (eval $ac_try) 2>&5
21694 ac_status=$?
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); }; } &&
21697 { ac_try='test -s conftest.$ac_objext'
21698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21699 (eval $ac_try) 2>&5
21700 ac_status=$?
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); }; }; then
21703 ac_cv_type_wchar_t=yes
21704else
21705 echo "$as_me: failed program was:" >&5
21706sed 's/^/| /' conftest.$ac_ext >&5
21707
21708ac_cv_type_wchar_t=no
21709fi
21710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21711fi
21712echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21713echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21714
a848cd7e
SC
21715echo "$as_me:$LINENO: checking size of wchar_t" >&5
21716echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21717if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21718 echo $ECHO_N "(cached) $ECHO_C" >&6
21719else
238ecede
MW
21720 if test "$ac_cv_type_wchar_t" = yes; then
21721 # The cast to unsigned long works around a bug in the HP C Compiler
21722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21724 # This bug is HP SR number 8606223364.
21725 if test "$cross_compiling" = yes; then
21726 # Depending upon the size, compute the lo and hi bounds.
21727cat >conftest.$ac_ext <<_ACEOF
21728/* confdefs.h. */
21729_ACEOF
21730cat confdefs.h >>conftest.$ac_ext
21731cat >>conftest.$ac_ext <<_ACEOF
21732/* end confdefs.h. */
21733
83d8eb47
MW
21734 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21735 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21736 # error "fake wchar_t"
21737 #endif
21738 #ifdef HAVE_WCHAR_H
21739 # ifdef __CYGWIN__
21740 # include <stddef.h>
21741 # endif
21742 # include <wchar.h>
21743 #endif
21744 #ifdef HAVE_STDLIB_H
21745 # include <stdlib.h>
21746 #endif
21747 #include <stdio.h>
21748
21749
21750
21751int
21752main ()
21753{
21754static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21755test_array [0] = 0
21756
21757 ;
21758 return 0;
21759}
21760_ACEOF
21761rm -f conftest.$ac_objext
21762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21763 (eval $ac_compile) 2>conftest.er1
21764 ac_status=$?
21765 grep -v '^ *+' conftest.er1 >conftest.err
21766 rm -f conftest.er1
21767 cat conftest.err >&5
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); } &&
64b75e64 21770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21772 (eval $ac_try) 2>&5
21773 ac_status=$?
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); }; } &&
21776 { ac_try='test -s conftest.$ac_objext'
21777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21778 (eval $ac_try) 2>&5
21779 ac_status=$?
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); }; }; then
21782 ac_lo=0 ac_mid=0
21783 while :; do
21784 cat >conftest.$ac_ext <<_ACEOF
21785/* confdefs.h. */
21786_ACEOF
21787cat confdefs.h >>conftest.$ac_ext
21788cat >>conftest.$ac_ext <<_ACEOF
21789/* end confdefs.h. */
21790
83d8eb47
MW
21791 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21792 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21793 # error "fake wchar_t"
21794 #endif
21795 #ifdef HAVE_WCHAR_H
21796 # ifdef __CYGWIN__
21797 # include <stddef.h>
21798 # endif
21799 # include <wchar.h>
21800 #endif
21801 #ifdef HAVE_STDLIB_H
21802 # include <stdlib.h>
21803 #endif
21804 #include <stdio.h>
21805
21806
21807
21808int
21809main ()
21810{
21811static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21812test_array [0] = 0
21813
21814 ;
21815 return 0;
21816}
21817_ACEOF
21818rm -f conftest.$ac_objext
21819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21820 (eval $ac_compile) 2>conftest.er1
21821 ac_status=$?
21822 grep -v '^ *+' conftest.er1 >conftest.err
21823 rm -f conftest.er1
21824 cat conftest.err >&5
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); } &&
64b75e64 21827 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829 (eval $ac_try) 2>&5
21830 ac_status=$?
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; } &&
21833 { ac_try='test -s conftest.$ac_objext'
21834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835 (eval $ac_try) 2>&5
21836 ac_status=$?
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); }; }; then
21839 ac_hi=$ac_mid; break
21840else
21841 echo "$as_me: failed program was:" >&5
21842sed 's/^/| /' conftest.$ac_ext >&5
21843
21844ac_lo=`expr $ac_mid + 1`
21845 if test $ac_lo -le $ac_mid; then
21846 ac_lo= ac_hi=
21847 break
21848 fi
21849 ac_mid=`expr 2 '*' $ac_mid + 1`
21850fi
21851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21852 done
21853else
21854 echo "$as_me: failed program was:" >&5
21855sed 's/^/| /' conftest.$ac_ext >&5
21856
21857cat >conftest.$ac_ext <<_ACEOF
21858/* confdefs.h. */
21859_ACEOF
21860cat confdefs.h >>conftest.$ac_ext
21861cat >>conftest.$ac_ext <<_ACEOF
21862/* end confdefs.h. */
21863
83d8eb47
MW
21864 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21865 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21866 # error "fake wchar_t"
21867 #endif
21868 #ifdef HAVE_WCHAR_H
21869 # ifdef __CYGWIN__
21870 # include <stddef.h>
21871 # endif
21872 # include <wchar.h>
21873 #endif
21874 #ifdef HAVE_STDLIB_H
21875 # include <stdlib.h>
21876 #endif
21877 #include <stdio.h>
21878
21879
21880
21881int
21882main ()
21883{
21884static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21885test_array [0] = 0
21886
21887 ;
21888 return 0;
21889}
21890_ACEOF
21891rm -f conftest.$ac_objext
21892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21893 (eval $ac_compile) 2>conftest.er1
21894 ac_status=$?
21895 grep -v '^ *+' conftest.er1 >conftest.err
21896 rm -f conftest.er1
21897 cat conftest.err >&5
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); } &&
64b75e64 21900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21902 (eval $ac_try) 2>&5
21903 ac_status=$?
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); }; } &&
21906 { ac_try='test -s conftest.$ac_objext'
21907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908 (eval $ac_try) 2>&5
21909 ac_status=$?
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); }; }; then
21912 ac_hi=-1 ac_mid=-1
21913 while :; do
21914 cat >conftest.$ac_ext <<_ACEOF
21915/* confdefs.h. */
21916_ACEOF
21917cat confdefs.h >>conftest.$ac_ext
21918cat >>conftest.$ac_ext <<_ACEOF
21919/* end confdefs.h. */
21920
83d8eb47
MW
21921 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21922 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21923 # error "fake wchar_t"
21924 #endif
21925 #ifdef HAVE_WCHAR_H
21926 # ifdef __CYGWIN__
21927 # include <stddef.h>
21928 # endif
21929 # include <wchar.h>
21930 #endif
21931 #ifdef HAVE_STDLIB_H
21932 # include <stdlib.h>
21933 #endif
21934 #include <stdio.h>
21935
21936
21937
21938int
21939main ()
21940{
21941static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21942test_array [0] = 0
21943
21944 ;
21945 return 0;
21946}
21947_ACEOF
21948rm -f conftest.$ac_objext
21949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21950 (eval $ac_compile) 2>conftest.er1
21951 ac_status=$?
21952 grep -v '^ *+' conftest.er1 >conftest.err
21953 rm -f conftest.er1
21954 cat conftest.err >&5
21955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956 (exit $ac_status); } &&
64b75e64 21957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21959 (eval $ac_try) 2>&5
21960 ac_status=$?
21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); }; } &&
21963 { ac_try='test -s conftest.$ac_objext'
21964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21965 (eval $ac_try) 2>&5
21966 ac_status=$?
21967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968 (exit $ac_status); }; }; then
21969 ac_lo=$ac_mid; break
21970else
21971 echo "$as_me: failed program was:" >&5
21972sed 's/^/| /' conftest.$ac_ext >&5
21973
21974ac_hi=`expr '(' $ac_mid ')' - 1`
21975 if test $ac_mid -le $ac_hi; then
21976 ac_lo= ac_hi=
21977 break
21978 fi
21979 ac_mid=`expr 2 '*' $ac_mid`
21980fi
21981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21982 done
21983else
21984 echo "$as_me: failed program was:" >&5
21985sed 's/^/| /' conftest.$ac_ext >&5
21986
21987ac_lo= ac_hi=
21988fi
21989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21990fi
21991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21992# Binary search between lo and hi bounds.
21993while test "x$ac_lo" != "x$ac_hi"; do
21994 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21995 cat >conftest.$ac_ext <<_ACEOF
21996/* confdefs.h. */
21997_ACEOF
21998cat confdefs.h >>conftest.$ac_ext
21999cat >>conftest.$ac_ext <<_ACEOF
22000/* end confdefs.h. */
22001
83d8eb47
MW
22002 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22003 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22004 # error "fake wchar_t"
22005 #endif
22006 #ifdef HAVE_WCHAR_H
22007 # ifdef __CYGWIN__
22008 # include <stddef.h>
22009 # endif
22010 # include <wchar.h>
22011 #endif
22012 #ifdef HAVE_STDLIB_H
22013 # include <stdlib.h>
22014 #endif
22015 #include <stdio.h>
a848cd7e 22016
a848cd7e 22017
a848cd7e 22018
238ecede
MW
22019int
22020main ()
22021{
22022static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
22023test_array [0] = 0
a848cd7e 22024
238ecede
MW
22025 ;
22026 return 0;
22027}
22028_ACEOF
22029rm -f conftest.$ac_objext
22030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22031 (eval $ac_compile) 2>conftest.er1
22032 ac_status=$?
22033 grep -v '^ *+' conftest.er1 >conftest.err
22034 rm -f conftest.er1
22035 cat conftest.err >&5
22036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037 (exit $ac_status); } &&
64b75e64 22038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
22039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22040 (eval $ac_try) 2>&5
22041 ac_status=$?
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); }; } &&
22044 { ac_try='test -s conftest.$ac_objext'
22045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22046 (eval $ac_try) 2>&5
22047 ac_status=$?
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); }; }; then
22050 ac_hi=$ac_mid
22051else
22052 echo "$as_me: failed program was:" >&5
22053sed 's/^/| /' conftest.$ac_ext >&5
22054
22055ac_lo=`expr '(' $ac_mid ')' + 1`
22056fi
22057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22058done
22059case $ac_lo in
22060?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22061'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22062See \`config.log' for more details." >&5
22063echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22064See \`config.log' for more details." >&2;}
22065 { (exit 1); exit 1; }; } ;;
22066esac
22067else
22068 if test "$cross_compiling" = yes; then
64b75e64
RD
22069 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22070echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 22071 { (exit 1); exit 1; }; }
a848cd7e
SC
22072else
22073 cat >conftest.$ac_ext <<_ACEOF
22074/* confdefs.h. */
22075_ACEOF
22076cat confdefs.h >>conftest.$ac_ext
22077cat >>conftest.$ac_ext <<_ACEOF
22078/* end confdefs.h. */
22079
83d8eb47
MW
22080 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22081 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22082 # error "fake wchar_t"
22083 #endif
22084 #ifdef HAVE_WCHAR_H
22085 # ifdef __CYGWIN__
22086 # include <stddef.h>
22087 # endif
22088 # include <wchar.h>
22089 #endif
22090 #ifdef HAVE_STDLIB_H
22091 # include <stdlib.h>
22092 #endif
22093 #include <stdio.h>
22094
22095
22096
22097long longval () { return (long) (sizeof (wchar_t)); }
22098unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
22099#include <stdio.h>
22100#include <stdlib.h>
22101int
22102main ()
22103{
a848cd7e 22104
238ecede
MW
22105 FILE *f = fopen ("conftest.val", "w");
22106 if (! f)
22107 exit (1);
22108 if (((long) (sizeof (wchar_t))) < 0)
22109 {
22110 long i = longval ();
22111 if (i != ((long) (sizeof (wchar_t))))
22112 exit (1);
22113 fprintf (f, "%ld\n", i);
22114 }
22115 else
22116 {
22117 unsigned long i = ulongval ();
22118 if (i != ((long) (sizeof (wchar_t))))
22119 exit (1);
22120 fprintf (f, "%lu\n", i);
22121 }
22122 exit (ferror (f) || fclose (f) != 0);
22123
22124 ;
22125 return 0;
22126}
a848cd7e
SC
22127_ACEOF
22128rm -f conftest$ac_exeext
22129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22130 (eval $ac_link) 2>&5
22131 ac_status=$?
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22135 (eval $ac_try) 2>&5
22136 ac_status=$?
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); }; }; then
238ecede 22139 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
22140else
22141 echo "$as_me: program exited with status $ac_status" >&5
22142echo "$as_me: failed program was:" >&5
22143sed 's/^/| /' conftest.$ac_ext >&5
22144
22145( exit $ac_status )
238ecede
MW
22146{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22147See \`config.log' for more details." >&5
22148echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22149See \`config.log' for more details." >&2;}
22150 { (exit 1); exit 1; }; }
a848cd7e 22151fi
ac1cb8d3 22152rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 22153fi
a848cd7e 22154fi
238ecede
MW
22155rm -f conftest.val
22156else
22157 ac_cv_sizeof_wchar_t=0
22158fi
22159fi
22160echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22161echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 22162cat >>confdefs.h <<_ACEOF
238ecede 22163#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
22164_ACEOF
22165
22166
47a7e797
MW
22167if test "$ac_cv_sizeof_wchar_t" != "0"; then
22168 wxUSE_WCHAR_T=yes
22169else
22170 wxUSE_WCHAR_T=no
22171fi
238ecede 22172
ba3d13e1
VZ
22173echo "$as_me:$LINENO: checking for va_copy" >&5
22174echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
22175if test "${wx_cv_func_va_copy+set}" = set; then
22176 echo $ECHO_N "(cached) $ECHO_C" >&6
22177else
22178
22179 cat >conftest.$ac_ext <<_ACEOF
22180
22181 #include <stdarg.h>
22182 void foo(char *f, ...)
22183 {
22184 va_list ap1, ap2;
22185 va_start(ap1, f);
22186 va_copy(ap2, ap1);
22187 va_end(ap2);
22188 va_end(ap1);
22189 }
5886b072
VZ
22190 int main()
22191 {
b902e639
VZ
22192 foo("hi", 17);
22193 return 0;
5886b072 22194 }
ba3d13e1
VZ
22195_ACEOF
22196rm -f conftest.$ac_objext conftest$ac_exeext
22197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22198 (eval $ac_link) 2>conftest.er1
22199 ac_status=$?
22200 grep -v '^ *+' conftest.er1 >conftest.err
22201 rm -f conftest.er1
22202 cat conftest.err >&5
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); } &&
64b75e64 22205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
22206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22207 (eval $ac_try) 2>&5
22208 ac_status=$?
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); }; } &&
22211 { ac_try='test -s conftest$ac_exeext'
22212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22213 (eval $ac_try) 2>&5
22214 ac_status=$?
22215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); }; }; then
22217 wx_cv_func_va_copy=yes
22218else
22219 echo "$as_me: failed program was:" >&5
22220sed 's/^/| /' conftest.$ac_ext >&5
22221
22222wx_cv_func_va_copy=no
22223
22224fi
22225rm -f conftest.err conftest.$ac_objext \
22226 conftest$ac_exeext conftest.$ac_ext
22227
22228
22229fi
22230echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22231echo "${ECHO_T}$wx_cv_func_va_copy" >&6
22232
22233if test $wx_cv_func_va_copy = "yes"; then
22234 cat >>confdefs.h <<\_ACEOF
22235#define HAVE_VA_COPY 1
22236_ACEOF
22237
22238else
22239 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22240echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
22241if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22242 echo $ECHO_N "(cached) $ECHO_C" >&6
22243else
22244
22245 if test "$cross_compiling" = yes; then
22246 wx_cv_type_va_list_lvalue=yes
22247
22248else
22249 cat >conftest.$ac_ext <<_ACEOF
22250
22251 #include <stdarg.h>
22252 int foo(char *f, ...)
22253 {
22254 va_list ap1, ap2;
22255 va_start(ap1, f);
22256 ap2 = ap1;
22257 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22258 return 1;
22259 va_end(ap2);
22260 va_end(ap1);
22261 return 0;
22262 }
22263 int main()
22264 {
22265 return foo("hi", 17);
22266 }
22267_ACEOF
22268rm -f conftest$ac_exeext
22269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22270 (eval $ac_link) 2>&5
22271 ac_status=$?
22272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22275 (eval $ac_try) 2>&5
22276 ac_status=$?
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); }; }; then
22279 wx_cv_type_va_list_lvalue=yes
22280else
22281 echo "$as_me: program exited with status $ac_status" >&5
22282echo "$as_me: failed program was:" >&5
22283sed 's/^/| /' conftest.$ac_ext >&5
22284
22285( exit $ac_status )
22286wx_cv_type_va_list_lvalue=no
22287fi
22288rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22289fi
22290
22291
22292fi
22293echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22294echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22295
22296 if test $wx_cv_type_va_list_lvalue != "yes"; then
22297 cat >>confdefs.h <<\_ACEOF
22298#define VA_LIST_IS_ARRAY 1
22299_ACEOF
22300
22301 fi
22302fi
22303
ca766534
VS
22304echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
22305echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6
22306if test "${wx_cv_have_variadic_macros+set}" = set; then
22307 echo $ECHO_N "(cached) $ECHO_C" >&6
22308else
22309
22310 cat >conftest.$ac_ext <<_ACEOF
22311/* confdefs.h. */
22312_ACEOF
22313cat confdefs.h >>conftest.$ac_ext
22314cat >>conftest.$ac_ext <<_ACEOF
22315/* end confdefs.h. */
22316
22317 #include <stdio.h>
22318 #define test(fmt, ...) printf(fmt, __VA_ARGS__)
22319
22320int
22321main ()
22322{
22323
22324 test("%s %d %p", "test", 1, 0);
22325
22326
22327 ;
22328 return 0;
22329}
22330_ACEOF
22331rm -f conftest.$ac_objext
22332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22333 (eval $ac_compile) 2>conftest.er1
22334 ac_status=$?
22335 grep -v '^ *+' conftest.er1 >conftest.err
22336 rm -f conftest.er1
22337 cat conftest.err >&5
22338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 (exit $ac_status); } &&
64b75e64 22340 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ca766534
VS
22341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22342 (eval $ac_try) 2>&5
22343 ac_status=$?
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); }; } &&
22346 { ac_try='test -s conftest.$ac_objext'
22347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22348 (eval $ac_try) 2>&5
22349 ac_status=$?
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); }; }; then
22352 wx_cv_have_variadic_macros=yes
22353else
22354 echo "$as_me: failed program was:" >&5
22355sed 's/^/| /' conftest.$ac_ext >&5
22356
22357wx_cv_have_variadic_macros=no
22358
22359fi
22360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22361
22362
22363fi
22364echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
22365echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6
22366
22367if test $wx_cv_have_variadic_macros = "yes"; then
22368 cat >>confdefs.h <<\_ACEOF
22369#define HAVE_VARIADIC_MACROS 1
22370_ACEOF
22371
22372fi
22373
a848cd7e
SC
22374# Check whether --enable-largefile or --disable-largefile was given.
22375if test "${enable_largefile+set}" = set; then
22376 enableval="$enable_largefile"
22377
22378fi;
22379if test "$enable_largefile" != no; then
22380 wx_largefile=no
22381
22382 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22383echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22384if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22385 echo $ECHO_N "(cached) $ECHO_C" >&6
22386else
22387
22388 cat >conftest.$ac_ext <<_ACEOF
22389/* confdefs.h. */
22390_ACEOF
22391cat confdefs.h >>conftest.$ac_ext
22392cat >>conftest.$ac_ext <<_ACEOF
22393/* end confdefs.h. */
22394#define _FILE_OFFSET_BITS 64
22395 #include <sys/types.h>
22396int
22397main ()
22398{
22399typedef struct {
22400 unsigned int field: sizeof(off_t) == 8;
22401} wxlf;
22402
22403 ;
22404 return 0;
22405}
22406_ACEOF
22407rm -f conftest.$ac_objext
22408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22409 (eval $ac_compile) 2>conftest.er1
a848cd7e 22410 ac_status=$?
ac1cb8d3
VS
22411 grep -v '^ *+' conftest.er1 >conftest.err
22412 rm -f conftest.er1
22413 cat conftest.err >&5
a848cd7e
SC
22414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415 (exit $ac_status); } &&
64b75e64 22416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22418 (eval $ac_try) 2>&5
22419 ac_status=$?
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); }; } &&
22422 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22424 (eval $ac_try) 2>&5
22425 ac_status=$?
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); }; }; then
22428 ac_cv_sys_file_offset_bits=64
22429else
22430 echo "$as_me: failed program was:" >&5
22431sed 's/^/| /' conftest.$ac_ext >&5
22432
22433ac_cv_sys_file_offset_bits=no
22434fi
ac1cb8d3 22435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22436
22437
22438fi
22439echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22440echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22441
22442 if test "$ac_cv_sys_file_offset_bits" != no; then
22443 wx_largefile=yes
22444 cat >>confdefs.h <<_ACEOF
22445#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22446_ACEOF
22447
22448 fi
22449
22450 if test "x$wx_largefile" != "xyes"; then
22451
22452 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22453echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22454if test "${ac_cv_sys_large_files+set}" = set; then
22455 echo $ECHO_N "(cached) $ECHO_C" >&6
22456else
22457
22458 cat >conftest.$ac_ext <<_ACEOF
22459/* confdefs.h. */
22460_ACEOF
22461cat confdefs.h >>conftest.$ac_ext
22462cat >>conftest.$ac_ext <<_ACEOF
22463/* end confdefs.h. */
22464#define _LARGE_FILES 1
22465 #include <sys/types.h>
22466int
22467main ()
22468{
22469typedef struct {
22470 unsigned int field: sizeof(off_t) == 8;
22471} wxlf;
22472
22473 ;
22474 return 0;
22475}
22476_ACEOF
22477rm -f conftest.$ac_objext
22478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22479 (eval $ac_compile) 2>conftest.er1
a848cd7e 22480 ac_status=$?
ac1cb8d3
VS
22481 grep -v '^ *+' conftest.er1 >conftest.err
22482 rm -f conftest.er1
22483 cat conftest.err >&5
a848cd7e
SC
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); } &&
64b75e64 22486 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22488 (eval $ac_try) 2>&5
22489 ac_status=$?
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); }; } &&
22492 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22494 (eval $ac_try) 2>&5
22495 ac_status=$?
22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); }; }; then
22498 ac_cv_sys_large_files=1
22499else
22500 echo "$as_me: failed program was:" >&5
22501sed 's/^/| /' conftest.$ac_ext >&5
22502
22503ac_cv_sys_large_files=no
22504fi
ac1cb8d3 22505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22506
22507
22508fi
22509echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22510echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22511
22512 if test "$ac_cv_sys_large_files" != no; then
22513 wx_largefile=yes
22514 cat >>confdefs.h <<_ACEOF
22515#define _LARGE_FILES $ac_cv_sys_large_files
22516_ACEOF
22517
22518 fi
22519
22520 fi
22521
22522 echo "$as_me:$LINENO: checking if large file support is available" >&5
22523echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22524 if test "x$wx_largefile" = "xyes"; then
22525 cat >>confdefs.h <<\_ACEOF
22526#define HAVE_LARGEFILE_SUPPORT 1
22527_ACEOF
22528
22529 fi
22530 echo "$as_me:$LINENO: result: $wx_largefile" >&5
22531echo "${ECHO_T}$wx_largefile" >&6
22532fi
22533
5b674b9d
DE
22534
22535if test "x$wx_largefile" = "xyes"; then
22536 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 22537 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
22538
22539 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22540 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22541echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22542if test "${wx_cv_STDC_EXT_required+set}" = set; then
22543 echo $ECHO_N "(cached) $ECHO_C" >&6
22544else
22545
00421666
MW
22546 cat >conftest.$ac_ext <<_ACEOF
22547/* confdefs.h. */
22548_ACEOF
22549cat confdefs.h >>conftest.$ac_ext
22550cat >>conftest.$ac_ext <<_ACEOF
22551/* end confdefs.h. */
22552
22553int
22554main ()
22555{
22556
22557 #ifndef __STDC_EXT__
22558 choke me
22559 #endif
22560
22561 ;
22562 return 0;
22563}
22564_ACEOF
22565rm -f conftest.$ac_objext
22566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22567 (eval $ac_compile) 2>conftest.er1
22568 ac_status=$?
22569 grep -v '^ *+' conftest.er1 >conftest.err
22570 rm -f conftest.er1
22571 cat conftest.err >&5
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); } &&
64b75e64 22574 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
22575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22576 (eval $ac_try) 2>&5
22577 ac_status=$?
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); }; } &&
22580 { ac_try='test -s conftest.$ac_objext'
22581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22582 (eval $ac_try) 2>&5
22583 ac_status=$?
22584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585 (exit $ac_status); }; }; then
22586 wx_cv_STDC_EXT_required=no
22587else
22588 echo "$as_me: failed program was:" >&5
22589sed 's/^/| /' conftest.$ac_ext >&5
22590
22591wx_cv_STDC_EXT_required=yes
22592
22593fi
22594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
22595
22596
22597fi
22598echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22599echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22600 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22601 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22602 fi
22603 fi
5b674b9d 22604 else
5ff751d6 22605 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
22606 fi
22607 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
22608echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22609if test "${ac_cv_sys_largefile_source+set}" = set; then
22610 echo $ECHO_N "(cached) $ECHO_C" >&6
22611else
22612 while :; do
22613 ac_cv_sys_largefile_source=no
22614 cat >conftest.$ac_ext <<_ACEOF
22615/* confdefs.h. */
22616_ACEOF
22617cat confdefs.h >>conftest.$ac_ext
22618cat >>conftest.$ac_ext <<_ACEOF
22619/* end confdefs.h. */
22620#include <stdio.h>
22621int
22622main ()
22623{
22624return !fseeko;
22625 ;
22626 return 0;
22627}
22628_ACEOF
22629rm -f conftest.$ac_objext
22630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22631 (eval $ac_compile) 2>conftest.er1
22632 ac_status=$?
22633 grep -v '^ *+' conftest.er1 >conftest.err
22634 rm -f conftest.er1
22635 cat conftest.err >&5
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); } &&
64b75e64 22638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640 (eval $ac_try) 2>&5
22641 ac_status=$?
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); }; } &&
22644 { ac_try='test -s conftest.$ac_objext'
22645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22646 (eval $ac_try) 2>&5
22647 ac_status=$?
22648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649 (exit $ac_status); }; }; then
22650 break
22651else
22652 echo "$as_me: failed program was:" >&5
22653sed 's/^/| /' conftest.$ac_ext >&5
22654
22655fi
22656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22657 cat >conftest.$ac_ext <<_ACEOF
22658/* confdefs.h. */
22659_ACEOF
22660cat confdefs.h >>conftest.$ac_ext
22661cat >>conftest.$ac_ext <<_ACEOF
22662/* end confdefs.h. */
22663#define _LARGEFILE_SOURCE 1
22664#include <stdio.h>
22665int
22666main ()
22667{
22668return !fseeko;
22669 ;
22670 return 0;
22671}
22672_ACEOF
22673rm -f conftest.$ac_objext
22674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22675 (eval $ac_compile) 2>conftest.er1
22676 ac_status=$?
22677 grep -v '^ *+' conftest.er1 >conftest.err
22678 rm -f conftest.er1
22679 cat conftest.err >&5
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); } &&
64b75e64 22682 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22684 (eval $ac_try) 2>&5
22685 ac_status=$?
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); }; } &&
22688 { ac_try='test -s conftest.$ac_objext'
22689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22690 (eval $ac_try) 2>&5
22691 ac_status=$?
22692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); }; }; then
22694 ac_cv_sys_largefile_source=1; break
22695else
22696 echo "$as_me: failed program was:" >&5
22697sed 's/^/| /' conftest.$ac_ext >&5
22698
22699fi
22700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22701 break
22702done
22703fi
22704echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22705echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22706if test "$ac_cv_sys_largefile_source" != no; then
22707
22708cat >>confdefs.h <<_ACEOF
22709#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22710_ACEOF
22711
22712fi
22713rm -f conftest*
22714
22715# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22716# in glibc 2.1.3, but that breaks too many other things.
22717# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22718echo "$as_me:$LINENO: checking for fseeko" >&5
22719echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22720if test "${ac_cv_func_fseeko+set}" = set; then
22721 echo $ECHO_N "(cached) $ECHO_C" >&6
22722else
22723 cat >conftest.$ac_ext <<_ACEOF
22724/* confdefs.h. */
22725_ACEOF
22726cat confdefs.h >>conftest.$ac_ext
22727cat >>conftest.$ac_ext <<_ACEOF
22728/* end confdefs.h. */
22729#include <stdio.h>
22730int
22731main ()
22732{
22733return fseeko && fseeko (stdin, 0, 0);
22734 ;
22735 return 0;
22736}
22737_ACEOF
22738rm -f conftest.$ac_objext conftest$ac_exeext
22739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22740 (eval $ac_link) 2>conftest.er1
22741 ac_status=$?
22742 grep -v '^ *+' conftest.er1 >conftest.err
22743 rm -f conftest.er1
22744 cat conftest.err >&5
22745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); } &&
64b75e64 22747 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22749 (eval $ac_try) 2>&5
22750 ac_status=$?
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); }; } &&
22753 { ac_try='test -s conftest$ac_exeext'
22754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22755 (eval $ac_try) 2>&5
22756 ac_status=$?
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); }; }; then
22759 ac_cv_func_fseeko=yes
22760else
22761 echo "$as_me: failed program was:" >&5
22762sed 's/^/| /' conftest.$ac_ext >&5
22763
22764ac_cv_func_fseeko=no
22765fi
22766rm -f conftest.err conftest.$ac_objext \
22767 conftest$ac_exeext conftest.$ac_ext
22768fi
22769echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22770echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22771if test $ac_cv_func_fseeko = yes; then
22772
22773cat >>confdefs.h <<\_ACEOF
22774#define HAVE_FSEEKO 1
22775_ACEOF
22776
22777fi
22778
5b674b9d 22779 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22780 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22781 fi
a848cd7e
SC
22782fi
22783
22784echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22785echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22786if test "${ac_cv_c_bigendian+set}" = set; then
22787 echo $ECHO_N "(cached) $ECHO_C" >&6
22788else
22789 ac_cv_c_bigendian=unknown
22790# See if sys/param.h defines the BYTE_ORDER macro.
22791cat >conftest.$ac_ext <<_ACEOF
22792/* confdefs.h. */
22793_ACEOF
22794cat confdefs.h >>conftest.$ac_ext
22795cat >>conftest.$ac_ext <<_ACEOF
22796/* end confdefs.h. */
22797#include <sys/types.h>
22798#include <sys/param.h>
22799int
22800main ()
22801{
22802
22803#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22804 bogus endian macros
22805#endif
22806 ;
22807 return 0;
22808}
22809_ACEOF
22810rm -f conftest.$ac_objext
22811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22812 (eval $ac_compile) 2>conftest.er1
a848cd7e 22813 ac_status=$?
ac1cb8d3
VS
22814 grep -v '^ *+' conftest.er1 >conftest.err
22815 rm -f conftest.er1
22816 cat conftest.err >&5
a848cd7e
SC
22817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818 (exit $ac_status); } &&
64b75e64 22819 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22821 (eval $ac_try) 2>&5
22822 ac_status=$?
22823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); }; } &&
22825 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22827 (eval $ac_try) 2>&5
22828 ac_status=$?
22829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830 (exit $ac_status); }; }; then
22831 # It does; now see whether it defined to BIG_ENDIAN or not.
22832cat >conftest.$ac_ext <<_ACEOF
22833/* confdefs.h. */
22834_ACEOF
22835cat confdefs.h >>conftest.$ac_ext
22836cat >>conftest.$ac_ext <<_ACEOF
22837/* end confdefs.h. */
22838#include <sys/types.h>
22839#include <sys/param.h>
22840int
22841main ()
22842{
22843
22844#if BYTE_ORDER != BIG_ENDIAN
22845 not big endian
22846#endif
22847 ;
22848 return 0;
22849}
22850_ACEOF
22851rm -f conftest.$ac_objext
22852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22853 (eval $ac_compile) 2>conftest.er1
a848cd7e 22854 ac_status=$?
ac1cb8d3
VS
22855 grep -v '^ *+' conftest.er1 >conftest.err
22856 rm -f conftest.er1
22857 cat conftest.err >&5
a848cd7e
SC
22858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); } &&
64b75e64 22860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22862 (eval $ac_try) 2>&5
22863 ac_status=$?
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); }; } &&
22866 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22868 (eval $ac_try) 2>&5
22869 ac_status=$?
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); }; }; then
22872 ac_cv_c_bigendian=yes
22873else
22874 echo "$as_me: failed program was:" >&5
22875sed 's/^/| /' conftest.$ac_ext >&5
22876
22877ac_cv_c_bigendian=no
22878fi
ac1cb8d3 22879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22880else
22881 echo "$as_me: failed program was:" >&5
22882sed 's/^/| /' conftest.$ac_ext >&5
22883
22884fi
ac1cb8d3 22885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22886if test $ac_cv_c_bigendian = unknown; then
22887if test "$cross_compiling" = yes; then
22888 ac_cv_c_bigendian=unknown
22889else
22890 cat >conftest.$ac_ext <<_ACEOF
22891/* confdefs.h. */
22892_ACEOF
22893cat confdefs.h >>conftest.$ac_ext
22894cat >>conftest.$ac_ext <<_ACEOF
22895/* end confdefs.h. */
22896main () {
22897 /* Are we little or big endian? From Harbison&Steele. */
22898 union
22899 {
22900 long l;
22901 char c[sizeof (long)];
22902 } u;
22903 u.l = 1;
22904 exit (u.c[sizeof (long) - 1] == 1);
22905}
22906_ACEOF
22907rm -f conftest$ac_exeext
22908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22909 (eval $ac_link) 2>&5
22910 ac_status=$?
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22914 (eval $ac_try) 2>&5
22915 ac_status=$?
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); }; }; then
22918 ac_cv_c_bigendian=no
22919else
22920 echo "$as_me: program exited with status $ac_status" >&5
22921echo "$as_me: failed program was:" >&5
22922sed 's/^/| /' conftest.$ac_ext >&5
22923
22924( exit $ac_status )
22925ac_cv_c_bigendian=yes
22926fi
ac1cb8d3 22927rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22928fi
22929fi
22930fi
22931echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22932echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22933if test $ac_cv_c_bigendian = unknown; then
22934 { 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
22935echo "$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;}
22936fi
22937if test $ac_cv_c_bigendian = yes; then
22938 cat >>confdefs.h <<\_ACEOF
22939#define WORDS_BIGENDIAN 1
22940_ACEOF
22941
22942fi
22943
22944
a848cd7e
SC
22945
22946
22947
22948 ac_ext=cc
22949ac_cpp='$CXXCPP $CPPFLAGS'
22950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22953
22954
22955
22956for ac_header in iostream
22957do
22958as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22959if eval "test \"\${$as_ac_Header+set}\" = set"; then
22960 echo "$as_me:$LINENO: checking for $ac_header" >&5
22961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22962if eval "test \"\${$as_ac_Header+set}\" = set"; then
22963 echo $ECHO_N "(cached) $ECHO_C" >&6
22964fi
22965echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22966echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22967else
22968 # Is the header compilable?
22969echo "$as_me:$LINENO: checking $ac_header usability" >&5
22970echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22971cat >conftest.$ac_ext <<_ACEOF
22972/* confdefs.h. */
22973_ACEOF
22974cat confdefs.h >>conftest.$ac_ext
22975cat >>conftest.$ac_ext <<_ACEOF
22976/* end confdefs.h. */
22977$ac_includes_default
22978#include <$ac_header>
22979_ACEOF
22980rm -f conftest.$ac_objext
22981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22982 (eval $ac_compile) 2>conftest.er1
a848cd7e 22983 ac_status=$?
ac1cb8d3
VS
22984 grep -v '^ *+' conftest.er1 >conftest.err
22985 rm -f conftest.er1
22986 cat conftest.err >&5
a848cd7e
SC
22987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988 (exit $ac_status); } &&
64b75e64 22989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22991 (eval $ac_try) 2>&5
22992 ac_status=$?
22993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994 (exit $ac_status); }; } &&
22995 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22997 (eval $ac_try) 2>&5
22998 ac_status=$?
22999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); }; }; then
23001 ac_header_compiler=yes
23002else
23003 echo "$as_me: failed program was:" >&5
23004sed 's/^/| /' conftest.$ac_ext >&5
23005
23006ac_header_compiler=no
23007fi
ac1cb8d3 23008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23009echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23010echo "${ECHO_T}$ac_header_compiler" >&6
23011
23012# Is the header present?
23013echo "$as_me:$LINENO: checking $ac_header presence" >&5
23014echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23015cat >conftest.$ac_ext <<_ACEOF
23016/* confdefs.h. */
23017_ACEOF
23018cat confdefs.h >>conftest.$ac_ext
23019cat >>conftest.$ac_ext <<_ACEOF
23020/* end confdefs.h. */
23021#include <$ac_header>
23022_ACEOF
23023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23025 ac_status=$?
23026 grep -v '^ *+' conftest.er1 >conftest.err
23027 rm -f conftest.er1
23028 cat conftest.err >&5
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); } >/dev/null; then
23031 if test -s conftest.err; then
23032 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23033 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
23034 else
23035 ac_cpp_err=
23036 fi
23037else
23038 ac_cpp_err=yes
23039fi
23040if test -z "$ac_cpp_err"; then
23041 ac_header_preproc=yes
23042else
23043 echo "$as_me: failed program was:" >&5
23044sed 's/^/| /' conftest.$ac_ext >&5
23045
23046 ac_header_preproc=no
23047fi
23048rm -f conftest.err conftest.$ac_ext
23049echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23050echo "${ECHO_T}$ac_header_preproc" >&6
23051
23052# So? What about this header?
ac1cb8d3
VS
23053case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23054 yes:no: )
a848cd7e
SC
23055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23056echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23058echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23059 ac_header_preproc=yes
a848cd7e 23060 ;;
ac1cb8d3 23061 no:yes:* )
a848cd7e
SC
23062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23063echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23065echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23067echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23069echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23071echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23073echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23074 (
23075 cat <<\_ASBOX
ac1cb8d3
VS
23076## ----------------------------------------- ##
23077## Report this to wx-dev@lists.wxwidgets.org ##
23078## ----------------------------------------- ##
a848cd7e
SC
23079_ASBOX
23080 ) |
23081 sed "s/^/$as_me: WARNING: /" >&2
23082 ;;
23083esac
23084echo "$as_me:$LINENO: checking for $ac_header" >&5
23085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23086if eval "test \"\${$as_ac_Header+set}\" = set"; then
23087 echo $ECHO_N "(cached) $ECHO_C" >&6
23088else
ac1cb8d3 23089 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
23090fi
23091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23092echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23093
23094fi
23095if test `eval echo '${'$as_ac_Header'}'` = yes; then
23096 cat >>confdefs.h <<_ACEOF
23097#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23098_ACEOF
23099
23100fi
23101
23102done
23103
23104
23105 if test "$ac_cv_header_iostream" = "yes" ; then
23106 :
23107 else
23108 cat >>confdefs.h <<\_ACEOF
23109#define wxUSE_IOSTREAMH 1
23110_ACEOF
23111
23112 fi
23113
5d7b7554
VZ
23114 ac_ext=cc
23115ac_cpp='$CXXCPP $CPPFLAGS'
23116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23119
23120
23121
23122
23123 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
23124echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
23125if test "${wx_cv_cpp_bool+set}" = set; then
23126 echo $ECHO_N "(cached) $ECHO_C" >&6
23127else
23128
23129
23130
23131 ac_ext=cc
23132ac_cpp='$CXXCPP $CPPFLAGS'
23133ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23134ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23135ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23136
23137
23138 cat >conftest.$ac_ext <<_ACEOF
23139/* confdefs.h. */
23140_ACEOF
23141cat confdefs.h >>conftest.$ac_ext
23142cat >>conftest.$ac_ext <<_ACEOF
23143/* end confdefs.h. */
23144
23145
23146int
23147main ()
23148{
23149
23150 bool b = true;
23151
23152 return 0;
23153
23154 ;
23155 return 0;
23156}
23157_ACEOF
23158rm -f conftest.$ac_objext
23159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23160 (eval $ac_compile) 2>conftest.er1
a848cd7e 23161 ac_status=$?
ac1cb8d3
VS
23162 grep -v '^ *+' conftest.er1 >conftest.err
23163 rm -f conftest.er1
23164 cat conftest.err >&5
a848cd7e
SC
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); } &&
64b75e64 23167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23169 (eval $ac_try) 2>&5
23170 ac_status=$?
23171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); }; } &&
23173 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23175 (eval $ac_try) 2>&5
23176 ac_status=$?
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); }; }; then
23179
23180 wx_cv_cpp_bool=yes
23181
23182else
23183 echo "$as_me: failed program was:" >&5
23184sed 's/^/| /' conftest.$ac_ext >&5
23185
23186
23187 wx_cv_cpp_bool=no
23188
23189
23190fi
ac1cb8d3 23191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23192
5d7b7554
VZ
23193 ac_ext=cc
23194ac_cpp='$CXXCPP $CPPFLAGS'
23195ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23196ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23197ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23198
23199
23200fi
23201echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23202echo "${ECHO_T}$wx_cv_cpp_bool" >&6
23203
23204 if test "$wx_cv_cpp_bool" = "yes"; then
23205 cat >>confdefs.h <<\_ACEOF
23206#define HAVE_BOOL 1
23207_ACEOF
23208
23209 fi
23210
23211
23212
23213 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23214echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
23215if test "${wx_cv_explicit+set}" = set; then
23216 echo $ECHO_N "(cached) $ECHO_C" >&6
23217else
23218
23219
23220
23221 ac_ext=cc
23222ac_cpp='$CXXCPP $CPPFLAGS'
23223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23226
23227
23228 cat >conftest.$ac_ext <<_ACEOF
23229/* confdefs.h. */
23230_ACEOF
23231cat confdefs.h >>conftest.$ac_ext
23232cat >>conftest.$ac_ext <<_ACEOF
23233/* end confdefs.h. */
23234
23235 class Foo { public: explicit Foo(int) {} };
23236
23237int
23238main ()
23239{
23240
23241 return 0;
23242
23243 ;
23244 return 0;
23245}
23246_ACEOF
23247rm -f conftest.$ac_objext
23248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23249 (eval $ac_compile) 2>conftest.er1
a848cd7e 23250 ac_status=$?
ac1cb8d3
VS
23251 grep -v '^ *+' conftest.er1 >conftest.err
23252 rm -f conftest.er1
23253 cat conftest.err >&5
a848cd7e
SC
23254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); } &&
64b75e64 23256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23258 (eval $ac_try) 2>&5
23259 ac_status=$?
23260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261 (exit $ac_status); }; } &&
23262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23264 (eval $ac_try) 2>&5
23265 ac_status=$?
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); }; }; then
23268
23269 cat >conftest.$ac_ext <<_ACEOF
23270/* confdefs.h. */
23271_ACEOF
23272cat confdefs.h >>conftest.$ac_ext
23273cat >>conftest.$ac_ext <<_ACEOF
23274/* end confdefs.h. */
23275
23276 class Foo { public: explicit Foo(int) {} };
23277 static void TakeFoo(const Foo& foo) { }
23278
23279int
23280main ()
23281{
23282
23283 TakeFoo(17);
23284 return 0;
23285
23286 ;
23287 return 0;
23288}
23289_ACEOF
23290rm -f conftest.$ac_objext
23291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23292 (eval $ac_compile) 2>conftest.er1
a848cd7e 23293 ac_status=$?
ac1cb8d3
VS
23294 grep -v '^ *+' conftest.er1 >conftest.err
23295 rm -f conftest.er1
23296 cat conftest.err >&5
a848cd7e
SC
23297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); } &&
64b75e64 23299 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23301 (eval $ac_try) 2>&5
23302 ac_status=$?
23303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304 (exit $ac_status); }; } &&
23305 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23307 (eval $ac_try) 2>&5
23308 ac_status=$?
23309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310 (exit $ac_status); }; }; then
23311 wx_cv_explicit=no
23312else
23313 echo "$as_me: failed program was:" >&5
23314sed 's/^/| /' conftest.$ac_ext >&5
23315
23316wx_cv_explicit=yes
23317
23318fi
ac1cb8d3 23319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23320
23321else
23322 echo "$as_me: failed program was:" >&5
23323sed 's/^/| /' conftest.$ac_ext >&5
23324
23325wx_cv_explicit=no
23326
23327fi
ac1cb8d3 23328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23329
5d7b7554
VZ
23330 ac_ext=cc
23331ac_cpp='$CXXCPP $CPPFLAGS'
23332ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23333ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23334ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23335
23336
23337fi
23338echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23339echo "${ECHO_T}$wx_cv_explicit" >&6
23340
23341 if test "$wx_cv_explicit" = "yes"; then
23342 cat >>confdefs.h <<\_ACEOF
23343#define HAVE_EXPLICIT 1
23344_ACEOF
23345
23346 fi
23347
23348
23349echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23350echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23351if test "${ac_cv_cxx_const_cast+set}" = set; then
23352 echo $ECHO_N "(cached) $ECHO_C" >&6
23353else
23354
23355
23356 ac_ext=cc
23357ac_cpp='$CXXCPP $CPPFLAGS'
23358ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23359ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23360ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23361
23362 cat >conftest.$ac_ext <<_ACEOF
23363/* confdefs.h. */
23364_ACEOF
23365cat confdefs.h >>conftest.$ac_ext
23366cat >>conftest.$ac_ext <<_ACEOF
23367/* end confdefs.h. */
23368
23369int
23370main ()
23371{
23372int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23373 ;
23374 return 0;
23375}
23376_ACEOF
23377rm -f conftest.$ac_objext
23378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23379 (eval $ac_compile) 2>conftest.er1
a848cd7e 23380 ac_status=$?
ac1cb8d3
VS
23381 grep -v '^ *+' conftest.er1 >conftest.err
23382 rm -f conftest.er1
23383 cat conftest.err >&5
a848cd7e
SC
23384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385 (exit $ac_status); } &&
64b75e64 23386 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23388 (eval $ac_try) 2>&5
23389 ac_status=$?
23390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391 (exit $ac_status); }; } &&
23392 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23394 (eval $ac_try) 2>&5
23395 ac_status=$?
23396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397 (exit $ac_status); }; }; then
23398 ac_cv_cxx_const_cast=yes
23399else
23400 echo "$as_me: failed program was:" >&5
23401sed 's/^/| /' conftest.$ac_ext >&5
23402
23403ac_cv_cxx_const_cast=no
23404fi
ac1cb8d3 23405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23406 ac_ext=cc
23407ac_cpp='$CXXCPP $CPPFLAGS'
23408ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23409ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23410ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23411
23412
23413fi
23414echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23415echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23416if test "$ac_cv_cxx_const_cast" = yes; then
23417
23418cat >>confdefs.h <<\_ACEOF
23419#define HAVE_CONST_CAST
23420_ACEOF
23421
23422fi
23423
7714864e
RL
23424echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23425echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23426if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23427 echo $ECHO_N "(cached) $ECHO_C" >&6
23428else
23429
23430
23431 ac_ext=cc
23432ac_cpp='$CXXCPP $CPPFLAGS'
23433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23436
23437 cat >conftest.$ac_ext <<_ACEOF
23438/* confdefs.h. */
23439_ACEOF
23440cat confdefs.h >>conftest.$ac_ext
23441cat >>conftest.$ac_ext <<_ACEOF
23442/* end confdefs.h. */
23443#include <typeinfo>
23444class Base { public : Base () {} virtual void f () = 0;};
23445class Derived : public Base { public : Derived () {} virtual void f () {} };
23446class Unrelated { public : Unrelated () {} };
23447int g (Unrelated&) { return 0; }
23448int
23449main ()
23450{
23451
23452Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23453 ;
23454 return 0;
23455}
23456_ACEOF
23457rm -f conftest.$ac_objext
23458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23459 (eval $ac_compile) 2>conftest.er1
23460 ac_status=$?
23461 grep -v '^ *+' conftest.er1 >conftest.err
23462 rm -f conftest.er1
23463 cat conftest.err >&5
23464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); } &&
64b75e64 23466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
23467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23468 (eval $ac_try) 2>&5
23469 ac_status=$?
23470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); }; } &&
23472 { ac_try='test -s conftest.$ac_objext'
23473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23474 (eval $ac_try) 2>&5
23475 ac_status=$?
23476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477 (exit $ac_status); }; }; then
23478 ac_cv_cxx_reinterpret_cast=yes
23479else
23480 echo "$as_me: failed program was:" >&5
23481sed 's/^/| /' conftest.$ac_ext >&5
23482
23483ac_cv_cxx_reinterpret_cast=no
23484fi
23485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23486 ac_ext=cc
23487ac_cpp='$CXXCPP $CPPFLAGS'
23488ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23489ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23490ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
23491
23492
23493fi
23494echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23495echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23496if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23497
23498cat >>confdefs.h <<\_ACEOF
23499#define HAVE_REINTERPRET_CAST
23500_ACEOF
23501
23502fi
23503
a848cd7e
SC
23504echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23505echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23506if test "${ac_cv_cxx_static_cast+set}" = set; then
23507 echo $ECHO_N "(cached) $ECHO_C" >&6
23508else
23509
23510
23511 ac_ext=cc
23512ac_cpp='$CXXCPP $CPPFLAGS'
23513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23516
23517 cat >conftest.$ac_ext <<_ACEOF
23518/* confdefs.h. */
23519_ACEOF
23520cat confdefs.h >>conftest.$ac_ext
23521cat >>conftest.$ac_ext <<_ACEOF
23522/* end confdefs.h. */
23523#include <typeinfo>
23524class Base { public : Base () {} virtual void f () = 0; };
23525class Derived : public Base { public : Derived () {} virtual void f () {} };
23526int g (Derived&) { return 0; }
23527int
23528main ()
23529{
23530
23531Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23532 ;
23533 return 0;
23534}
23535_ACEOF
23536rm -f conftest.$ac_objext
23537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23538 (eval $ac_compile) 2>conftest.er1
a848cd7e 23539 ac_status=$?
ac1cb8d3
VS
23540 grep -v '^ *+' conftest.er1 >conftest.err
23541 rm -f conftest.er1
23542 cat conftest.err >&5
a848cd7e
SC
23543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544 (exit $ac_status); } &&
64b75e64 23545 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23547 (eval $ac_try) 2>&5
23548 ac_status=$?
23549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550 (exit $ac_status); }; } &&
23551 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23553 (eval $ac_try) 2>&5
23554 ac_status=$?
23555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23556 (exit $ac_status); }; }; then
23557 ac_cv_cxx_static_cast=yes
23558else
23559 echo "$as_me: failed program was:" >&5
23560sed 's/^/| /' conftest.$ac_ext >&5
23561
23562ac_cv_cxx_static_cast=no
23563fi
ac1cb8d3 23564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23565 ac_ext=cc
23566ac_cpp='$CXXCPP $CPPFLAGS'
23567ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23568ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23569ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23570
23571
23572fi
23573echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23574echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23575if test "$ac_cv_cxx_static_cast" = yes; then
23576
23577cat >>confdefs.h <<\_ACEOF
23578#define HAVE_STATIC_CAST
23579_ACEOF
23580
23581fi
23582
23583
3c28b7cb 23584if test "x$SUNCXX" = xyes; then
c92ad099 23585 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23586fi
23587
9122d155 23588if test "x$SUNCC" = xyes; then
c92ad099 23589 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23590fi
23591
0ad5d837 23592if test "x$SGICC" = "xyes"; then
c92ad099 23593 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23594fi
23595if test "x$SGICXX" = "xyes"; then
c92ad099 23596 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23597fi
23598
2eef8513 23599if test "x$HPCC" = "xyes"; then
c92ad099 23600 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23601fi
23602if test "x$HPCXX" = "xyes"; then
c92ad099 23603 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23604fi
23605
23606if test "x$COMPAQCXX" = "xyes"; then
23607 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23608fi
23609
f56c22b4 23610if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23611 if test "$wxUSE_UNICODE" = "yes"; then
23612 std_string="std::wstring"
23613 char_type="wchar_t"
23614 else
23615 std_string="std::string"
23616 char_type="char"
23617 fi
23618
23619 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23620echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
23621 cat >conftest.$ac_ext <<_ACEOF
23622/* confdefs.h. */
23623_ACEOF
23624cat confdefs.h >>conftest.$ac_ext
23625cat >>conftest.$ac_ext <<_ACEOF
23626/* end confdefs.h. */
23627#include <string>
a848cd7e
SC
23628int
23629main ()
23630{
f56c22b4 23631$std_string foo;
a848cd7e
SC
23632 ;
23633 return 0;
23634}
23635_ACEOF
23636rm -f conftest.$ac_objext
23637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23638 (eval $ac_compile) 2>conftest.er1
a848cd7e 23639 ac_status=$?
ac1cb8d3
VS
23640 grep -v '^ *+' conftest.er1 >conftest.err
23641 rm -f conftest.er1
23642 cat conftest.err >&5
a848cd7e
SC
23643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644 (exit $ac_status); } &&
64b75e64 23645 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
23651 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23653 (eval $ac_try) 2>&5
23654 ac_status=$?
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); }; }; then
23657 echo "$as_me:$LINENO: result: yes" >&5
23658echo "${ECHO_T}yes" >&6
0a08f02a
MB
23659 cat >>confdefs.h <<\_ACEOF
23660#define HAVE_STD_WSTRING 1
23661_ACEOF
23662
a848cd7e
SC
23663else
23664 echo "$as_me: failed program was:" >&5
23665sed 's/^/| /' conftest.$ac_ext >&5
23666
23667echo "$as_me:$LINENO: result: no" >&5
23668echo "${ECHO_T}no" >&6
f56c22b4
MW
23669 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23670echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23671 cat >conftest.$ac_ext <<_ACEOF
23672/* confdefs.h. */
23673_ACEOF
23674cat confdefs.h >>conftest.$ac_ext
23675cat >>conftest.$ac_ext <<_ACEOF
23676/* end confdefs.h. */
23677
23678 #ifdef HAVE_WCHAR_H
23679 # ifdef __CYGWIN__
23680 # include <stddef.h>
23681 # endif
23682 # include <wchar.h>
23683 #endif
23684 #ifdef HAVE_STDLIB_H
23685 # include <stdlib.h>
23686 #endif
23687 #include <stdio.h>
23688 #include <string>
23689
23690int
23691main ()
23692{
f56c22b4
MW
23693std::basic_string<$char_type> foo;
23694 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23695 ;
23696 return 0;
23697}
23698_ACEOF
23699rm -f conftest.$ac_objext
23700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23701 (eval $ac_compile) 2>conftest.er1
23702 ac_status=$?
23703 grep -v '^ *+' conftest.er1 >conftest.err
23704 rm -f conftest.er1
23705 cat conftest.err >&5
23706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707 (exit $ac_status); } &&
64b75e64 23708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
23709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23710 (eval $ac_try) 2>&5
23711 ac_status=$?
23712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713 (exit $ac_status); }; } &&
23714 { ac_try='test -s conftest.$ac_objext'
23715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23716 (eval $ac_try) 2>&5
23717 ac_status=$?
23718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719 (exit $ac_status); }; }; then
23720 echo "$as_me:$LINENO: result: yes" >&5
23721echo "${ECHO_T}yes" >&6
23722else
23723 echo "$as_me: failed program was:" >&5
23724sed 's/^/| /' conftest.$ac_ext >&5
23725
23726echo "$as_me:$LINENO: result: no" >&5
23727echo "${ECHO_T}no" >&6
f56c22b4 23728 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23729 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23730echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23731 { (exit 1); exit 1; }; }
23732 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23733 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23734echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23735 { (exit 1); exit 1; }; }
f56c22b4
MW
23736 else
23737 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23738echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23739 wxUSE_STD_STRING=no
23740 fi
23741
0a08f02a 23742
a848cd7e 23743fi
ac1cb8d3 23744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23745
0a08f02a
MB
23746fi
23747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
23748fi
23749
23750if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23751 echo "$as_me:$LINENO: checking for std::istream" >&5
23752echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23753if test "${ac_cv_type_std__istream+set}" = set; then
23754 echo $ECHO_N "(cached) $ECHO_C" >&6
23755else
23756 cat >conftest.$ac_ext <<_ACEOF
23757/* confdefs.h. */
23758_ACEOF
23759cat confdefs.h >>conftest.$ac_ext
23760cat >>conftest.$ac_ext <<_ACEOF
23761/* end confdefs.h. */
23762#include <iostream>
23763
23764int
23765main ()
23766{
23767if ((std::istream *) 0)
23768 return 0;
23769if (sizeof (std::istream))
23770 return 0;
23771 ;
23772 return 0;
23773}
23774_ACEOF
23775rm -f conftest.$ac_objext
23776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23777 (eval $ac_compile) 2>conftest.er1
23778 ac_status=$?
23779 grep -v '^ *+' conftest.er1 >conftest.err
23780 rm -f conftest.er1
23781 cat conftest.err >&5
23782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783 (exit $ac_status); } &&
64b75e64 23784 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23786 (eval $ac_try) 2>&5
23787 ac_status=$?
23788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); }; } &&
23790 { ac_try='test -s conftest.$ac_objext'
23791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23792 (eval $ac_try) 2>&5
23793 ac_status=$?
23794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795 (exit $ac_status); }; }; then
23796 ac_cv_type_std__istream=yes
23797else
23798 echo "$as_me: failed program was:" >&5
23799sed 's/^/| /' conftest.$ac_ext >&5
23800
23801ac_cv_type_std__istream=no
23802fi
23803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23804fi
23805echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23806echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23807if test $ac_cv_type_std__istream = yes; then
23808
23809cat >>confdefs.h <<_ACEOF
23810#define HAVE_STD__ISTREAM 1
23811_ACEOF
23812
23813
23814else
23815 wxUSE_STD_IOSTREAM=no
23816fi
23817echo "$as_me:$LINENO: checking for std::ostream" >&5
23818echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23819if test "${ac_cv_type_std__ostream+set}" = set; then
23820 echo $ECHO_N "(cached) $ECHO_C" >&6
23821else
23822 cat >conftest.$ac_ext <<_ACEOF
23823/* confdefs.h. */
23824_ACEOF
23825cat confdefs.h >>conftest.$ac_ext
23826cat >>conftest.$ac_ext <<_ACEOF
23827/* end confdefs.h. */
23828#include <iostream>
23829
23830int
23831main ()
23832{
23833if ((std::ostream *) 0)
23834 return 0;
23835if (sizeof (std::ostream))
23836 return 0;
23837 ;
23838 return 0;
23839}
23840_ACEOF
23841rm -f conftest.$ac_objext
23842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23843 (eval $ac_compile) 2>conftest.er1
23844 ac_status=$?
23845 grep -v '^ *+' conftest.er1 >conftest.err
23846 rm -f conftest.er1
23847 cat conftest.err >&5
23848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23849 (exit $ac_status); } &&
64b75e64 23850 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23852 (eval $ac_try) 2>&5
23853 ac_status=$?
23854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855 (exit $ac_status); }; } &&
23856 { ac_try='test -s conftest.$ac_objext'
23857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23858 (eval $ac_try) 2>&5
23859 ac_status=$?
23860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861 (exit $ac_status); }; }; then
23862 ac_cv_type_std__ostream=yes
23863else
23864 echo "$as_me: failed program was:" >&5
23865sed 's/^/| /' conftest.$ac_ext >&5
23866
23867ac_cv_type_std__ostream=no
23868fi
23869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23870fi
23871echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23872echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23873if test $ac_cv_type_std__ostream = yes; then
23874
23875cat >>confdefs.h <<_ACEOF
23876#define HAVE_STD__OSTREAM 1
23877_ACEOF
23878
23879
23880else
23881 wxUSE_STD_IOSTREAM=no
23882fi
23883
23884
23885 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23886 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23887 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23888echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23889 { (exit 1); exit 1; }; }
23890 else
23891 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23892echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23893 fi
f56c22b4 23894 fi
0a08f02a
MB
23895fi
23896
23897if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23898 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23899echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23900 cat >conftest.$ac_ext <<_ACEOF
23901/* confdefs.h. */
23902_ACEOF
23903cat confdefs.h >>conftest.$ac_ext
23904cat >>conftest.$ac_ext <<_ACEOF
23905/* end confdefs.h. */
23906#include <string>
0a08f02a
MB
23907 #include <functional>
23908 #include <algorithm>
23909 #include <vector>
23910 #include <list>
a848cd7e
SC
23911int
23912main ()
23913{
0a08f02a
MB
23914std::vector<int> moo;
23915 std::list<int> foo;
23916 std::vector<int>::iterator it =
23917 std::find_if(moo.begin(), moo.end(),
23918 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23919 ;
23920 return 0;
23921}
23922_ACEOF
23923rm -f conftest.$ac_objext
23924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23925 (eval $ac_compile) 2>conftest.er1
a848cd7e 23926 ac_status=$?
ac1cb8d3
VS
23927 grep -v '^ *+' conftest.er1 >conftest.err
23928 rm -f conftest.er1
23929 cat conftest.err >&5
a848cd7e
SC
23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931 (exit $ac_status); } &&
64b75e64 23932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23934 (eval $ac_try) 2>&5
23935 ac_status=$?
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); }; } &&
23938 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23940 (eval $ac_try) 2>&5
23941 ac_status=$?
23942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943 (exit $ac_status); }; }; then
23944 echo "$as_me:$LINENO: result: yes" >&5
23945echo "${ECHO_T}yes" >&6
a848cd7e
SC
23946else
23947 echo "$as_me: failed program was:" >&5
23948sed 's/^/| /' conftest.$ac_ext >&5
23949
23950echo "$as_me:$LINENO: result: no" >&5
23951echo "${ECHO_T}no" >&6
0a08f02a
MB
23952 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23953echo "$as_me: error: Basic STL functionality missing" >&2;}
23954 { (exit 1); exit 1; }; }
a848cd7e 23955fi
ac1cb8d3 23956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23957
23958 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23959echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23960 cat >conftest.$ac_ext <<_ACEOF
23961/* confdefs.h. */
23962_ACEOF
23963cat confdefs.h >>conftest.$ac_ext
23964cat >>conftest.$ac_ext <<_ACEOF
23965/* end confdefs.h. */
23966#include <string>
23967int
23968main ()
23969{
23970std::string foo, bar;
23971 foo.compare(bar);
23972 foo.compare(1, 1, bar);
23973 foo.compare(1, 1, bar, 1, 1);
23974 foo.compare("");
23975 foo.compare(1, 1, "");
23976 foo.compare(1, 1, "", 2);
23977 ;
23978 return 0;
23979}
23980_ACEOF
23981rm -f conftest.$ac_objext
23982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23983 (eval $ac_compile) 2>conftest.er1
a848cd7e 23984 ac_status=$?
ac1cb8d3
VS
23985 grep -v '^ *+' conftest.er1 >conftest.err
23986 rm -f conftest.er1
23987 cat conftest.err >&5
a848cd7e
SC
23988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989 (exit $ac_status); } &&
64b75e64 23990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23992 (eval $ac_try) 2>&5
23993 ac_status=$?
23994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); }; } &&
23996 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23998 (eval $ac_try) 2>&5
23999 ac_status=$?
24000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001 (exit $ac_status); }; }; then
24002 echo "$as_me:$LINENO: result: yes" >&5
24003echo "${ECHO_T}yes" >&6
24004 cat >>confdefs.h <<\_ACEOF
24005#define HAVE_STD_STRING_COMPARE 1
24006_ACEOF
24007
24008else
24009 echo "$as_me: failed program was:" >&5
24010sed 's/^/| /' conftest.$ac_ext >&5
24011
24012echo "$as_me:$LINENO: result: no" >&5
24013echo "${ECHO_T}no" >&6
24014fi
ac1cb8d3 24015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24016
24017 if test "${ac_cv_header_hash_map+set}" = set; then
24018 echo "$as_me:$LINENO: checking for hash_map" >&5
24019echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24020if test "${ac_cv_header_hash_map+set}" = set; then
24021 echo $ECHO_N "(cached) $ECHO_C" >&6
24022fi
24023echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24024echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24025else
24026 # Is the header compilable?
24027echo "$as_me:$LINENO: checking hash_map usability" >&5
24028echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
24029cat >conftest.$ac_ext <<_ACEOF
24030/* confdefs.h. */
24031_ACEOF
24032cat confdefs.h >>conftest.$ac_ext
24033cat >>conftest.$ac_ext <<_ACEOF
24034/* end confdefs.h. */
24035$ac_includes_default
24036#include <hash_map>
24037_ACEOF
24038rm -f conftest.$ac_objext
24039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24040 (eval $ac_compile) 2>conftest.er1
bdcade0a 24041 ac_status=$?
ac1cb8d3
VS
24042 grep -v '^ *+' conftest.er1 >conftest.err
24043 rm -f conftest.er1
24044 cat conftest.err >&5
bdcade0a
MB
24045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24046 (exit $ac_status); } &&
64b75e64 24047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24049 (eval $ac_try) 2>&5
24050 ac_status=$?
24051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); }; } &&
24053 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24055 (eval $ac_try) 2>&5
24056 ac_status=$?
24057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058 (exit $ac_status); }; }; then
24059 ac_header_compiler=yes
24060else
24061 echo "$as_me: failed program was:" >&5
24062sed 's/^/| /' conftest.$ac_ext >&5
24063
24064ac_header_compiler=no
24065fi
ac1cb8d3 24066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24067echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24068echo "${ECHO_T}$ac_header_compiler" >&6
24069
24070# Is the header present?
24071echo "$as_me:$LINENO: checking hash_map presence" >&5
24072echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
24073cat >conftest.$ac_ext <<_ACEOF
24074/* confdefs.h. */
24075_ACEOF
24076cat confdefs.h >>conftest.$ac_ext
24077cat >>conftest.$ac_ext <<_ACEOF
24078/* end confdefs.h. */
24079#include <hash_map>
24080_ACEOF
24081if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24083 ac_status=$?
24084 grep -v '^ *+' conftest.er1 >conftest.err
24085 rm -f conftest.er1
24086 cat conftest.err >&5
24087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088 (exit $ac_status); } >/dev/null; then
24089 if test -s conftest.err; then
24090 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24091 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24092 else
24093 ac_cpp_err=
24094 fi
24095else
24096 ac_cpp_err=yes
24097fi
24098if test -z "$ac_cpp_err"; then
24099 ac_header_preproc=yes
24100else
24101 echo "$as_me: failed program was:" >&5
24102sed 's/^/| /' conftest.$ac_ext >&5
24103
24104 ac_header_preproc=no
24105fi
24106rm -f conftest.err conftest.$ac_ext
24107echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24108echo "${ECHO_T}$ac_header_preproc" >&6
24109
24110# So? What about this header?
ac1cb8d3
VS
24111case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24112 yes:no: )
bdcade0a
MB
24113 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24114echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24115 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
24116echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
24117 ac_header_preproc=yes
bdcade0a 24118 ;;
ac1cb8d3 24119 no:yes:* )
bdcade0a
MB
24120 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
24121echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24122 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
24123echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
24124 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
24125echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
24126 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
24127echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24128 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
24129echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24130 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
24131echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24132 (
24133 cat <<\_ASBOX
ac1cb8d3
VS
24134## ----------------------------------------- ##
24135## Report this to wx-dev@lists.wxwidgets.org ##
24136## ----------------------------------------- ##
bdcade0a
MB
24137_ASBOX
24138 ) |
24139 sed "s/^/$as_me: WARNING: /" >&2
24140 ;;
24141esac
24142echo "$as_me:$LINENO: checking for hash_map" >&5
24143echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24144if test "${ac_cv_header_hash_map+set}" = set; then
24145 echo $ECHO_N "(cached) $ECHO_C" >&6
24146else
24147 ac_cv_header_hash_map=$ac_header_preproc
24148fi
24149echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24150echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24151
24152fi
24153if test $ac_cv_header_hash_map = yes; then
24154 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24155echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24156 cat >conftest.$ac_ext <<_ACEOF
24157/* confdefs.h. */
24158_ACEOF
24159cat confdefs.h >>conftest.$ac_ext
24160cat >>conftest.$ac_ext <<_ACEOF
24161/* end confdefs.h. */
24162#include <hash_map>
24163 #include <hash_set>
24164int
24165main ()
24166{
24167std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
24168 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
24169 ;
24170 return 0;
24171}
24172_ACEOF
24173rm -f conftest.$ac_objext
24174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24175 (eval $ac_compile) 2>conftest.er1
bdcade0a 24176 ac_status=$?
ac1cb8d3
VS
24177 grep -v '^ *+' conftest.er1 >conftest.err
24178 rm -f conftest.er1
24179 cat conftest.err >&5
bdcade0a
MB
24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); } &&
64b75e64 24182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24184 (eval $ac_try) 2>&5
24185 ac_status=$?
24186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187 (exit $ac_status); }; } &&
24188 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24190 (eval $ac_try) 2>&5
24191 ac_status=$?
24192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); }; }; then
24194 echo "$as_me:$LINENO: result: yes" >&5
24195echo "${ECHO_T}yes" >&6
24196 cat >>confdefs.h <<\_ACEOF
24197#define HAVE_HASH_MAP 1
24198_ACEOF
24199
24200 cat >>confdefs.h <<\_ACEOF
24201#define HAVE_STD_HASH_MAP 1
24202_ACEOF
24203
24204else
24205 echo "$as_me: failed program was:" >&5
24206sed 's/^/| /' conftest.$ac_ext >&5
24207
24208echo "$as_me:$LINENO: result: no" >&5
24209echo "${ECHO_T}no" >&6
24210fi
ac1cb8d3 24211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24212
24213fi
24214
24215
24216
24217 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24218 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24219echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24220if test "${ac_cv_header_ext_hash_map+set}" = set; then
24221 echo $ECHO_N "(cached) $ECHO_C" >&6
24222fi
24223echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24224echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24225else
24226 # Is the header compilable?
24227echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
24228echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
24229cat >conftest.$ac_ext <<_ACEOF
24230/* confdefs.h. */
24231_ACEOF
24232cat confdefs.h >>conftest.$ac_ext
24233cat >>conftest.$ac_ext <<_ACEOF
24234/* end confdefs.h. */
24235$ac_includes_default
24236#include <ext/hash_map>
24237_ACEOF
24238rm -f conftest.$ac_objext
24239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24240 (eval $ac_compile) 2>conftest.er1
bdcade0a 24241 ac_status=$?
ac1cb8d3
VS
24242 grep -v '^ *+' conftest.er1 >conftest.err
24243 rm -f conftest.er1
24244 cat conftest.err >&5
bdcade0a
MB
24245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246 (exit $ac_status); } &&
64b75e64 24247 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24249 (eval $ac_try) 2>&5
24250 ac_status=$?
24251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252 (exit $ac_status); }; } &&
24253 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24255 (eval $ac_try) 2>&5
24256 ac_status=$?
24257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258 (exit $ac_status); }; }; then
24259 ac_header_compiler=yes
24260else
24261 echo "$as_me: failed program was:" >&5
24262sed 's/^/| /' conftest.$ac_ext >&5
24263
24264ac_header_compiler=no
24265fi
ac1cb8d3 24266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24267echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24268echo "${ECHO_T}$ac_header_compiler" >&6
24269
24270# Is the header present?
24271echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
24272echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
24273cat >conftest.$ac_ext <<_ACEOF
24274/* confdefs.h. */
24275_ACEOF
24276cat confdefs.h >>conftest.$ac_ext
24277cat >>conftest.$ac_ext <<_ACEOF
24278/* end confdefs.h. */
24279#include <ext/hash_map>
24280_ACEOF
24281if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24283 ac_status=$?
24284 grep -v '^ *+' conftest.er1 >conftest.err
24285 rm -f conftest.er1
24286 cat conftest.err >&5
24287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24288 (exit $ac_status); } >/dev/null; then
24289 if test -s conftest.err; then
24290 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24291 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24292 else
24293 ac_cpp_err=
24294 fi
24295else
24296 ac_cpp_err=yes
24297fi
24298if test -z "$ac_cpp_err"; then
24299 ac_header_preproc=yes
24300else
24301 echo "$as_me: failed program was:" >&5
24302sed 's/^/| /' conftest.$ac_ext >&5
24303
24304 ac_header_preproc=no
24305fi
24306rm -f conftest.err conftest.$ac_ext
24307echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24308echo "${ECHO_T}$ac_header_preproc" >&6
24309
24310# So? What about this header?
ac1cb8d3
VS
24311case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24312 yes:no: )
bdcade0a
MB
24313 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24314echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24315 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
24316echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
24317 ac_header_preproc=yes
bdcade0a 24318 ;;
ac1cb8d3 24319 no:yes:* )
bdcade0a
MB
24320 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
24321echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24322 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
24323echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
24324 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
24325echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
24326 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
24327echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24328 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
24329echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24330 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
24331echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24332 (
24333 cat <<\_ASBOX
ac1cb8d3
VS
24334## ----------------------------------------- ##
24335## Report this to wx-dev@lists.wxwidgets.org ##
24336## ----------------------------------------- ##
bdcade0a
MB
24337_ASBOX
24338 ) |
24339 sed "s/^/$as_me: WARNING: /" >&2
24340 ;;
24341esac
24342echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24343echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24344if test "${ac_cv_header_ext_hash_map+set}" = set; then
24345 echo $ECHO_N "(cached) $ECHO_C" >&6
24346else
24347 ac_cv_header_ext_hash_map=$ac_header_preproc
24348fi
24349echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24350echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24351
24352fi
24353if test $ac_cv_header_ext_hash_map = yes; then
24354 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24355echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24356 cat >conftest.$ac_ext <<_ACEOF
24357/* confdefs.h. */
24358_ACEOF
24359cat confdefs.h >>conftest.$ac_ext
24360cat >>conftest.$ac_ext <<_ACEOF
24361/* end confdefs.h. */
24362#include <ext/hash_map>
24363 #include <ext/hash_set>
24364int
24365main ()
24366{
24367__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24368 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24369 ;
24370 return 0;
24371}
24372_ACEOF
24373rm -f conftest.$ac_objext
24374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24375 (eval $ac_compile) 2>conftest.er1
bdcade0a 24376 ac_status=$?
ac1cb8d3
VS
24377 grep -v '^ *+' conftest.er1 >conftest.err
24378 rm -f conftest.er1
24379 cat conftest.err >&5
bdcade0a
MB
24380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381 (exit $ac_status); } &&
64b75e64 24382 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24384 (eval $ac_try) 2>&5
24385 ac_status=$?
24386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387 (exit $ac_status); }; } &&
24388 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24390 (eval $ac_try) 2>&5
24391 ac_status=$?
24392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393 (exit $ac_status); }; }; then
24394 echo "$as_me:$LINENO: result: yes" >&5
24395echo "${ECHO_T}yes" >&6
24396 cat >>confdefs.h <<\_ACEOF
24397#define HAVE_EXT_HASH_MAP 1
24398_ACEOF
24399
24400 cat >>confdefs.h <<\_ACEOF
24401#define HAVE_GNU_CXX_HASH_MAP 1
24402_ACEOF
24403
24404else
24405 echo "$as_me: failed program was:" >&5
24406sed 's/^/| /' conftest.$ac_ext >&5
24407
24408echo "$as_me:$LINENO: result: no" >&5
24409echo "${ECHO_T}no" >&6
24410fi
ac1cb8d3 24411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24412
24413fi
24414
24415
a848cd7e
SC
24416fi
24417
24418
24419SEARCH_INCLUDE="\
24420 /usr/local/include \
24421 \
24422 /usr/Motif-2.1/include \
24423 /usr/Motif-1.2/include \
24424 /usr/include/Motif1.2 \
a848cd7e
SC
24425 \
24426 /usr/dt/include \
24427 /usr/openwin/include \
24428 \
24429 /usr/include/Xm \
24430 \
24431 /usr/X11R6/include \
24432 /usr/X11R6.4/include \
24433 /usr/X11R5/include \
24434 /usr/X11R4/include \
24435 \
24436 /usr/include/X11R6 \
24437 /usr/include/X11R5 \
24438 /usr/include/X11R4 \
24439 \
24440 /usr/local/X11R6/include \
24441 /usr/local/X11R5/include \
24442 /usr/local/X11R4/include \
24443 \
24444 /usr/local/include/X11R6 \
24445 /usr/local/include/X11R5 \
24446 /usr/local/include/X11R4 \
24447 \
24448 /usr/X11/include \
24449 /usr/include/X11 \
24450 /usr/local/X11/include \
24451 /usr/local/include/X11 \
24452 \
a848cd7e 24453 /usr/XFree86/include/X11 \
e051b34e
MW
24454 /usr/pkg/include \
24455 \
a848cd7e
SC
24456 /usr/openwin/share/include"
24457
6f9cf1e6 24458echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 24459echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24460
24461case "${host}" in
24462 *-*-irix6* )
24463 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24464 echo $ECHO_N "(cached) $ECHO_C" >&6
24465else
24466
c687b303
VZ
24467 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24468 for e in a so sl dylib dll.a; do
24469 libc="$d/libc.$e"
24470 if test -f $libc; then
24471 save_LIBS="$LIBS"
24472 LIBS="$libc"
24473 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24474int main() { return 0; }
24475_ACEOF
24476rm -f conftest.$ac_objext conftest$ac_exeext
24477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24478 (eval $ac_link) 2>conftest.er1
24479 ac_status=$?
24480 grep -v '^ *+' conftest.er1 >conftest.err
24481 rm -f conftest.er1
24482 cat conftest.err >&5
24483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484 (exit $ac_status); } &&
64b75e64 24485 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
24486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24487 (eval $ac_try) 2>&5
24488 ac_status=$?
24489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490 (exit $ac_status); }; } &&
24491 { ac_try='test -s conftest$ac_exeext'
24492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24493 (eval $ac_try) 2>&5
24494 ac_status=$?
24495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24496 (exit $ac_status); }; }; then
24497 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24498else
24499 echo "$as_me: failed program was:" >&5
24500sed 's/^/| /' conftest.$ac_ext >&5
24501
24502fi
24503rm -f conftest.err conftest.$ac_objext \
24504 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24505 LIBS="$save_LIBS"
24506 if test "x$wx_cv_std_libpath" != "x"; then
24507 break 2
24508 fi
24509 fi
24510 done
24511 done
24512 if test "x$wx_cv_std_libpath" = "x"; then
24513 wx_cv_std_libpath="lib"
0ad5d837 24514 fi
0ad5d837
VZ
24515
24516
24517fi
6f9cf1e6
MW
24518
24519 ;;
24520
24521 *-*-solaris2* )
24522 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24523 wx_cv_std_libpath="lib/64"
24524 else
24525 wx_cv_std_libpath="lib"
24526 fi
24527 ;;
24528
24529 *-*-linux* )
24530 if test "$ac_cv_sizeof_void_p" = 8 -a \
24531 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24532 wx_cv_std_libpath="lib64"
24533 else
24534 wx_cv_std_libpath="lib"
24535 fi
c687b303
VZ
24536 ;;
24537
24538 *)
24539 wx_cv_std_libpath="lib";
24540 ;;
24541esac
0ad5d837 24542
6f9cf1e6
MW
24543echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24544echo "${ECHO_T}$wx_cv_std_libpath" >&6
24545
24546SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24547
3eca31dc
MW
24548if test "$build" != "$host" -a "$GCC" = yes; then
24549 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24550 cross_root=`dirname $cross_root`
24551 cross_root=`dirname $cross_root`
24552
24553 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24554 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24555 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24556
24557 if test -z "$PKG_CONFIG_PATH"; then
24558 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24559 export PKG_CONFIG_PATH
24560 fi
24561
24562 if test -z "$x_includes" -o "$x_includes" = NONE; then
24563
24564ac_find_includes=
24565for ac_dir in $SEARCH_INCLUDE /usr/include;
24566 do
24567 if test -f "$ac_dir/X11/Intrinsic.h"; then
24568 ac_find_includes=$ac_dir
24569 break
24570 fi
24571 done
24572
24573 x_includes=$ac_find_includes
24574 fi
24575 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24576
0ad5d837
VZ
24577 ac_find_libraries=
24578 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24579 do
24580 for ac_extension in a so sl dylib dll.a; do
24581 if test -f "$ac_dir/libXt.$ac_extension"; then
24582 ac_find_libraries=$ac_dir
24583 break 2
24584 fi
24585 done
24586 done
24587
24588 x_libraries=$ac_find_libraries
24589 fi
24590 fi
24591fi
24592
a848cd7e
SC
24593
24594cat >confcache <<\_ACEOF
24595# This file is a shell script that caches the results of configure
24596# tests run on this system so they can be shared between configure
24597# scripts and configure runs, see configure's option --config-cache.
24598# It is not useful on other systems. If it contains results you don't
24599# want to keep, you may remove or edit it.
24600#
24601# config.status only pays attention to the cache file if you give it
24602# the --recheck option to rerun configure.
24603#
24604# `ac_cv_env_foo' variables (set or unset) will be overridden when
24605# loading this file, other *unset* `ac_cv_foo' will be assigned the
24606# following values.
24607
24608_ACEOF
24609
24610# The following way of writing the cache mishandles newlines in values,
24611# but we know of no workaround that is simple, portable, and efficient.
24612# So, don't put newlines in cache variables' values.
24613# Ultrix sh set writes to stderr and can't be redirected directly,
24614# and sets the high bit in the cache file unless we assign to the vars.
24615{
24616 (set) 2>&1 |
24617 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24618 *ac_space=\ *)
24619 # `set' does not quote correctly, so add quotes (double-quote
24620 # substitution turns \\\\ into \\, and sed turns \\ into \).
24621 sed -n \
ac1cb8d3
VS
24622 "s/'/'\\\\''/g;
24623 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24624 ;;
24625 *)
24626 # `set' quotes correctly as required by POSIX, so do not add quotes.
24627 sed -n \
ac1cb8d3 24628 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24629 ;;
24630 esac;
24631} |
24632 sed '
24633 t clear
24634 : clear
24635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24636 t end
24637 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24638 : end' >>confcache
24639if diff $cache_file confcache >/dev/null 2>&1; then :; else
24640 if test -w $cache_file; then
24641 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24642 cat confcache >$cache_file
24643 else
24644 echo "not updating unwritable cache $cache_file"
24645 fi
24646fi
24647rm -f confcache
24648
24649if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24650 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24651echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24652if test "${wx_cv_lib_glibc21+set}" = set; then
24653 echo $ECHO_N "(cached) $ECHO_C" >&6
24654else
24655
24656 cat >conftest.$ac_ext <<_ACEOF
24657/* confdefs.h. */
24658_ACEOF
24659cat confdefs.h >>conftest.$ac_ext
24660cat >>conftest.$ac_ext <<_ACEOF
24661/* end confdefs.h. */
24662#include <features.h>
24663int
24664main ()
24665{
24666
24667 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24668 not glibc 2.1
a848cd7e
SC
24669 #endif
24670
24671 ;
24672 return 0;
24673}
24674_ACEOF
24675rm -f conftest.$ac_objext
24676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24677 (eval $ac_compile) 2>conftest.er1
a848cd7e 24678 ac_status=$?
ac1cb8d3
VS
24679 grep -v '^ *+' conftest.er1 >conftest.err
24680 rm -f conftest.er1
24681 cat conftest.err >&5
a848cd7e
SC
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); } &&
64b75e64 24684 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24686 (eval $ac_try) 2>&5
24687 ac_status=$?
24688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); }; } &&
24690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24692 (eval $ac_try) 2>&5
24693 ac_status=$?
24694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24695 (exit $ac_status); }; }; then
24696
24697 wx_cv_lib_glibc21=yes
24698
24699else
24700 echo "$as_me: failed program was:" >&5
24701sed 's/^/| /' conftest.$ac_ext >&5
24702
24703
24704 wx_cv_lib_glibc21=no
24705
24706
24707fi
ac1cb8d3 24708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24709
24710fi
24711echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24712echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24713 if test "$wx_cv_lib_glibc21" = "yes"; then
24714 cat >>confdefs.h <<\_ACEOF
24715#define wxHAVE_GLIBC2 1
24716_ACEOF
24717
24718 fi
24719fi
24720
24721if test "x$wx_cv_lib_glibc21" = "xyes"; then
24722 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24723 cat >>confdefs.h <<\_ACEOF
24724#define _GNU_SOURCE 1
24725_ACEOF
24726
24727 fi
24728fi
24729
5d7b7554
VZ
24730have_cos=0
24731have_floor=0
a848cd7e 24732
5d7b7554
VZ
24733for ac_func in cos
24734do
24735as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24736echo "$as_me:$LINENO: checking for $ac_func" >&5
24737echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24738if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24739 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24740else
5d7b7554 24741 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24742/* confdefs.h. */
24743_ACEOF
24744cat confdefs.h >>conftest.$ac_ext
24745cat >>conftest.$ac_ext <<_ACEOF
24746/* end confdefs.h. */
5d7b7554
VZ
24747/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24749#define $ac_func innocuous_$ac_func
24750
24751/* System header to define __stub macros and hopefully few prototypes,
24752 which can conflict with char $ac_func (); below.
24753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24754 <limits.h> exists even on freestanding compilers. */
24755
24756#ifdef __STDC__
24757# include <limits.h>
24758#else
24759# include <assert.h>
24760#endif
24761
24762#undef $ac_func
24763
24764/* Override any gcc2 internal prototype to avoid an error. */
24765#ifdef __cplusplus
24766extern "C"
24767{
24768#endif
24769/* We use char because int might match the return type of a gcc2
24770 builtin and then its argument prototype would still apply. */
24771char $ac_func ();
24772/* The GNU C library defines this for functions which it implements
24773 to always fail with ENOSYS. Some functions are actually named
24774 something starting with __ and the normal name is an alias. */
24775#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24776choke me
24777#else
24778char (*f) () = $ac_func;
24779#endif
24780#ifdef __cplusplus
24781}
24782#endif
24783
24784int
24785main ()
24786{
24787return f != $ac_func;
24788 ;
24789 return 0;
24790}
a848cd7e 24791_ACEOF
5d7b7554
VZ
24792rm -f conftest.$ac_objext conftest$ac_exeext
24793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24794 (eval $ac_link) 2>conftest.er1
a848cd7e 24795 ac_status=$?
ac1cb8d3
VS
24796 grep -v '^ *+' conftest.er1 >conftest.err
24797 rm -f conftest.er1
24798 cat conftest.err >&5
a848cd7e
SC
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); } &&
64b75e64 24801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24803 (eval $ac_try) 2>&5
24804 ac_status=$?
24805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806 (exit $ac_status); }; } &&
5d7b7554 24807 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24809 (eval $ac_try) 2>&5
24810 ac_status=$?
24811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); }; }; then
5d7b7554 24813 eval "$as_ac_var=yes"
a848cd7e
SC
24814else
24815 echo "$as_me: failed program was:" >&5
24816sed 's/^/| /' conftest.$ac_ext >&5
24817
5d7b7554 24818eval "$as_ac_var=no"
a848cd7e 24819fi
5d7b7554
VZ
24820rm -f conftest.err conftest.$ac_objext \
24821 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24822fi
5d7b7554
VZ
24823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24824echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24825if test `eval echo '${'$as_ac_var'}'` = yes; then
24826 cat >>confdefs.h <<_ACEOF
24827#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24828_ACEOF
24829 have_cos=1
a848cd7e 24830fi
5d7b7554 24831done
a848cd7e 24832
ab0f0edd 24833
5d7b7554 24834for ac_func in floor
a848cd7e
SC
24835do
24836as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24837echo "$as_me:$LINENO: checking for $ac_func" >&5
24838echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24839if eval "test \"\${$as_ac_var+set}\" = set"; then
24840 echo $ECHO_N "(cached) $ECHO_C" >&6
24841else
24842 cat >conftest.$ac_ext <<_ACEOF
24843/* confdefs.h. */
24844_ACEOF
24845cat confdefs.h >>conftest.$ac_ext
24846cat >>conftest.$ac_ext <<_ACEOF
24847/* end confdefs.h. */
ac1cb8d3
VS
24848/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24850#define $ac_func innocuous_$ac_func
24851
a848cd7e
SC
24852/* System header to define __stub macros and hopefully few prototypes,
24853 which can conflict with char $ac_func (); below.
24854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24855 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24856
a848cd7e
SC
24857#ifdef __STDC__
24858# include <limits.h>
24859#else
24860# include <assert.h>
24861#endif
ac1cb8d3
VS
24862
24863#undef $ac_func
24864
a848cd7e
SC
24865/* Override any gcc2 internal prototype to avoid an error. */
24866#ifdef __cplusplus
24867extern "C"
24868{
24869#endif
24870/* We use char because int might match the return type of a gcc2
24871 builtin and then its argument prototype would still apply. */
24872char $ac_func ();
24873/* The GNU C library defines this for functions which it implements
24874 to always fail with ENOSYS. Some functions are actually named
24875 something starting with __ and the normal name is an alias. */
24876#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24877choke me
24878#else
24879char (*f) () = $ac_func;
24880#endif
24881#ifdef __cplusplus
24882}
24883#endif
24884
24885int
24886main ()
24887{
24888return f != $ac_func;
24889 ;
24890 return 0;
24891}
24892_ACEOF
24893rm -f conftest.$ac_objext conftest$ac_exeext
24894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24895 (eval $ac_link) 2>conftest.er1
a848cd7e 24896 ac_status=$?
ac1cb8d3
VS
24897 grep -v '^ *+' conftest.er1 >conftest.err
24898 rm -f conftest.er1
24899 cat conftest.err >&5
a848cd7e
SC
24900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); } &&
64b75e64 24902 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24904 (eval $ac_try) 2>&5
24905 ac_status=$?
24906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907 (exit $ac_status); }; } &&
24908 { ac_try='test -s conftest$ac_exeext'
24909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24910 (eval $ac_try) 2>&5
24911 ac_status=$?
24912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913 (exit $ac_status); }; }; then
24914 eval "$as_ac_var=yes"
24915else
24916 echo "$as_me: failed program was:" >&5
24917sed 's/^/| /' conftest.$ac_ext >&5
24918
24919eval "$as_ac_var=no"
24920fi
24921rm -f conftest.err conftest.$ac_objext \
24922 conftest$ac_exeext conftest.$ac_ext
24923fi
24924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24925echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24926if test `eval echo '${'$as_ac_var'}'` = yes; then
24927 cat >>confdefs.h <<_ACEOF
24928#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24929_ACEOF
24930 have_floor=1
24931fi
24932done
24933
24934echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24935echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24936if test "$have_cos" = 1 -a "$have_floor" = 1; then
24937 echo "$as_me:$LINENO: result: yes" >&5
24938echo "${ECHO_T}yes" >&6
24939else
24940 echo "$as_me:$LINENO: result: no" >&5
24941echo "${ECHO_T}no" >&6
24942 LIBS="$LIBS -lm"
24943 # use different functions to avoid configure caching
24944 have_sin=0
24945 have_ceil=0
24946
24947for ac_func in sin
24948do
24949as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24950echo "$as_me:$LINENO: checking for $ac_func" >&5
24951echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24952if eval "test \"\${$as_ac_var+set}\" = set"; then
24953 echo $ECHO_N "(cached) $ECHO_C" >&6
24954else
24955 cat >conftest.$ac_ext <<_ACEOF
24956/* confdefs.h. */
24957_ACEOF
24958cat confdefs.h >>conftest.$ac_ext
24959cat >>conftest.$ac_ext <<_ACEOF
24960/* end confdefs.h. */
24961/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24963#define $ac_func innocuous_$ac_func
24964
24965/* System header to define __stub macros and hopefully few prototypes,
24966 which can conflict with char $ac_func (); below.
24967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24968 <limits.h> exists even on freestanding compilers. */
24969
24970#ifdef __STDC__
24971# include <limits.h>
24972#else
24973# include <assert.h>
24974#endif
24975
24976#undef $ac_func
24977
24978/* Override any gcc2 internal prototype to avoid an error. */
24979#ifdef __cplusplus
24980extern "C"
24981{
24982#endif
24983/* We use char because int might match the return type of a gcc2
24984 builtin and then its argument prototype would still apply. */
24985char $ac_func ();
24986/* The GNU C library defines this for functions which it implements
24987 to always fail with ENOSYS. Some functions are actually named
24988 something starting with __ and the normal name is an alias. */
24989#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24990choke me
24991#else
24992char (*f) () = $ac_func;
24993#endif
24994#ifdef __cplusplus
24995}
24996#endif
24997
24998int
24999main ()
25000{
25001return f != $ac_func;
25002 ;
25003 return 0;
25004}
25005_ACEOF
25006rm -f conftest.$ac_objext conftest$ac_exeext
25007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25008 (eval $ac_link) 2>conftest.er1
25009 ac_status=$?
25010 grep -v '^ *+' conftest.er1 >conftest.err
25011 rm -f conftest.er1
25012 cat conftest.err >&5
25013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014 (exit $ac_status); } &&
64b75e64 25015 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25017 (eval $ac_try) 2>&5
25018 ac_status=$?
25019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020 (exit $ac_status); }; } &&
25021 { ac_try='test -s conftest$ac_exeext'
25022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25023 (eval $ac_try) 2>&5
25024 ac_status=$?
25025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026 (exit $ac_status); }; }; then
25027 eval "$as_ac_var=yes"
25028else
25029 echo "$as_me: failed program was:" >&5
25030sed 's/^/| /' conftest.$ac_ext >&5
25031
25032eval "$as_ac_var=no"
25033fi
25034rm -f conftest.err conftest.$ac_objext \
25035 conftest$ac_exeext conftest.$ac_ext
25036fi
25037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25038echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25039if test `eval echo '${'$as_ac_var'}'` = yes; then
25040 cat >>confdefs.h <<_ACEOF
25041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25042_ACEOF
25043 have_sin=1
25044fi
25045done
25046
25047
25048for ac_func in ceil
25049do
25050as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25051echo "$as_me:$LINENO: checking for $ac_func" >&5
25052echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25053if eval "test \"\${$as_ac_var+set}\" = set"; then
25054 echo $ECHO_N "(cached) $ECHO_C" >&6
25055else
25056 cat >conftest.$ac_ext <<_ACEOF
25057/* confdefs.h. */
25058_ACEOF
25059cat confdefs.h >>conftest.$ac_ext
25060cat >>conftest.$ac_ext <<_ACEOF
25061/* end confdefs.h. */
25062/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25064#define $ac_func innocuous_$ac_func
25065
25066/* System header to define __stub macros and hopefully few prototypes,
25067 which can conflict with char $ac_func (); below.
25068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25069 <limits.h> exists even on freestanding compilers. */
25070
25071#ifdef __STDC__
25072# include <limits.h>
25073#else
25074# include <assert.h>
25075#endif
25076
25077#undef $ac_func
25078
25079/* Override any gcc2 internal prototype to avoid an error. */
25080#ifdef __cplusplus
25081extern "C"
25082{
25083#endif
25084/* We use char because int might match the return type of a gcc2
25085 builtin and then its argument prototype would still apply. */
25086char $ac_func ();
25087/* The GNU C library defines this for functions which it implements
25088 to always fail with ENOSYS. Some functions are actually named
25089 something starting with __ and the normal name is an alias. */
25090#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25091choke me
25092#else
25093char (*f) () = $ac_func;
25094#endif
25095#ifdef __cplusplus
25096}
25097#endif
25098
25099int
25100main ()
25101{
25102return f != $ac_func;
25103 ;
25104 return 0;
25105}
25106_ACEOF
25107rm -f conftest.$ac_objext conftest$ac_exeext
25108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25109 (eval $ac_link) 2>conftest.er1
25110 ac_status=$?
25111 grep -v '^ *+' conftest.er1 >conftest.err
25112 rm -f conftest.er1
25113 cat conftest.err >&5
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); } &&
64b75e64 25116 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25118 (eval $ac_try) 2>&5
25119 ac_status=$?
25120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121 (exit $ac_status); }; } &&
25122 { ac_try='test -s conftest$ac_exeext'
25123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25124 (eval $ac_try) 2>&5
25125 ac_status=$?
25126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127 (exit $ac_status); }; }; then
25128 eval "$as_ac_var=yes"
25129else
25130 echo "$as_me: failed program was:" >&5
25131sed 's/^/| /' conftest.$ac_ext >&5
25132
25133eval "$as_ac_var=no"
25134fi
25135rm -f conftest.err conftest.$ac_objext \
25136 conftest$ac_exeext conftest.$ac_ext
25137fi
25138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25139echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25140if test `eval echo '${'$as_ac_var'}'` = yes; then
25141 cat >>confdefs.h <<_ACEOF
25142#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25143_ACEOF
25144 have_ceil=1
25145fi
25146done
25147
25148 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
25149echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
25150 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
25151 echo "$as_me:$LINENO: result: yes" >&5
25152echo "${ECHO_T}yes" >&6
25153 else
25154 echo "$as_me:$LINENO: result: no" >&5
25155echo "${ECHO_T}no" >&6
25156 # not sure we should warn the user, crash, etc.
25157 fi
25158fi
25159
25160
25161
25162if test "$wxUSE_REGEX" != "no"; then
25163 cat >>confdefs.h <<\_ACEOF
25164#define wxUSE_REGEX 1
25165_ACEOF
25166
25167
25168 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25169 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
25170echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
25171 wxUSE_REGEX=builtin
25172 fi
25173
25174 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25175 if test "${ac_cv_header_regex_h+set}" = set; then
25176 echo "$as_me:$LINENO: checking for regex.h" >&5
25177echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25178if test "${ac_cv_header_regex_h+set}" = set; then
25179 echo $ECHO_N "(cached) $ECHO_C" >&6
25180fi
25181echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25182echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25183else
25184 # Is the header compilable?
25185echo "$as_me:$LINENO: checking regex.h usability" >&5
25186echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
25187cat >conftest.$ac_ext <<_ACEOF
25188/* confdefs.h. */
25189_ACEOF
25190cat confdefs.h >>conftest.$ac_ext
25191cat >>conftest.$ac_ext <<_ACEOF
25192/* end confdefs.h. */
25193$ac_includes_default
25194#include <regex.h>
25195_ACEOF
25196rm -f conftest.$ac_objext
25197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25198 (eval $ac_compile) 2>conftest.er1
25199 ac_status=$?
25200 grep -v '^ *+' conftest.er1 >conftest.err
25201 rm -f conftest.er1
25202 cat conftest.err >&5
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); } &&
64b75e64 25205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25207 (eval $ac_try) 2>&5
25208 ac_status=$?
25209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); }; } &&
25211 { ac_try='test -s conftest.$ac_objext'
25212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25213 (eval $ac_try) 2>&5
25214 ac_status=$?
25215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); }; }; then
25217 ac_header_compiler=yes
25218else
25219 echo "$as_me: failed program was:" >&5
25220sed 's/^/| /' conftest.$ac_ext >&5
25221
25222ac_header_compiler=no
25223fi
25224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25225echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25226echo "${ECHO_T}$ac_header_compiler" >&6
25227
25228# Is the header present?
25229echo "$as_me:$LINENO: checking regex.h presence" >&5
25230echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
25231cat >conftest.$ac_ext <<_ACEOF
25232/* confdefs.h. */
25233_ACEOF
25234cat confdefs.h >>conftest.$ac_ext
25235cat >>conftest.$ac_ext <<_ACEOF
25236/* end confdefs.h. */
25237#include <regex.h>
25238_ACEOF
25239if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25241 ac_status=$?
25242 grep -v '^ *+' conftest.er1 >conftest.err
25243 rm -f conftest.er1
25244 cat conftest.err >&5
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); } >/dev/null; then
25247 if test -s conftest.err; then
25248 ac_cpp_err=$ac_cxx_preproc_warn_flag
25249 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25250 else
25251 ac_cpp_err=
25252 fi
25253else
25254 ac_cpp_err=yes
25255fi
25256if test -z "$ac_cpp_err"; then
25257 ac_header_preproc=yes
25258else
25259 echo "$as_me: failed program was:" >&5
25260sed 's/^/| /' conftest.$ac_ext >&5
25261
25262 ac_header_preproc=no
25263fi
25264rm -f conftest.err conftest.$ac_ext
25265echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25266echo "${ECHO_T}$ac_header_preproc" >&6
25267
25268# So? What about this header?
25269case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25270 yes:no: )
25271 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25272echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25273 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
25274echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
25275 ac_header_preproc=yes
25276 ;;
25277 no:yes:* )
25278 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
25279echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
25280 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
25281echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
25282 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
25283echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
25284 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
25285echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25286 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
25287echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
25288 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
25289echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
25290 (
25291 cat <<\_ASBOX
25292## ----------------------------------------- ##
25293## Report this to wx-dev@lists.wxwidgets.org ##
25294## ----------------------------------------- ##
25295_ASBOX
25296 ) |
25297 sed "s/^/$as_me: WARNING: /" >&2
25298 ;;
25299esac
25300echo "$as_me:$LINENO: checking for regex.h" >&5
25301echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25302if test "${ac_cv_header_regex_h+set}" = set; then
25303 echo $ECHO_N "(cached) $ECHO_C" >&6
25304else
25305 ac_cv_header_regex_h=$ac_header_preproc
25306fi
25307echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25308echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25309
25310fi
25311if test $ac_cv_header_regex_h = yes; then
25312
25313
25314for ac_func in regcomp re_search
25315do
25316as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25317echo "$as_me:$LINENO: checking for $ac_func" >&5
25318echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25319if eval "test \"\${$as_ac_var+set}\" = set"; then
25320 echo $ECHO_N "(cached) $ECHO_C" >&6
25321else
25322 cat >conftest.$ac_ext <<_ACEOF
25323/* confdefs.h. */
25324_ACEOF
25325cat confdefs.h >>conftest.$ac_ext
25326cat >>conftest.$ac_ext <<_ACEOF
25327/* end confdefs.h. */
25328/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25330#define $ac_func innocuous_$ac_func
25331
25332/* System header to define __stub macros and hopefully few prototypes,
25333 which can conflict with char $ac_func (); below.
25334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25335 <limits.h> exists even on freestanding compilers. */
25336
25337#ifdef __STDC__
25338# include <limits.h>
25339#else
25340# include <assert.h>
25341#endif
25342
25343#undef $ac_func
25344
25345/* Override any gcc2 internal prototype to avoid an error. */
25346#ifdef __cplusplus
25347extern "C"
25348{
25349#endif
25350/* We use char because int might match the return type of a gcc2
25351 builtin and then its argument prototype would still apply. */
25352char $ac_func ();
25353/* The GNU C library defines this for functions which it implements
25354 to always fail with ENOSYS. Some functions are actually named
25355 something starting with __ and the normal name is an alias. */
25356#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25357choke me
25358#else
25359char (*f) () = $ac_func;
25360#endif
25361#ifdef __cplusplus
25362}
25363#endif
25364
25365int
25366main ()
25367{
25368return f != $ac_func;
25369 ;
25370 return 0;
25371}
25372_ACEOF
25373rm -f conftest.$ac_objext conftest$ac_exeext
25374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25375 (eval $ac_link) 2>conftest.er1
25376 ac_status=$?
25377 grep -v '^ *+' conftest.er1 >conftest.err
25378 rm -f conftest.er1
25379 cat conftest.err >&5
25380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381 (exit $ac_status); } &&
64b75e64 25382 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25384 (eval $ac_try) 2>&5
25385 ac_status=$?
25386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387 (exit $ac_status); }; } &&
25388 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25390 (eval $ac_try) 2>&5
25391 ac_status=$?
25392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25393 (exit $ac_status); }; }; then
25394 eval "$as_ac_var=yes"
25395else
25396 echo "$as_me: failed program was:" >&5
25397sed 's/^/| /' conftest.$ac_ext >&5
25398
25399eval "$as_ac_var=no"
25400fi
ac1cb8d3
VS
25401rm -f conftest.err conftest.$ac_objext \
25402 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25403fi
25404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25405echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25406if test `eval echo '${'$as_ac_var'}'` = yes; then
25407 cat >>confdefs.h <<_ACEOF
25408#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25409_ACEOF
25410
25411fi
25412done
25413
25414fi
25415
25416
25417
25418 if test "x$ac_cv_func_regcomp" != "xyes"; then
25419 if test "$wxUSE_REGEX" = "sys" ; then
25420 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25421echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25422 { (exit 1); exit 1; }; }
25423 else
25424 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25425echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25426 wxUSE_REGEX=builtin
25427 fi
25428 else
25429 wxUSE_REGEX=sys
25430 cat >>confdefs.h <<\_ACEOF
25431#define WX_NO_REGEX_ADVANCED 1
25432_ACEOF
25433
25434 fi
25435 fi
25436fi
25437
25438
25439ZLIB_LINK=
25440if test "$wxUSE_ZLIB" != "no" ; then
25441 cat >>confdefs.h <<\_ACEOF
25442#define wxUSE_ZLIB 1
25443_ACEOF
25444
25445
25446 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25447 if test "$USE_DARWIN" = 1; then
25448 system_zlib_h_ok="yes"
25449 else
25450 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25451echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25452if test "${ac_cv_header_zlib_h+set}" = set; then
25453 echo $ECHO_N "(cached) $ECHO_C" >&6
25454else
25455 if test "$cross_compiling" = yes; then
25456 unset ac_cv_header_zlib_h
25457
25458else
25459 cat >conftest.$ac_ext <<_ACEOF
25460/* confdefs.h. */
25461_ACEOF
25462cat confdefs.h >>conftest.$ac_ext
25463cat >>conftest.$ac_ext <<_ACEOF
25464/* end confdefs.h. */
25465
25466 #include <zlib.h>
25467 #include <stdio.h>
25468
25469 int main()
25470 {
25471 FILE *f=fopen("conftestval", "w");
25472 if (!f) exit(1);
25473 fprintf(f, "%s",
25474 ZLIB_VERSION[0] == '1' &&
25475 (ZLIB_VERSION[2] > '1' ||
25476 (ZLIB_VERSION[2] == '1' &&
25477 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25478 exit(0);
25479 }
25480
25481_ACEOF
25482rm -f conftest$ac_exeext
25483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25484 (eval $ac_link) 2>&5
25485 ac_status=$?
25486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25489 (eval $ac_try) 2>&5
25490 ac_status=$?
25491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); }; }; then
25493 ac_cv_header_zlib_h=`cat conftestval`
25494else
25495 echo "$as_me: program exited with status $ac_status" >&5
25496echo "$as_me: failed program was:" >&5
25497sed 's/^/| /' conftest.$ac_ext >&5
25498
25499( exit $ac_status )
25500ac_cv_header_zlib_h=no
25501fi
ac1cb8d3 25502rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25503fi
25504
25505fi
25506echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25507echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25508 if test "${ac_cv_header_zlib_h+set}" = set; then
25509 echo "$as_me:$LINENO: checking for zlib.h" >&5
25510echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25511if test "${ac_cv_header_zlib_h+set}" = set; then
25512 echo $ECHO_N "(cached) $ECHO_C" >&6
25513fi
25514echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25515echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25516else
25517 # Is the header compilable?
25518echo "$as_me:$LINENO: checking zlib.h usability" >&5
25519echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25520cat >conftest.$ac_ext <<_ACEOF
25521/* confdefs.h. */
25522_ACEOF
25523cat confdefs.h >>conftest.$ac_ext
25524cat >>conftest.$ac_ext <<_ACEOF
25525/* end confdefs.h. */
25526$ac_includes_default
25527#include <zlib.h>
25528_ACEOF
25529rm -f conftest.$ac_objext
25530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25531 (eval $ac_compile) 2>conftest.er1
a848cd7e 25532 ac_status=$?
ac1cb8d3
VS
25533 grep -v '^ *+' conftest.er1 >conftest.err
25534 rm -f conftest.er1
25535 cat conftest.err >&5
a848cd7e
SC
25536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); } &&
64b75e64 25538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25540 (eval $ac_try) 2>&5
25541 ac_status=$?
25542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543 (exit $ac_status); }; } &&
25544 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
25550 ac_header_compiler=yes
25551else
25552 echo "$as_me: failed program was:" >&5
25553sed 's/^/| /' conftest.$ac_ext >&5
25554
25555ac_header_compiler=no
25556fi
ac1cb8d3 25557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25558echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25559echo "${ECHO_T}$ac_header_compiler" >&6
25560
25561# Is the header present?
25562echo "$as_me:$LINENO: checking zlib.h presence" >&5
25563echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25564cat >conftest.$ac_ext <<_ACEOF
25565/* confdefs.h. */
25566_ACEOF
25567cat confdefs.h >>conftest.$ac_ext
25568cat >>conftest.$ac_ext <<_ACEOF
25569/* end confdefs.h. */
25570#include <zlib.h>
25571_ACEOF
25572if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25574 ac_status=$?
25575 grep -v '^ *+' conftest.er1 >conftest.err
25576 rm -f conftest.er1
25577 cat conftest.err >&5
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); } >/dev/null; then
25580 if test -s conftest.err; then
5d7b7554
VZ
25581 ac_cpp_err=$ac_cxx_preproc_warn_flag
25582 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25583 else
25584 ac_cpp_err=
25585 fi
25586else
25587 ac_cpp_err=yes
25588fi
25589if test -z "$ac_cpp_err"; then
25590 ac_header_preproc=yes
25591else
25592 echo "$as_me: failed program was:" >&5
25593sed 's/^/| /' conftest.$ac_ext >&5
25594
25595 ac_header_preproc=no
25596fi
25597rm -f conftest.err conftest.$ac_ext
25598echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25599echo "${ECHO_T}$ac_header_preproc" >&6
25600
25601# So? What about this header?
5d7b7554 25602case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25603 yes:no: )
a848cd7e
SC
25604 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25605echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25606 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25607echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25608 ac_header_preproc=yes
a848cd7e 25609 ;;
ac1cb8d3 25610 no:yes:* )
a848cd7e
SC
25611 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25612echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25613 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25614echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25615 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25616echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25617 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25618echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25619 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25620echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25621 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25622echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25623 (
25624 cat <<\_ASBOX
ac1cb8d3
VS
25625## ----------------------------------------- ##
25626## Report this to wx-dev@lists.wxwidgets.org ##
25627## ----------------------------------------- ##
a848cd7e
SC
25628_ASBOX
25629 ) |
25630 sed "s/^/$as_me: WARNING: /" >&2
25631 ;;
25632esac
25633echo "$as_me:$LINENO: checking for zlib.h" >&5
25634echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25635if test "${ac_cv_header_zlib_h+set}" = set; then
25636 echo $ECHO_N "(cached) $ECHO_C" >&6
25637else
25638 ac_cv_header_zlib_h=$ac_header_preproc
25639fi
25640echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25641echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25642
25643fi
25644
25645
25646
25647 system_zlib_h_ok=$ac_cv_header_zlib_h
25648 fi
25649
25650 if test "$system_zlib_h_ok" = "yes"; then
25651 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25652echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25653if test "${ac_cv_lib_z_deflate+set}" = set; then
25654 echo $ECHO_N "(cached) $ECHO_C" >&6
25655else
25656 ac_check_lib_save_LIBS=$LIBS
25657LIBS="-lz $LIBS"
25658cat >conftest.$ac_ext <<_ACEOF
25659/* confdefs.h. */
25660_ACEOF
25661cat confdefs.h >>conftest.$ac_ext
25662cat >>conftest.$ac_ext <<_ACEOF
25663/* end confdefs.h. */
25664
25665/* Override any gcc2 internal prototype to avoid an error. */
25666#ifdef __cplusplus
25667extern "C"
25668#endif
25669/* We use char because int might match the return type of a gcc2
25670 builtin and then its argument prototype would still apply. */
25671char deflate ();
25672int
25673main ()
25674{
25675deflate ();
25676 ;
25677 return 0;
25678}
25679_ACEOF
25680rm -f conftest.$ac_objext conftest$ac_exeext
25681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25682 (eval $ac_link) 2>conftest.er1
a848cd7e 25683 ac_status=$?
ac1cb8d3
VS
25684 grep -v '^ *+' conftest.er1 >conftest.err
25685 rm -f conftest.er1
25686 cat conftest.err >&5
a848cd7e
SC
25687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); } &&
64b75e64 25689 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25691 (eval $ac_try) 2>&5
25692 ac_status=$?
25693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694 (exit $ac_status); }; } &&
25695 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25697 (eval $ac_try) 2>&5
25698 ac_status=$?
25699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700 (exit $ac_status); }; }; then
25701 ac_cv_lib_z_deflate=yes
25702else
25703 echo "$as_me: failed program was:" >&5
25704sed 's/^/| /' conftest.$ac_ext >&5
25705
25706ac_cv_lib_z_deflate=no
25707fi
ac1cb8d3
VS
25708rm -f conftest.err conftest.$ac_objext \
25709 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25710LIBS=$ac_check_lib_save_LIBS
25711fi
25712echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25713echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25714if test $ac_cv_lib_z_deflate = yes; then
25715 ZLIB_LINK=" -lz"
25716fi
25717
25718 fi
25719
25720 if test "x$ZLIB_LINK" = "x" ; then
25721 if test "$wxUSE_ZLIB" = "sys" ; then
25722 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25723echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25724 { (exit 1); exit 1; }; }
25725 else
25726 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25727echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25728 wxUSE_ZLIB=builtin
25729 fi
25730 else
25731 wxUSE_ZLIB=sys
25732 fi
25733 fi
25734fi
25735
25736
25737PNG_LINK=
25738if test "$wxUSE_LIBPNG" != "no" ; then
25739 cat >>confdefs.h <<\_ACEOF
25740#define wxUSE_LIBPNG 1
25741_ACEOF
25742
25743
25744 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25745 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25746echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25747 wxUSE_LIBPNG=sys
25748 fi
25749
25750 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25751 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25752echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25753 wxUSE_LIBPNG=builtin
25754 fi
25755
25756 if test "$wxUSE_MGL" != 1 ; then
25757 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25758 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25759echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25760if test "${ac_cv_header_png_h+set}" = set; then
25761 echo $ECHO_N "(cached) $ECHO_C" >&6
25762else
25763 if test "$cross_compiling" = yes; then
25764 unset ac_cv_header_png_h
25765
25766else
25767 cat >conftest.$ac_ext <<_ACEOF
25768/* confdefs.h. */
25769_ACEOF
25770cat confdefs.h >>conftest.$ac_ext
25771cat >>conftest.$ac_ext <<_ACEOF
25772/* end confdefs.h. */
25773
25774 #include <png.h>
25775 #include <stdio.h>
25776
25777 int main()
25778 {
25779 FILE *f=fopen("conftestval", "w");
25780 if (!f) exit(1);
25781 fprintf(f, "%s",
25782 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25783 exit(0);
25784 }
25785
25786_ACEOF
25787rm -f conftest$ac_exeext
25788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25789 (eval $ac_link) 2>&5
25790 ac_status=$?
25791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25794 (eval $ac_try) 2>&5
25795 ac_status=$?
25796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25797 (exit $ac_status); }; }; then
25798 ac_cv_header_png_h=`cat conftestval`
25799else
25800 echo "$as_me: program exited with status $ac_status" >&5
25801echo "$as_me: failed program was:" >&5
25802sed 's/^/| /' conftest.$ac_ext >&5
25803
25804( exit $ac_status )
25805ac_cv_header_png_h=no
25806fi
ac1cb8d3 25807rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25808fi
25809
25810fi
25811echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25812echo "${ECHO_T}$ac_cv_header_png_h" >&6
25813 if test "${ac_cv_header_png_h+set}" = set; then
25814 echo "$as_me:$LINENO: checking for png.h" >&5
25815echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25816if test "${ac_cv_header_png_h+set}" = set; then
25817 echo $ECHO_N "(cached) $ECHO_C" >&6
25818fi
25819echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25820echo "${ECHO_T}$ac_cv_header_png_h" >&6
25821else
25822 # Is the header compilable?
25823echo "$as_me:$LINENO: checking png.h usability" >&5
25824echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25825cat >conftest.$ac_ext <<_ACEOF
25826/* confdefs.h. */
25827_ACEOF
25828cat confdefs.h >>conftest.$ac_ext
25829cat >>conftest.$ac_ext <<_ACEOF
25830/* end confdefs.h. */
25831$ac_includes_default
25832#include <png.h>
25833_ACEOF
25834rm -f conftest.$ac_objext
25835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25836 (eval $ac_compile) 2>conftest.er1
a848cd7e 25837 ac_status=$?
ac1cb8d3
VS
25838 grep -v '^ *+' conftest.er1 >conftest.err
25839 rm -f conftest.er1
25840 cat conftest.err >&5
a848cd7e
SC
25841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842 (exit $ac_status); } &&
64b75e64 25843 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25845 (eval $ac_try) 2>&5
25846 ac_status=$?
25847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848 (exit $ac_status); }; } &&
25849 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25851 (eval $ac_try) 2>&5
25852 ac_status=$?
25853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854 (exit $ac_status); }; }; then
25855 ac_header_compiler=yes
25856else
25857 echo "$as_me: failed program was:" >&5
25858sed 's/^/| /' conftest.$ac_ext >&5
25859
25860ac_header_compiler=no
25861fi
ac1cb8d3 25862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25863echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25864echo "${ECHO_T}$ac_header_compiler" >&6
25865
25866# Is the header present?
25867echo "$as_me:$LINENO: checking png.h presence" >&5
25868echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25869cat >conftest.$ac_ext <<_ACEOF
25870/* confdefs.h. */
25871_ACEOF
25872cat confdefs.h >>conftest.$ac_ext
25873cat >>conftest.$ac_ext <<_ACEOF
25874/* end confdefs.h. */
25875#include <png.h>
25876_ACEOF
25877if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25879 ac_status=$?
25880 grep -v '^ *+' conftest.er1 >conftest.err
25881 rm -f conftest.er1
25882 cat conftest.err >&5
25883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884 (exit $ac_status); } >/dev/null; then
25885 if test -s conftest.err; then
5d7b7554
VZ
25886 ac_cpp_err=$ac_cxx_preproc_warn_flag
25887 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25888 else
25889 ac_cpp_err=
25890 fi
25891else
25892 ac_cpp_err=yes
25893fi
25894if test -z "$ac_cpp_err"; then
25895 ac_header_preproc=yes
25896else
25897 echo "$as_me: failed program was:" >&5
25898sed 's/^/| /' conftest.$ac_ext >&5
25899
25900 ac_header_preproc=no
25901fi
25902rm -f conftest.err conftest.$ac_ext
25903echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25904echo "${ECHO_T}$ac_header_preproc" >&6
25905
25906# So? What about this header?
5d7b7554 25907case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25908 yes:no: )
a848cd7e
SC
25909 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25910echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25911 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25912echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25913 ac_header_preproc=yes
a848cd7e 25914 ;;
ac1cb8d3 25915 no:yes:* )
a848cd7e
SC
25916 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25917echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25918 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25919echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25920 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25921echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25922 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25923echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25924 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25925echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25926 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25927echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25928 (
25929 cat <<\_ASBOX
ac1cb8d3
VS
25930## ----------------------------------------- ##
25931## Report this to wx-dev@lists.wxwidgets.org ##
25932## ----------------------------------------- ##
a848cd7e
SC
25933_ASBOX
25934 ) |
25935 sed "s/^/$as_me: WARNING: /" >&2
25936 ;;
25937esac
25938echo "$as_me:$LINENO: checking for png.h" >&5
25939echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25940if test "${ac_cv_header_png_h+set}" = set; then
25941 echo $ECHO_N "(cached) $ECHO_C" >&6
25942else
25943 ac_cv_header_png_h=$ac_header_preproc
25944fi
25945echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25946echo "${ECHO_T}$ac_cv_header_png_h" >&6
25947
25948fi
25949
25950
25951
25952 if test "$ac_cv_header_png_h" = "yes"; then
25953 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25954echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25955if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25956 echo $ECHO_N "(cached) $ECHO_C" >&6
25957else
25958 ac_check_lib_save_LIBS=$LIBS
25959LIBS="-lpng -lz -lm $LIBS"
25960cat >conftest.$ac_ext <<_ACEOF
25961/* confdefs.h. */
25962_ACEOF
25963cat confdefs.h >>conftest.$ac_ext
25964cat >>conftest.$ac_ext <<_ACEOF
25965/* end confdefs.h. */
25966
25967/* Override any gcc2 internal prototype to avoid an error. */
25968#ifdef __cplusplus
25969extern "C"
25970#endif
25971/* We use char because int might match the return type of a gcc2
25972 builtin and then its argument prototype would still apply. */
25973char png_check_sig ();
25974int
25975main ()
25976{
25977png_check_sig ();
25978 ;
25979 return 0;
25980}
25981_ACEOF
25982rm -f conftest.$ac_objext conftest$ac_exeext
25983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25984 (eval $ac_link) 2>conftest.er1
a848cd7e 25985 ac_status=$?
ac1cb8d3
VS
25986 grep -v '^ *+' conftest.er1 >conftest.err
25987 rm -f conftest.er1
25988 cat conftest.err >&5
a848cd7e
SC
25989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990 (exit $ac_status); } &&
64b75e64 25991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25993 (eval $ac_try) 2>&5
25994 ac_status=$?
25995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25996 (exit $ac_status); }; } &&
25997 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25999 (eval $ac_try) 2>&5
26000 ac_status=$?
26001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26002 (exit $ac_status); }; }; then
26003 ac_cv_lib_png_png_check_sig=yes
26004else
26005 echo "$as_me: failed program was:" >&5
26006sed 's/^/| /' conftest.$ac_ext >&5
26007
26008ac_cv_lib_png_png_check_sig=no
26009fi
ac1cb8d3
VS
26010rm -f conftest.err conftest.$ac_objext \
26011 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26012LIBS=$ac_check_lib_save_LIBS
26013fi
26014echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26015echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
26016if test $ac_cv_lib_png_png_check_sig = yes; then
26017 PNG_LINK=" -lpng -lz"
26018fi
26019
26020 fi
26021
26022 if test "x$PNG_LINK" = "x" ; then
26023 if test "$wxUSE_LIBPNG" = "sys" ; then
26024 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26025echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26026 { (exit 1); exit 1; }; }
26027 else
26028 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26029echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26030 wxUSE_LIBPNG=builtin
26031 fi
26032 else
26033 wxUSE_LIBPNG=sys
26034 fi
26035 fi
26036 fi
26037
26038 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
26039fi
26040
26041
26042JPEG_LINK=
26043if test "$wxUSE_LIBJPEG" != "no" ; then
26044 cat >>confdefs.h <<\_ACEOF
26045#define wxUSE_LIBJPEG 1
26046_ACEOF
26047
26048
26049 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26050 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26051echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26052 wxUSE_LIBJPEG=sys
26053 fi
26054
26055 if test "$wxUSE_MGL" != 1 ; then
26056 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26057 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26058echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
26059 if test "${ac_cv_header_jpeglib_h+set}" = set; then
26060 echo $ECHO_N "(cached) $ECHO_C" >&6
26061else
26062 cat >conftest.$ac_ext <<_ACEOF
26063/* confdefs.h. */
26064_ACEOF
26065cat confdefs.h >>conftest.$ac_ext
26066cat >>conftest.$ac_ext <<_ACEOF
26067/* end confdefs.h. */
26068
26069 #undef HAVE_STDLIB_H
26070 #include <stdio.h>
26071 #include <jpeglib.h>
26072
26073int
26074main ()
26075{
26076
26077
26078 ;
26079 return 0;
26080}
26081_ACEOF
26082rm -f conftest.$ac_objext
26083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26084 (eval $ac_compile) 2>conftest.er1
a848cd7e 26085 ac_status=$?
ac1cb8d3
VS
26086 grep -v '^ *+' conftest.er1 >conftest.err
26087 rm -f conftest.er1
26088 cat conftest.err >&5
a848cd7e
SC
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090 (exit $ac_status); } &&
64b75e64 26091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26093 (eval $ac_try) 2>&5
26094 ac_status=$?
26095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26096 (exit $ac_status); }; } &&
26097 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26099 (eval $ac_try) 2>&5
26100 ac_status=$?
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); }; }; then
26103 ac_cv_header_jpeglib_h=yes
26104else
26105 echo "$as_me: failed program was:" >&5
26106sed 's/^/| /' conftest.$ac_ext >&5
26107
26108ac_cv_header_jpeglib_h=no
26109
26110fi
ac1cb8d3 26111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26112
26113fi
26114
26115 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26116echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
26117
26118 if test "$ac_cv_header_jpeglib_h" = "yes"; then
26119 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26120echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
26121if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26122 echo $ECHO_N "(cached) $ECHO_C" >&6
26123else
26124 ac_check_lib_save_LIBS=$LIBS
26125LIBS="-ljpeg $LIBS"
26126cat >conftest.$ac_ext <<_ACEOF
26127/* confdefs.h. */
26128_ACEOF
26129cat confdefs.h >>conftest.$ac_ext
26130cat >>conftest.$ac_ext <<_ACEOF
26131/* end confdefs.h. */
26132
26133/* Override any gcc2 internal prototype to avoid an error. */
26134#ifdef __cplusplus
26135extern "C"
26136#endif
26137/* We use char because int might match the return type of a gcc2
26138 builtin and then its argument prototype would still apply. */
26139char jpeg_read_header ();
26140int
26141main ()
26142{
26143jpeg_read_header ();
26144 ;
26145 return 0;
26146}
26147_ACEOF
26148rm -f conftest.$ac_objext conftest$ac_exeext
26149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26150 (eval $ac_link) 2>conftest.er1
a848cd7e 26151 ac_status=$?
ac1cb8d3
VS
26152 grep -v '^ *+' conftest.er1 >conftest.err
26153 rm -f conftest.er1
26154 cat conftest.err >&5
a848cd7e
SC
26155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26156 (exit $ac_status); } &&
64b75e64 26157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26159 (eval $ac_try) 2>&5
26160 ac_status=$?
26161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162 (exit $ac_status); }; } &&
26163 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26165 (eval $ac_try) 2>&5
26166 ac_status=$?
26167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26168 (exit $ac_status); }; }; then
26169 ac_cv_lib_jpeg_jpeg_read_header=yes
26170else
26171 echo "$as_me: failed program was:" >&5
26172sed 's/^/| /' conftest.$ac_ext >&5
26173
26174ac_cv_lib_jpeg_jpeg_read_header=no
26175fi
ac1cb8d3
VS
26176rm -f conftest.err conftest.$ac_objext \
26177 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26178LIBS=$ac_check_lib_save_LIBS
26179fi
26180echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26181echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
26182if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26183 JPEG_LINK=" -ljpeg"
26184fi
26185
26186 fi
26187
26188 if test "x$JPEG_LINK" = "x" ; then
26189 if test "$wxUSE_LIBJPEG" = "sys" ; then
26190 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26191echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26192 { (exit 1); exit 1; }; }
26193 else
26194 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26195echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26196 wxUSE_LIBJPEG=builtin
26197 fi
26198 else
26199 wxUSE_LIBJPEG=sys
26200 fi
26201 fi
26202 fi
26203fi
26204
26205
26206TIFF_LINK=
26207TIFF_PREREQ_LINKS=-lm
26208if test "$wxUSE_LIBTIFF" != "no" ; then
26209 cat >>confdefs.h <<\_ACEOF
26210#define wxUSE_LIBTIFF 1
26211_ACEOF
26212
26213
26214 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
26215 if test "$wxUSE_LIBJPEG" = "sys"; then
26216 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
26217 fi
26218 if test "$wxUSE_ZLIB" = "sys"; then
26219 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
26220 fi
26221 if test "${ac_cv_header_tiffio_h+set}" = set; then
26222 echo "$as_me:$LINENO: checking for tiffio.h" >&5
26223echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26224if test "${ac_cv_header_tiffio_h+set}" = set; then
26225 echo $ECHO_N "(cached) $ECHO_C" >&6
26226fi
26227echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26228echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26229else
26230 # Is the header compilable?
26231echo "$as_me:$LINENO: checking tiffio.h usability" >&5
26232echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
26233cat >conftest.$ac_ext <<_ACEOF
26234/* confdefs.h. */
26235_ACEOF
26236cat confdefs.h >>conftest.$ac_ext
26237cat >>conftest.$ac_ext <<_ACEOF
26238/* end confdefs.h. */
26239$ac_includes_default
26240#include <tiffio.h>
26241_ACEOF
26242rm -f conftest.$ac_objext
26243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26244 (eval $ac_compile) 2>conftest.er1
a848cd7e 26245 ac_status=$?
ac1cb8d3
VS
26246 grep -v '^ *+' conftest.er1 >conftest.err
26247 rm -f conftest.er1
26248 cat conftest.err >&5
a848cd7e
SC
26249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250 (exit $ac_status); } &&
64b75e64 26251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26253 (eval $ac_try) 2>&5
26254 ac_status=$?
26255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256 (exit $ac_status); }; } &&
26257 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26259 (eval $ac_try) 2>&5
26260 ac_status=$?
26261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26262 (exit $ac_status); }; }; then
26263 ac_header_compiler=yes
26264else
26265 echo "$as_me: failed program was:" >&5
26266sed 's/^/| /' conftest.$ac_ext >&5
26267
26268ac_header_compiler=no
26269fi
ac1cb8d3 26270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26271echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26272echo "${ECHO_T}$ac_header_compiler" >&6
26273
26274# Is the header present?
26275echo "$as_me:$LINENO: checking tiffio.h presence" >&5
26276echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
26277cat >conftest.$ac_ext <<_ACEOF
26278/* confdefs.h. */
26279_ACEOF
26280cat confdefs.h >>conftest.$ac_ext
26281cat >>conftest.$ac_ext <<_ACEOF
26282/* end confdefs.h. */
26283#include <tiffio.h>
26284_ACEOF
26285if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26287 ac_status=$?
26288 grep -v '^ *+' conftest.er1 >conftest.err
26289 rm -f conftest.er1
26290 cat conftest.err >&5
26291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292 (exit $ac_status); } >/dev/null; then
26293 if test -s conftest.err; then
5d7b7554
VZ
26294 ac_cpp_err=$ac_cxx_preproc_warn_flag
26295 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26296 else
26297 ac_cpp_err=
26298 fi
26299else
26300 ac_cpp_err=yes
26301fi
26302if test -z "$ac_cpp_err"; then
26303 ac_header_preproc=yes
26304else
26305 echo "$as_me: failed program was:" >&5
26306sed 's/^/| /' conftest.$ac_ext >&5
26307
26308 ac_header_preproc=no
26309fi
26310rm -f conftest.err conftest.$ac_ext
26311echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26312echo "${ECHO_T}$ac_header_preproc" >&6
26313
26314# So? What about this header?
5d7b7554 26315case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26316 yes:no: )
a848cd7e
SC
26317 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26318echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26319 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26320echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26321 ac_header_preproc=yes
a848cd7e 26322 ;;
ac1cb8d3 26323 no:yes:* )
a848cd7e
SC
26324 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26325echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26326 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
26327echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
26328 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26329echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26330 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
26331echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26332 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26333echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26334 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26335echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26336 (
26337 cat <<\_ASBOX
ac1cb8d3
VS
26338## ----------------------------------------- ##
26339## Report this to wx-dev@lists.wxwidgets.org ##
26340## ----------------------------------------- ##
a848cd7e
SC
26341_ASBOX
26342 ) |
26343 sed "s/^/$as_me: WARNING: /" >&2
26344 ;;
26345esac
26346echo "$as_me:$LINENO: checking for tiffio.h" >&5
26347echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26348if test "${ac_cv_header_tiffio_h+set}" = set; then
26349 echo $ECHO_N "(cached) $ECHO_C" >&6
26350else
26351 ac_cv_header_tiffio_h=$ac_header_preproc
26352fi
26353echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26354echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26355
26356fi
26357if test $ac_cv_header_tiffio_h = yes; then
26358
26359 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26360echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26361if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26362 echo $ECHO_N "(cached) $ECHO_C" >&6
26363else
26364 ac_check_lib_save_LIBS=$LIBS
26365LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26366cat >conftest.$ac_ext <<_ACEOF
26367/* confdefs.h. */
26368_ACEOF
26369cat confdefs.h >>conftest.$ac_ext
26370cat >>conftest.$ac_ext <<_ACEOF
26371/* end confdefs.h. */
26372
26373/* Override any gcc2 internal prototype to avoid an error. */
26374#ifdef __cplusplus
26375extern "C"
26376#endif
26377/* We use char because int might match the return type of a gcc2
26378 builtin and then its argument prototype would still apply. */
26379char TIFFError ();
26380int
26381main ()
26382{
26383TIFFError ();
26384 ;
26385 return 0;
26386}
26387_ACEOF
26388rm -f conftest.$ac_objext conftest$ac_exeext
26389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26390 (eval $ac_link) 2>conftest.er1
a848cd7e 26391 ac_status=$?
ac1cb8d3
VS
26392 grep -v '^ *+' conftest.er1 >conftest.err
26393 rm -f conftest.er1
26394 cat conftest.err >&5
a848cd7e
SC
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); } &&
64b75e64 26397 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26399 (eval $ac_try) 2>&5
26400 ac_status=$?
26401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26402 (exit $ac_status); }; } &&
26403 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26405 (eval $ac_try) 2>&5
26406 ac_status=$?
26407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408 (exit $ac_status); }; }; then
26409 ac_cv_lib_tiff_TIFFError=yes
26410else
26411 echo "$as_me: failed program was:" >&5
26412sed 's/^/| /' conftest.$ac_ext >&5
26413
26414ac_cv_lib_tiff_TIFFError=no
26415fi
ac1cb8d3
VS
26416rm -f conftest.err conftest.$ac_objext \
26417 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26418LIBS=$ac_check_lib_save_LIBS
26419fi
26420echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26421echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26422if test $ac_cv_lib_tiff_TIFFError = yes; then
26423 TIFF_LINK=" -ltiff"
26424fi
26425
26426
26427
26428fi
26429
26430
26431
26432 if test "x$TIFF_LINK" = "x" ; then
26433 if test "$wxUSE_LIBTIFF" = "sys" ; then
26434 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26435echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26436 { (exit 1); exit 1; }; }
26437 else
26438 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26439echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26440 wxUSE_LIBTIFF=builtin
26441 fi
26442 else
26443 wxUSE_LIBTIFF=sys
26444 fi
26445 fi
26446fi
26447
26448
47a7e797
MW
26449if test "$wxUSE_WCHAR_T" != "yes"; then
26450 if test "$wxUSE_EXPAT" != "no"; then
26451 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26452echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26453 wxUSE_EXPAT=no
26454 fi
26455 if test "$wxUSE_XML" != "no"; then
26456 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26457echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26458 wxUSE_XML=no
26459 fi
26460fi
26461
a848cd7e
SC
26462if test "$wxUSE_EXPAT" != "no"; then
26463 wxUSE_XML=yes
26464 cat >>confdefs.h <<\_ACEOF
26465#define wxUSE_EXPAT 1
26466_ACEOF
26467
26468 cat >>confdefs.h <<\_ACEOF
26469#define wxUSE_XML 1
26470_ACEOF
26471
26472
26473 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26474 if test "${ac_cv_header_expat_h+set}" = set; then
26475 echo "$as_me:$LINENO: checking for expat.h" >&5
26476echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26477if test "${ac_cv_header_expat_h+set}" = set; then
26478 echo $ECHO_N "(cached) $ECHO_C" >&6
26479fi
26480echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26481echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26482else
26483 # Is the header compilable?
26484echo "$as_me:$LINENO: checking expat.h usability" >&5
26485echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26486cat >conftest.$ac_ext <<_ACEOF
26487/* confdefs.h. */
26488_ACEOF
26489cat confdefs.h >>conftest.$ac_ext
26490cat >>conftest.$ac_ext <<_ACEOF
26491/* end confdefs.h. */
26492$ac_includes_default
26493#include <expat.h>
26494_ACEOF
26495rm -f conftest.$ac_objext
26496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26497 (eval $ac_compile) 2>conftest.er1
a848cd7e 26498 ac_status=$?
ac1cb8d3
VS
26499 grep -v '^ *+' conftest.er1 >conftest.err
26500 rm -f conftest.er1
26501 cat conftest.err >&5
a848cd7e
SC
26502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26503 (exit $ac_status); } &&
64b75e64 26504 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26506 (eval $ac_try) 2>&5
26507 ac_status=$?
26508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); }; } &&
26510 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26512 (eval $ac_try) 2>&5
26513 ac_status=$?
26514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); }; }; then
26516 ac_header_compiler=yes
26517else
26518 echo "$as_me: failed program was:" >&5
26519sed 's/^/| /' conftest.$ac_ext >&5
26520
26521ac_header_compiler=no
26522fi
ac1cb8d3 26523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26524echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26525echo "${ECHO_T}$ac_header_compiler" >&6
26526
26527# Is the header present?
26528echo "$as_me:$LINENO: checking expat.h presence" >&5
26529echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26530cat >conftest.$ac_ext <<_ACEOF
26531/* confdefs.h. */
26532_ACEOF
26533cat confdefs.h >>conftest.$ac_ext
26534cat >>conftest.$ac_ext <<_ACEOF
26535/* end confdefs.h. */
26536#include <expat.h>
26537_ACEOF
26538if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26540 ac_status=$?
26541 grep -v '^ *+' conftest.er1 >conftest.err
26542 rm -f conftest.er1
26543 cat conftest.err >&5
26544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545 (exit $ac_status); } >/dev/null; then
26546 if test -s conftest.err; then
5d7b7554
VZ
26547 ac_cpp_err=$ac_cxx_preproc_warn_flag
26548 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26549 else
26550 ac_cpp_err=
26551 fi
26552else
26553 ac_cpp_err=yes
26554fi
26555if test -z "$ac_cpp_err"; then
26556 ac_header_preproc=yes
26557else
26558 echo "$as_me: failed program was:" >&5
26559sed 's/^/| /' conftest.$ac_ext >&5
26560
26561 ac_header_preproc=no
26562fi
26563rm -f conftest.err conftest.$ac_ext
26564echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26565echo "${ECHO_T}$ac_header_preproc" >&6
26566
26567# So? What about this header?
5d7b7554 26568case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26569 yes:no: )
a848cd7e
SC
26570 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26571echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26572 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26573echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26574 ac_header_preproc=yes
a848cd7e 26575 ;;
ac1cb8d3 26576 no:yes:* )
a848cd7e
SC
26577 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26578echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26579 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
26580echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
26581 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26582echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26583 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
26584echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26585 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26586echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26587 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26588echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26589 (
26590 cat <<\_ASBOX
ac1cb8d3
VS
26591## ----------------------------------------- ##
26592## Report this to wx-dev@lists.wxwidgets.org ##
26593## ----------------------------------------- ##
a848cd7e
SC
26594_ASBOX
26595 ) |
26596 sed "s/^/$as_me: WARNING: /" >&2
26597 ;;
26598esac
26599echo "$as_me:$LINENO: checking for expat.h" >&5
26600echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26601if test "${ac_cv_header_expat_h+set}" = set; then
26602 echo $ECHO_N "(cached) $ECHO_C" >&6
26603else
26604 ac_cv_header_expat_h=$ac_header_preproc
26605fi
26606echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26607echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26608
26609fi
26610if test $ac_cv_header_expat_h = yes; then
26611 found_expat_h=1
26612fi
26613
26614
26615 if test "x$found_expat_h" = "x1"; then
26616 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26617echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26618if test "${wx_cv_expat_is_not_broken+set}" = set; then
26619 echo $ECHO_N "(cached) $ECHO_C" >&6
26620else
26621
a848cd7e
SC
26622 cat >conftest.$ac_ext <<_ACEOF
26623/* confdefs.h. */
26624_ACEOF
26625cat confdefs.h >>conftest.$ac_ext
26626cat >>conftest.$ac_ext <<_ACEOF
26627/* end confdefs.h. */
26628#include <expat.h>
26629int
26630main ()
26631{
26632
26633 ;
26634 return 0;
26635}
26636_ACEOF
26637rm -f conftest.$ac_objext
26638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26639 (eval $ac_compile) 2>conftest.er1
a848cd7e 26640 ac_status=$?
ac1cb8d3
VS
26641 grep -v '^ *+' conftest.er1 >conftest.err
26642 rm -f conftest.er1
26643 cat conftest.err >&5
a848cd7e
SC
26644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645 (exit $ac_status); } &&
64b75e64 26646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26648 (eval $ac_try) 2>&5
26649 ac_status=$?
26650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); }; } &&
26652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
26658 wx_cv_expat_is_not_broken=yes
26659else
26660 echo "$as_me: failed program was:" >&5
26661sed 's/^/| /' conftest.$ac_ext >&5
26662
26663wx_cv_expat_is_not_broken=no
26664
26665fi
ac1cb8d3 26666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26667
26668
26669fi
26670echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26671echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26672 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26673 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26674echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26675if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26676 echo $ECHO_N "(cached) $ECHO_C" >&6
26677else
26678 ac_check_lib_save_LIBS=$LIBS
26679LIBS="-lexpat $LIBS"
26680cat >conftest.$ac_ext <<_ACEOF
26681/* confdefs.h. */
26682_ACEOF
26683cat confdefs.h >>conftest.$ac_ext
26684cat >>conftest.$ac_ext <<_ACEOF
26685/* end confdefs.h. */
26686
26687/* Override any gcc2 internal prototype to avoid an error. */
26688#ifdef __cplusplus
26689extern "C"
26690#endif
26691/* We use char because int might match the return type of a gcc2
26692 builtin and then its argument prototype would still apply. */
26693char XML_ParserCreate ();
26694int
26695main ()
26696{
26697XML_ParserCreate ();
26698 ;
26699 return 0;
26700}
26701_ACEOF
26702rm -f conftest.$ac_objext conftest$ac_exeext
26703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26704 (eval $ac_link) 2>conftest.er1
a848cd7e 26705 ac_status=$?
ac1cb8d3
VS
26706 grep -v '^ *+' conftest.er1 >conftest.err
26707 rm -f conftest.er1
26708 cat conftest.err >&5
a848cd7e
SC
26709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26710 (exit $ac_status); } &&
64b75e64 26711 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26713 (eval $ac_try) 2>&5
26714 ac_status=$?
26715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716 (exit $ac_status); }; } &&
26717 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26719 (eval $ac_try) 2>&5
26720 ac_status=$?
26721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722 (exit $ac_status); }; }; then
26723 ac_cv_lib_expat_XML_ParserCreate=yes
26724else
26725 echo "$as_me: failed program was:" >&5
26726sed 's/^/| /' conftest.$ac_ext >&5
26727
26728ac_cv_lib_expat_XML_ParserCreate=no
26729fi
ac1cb8d3
VS
26730rm -f conftest.err conftest.$ac_objext \
26731 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26732LIBS=$ac_check_lib_save_LIBS
26733fi
26734echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26735echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26736if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26737 EXPAT_LINK=" -lexpat"
26738fi
26739
26740 fi
26741 fi
26742 if test "x$EXPAT_LINK" = "x" ; then
26743 if test "$wxUSE_EXPAT" = "sys" ; then
26744 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26745echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26746 { (exit 1); exit 1; }; }
26747 else
26748 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26749echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26750 wxUSE_EXPAT=builtin
26751 fi
26752 else
26753 wxUSE_EXPAT=sys
26754 fi
26755 fi
26756 if test "$wxUSE_EXPAT" = "builtin" ; then
26757
26758
26759subdirs="$subdirs src/expat"
26760
26761 fi
26762fi
26763
26764
26765
26766if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
26767 if test "${ac_cv_header_mspack_h+set}" = set; then
26768 echo "$as_me:$LINENO: checking for mspack.h" >&5
26769echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26770if test "${ac_cv_header_mspack_h+set}" = set; then
26771 echo $ECHO_N "(cached) $ECHO_C" >&6
26772fi
26773echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26774echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26775else
26776 # Is the header compilable?
26777echo "$as_me:$LINENO: checking mspack.h usability" >&5
26778echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26779cat >conftest.$ac_ext <<_ACEOF
26780/* confdefs.h. */
26781_ACEOF
26782cat confdefs.h >>conftest.$ac_ext
26783cat >>conftest.$ac_ext <<_ACEOF
26784/* end confdefs.h. */
26785$ac_includes_default
26786#include <mspack.h>
26787_ACEOF
26788rm -f conftest.$ac_objext
26789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26790 (eval $ac_compile) 2>conftest.er1
a848cd7e 26791 ac_status=$?
ac1cb8d3
VS
26792 grep -v '^ *+' conftest.er1 >conftest.err
26793 rm -f conftest.er1
26794 cat conftest.err >&5
a848cd7e
SC
26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); } &&
64b75e64 26797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26799 (eval $ac_try) 2>&5
26800 ac_status=$?
26801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802 (exit $ac_status); }; } &&
26803 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26805 (eval $ac_try) 2>&5
26806 ac_status=$?
26807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808 (exit $ac_status); }; }; then
26809 ac_header_compiler=yes
26810else
26811 echo "$as_me: failed program was:" >&5
26812sed 's/^/| /' conftest.$ac_ext >&5
26813
26814ac_header_compiler=no
26815fi
ac1cb8d3 26816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26817echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26818echo "${ECHO_T}$ac_header_compiler" >&6
26819
26820# Is the header present?
26821echo "$as_me:$LINENO: checking mspack.h presence" >&5
26822echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26823cat >conftest.$ac_ext <<_ACEOF
26824/* confdefs.h. */
26825_ACEOF
26826cat confdefs.h >>conftest.$ac_ext
26827cat >>conftest.$ac_ext <<_ACEOF
26828/* end confdefs.h. */
26829#include <mspack.h>
26830_ACEOF
26831if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26833 ac_status=$?
26834 grep -v '^ *+' conftest.er1 >conftest.err
26835 rm -f conftest.er1
26836 cat conftest.err >&5
26837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838 (exit $ac_status); } >/dev/null; then
26839 if test -s conftest.err; then
5d7b7554
VZ
26840 ac_cpp_err=$ac_cxx_preproc_warn_flag
26841 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26842 else
26843 ac_cpp_err=
26844 fi
26845else
26846 ac_cpp_err=yes
26847fi
26848if test -z "$ac_cpp_err"; then
26849 ac_header_preproc=yes
26850else
26851 echo "$as_me: failed program was:" >&5
26852sed 's/^/| /' conftest.$ac_ext >&5
26853
26854 ac_header_preproc=no
26855fi
26856rm -f conftest.err conftest.$ac_ext
26857echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26858echo "${ECHO_T}$ac_header_preproc" >&6
26859
26860# So? What about this header?
5d7b7554 26861case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26862 yes:no: )
a848cd7e
SC
26863 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26864echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26865 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26866echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26867 ac_header_preproc=yes
a848cd7e 26868 ;;
ac1cb8d3 26869 no:yes:* )
a848cd7e
SC
26870 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26871echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26872 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
26873echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
26874 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26875echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26876 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
26877echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26878 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26879echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26880 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26881echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26882 (
26883 cat <<\_ASBOX
ac1cb8d3
VS
26884## ----------------------------------------- ##
26885## Report this to wx-dev@lists.wxwidgets.org ##
26886## ----------------------------------------- ##
a848cd7e
SC
26887_ASBOX
26888 ) |
26889 sed "s/^/$as_me: WARNING: /" >&2
26890 ;;
26891esac
26892echo "$as_me:$LINENO: checking for mspack.h" >&5
26893echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26894if test "${ac_cv_header_mspack_h+set}" = set; then
26895 echo $ECHO_N "(cached) $ECHO_C" >&6
26896else
26897 ac_cv_header_mspack_h=$ac_header_preproc
26898fi
26899echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26900echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26901
26902fi
26903if test $ac_cv_header_mspack_h = yes; then
26904 found_mspack_h=1
26905fi
26906
26907
26908 if test "x$found_mspack_h" = "x1"; then
26909 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26910echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26911if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26912 echo $ECHO_N "(cached) $ECHO_C" >&6
26913else
26914 ac_check_lib_save_LIBS=$LIBS
26915LIBS="-lmspack $LIBS"
26916cat >conftest.$ac_ext <<_ACEOF
26917/* confdefs.h. */
26918_ACEOF
26919cat confdefs.h >>conftest.$ac_ext
26920cat >>conftest.$ac_ext <<_ACEOF
26921/* end confdefs.h. */
26922
26923/* Override any gcc2 internal prototype to avoid an error. */
26924#ifdef __cplusplus
26925extern "C"
26926#endif
26927/* We use char because int might match the return type of a gcc2
26928 builtin and then its argument prototype would still apply. */
26929char mspack_create_chm_decompressor ();
26930int
26931main ()
26932{
26933mspack_create_chm_decompressor ();
26934 ;
26935 return 0;
26936}
26937_ACEOF
26938rm -f conftest.$ac_objext conftest$ac_exeext
26939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26940 (eval $ac_link) 2>conftest.er1
a848cd7e 26941 ac_status=$?
ac1cb8d3
VS
26942 grep -v '^ *+' conftest.er1 >conftest.err
26943 rm -f conftest.er1
26944 cat conftest.err >&5
a848cd7e
SC
26945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946 (exit $ac_status); } &&
64b75e64 26947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26949 (eval $ac_try) 2>&5
26950 ac_status=$?
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); }; } &&
26953 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26955 (eval $ac_try) 2>&5
26956 ac_status=$?
26957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958 (exit $ac_status); }; }; then
26959 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26960else
26961 echo "$as_me: failed program was:" >&5
26962sed 's/^/| /' conftest.$ac_ext >&5
26963
26964ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26965fi
ac1cb8d3
VS
26966rm -f conftest.err conftest.$ac_objext \
26967 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26968LIBS=$ac_check_lib_save_LIBS
26969fi
26970echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26971echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26972if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26973 MSPACK_LINK=" -lmspack"
26974fi
26975
26976 fi
26977 if test "x$MSPACK_LINK" = "x" ; then
26978 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
26979 fi
26980fi
26981
26982if test "$wxUSE_LIBMSPACK" != "no"; then
26983 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
26984#define wxUSE_LIBMSPACK 1
26985_ACEOF
26986
a848cd7e
SC
26987fi
26988
26989
26990
26991AFMINSTALL=
26992WIN32INSTALL=
26993
26994TOOLKIT=
26995TOOLKIT_INCLUDE=
26996WIDGET_SET=
26997
26998if test "$USE_WIN32" = 1 ; then
26999
27000for ac_header in w32api.h
27001do
27002as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27003if eval "test \"\${$as_ac_Header+set}\" = set"; then
27004 echo "$as_me:$LINENO: checking for $ac_header" >&5
27005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27006if eval "test \"\${$as_ac_Header+set}\" = set"; then
27007 echo $ECHO_N "(cached) $ECHO_C" >&6
27008fi
27009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27010echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27011else
27012 # Is the header compilable?
27013echo "$as_me:$LINENO: checking $ac_header usability" >&5
27014echo $ECHO_N "checking $ac_header 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 <$ac_header>
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); } &&
64b75e64 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 $ac_header presence" >&5
27058echo $ECHO_N "checking $ac_header 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 <$ac_header>
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: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27100echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27102echo "$as_me: WARNING: $ac_header: 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: $ac_header: present but cannot be compiled" >&5
27107echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27109echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27111echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27113echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27115echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27117echo "$as_me: WARNING: $ac_header: 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 $ac_header" >&5
27129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27130if eval "test \"\${$as_ac_Header+set}\" = set"; then
27131 echo $ECHO_N "(cached) $ECHO_C" >&6
27132else
ac1cb8d3 27133 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
27134fi
27135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27136echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27137
27138fi
27139if test `eval echo '${'$as_ac_Header'}'` = yes; then
27140 cat >>confdefs.h <<_ACEOF
27141#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27142_ACEOF
27143
27144fi
27145
27146done
27147
27148 if test "${ac_cv_header_windows_h+set}" = set; then
27149 echo "$as_me:$LINENO: checking for windows.h" >&5
27150echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27151if test "${ac_cv_header_windows_h+set}" = set; then
27152 echo $ECHO_N "(cached) $ECHO_C" >&6
27153fi
27154echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27155echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27156else
27157 # Is the header compilable?
27158echo "$as_me:$LINENO: checking windows.h usability" >&5
27159echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
27160cat >conftest.$ac_ext <<_ACEOF
27161/* confdefs.h. */
27162_ACEOF
27163cat confdefs.h >>conftest.$ac_ext
27164cat >>conftest.$ac_ext <<_ACEOF
27165/* end confdefs.h. */
27166$ac_includes_default
27167#include <windows.h>
27168_ACEOF
27169rm -f conftest.$ac_objext
27170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27171 (eval $ac_compile) 2>conftest.er1
a848cd7e 27172 ac_status=$?
ac1cb8d3
VS
27173 grep -v '^ *+' conftest.er1 >conftest.err
27174 rm -f conftest.er1
27175 cat conftest.err >&5
a848cd7e
SC
27176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); } &&
64b75e64 27178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27180 (eval $ac_try) 2>&5
27181 ac_status=$?
27182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); }; } &&
27184 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27186 (eval $ac_try) 2>&5
27187 ac_status=$?
27188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189 (exit $ac_status); }; }; then
27190 ac_header_compiler=yes
27191else
27192 echo "$as_me: failed program was:" >&5
27193sed 's/^/| /' conftest.$ac_ext >&5
27194
27195ac_header_compiler=no
27196fi
ac1cb8d3 27197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27198echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27199echo "${ECHO_T}$ac_header_compiler" >&6
27200
27201# Is the header present?
27202echo "$as_me:$LINENO: checking windows.h presence" >&5
27203echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
27204cat >conftest.$ac_ext <<_ACEOF
27205/* confdefs.h. */
27206_ACEOF
27207cat confdefs.h >>conftest.$ac_ext
27208cat >>conftest.$ac_ext <<_ACEOF
27209/* end confdefs.h. */
27210#include <windows.h>
27211_ACEOF
27212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27214 ac_status=$?
27215 grep -v '^ *+' conftest.er1 >conftest.err
27216 rm -f conftest.er1
27217 cat conftest.err >&5
27218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219 (exit $ac_status); } >/dev/null; then
27220 if test -s conftest.err; then
5d7b7554
VZ
27221 ac_cpp_err=$ac_cxx_preproc_warn_flag
27222 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27223 else
27224 ac_cpp_err=
27225 fi
27226else
27227 ac_cpp_err=yes
27228fi
27229if test -z "$ac_cpp_err"; then
27230 ac_header_preproc=yes
27231else
27232 echo "$as_me: failed program was:" >&5
27233sed 's/^/| /' conftest.$ac_ext >&5
27234
27235 ac_header_preproc=no
27236fi
27237rm -f conftest.err conftest.$ac_ext
27238echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27239echo "${ECHO_T}$ac_header_preproc" >&6
27240
27241# So? What about this header?
5d7b7554 27242case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27243 yes:no: )
a848cd7e
SC
27244 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
27245echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27246 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
27247echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
27248 ac_header_preproc=yes
a848cd7e 27249 ;;
ac1cb8d3 27250 no:yes:* )
a848cd7e
SC
27251 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
27252echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27253 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
27254echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
27255 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
27256echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
27257 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
27258echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27259 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
27260echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27261 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
27262echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27263 (
27264 cat <<\_ASBOX
ac1cb8d3
VS
27265## ----------------------------------------- ##
27266## Report this to wx-dev@lists.wxwidgets.org ##
27267## ----------------------------------------- ##
a848cd7e
SC
27268_ASBOX
27269 ) |
27270 sed "s/^/$as_me: WARNING: /" >&2
27271 ;;
27272esac
27273echo "$as_me:$LINENO: checking for windows.h" >&5
27274echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27275if test "${ac_cv_header_windows_h+set}" = set; then
27276 echo $ECHO_N "(cached) $ECHO_C" >&6
27277else
27278 ac_cv_header_windows_h=$ac_header_preproc
27279fi
27280echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27281echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27282
27283fi
27284if test $ac_cv_header_windows_h = yes; then
27285 :
27286else
27287
27288 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27289echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27290 { (exit 1); exit 1; }; }
27291
27292fi
27293
27294
27295
27296 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27297
27298 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27299 LIBS="$LIBS -loleacc"
27300 fi
27301
27302 case "${host}" in
27303 *-*-cygwin* )
27304 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
27305 esac
27306
27307 if test "$wxUSE_ODBC" = "sys" ; then
27308 wxUSE_ODBC = "yes"
27309 fi
27310 if test "$wxUSE_ODBC" = "yes" ; then
27311 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27312 cat >>confdefs.h <<\_ACEOF
27313#define wxUSE_ODBC 1
27314_ACEOF
27315
27316 fi
27317
370d2fd7 27318 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
27319 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27320
004ee6da 27321 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 27322
a848cd7e 27323 WIN32INSTALL=win32install
5f41d1bf
MW
27324
27325 echo "$as_me:$LINENO: checking for boolean" >&5
27326echo $ECHO_N "checking for boolean... $ECHO_C" >&6
27327if test "${ac_cv_type_boolean+set}" = set; then
27328 echo $ECHO_N "(cached) $ECHO_C" >&6
27329else
27330 cat >conftest.$ac_ext <<_ACEOF
27331/* confdefs.h. */
27332_ACEOF
27333cat confdefs.h >>conftest.$ac_ext
27334cat >>conftest.$ac_ext <<_ACEOF
27335/* end confdefs.h. */
27336#include <windows.h>
27337
27338int
27339main ()
27340{
27341if ((boolean *) 0)
27342 return 0;
27343if (sizeof (boolean))
27344 return 0;
27345 ;
27346 return 0;
27347}
27348_ACEOF
27349rm -f conftest.$ac_objext
27350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27351 (eval $ac_compile) 2>conftest.er1
27352 ac_status=$?
27353 grep -v '^ *+' conftest.er1 >conftest.err
27354 rm -f conftest.er1
27355 cat conftest.err >&5
27356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357 (exit $ac_status); } &&
64b75e64 27358 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5f41d1bf
MW
27359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27360 (eval $ac_try) 2>&5
27361 ac_status=$?
27362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363 (exit $ac_status); }; } &&
27364 { ac_try='test -s conftest.$ac_objext'
27365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27366 (eval $ac_try) 2>&5
27367 ac_status=$?
27368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369 (exit $ac_status); }; }; then
27370 ac_cv_type_boolean=yes
27371else
27372 echo "$as_me: failed program was:" >&5
27373sed 's/^/| /' conftest.$ac_ext >&5
27374
27375ac_cv_type_boolean=no
27376fi
27377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27378fi
27379echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27380echo "${ECHO_T}$ac_cv_type_boolean" >&6
27381if test $ac_cv_type_boolean = yes; then
27382
27383cat >>confdefs.h <<_ACEOF
27384#define HAVE_BOOLEAN 1
27385_ACEOF
27386
27387
27388fi
27389
dcfd4ac4
MW
27390
27391
27392for ac_header in pbt.h
27393do
27394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27395if eval "test \"\${$as_ac_Header+set}\" = set"; then
27396 echo "$as_me:$LINENO: checking for $ac_header" >&5
27397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27398if eval "test \"\${$as_ac_Header+set}\" = set"; then
27399 echo $ECHO_N "(cached) $ECHO_C" >&6
27400fi
27401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27402echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27403else
27404 # Is the header compilable?
27405echo "$as_me:$LINENO: checking $ac_header usability" >&5
27406echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27407cat >conftest.$ac_ext <<_ACEOF
27408/* confdefs.h. */
27409_ACEOF
27410cat confdefs.h >>conftest.$ac_ext
27411cat >>conftest.$ac_ext <<_ACEOF
27412/* end confdefs.h. */
27413$ac_includes_default
27414#include <$ac_header>
27415_ACEOF
27416rm -f conftest.$ac_objext
27417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27418 (eval $ac_compile) 2>conftest.er1
27419 ac_status=$?
27420 grep -v '^ *+' conftest.er1 >conftest.err
27421 rm -f conftest.er1
27422 cat conftest.err >&5
27423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424 (exit $ac_status); } &&
64b75e64 27425 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
dcfd4ac4
MW
27426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27427 (eval $ac_try) 2>&5
27428 ac_status=$?
27429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430 (exit $ac_status); }; } &&
27431 { ac_try='test -s conftest.$ac_objext'
27432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27433 (eval $ac_try) 2>&5
27434 ac_status=$?
27435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436 (exit $ac_status); }; }; then
27437 ac_header_compiler=yes
27438else
27439 echo "$as_me: failed program was:" >&5
27440sed 's/^/| /' conftest.$ac_ext >&5
27441
27442ac_header_compiler=no
27443fi
27444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27445echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27446echo "${ECHO_T}$ac_header_compiler" >&6
27447
27448# Is the header present?
27449echo "$as_me:$LINENO: checking $ac_header presence" >&5
27450echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27451cat >conftest.$ac_ext <<_ACEOF
27452/* confdefs.h. */
27453_ACEOF
27454cat confdefs.h >>conftest.$ac_ext
27455cat >>conftest.$ac_ext <<_ACEOF
27456/* end confdefs.h. */
27457#include <$ac_header>
27458_ACEOF
27459if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27461 ac_status=$?
27462 grep -v '^ *+' conftest.er1 >conftest.err
27463 rm -f conftest.er1
27464 cat conftest.err >&5
27465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466 (exit $ac_status); } >/dev/null; then
27467 if test -s conftest.err; then
27468 ac_cpp_err=$ac_cxx_preproc_warn_flag
27469 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27470 else
27471 ac_cpp_err=
27472 fi
27473else
27474 ac_cpp_err=yes
27475fi
27476if test -z "$ac_cpp_err"; then
27477 ac_header_preproc=yes
27478else
27479 echo "$as_me: failed program was:" >&5
27480sed 's/^/| /' conftest.$ac_ext >&5
27481
27482 ac_header_preproc=no
27483fi
27484rm -f conftest.err conftest.$ac_ext
27485echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27486echo "${ECHO_T}$ac_header_preproc" >&6
27487
27488# So? What about this header?
27489case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27490 yes:no: )
27491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27492echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27494echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27495 ac_header_preproc=yes
27496 ;;
27497 no:yes:* )
27498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27499echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27501echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27503echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27505echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27507echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27509echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27510 (
27511 cat <<\_ASBOX
27512## ----------------------------------------- ##
27513## Report this to wx-dev@lists.wxwidgets.org ##
27514## ----------------------------------------- ##
27515_ASBOX
27516 ) |
27517 sed "s/^/$as_me: WARNING: /" >&2
27518 ;;
27519esac
27520echo "$as_me:$LINENO: checking for $ac_header" >&5
27521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27522if eval "test \"\${$as_ac_Header+set}\" = set"; then
27523 echo $ECHO_N "(cached) $ECHO_C" >&6
27524else
27525 eval "$as_ac_Header=\$ac_header_preproc"
27526fi
27527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27528echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27529
27530fi
27531if test `eval echo '${'$as_ac_Header'}'` = yes; then
27532 cat >>confdefs.h <<_ACEOF
27533#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27534_ACEOF
27535
27536else
27537 cat >>confdefs.h <<\_ACEOF
27538#define NEED_PBT_H 1
27539_ACEOF
27540
27541fi
27542
27543done
27544
a848cd7e
SC
27545fi
27546
27547if test "$wxUSE_GUI" = "yes"; then
27548 USE_GUI=1
27549
27550 GUI_TK_LIBRARY=
27551
27552 WXGTK12=
27553 WXGTK127=
27554 WXGTK20=
27555 WXGPE=
27556
207bc66c
RN
27557 if test "$wxUSE_COCOA" = 1 ; then
27558 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27559 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27560echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27561 wxUSE_PRINTING_ARCHITECTURE=no
27562 fi
27563 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27564 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27565echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27566 wxUSE_DRAG_AND_DROP=no
27567 fi
27568 if test "$wxUSE_DRAGIMAGE" = "yes"; then
27569 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27570echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27571 wxUSE_DRAGIMAGE=no
27572 fi
27573 fi
27574
a848cd7e
SC
27575 if test "$wxUSE_MSW" = 1 ; then
27576 TOOLKIT=MSW
27577 GUIDIST=MSW_DIST
27578
ceec2216 27579 case "${host}" in
a848cd7e
SC
27580 *-*-mingw32* )
27581 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27582 esac
27583 fi
27584
27585 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
27586 ac_ext=c
27587ac_cpp='$CPP $CPPFLAGS'
27588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27590ac_compiler_gnu=$ac_cv_c_compiler_gnu
27591
27592
a848cd7e
SC
27593 echo "$as_me:$LINENO: checking for GTK+ version" >&5
27594echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27595
27596 gtk_version_cached=1
27597 if test "${wx_cv_lib_gtk+set}" = set; then
27598 echo $ECHO_N "(cached) $ECHO_C" >&6
27599else
27600
27601 gtk_version_cached=0
27602 echo "$as_me:$LINENO: result: " >&5
27603echo "${ECHO_T}" >&6
27604
27605 GTK_MODULES=
27606 if test "$wxUSE_THREADS" = "yes"; then
27607 GTK_MODULES=gthread
27608 fi
27609
f597b41c 27610 wx_cv_lib_gtk=
5001df0d
MW
27611 if test "x$wxGTK_VERSION" != "x1"
27612 then
27613 case "${host}" in
27614 *-*-solaris2* )
27615 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 27616 enable_gtktest=no
5001df0d
MW
27617 fi
27618 esac
27619
a848cd7e
SC
27620 # Check whether --enable-gtktest or --disable-gtktest was given.
27621if test "${enable_gtktest+set}" = set; then
27622 enableval="$enable_gtktest"
27623
27624else
27625 enable_gtktest=yes
27626fi;
27627
27628 pkg_config_args=gtk+-2.0
27629 for module in . $GTK_MODULES
27630 do
27631 case "$module" in
27632 gthread)
27633 pkg_config_args="$pkg_config_args gthread-2.0"
27634 ;;
27635 esac
27636 done
27637
27638 no_gtk=""
27639
27640 # Extract the first word of "pkg-config", so it can be a program name with args.
27641set dummy pkg-config; ac_word=$2
27642echo "$as_me:$LINENO: checking for $ac_word" >&5
27643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27644if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27645 echo $ECHO_N "(cached) $ECHO_C" >&6
27646else
27647 case $PKG_CONFIG in
27648 [\\/]* | ?:[\\/]*)
27649 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27650 ;;
27651 *)
27652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27653for as_dir in $PATH
27654do
27655 IFS=$as_save_IFS
27656 test -z "$as_dir" && as_dir=.
27657 for ac_exec_ext in '' $ac_executable_extensions; do
27658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27659 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27661 break 2
27662 fi
27663done
27664done
27665
27666 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27667 ;;
27668esac
27669fi
27670PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27671
27672if test -n "$PKG_CONFIG"; then
27673 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27674echo "${ECHO_T}$PKG_CONFIG" >&6
27675else
27676 echo "$as_me:$LINENO: result: no" >&5
27677echo "${ECHO_T}no" >&6
27678fi
27679
27680
27681 if test x$PKG_CONFIG != xno ; then
27682 if pkg-config --atleast-pkgconfig-version 0.7 ; then
27683 :
27684 else
c2218763 27685 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
27686 no_gtk=yes
27687 PKG_CONFIG=no
27688 fi
27689 else
27690 no_gtk=yes
27691 fi
27692
27693 min_gtk_version=2.0.0
27694 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27695echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27696
27697 if test x$PKG_CONFIG != xno ; then
27698 ## don't try to run the test against uninstalled libtool libs
27699 if $PKG_CONFIG --uninstalled $pkg_config_args; then
27700 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27701 enable_gtktest=no
27702 fi
27703
27704 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27705 :
27706 else
27707 no_gtk=yes
27708 fi
27709 fi
27710
27711 if test x"$no_gtk" = x ; then
27712 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27713 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27714 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27715 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27716 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27717 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27718 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27719 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27720 if test "x$enable_gtktest" = "xyes" ; then
27721 ac_save_CFLAGS="$CFLAGS"
27722 ac_save_LIBS="$LIBS"
27723 CFLAGS="$CFLAGS $GTK_CFLAGS"
27724 LIBS="$GTK_LIBS $LIBS"
27725 rm -f conf.gtktest
27726 if test "$cross_compiling" = yes; then
27727 echo $ac_n "cross compiling; assumed OK... $ac_c"
27728else
27729 cat >conftest.$ac_ext <<_ACEOF
27730/* confdefs.h. */
27731_ACEOF
27732cat confdefs.h >>conftest.$ac_ext
27733cat >>conftest.$ac_ext <<_ACEOF
27734/* end confdefs.h. */
27735
27736#include <gtk/gtk.h>
27737#include <stdio.h>
27738#include <stdlib.h>
27739
27740int
27741main ()
27742{
27743 int major, minor, micro;
27744 char *tmp_version;
27745
27746 system ("touch conf.gtktest");
27747
27748 /* HP/UX 9 (%@#!) writes to sscanf strings */
27749 tmp_version = g_strdup("$min_gtk_version");
27750 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27751 printf("%s, bad version string\n", "$min_gtk_version");
27752 exit(1);
27753 }
27754
27755 if ((gtk_major_version != $gtk_config_major_version) ||
27756 (gtk_minor_version != $gtk_config_minor_version) ||
27757 (gtk_micro_version != $gtk_config_micro_version))
27758 {
27759 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27760 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27761 gtk_major_version, gtk_minor_version, gtk_micro_version);
27762 printf ("*** was found! If pkg-config was correct, then it is best\n");
27763 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27764 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27765 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27766 printf("*** required on your system.\n");
27767 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27768 printf("*** to point to the correct configuration files\n");
27769 }
27770 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27771 (gtk_minor_version != GTK_MINOR_VERSION) ||
27772 (gtk_micro_version != GTK_MICRO_VERSION))
27773 {
27774 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27775 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27776 printf("*** library (version %d.%d.%d)\n",
27777 gtk_major_version, gtk_minor_version, gtk_micro_version);
27778 }
27779 else
27780 {
27781 if ((gtk_major_version > major) ||
27782 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27783 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27784 {
27785 return 0;
27786 }
27787 else
27788 {
27789 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27790 gtk_major_version, gtk_minor_version, gtk_micro_version);
27791 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27792 major, minor, micro);
27793 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27794 printf("***\n");
27795 printf("*** If you have already installed a sufficiently new version, this error\n");
27796 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27797 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27798 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27799 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27800 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27801 printf("*** so that the correct libraries are found at run-time))\n");
27802 }
27803 }
27804 return 1;
27805}
27806
27807_ACEOF
27808rm -f conftest$ac_exeext
27809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27810 (eval $ac_link) 2>&5
27811 ac_status=$?
27812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27815 (eval $ac_try) 2>&5
27816 ac_status=$?
27817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818 (exit $ac_status); }; }; then
27819 :
27820else
27821 echo "$as_me: program exited with status $ac_status" >&5
27822echo "$as_me: failed program was:" >&5
27823sed 's/^/| /' conftest.$ac_ext >&5
27824
27825( exit $ac_status )
27826no_gtk=yes
27827fi
ac1cb8d3 27828rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27829fi
27830 CFLAGS="$ac_save_CFLAGS"
27831 LIBS="$ac_save_LIBS"
27832 fi
27833 fi
27834 if test "x$no_gtk" = x ; then
27835 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27836echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27837 wx_cv_lib_gtk=2.0
27838 else
27839 echo "$as_me:$LINENO: result: no" >&5
27840echo "${ECHO_T}no" >&6
27841 if test "$PKG_CONFIG" = "no" ; then
27842 echo "*** A new enough version of pkg-config was not found."
27843 echo "*** See http://pkgconfig.sourceforge.net"
27844 else
27845 if test -f conf.gtktest ; then
27846 :
27847 else
27848 echo "*** Could not run GTK+ test program, checking why..."
27849 ac_save_CFLAGS="$CFLAGS"
27850 ac_save_LIBS="$LIBS"
27851 CFLAGS="$CFLAGS $GTK_CFLAGS"
27852 LIBS="$LIBS $GTK_LIBS"
27853 cat >conftest.$ac_ext <<_ACEOF
27854/* confdefs.h. */
27855_ACEOF
27856cat confdefs.h >>conftest.$ac_ext
27857cat >>conftest.$ac_ext <<_ACEOF
27858/* end confdefs.h. */
27859
27860#include <gtk/gtk.h>
27861#include <stdio.h>
27862
27863int
27864main ()
27865{
27866 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27867 ;
27868 return 0;
27869}
27870_ACEOF
27871rm -f conftest.$ac_objext conftest$ac_exeext
27872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27873 (eval $ac_link) 2>conftest.er1
a848cd7e 27874 ac_status=$?
ac1cb8d3
VS
27875 grep -v '^ *+' conftest.er1 >conftest.err
27876 rm -f conftest.er1
27877 cat conftest.err >&5
a848cd7e
SC
27878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879 (exit $ac_status); } &&
64b75e64 27880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27882 (eval $ac_try) 2>&5
27883 ac_status=$?
27884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885 (exit $ac_status); }; } &&
27886 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27888 (eval $ac_try) 2>&5
27889 ac_status=$?
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); }; }; then
27892 echo "*** The test program compiled, but did not run. This usually means"
27893 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27894 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27895 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27896 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27897 echo "*** is required on your system"
27898 echo "***"
27899 echo "*** If you have an old version installed, it is best to remove it, although"
27900 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27901else
27902 echo "$as_me: failed program was:" >&5
27903sed 's/^/| /' conftest.$ac_ext >&5
27904
27905 echo "*** The test program failed to compile or link. See the file config.log for the"
27906 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27907fi
ac1cb8d3
VS
27908rm -f conftest.err conftest.$ac_objext \
27909 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27910 CFLAGS="$ac_save_CFLAGS"
27911 LIBS="$ac_save_LIBS"
27912 fi
27913 fi
27914 GTK_CFLAGS=""
27915 GTK_LIBS=""
27916 :
27917 fi
27918
27919
27920 rm -f conf.gtktest
27921
5001df0d
MW
27922
27923 case "${host}" in
27924 *-*-solaris2* )
27925 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27926 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27927 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27928 fi
27929 if test "$wxUSE_SHARED" != "yes"; then
27930 GTK_LIBS="$GTK_LIBS -lX11"
27931 fi
27932 esac
f597b41c
MW
27933 fi
27934
f34ca037
MW
27935 if test -z "$wx_cv_lib_gtk"; then
27936 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
27937
27938# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27939if test "${with_gtk_prefix+set}" = set; then
27940 withval="$with_gtk_prefix"
27941 gtk_config_prefix="$withval"
27942else
27943 gtk_config_prefix=""
27944fi;
27945
27946# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27947if test "${with_gtk_exec_prefix+set}" = set; then
27948 withval="$with_gtk_exec_prefix"
27949 gtk_config_exec_prefix="$withval"
27950else
27951 gtk_config_exec_prefix=""
27952fi;
27953# Check whether --enable-gtktest or --disable-gtktest was given.
27954if test "${enable_gtktest+set}" = set; then
27955 enableval="$enable_gtktest"
27956
27957else
27958 enable_gtktest=yes
27959fi;
27960
27961 for module in . $GTK_MODULES
27962 do
27963 case "$module" in
27964 gthread)
27965 gtk_config_args="$gtk_config_args gthread"
27966 ;;
27967 esac
27968 done
27969
27970 if test x$gtk_config_exec_prefix != x ; then
27971 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27972 if test x${GTK_CONFIG+set} != xset ; then
27973 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27974 fi
27975 fi
27976 if test x$gtk_config_prefix != x ; then
27977 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27978 if test x${GTK_CONFIG+set} != xset ; then
27979 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27980 fi
27981 fi
27982
27983 # Extract the first word of "gtk-config", so it can be a program name with args.
27984set dummy gtk-config; ac_word=$2
27985echo "$as_me:$LINENO: checking for $ac_word" >&5
27986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27987if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27988 echo $ECHO_N "(cached) $ECHO_C" >&6
27989else
27990 case $GTK_CONFIG in
27991 [\\/]* | ?:[\\/]*)
27992 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27993 ;;
27994 *)
27995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27996for as_dir in $PATH
27997do
27998 IFS=$as_save_IFS
27999 test -z "$as_dir" && as_dir=.
28000 for ac_exec_ext in '' $ac_executable_extensions; do
28001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28002 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28004 break 2
28005 fi
28006done
28007done
28008
28009 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28010 ;;
28011esac
28012fi
28013GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28014
28015if test -n "$GTK_CONFIG"; then
28016 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28017echo "${ECHO_T}$GTK_CONFIG" >&6
28018else
28019 echo "$as_me:$LINENO: result: no" >&5
28020echo "${ECHO_T}no" >&6
28021fi
28022
28023 min_gtk_version=1.2.7
28024 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28025echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28026 no_gtk=""
28027 if test "$GTK_CONFIG" = "no" ; then
28028 no_gtk=yes
28029 else
28030 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28031 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28032 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28033 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28034 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28035 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28036 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28037 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28038 if test "x$enable_gtktest" = "xyes" ; then
28039 ac_save_CFLAGS="$CFLAGS"
28040 ac_save_LIBS="$LIBS"
28041 CFLAGS="$CFLAGS $GTK_CFLAGS"
28042 LIBS="$GTK_LIBS $LIBS"
28043 rm -f conf.gtktest
28044 if test "$cross_compiling" = yes; then
28045 echo $ac_n "cross compiling; assumed OK... $ac_c"
28046else
28047 cat >conftest.$ac_ext <<_ACEOF
28048/* confdefs.h. */
28049_ACEOF
28050cat confdefs.h >>conftest.$ac_ext
28051cat >>conftest.$ac_ext <<_ACEOF
28052/* end confdefs.h. */
28053
28054#include <gtk/gtk.h>
28055#include <stdio.h>
28056#include <stdlib.h>
28057
28058int
28059main ()
28060{
28061 int major, minor, micro;
28062 char *tmp_version;
28063
28064 system ("touch conf.gtktest");
28065
28066 /* HP/UX 9 (%@#!) writes to sscanf strings */
28067 tmp_version = g_strdup("$min_gtk_version");
28068 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28069 printf("%s, bad version string\n", "$min_gtk_version");
28070 exit(1);
28071 }
28072
28073 if ((gtk_major_version != $gtk_config_major_version) ||
28074 (gtk_minor_version != $gtk_config_minor_version) ||
28075 (gtk_micro_version != $gtk_config_micro_version))
28076 {
28077 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28078 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28079 gtk_major_version, gtk_minor_version, gtk_micro_version);
28080 printf ("*** was found! If gtk-config was correct, then it is best\n");
28081 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28082 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28083 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28084 printf("*** required on your system.\n");
28085 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28086 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28087 printf("*** before re-running configure\n");
28088 }
28089#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28090 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28091 (gtk_minor_version != GTK_MINOR_VERSION) ||
28092 (gtk_micro_version != GTK_MICRO_VERSION))
28093 {
28094 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28095 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28096 printf("*** library (version %d.%d.%d)\n",
28097 gtk_major_version, gtk_minor_version, gtk_micro_version);
28098 }
28099#endif /* defined (GTK_MAJOR_VERSION) ... */
28100 else
28101 {
28102 if ((gtk_major_version > major) ||
28103 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28104 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28105 {
28106 return 0;
28107 }
28108 else
28109 {
28110 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28111 gtk_major_version, gtk_minor_version, gtk_micro_version);
28112 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28113 major, minor, micro);
28114 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28115 printf("***\n");
28116 printf("*** If you have already installed a sufficiently new version, this error\n");
28117 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28118 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28119 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28120 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28121 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28122 printf("*** so that the correct libraries are found at run-time))\n");
28123 }
28124 }
28125 return 1;
28126}
28127
28128_ACEOF
28129rm -f conftest$ac_exeext
28130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28131 (eval $ac_link) 2>&5
28132 ac_status=$?
28133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28136 (eval $ac_try) 2>&5
28137 ac_status=$?
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); }; }; then
28140 :
28141else
28142 echo "$as_me: program exited with status $ac_status" >&5
28143echo "$as_me: failed program was:" >&5
28144sed 's/^/| /' conftest.$ac_ext >&5
28145
28146( exit $ac_status )
28147no_gtk=yes
28148fi
ac1cb8d3 28149rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28150fi
28151 CFLAGS="$ac_save_CFLAGS"
28152 LIBS="$ac_save_LIBS"
28153 fi
28154 fi
28155 if test "x$no_gtk" = x ; then
28156 echo "$as_me:$LINENO: result: yes" >&5
28157echo "${ECHO_T}yes" >&6
28158 wx_cv_lib_gtk=1.2.7
28159 else
28160 echo "$as_me:$LINENO: result: no" >&5
28161echo "${ECHO_T}no" >&6
28162 if test "$GTK_CONFIG" = "no" ; then
28163 echo "*** The gtk-config script installed by GTK could not be found"
28164 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28165 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28166 echo "*** full path to gtk-config."
28167 else
28168 if test -f conf.gtktest ; then
28169 :
28170 else
28171 echo "*** Could not run GTK test program, checking why..."
28172 CFLAGS="$CFLAGS $GTK_CFLAGS"
28173 LIBS="$LIBS $GTK_LIBS"
28174 cat >conftest.$ac_ext <<_ACEOF
28175/* confdefs.h. */
28176_ACEOF
28177cat confdefs.h >>conftest.$ac_ext
28178cat >>conftest.$ac_ext <<_ACEOF
28179/* end confdefs.h. */
28180
28181#include <gtk/gtk.h>
28182#include <stdio.h>
28183
28184int
28185main ()
28186{
28187 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28188 ;
28189 return 0;
28190}
28191_ACEOF
28192rm -f conftest.$ac_objext conftest$ac_exeext
28193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28194 (eval $ac_link) 2>conftest.er1
a848cd7e 28195 ac_status=$?
ac1cb8d3
VS
28196 grep -v '^ *+' conftest.er1 >conftest.err
28197 rm -f conftest.er1
28198 cat conftest.err >&5
a848cd7e
SC
28199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200 (exit $ac_status); } &&
64b75e64 28201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28203 (eval $ac_try) 2>&5
28204 ac_status=$?
28205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206 (exit $ac_status); }; } &&
28207 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28209 (eval $ac_try) 2>&5
28210 ac_status=$?
28211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212 (exit $ac_status); }; }; then
28213 echo "*** The test program compiled, but did not run. This usually means"
28214 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28215 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28216 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28217 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28218 echo "*** is required on your system"
28219 echo "***"
28220 echo "*** If you have an old version installed, it is best to remove it, although"
28221 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28222 echo "***"
28223 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28224 echo "*** came with the system with the command"
28225 echo "***"
28226 echo "*** rpm --erase --nodeps gtk gtk-devel"
28227else
28228 echo "$as_me: failed program was:" >&5
28229sed 's/^/| /' conftest.$ac_ext >&5
28230
28231 echo "*** The test program failed to compile or link. See the file config.log for the"
28232 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28233 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28234 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28235fi
ac1cb8d3
VS
28236rm -f conftest.err conftest.$ac_objext \
28237 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28238 CFLAGS="$ac_save_CFLAGS"
28239 LIBS="$ac_save_LIBS"
28240 fi
28241 fi
28242 GTK_CFLAGS=""
28243 GTK_LIBS=""
28244 :
28245 fi
28246
28247
28248 rm -f conf.gtktest
28249
28250
f34ca037 28251 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
28252
28253# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28254if test "${with_gtk_prefix+set}" = set; then
28255 withval="$with_gtk_prefix"
28256 gtk_config_prefix="$withval"
28257else
28258 gtk_config_prefix=""
28259fi;
28260
28261# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28262if test "${with_gtk_exec_prefix+set}" = set; then
28263 withval="$with_gtk_exec_prefix"
28264 gtk_config_exec_prefix="$withval"
28265else
28266 gtk_config_exec_prefix=""
28267fi;
28268# Check whether --enable-gtktest or --disable-gtktest was given.
28269if test "${enable_gtktest+set}" = set; then
28270 enableval="$enable_gtktest"
28271
28272else
28273 enable_gtktest=yes
28274fi;
28275
28276 for module in . $GTK_MODULES
28277 do
28278 case "$module" in
28279 gthread)
28280 gtk_config_args="$gtk_config_args gthread"
28281 ;;
28282 esac
28283 done
28284
28285 if test x$gtk_config_exec_prefix != x ; then
28286 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28287 if test x${GTK_CONFIG+set} != xset ; then
28288 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28289 fi
28290 fi
28291 if test x$gtk_config_prefix != x ; then
28292 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28293 if test x${GTK_CONFIG+set} != xset ; then
28294 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28295 fi
28296 fi
28297
28298 # Extract the first word of "gtk-config", so it can be a program name with args.
28299set dummy gtk-config; ac_word=$2
28300echo "$as_me:$LINENO: checking for $ac_word" >&5
28301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28302if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28303 echo $ECHO_N "(cached) $ECHO_C" >&6
28304else
28305 case $GTK_CONFIG in
28306 [\\/]* | ?:[\\/]*)
28307 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28308 ;;
28309 *)
28310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28311for as_dir in $PATH
28312do
28313 IFS=$as_save_IFS
28314 test -z "$as_dir" && as_dir=.
28315 for ac_exec_ext in '' $ac_executable_extensions; do
28316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28317 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28319 break 2
28320 fi
28321done
28322done
28323
28324 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28325 ;;
28326esac
28327fi
28328GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28329
28330if test -n "$GTK_CONFIG"; then
28331 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28332echo "${ECHO_T}$GTK_CONFIG" >&6
28333else
28334 echo "$as_me:$LINENO: result: no" >&5
28335echo "${ECHO_T}no" >&6
28336fi
28337
28338 min_gtk_version=1.2.3
28339 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28340echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28341 no_gtk=""
28342 if test "$GTK_CONFIG" = "no" ; then
28343 no_gtk=yes
28344 else
28345 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28346 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28347 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28348 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28349 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28350 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28351 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28352 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28353 if test "x$enable_gtktest" = "xyes" ; then
28354 ac_save_CFLAGS="$CFLAGS"
28355 ac_save_LIBS="$LIBS"
28356 CFLAGS="$CFLAGS $GTK_CFLAGS"
28357 LIBS="$GTK_LIBS $LIBS"
28358 rm -f conf.gtktest
28359 if test "$cross_compiling" = yes; then
28360 echo $ac_n "cross compiling; assumed OK... $ac_c"
28361else
28362 cat >conftest.$ac_ext <<_ACEOF
28363/* confdefs.h. */
28364_ACEOF
28365cat confdefs.h >>conftest.$ac_ext
28366cat >>conftest.$ac_ext <<_ACEOF
28367/* end confdefs.h. */
28368
28369#include <gtk/gtk.h>
28370#include <stdio.h>
28371#include <stdlib.h>
28372
28373int
28374main ()
28375{
28376 int major, minor, micro;
28377 char *tmp_version;
28378
28379 system ("touch conf.gtktest");
28380
28381 /* HP/UX 9 (%@#!) writes to sscanf strings */
28382 tmp_version = g_strdup("$min_gtk_version");
28383 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28384 printf("%s, bad version string\n", "$min_gtk_version");
28385 exit(1);
28386 }
28387
28388 if ((gtk_major_version != $gtk_config_major_version) ||
28389 (gtk_minor_version != $gtk_config_minor_version) ||
28390 (gtk_micro_version != $gtk_config_micro_version))
28391 {
28392 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28393 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28394 gtk_major_version, gtk_minor_version, gtk_micro_version);
28395 printf ("*** was found! If gtk-config was correct, then it is best\n");
28396 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28397 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28398 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28399 printf("*** required on your system.\n");
28400 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28401 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28402 printf("*** before re-running configure\n");
28403 }
28404#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28405 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28406 (gtk_minor_version != GTK_MINOR_VERSION) ||
28407 (gtk_micro_version != GTK_MICRO_VERSION))
28408 {
28409 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28410 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28411 printf("*** library (version %d.%d.%d)\n",
28412 gtk_major_version, gtk_minor_version, gtk_micro_version);
28413 }
28414#endif /* defined (GTK_MAJOR_VERSION) ... */
28415 else
28416 {
28417 if ((gtk_major_version > major) ||
28418 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28419 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28420 {
28421 return 0;
28422 }
28423 else
28424 {
28425 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28426 gtk_major_version, gtk_minor_version, gtk_micro_version);
28427 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28428 major, minor, micro);
28429 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28430 printf("***\n");
28431 printf("*** If you have already installed a sufficiently new version, this error\n");
28432 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28433 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28434 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28435 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28436 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28437 printf("*** so that the correct libraries are found at run-time))\n");
28438 }
28439 }
28440 return 1;
28441}
28442
28443_ACEOF
28444rm -f conftest$ac_exeext
28445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28446 (eval $ac_link) 2>&5
28447 ac_status=$?
28448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28451 (eval $ac_try) 2>&5
28452 ac_status=$?
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); }; }; then
28455 :
28456else
28457 echo "$as_me: program exited with status $ac_status" >&5
28458echo "$as_me: failed program was:" >&5
28459sed 's/^/| /' conftest.$ac_ext >&5
28460
28461( exit $ac_status )
28462no_gtk=yes
28463fi
ac1cb8d3 28464rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28465fi
28466 CFLAGS="$ac_save_CFLAGS"
28467 LIBS="$ac_save_LIBS"
28468 fi
28469 fi
28470 if test "x$no_gtk" = x ; then
28471 echo "$as_me:$LINENO: result: yes" >&5
28472echo "${ECHO_T}yes" >&6
28473 wx_cv_lib_gtk=1.2.3
28474 else
28475 echo "$as_me:$LINENO: result: no" >&5
28476echo "${ECHO_T}no" >&6
28477 if test "$GTK_CONFIG" = "no" ; then
28478 echo "*** The gtk-config script installed by GTK could not be found"
28479 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28480 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28481 echo "*** full path to gtk-config."
28482 else
28483 if test -f conf.gtktest ; then
28484 :
28485 else
28486 echo "*** Could not run GTK test program, checking why..."
28487 CFLAGS="$CFLAGS $GTK_CFLAGS"
28488 LIBS="$LIBS $GTK_LIBS"
28489 cat >conftest.$ac_ext <<_ACEOF
28490/* confdefs.h. */
28491_ACEOF
28492cat confdefs.h >>conftest.$ac_ext
28493cat >>conftest.$ac_ext <<_ACEOF
28494/* end confdefs.h. */
28495
28496#include <gtk/gtk.h>
28497#include <stdio.h>
28498
28499int
28500main ()
28501{
28502 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28503 ;
28504 return 0;
28505}
28506_ACEOF
28507rm -f conftest.$ac_objext conftest$ac_exeext
28508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28509 (eval $ac_link) 2>conftest.er1
a848cd7e 28510 ac_status=$?
ac1cb8d3
VS
28511 grep -v '^ *+' conftest.er1 >conftest.err
28512 rm -f conftest.er1
28513 cat conftest.err >&5
a848cd7e
SC
28514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515 (exit $ac_status); } &&
64b75e64 28516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28518 (eval $ac_try) 2>&5
28519 ac_status=$?
28520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521 (exit $ac_status); }; } &&
28522 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28524 (eval $ac_try) 2>&5
28525 ac_status=$?
28526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527 (exit $ac_status); }; }; then
28528 echo "*** The test program compiled, but did not run. This usually means"
28529 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28530 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28531 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28532 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28533 echo "*** is required on your system"
28534 echo "***"
28535 echo "*** If you have an old version installed, it is best to remove it, although"
28536 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28537 echo "***"
28538 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28539 echo "*** came with the system with the command"
28540 echo "***"
28541 echo "*** rpm --erase --nodeps gtk gtk-devel"
28542else
28543 echo "$as_me: failed program was:" >&5
28544sed 's/^/| /' conftest.$ac_ext >&5
28545
28546 echo "*** The test program failed to compile or link. See the file config.log for the"
28547 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28548 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28549 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28550fi
ac1cb8d3
VS
28551rm -f conftest.err conftest.$ac_objext \
28552 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28553 CFLAGS="$ac_save_CFLAGS"
28554 LIBS="$ac_save_LIBS"
28555 fi
28556 fi
28557 GTK_CFLAGS=""
28558 GTK_LIBS=""
28559 :
28560 fi
28561
28562
28563 rm -f conf.gtktest
28564
f34ca037 28565 fi
a848cd7e
SC
28566 fi
28567 fi
28568
28569 if test -z "$wx_cv_lib_gtk"; then
28570 wx_cv_lib_gtk=none
28571 else
28572 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 28573 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
28574 fi
28575
28576
28577fi
28578
28579
28580 if test "$gtk_version_cached" = 1; then
28581 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28582echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28583 fi
28584
28585 case "$wx_cv_lib_gtk" in
28586 2.0) WXGTK20=1
28587 TOOLKIT_VERSION=2
28588 ;;
28589 1.2.7) WXGTK127=1
28590 WXGTK12=1
28591 ;;
28592 1.2.3) WXGTK12=1
28593 ;;
28594 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
28595The development files for GTK+ were not found. For GTK+ 2, please
28596ensure that pkg-config is in the path and that gtk+-2.0.pc is
28597installed. For GTK+ 1.2 please check that gtk-config is in the path,
28598and that the version is 1.2.3 or above. Also check that the
28599libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28600--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28601 " >&5
28602echo "$as_me: error:
f597b41c
MW
28603The development files for GTK+ were not found. For GTK+ 2, please
28604ensure that pkg-config is in the path and that gtk+-2.0.pc is
28605installed. For GTK+ 1.2 please check that gtk-config is in the path,
28606and that the version is 1.2.3 or above. Also check that the
28607libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28608--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28609 " >&2;}
28610 { (exit 1); exit 1; }; }
28611 ;;
28612 esac
28613
28614 if test "$WXGTK20" = 1; then
6954625c 28615 save_CFLAGS="$CFLAGS"
304205f1 28616 save_LIBS="$LIBS"
6954625c 28617 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 28618 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 28619
58e65954
MW
28620 echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
28621echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6
28622if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
28623 echo $ECHO_N "(cached) $ECHO_C" >&6
28624else
28625 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
28626/* confdefs.h. */
28627_ACEOF
28628cat confdefs.h >>conftest.$ac_ext
28629cat >>conftest.$ac_ext <<_ACEOF
28630/* end confdefs.h. */
58e65954 28631#include <gtk/gtk.h>
304205f1 28632
d12aef51
VZ
28633int
28634main ()
28635{
58e65954
MW
28636#ifndef gtk_icon_size_lookup
28637 char *p = (char *) gtk_icon_size_lookup;
28638#endif
abc736fd
MW
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); } &&
64b75e64 28653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
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
58e65954 28665 ac_cv_have_decl_gtk_icon_size_lookup=yes
abc736fd
MW
28666else
28667 echo "$as_me: failed program was:" >&5
28668sed 's/^/| /' conftest.$ac_ext >&5
28669
58e65954
MW
28670ac_cv_have_decl_gtk_icon_size_lookup=no
28671fi
28672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28673fi
28674echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
28675echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6
28676if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
abc736fd 28677
58e65954
MW
28678cat >>confdefs.h <<_ACEOF
28679#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
abc736fd
MW
28680_ACEOF
28681
58e65954
MW
28682
28683else
28684 cat >>confdefs.h <<_ACEOF
28685#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
28686_ACEOF
28687
28688cat >>confdefs.h <<\_ACEOF
28689#define NEED_GTK_ICON_SIZE_LOOKUP 1
28690_ACEOF
abc736fd
MW
28691
28692fi
58e65954
MW
28693
28694
abc736fd 28695
e9263684
VZ
28696 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28697echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28698 cat >conftest.$ac_ext <<_ACEOF
28699/* confdefs.h. */
28700_ACEOF
28701cat confdefs.h >>conftest.$ac_ext
28702cat >>conftest.$ac_ext <<_ACEOF
28703/* end confdefs.h. */
28704
28705 #include <gtk/gtk.h>
28706
28707int
28708main ()
28709{
28710
28711 #if !GTK_CHECK_VERSION(2,6,0)
28712 Not GTK+ 2.6
28713 #endif
28714
28715 ;
28716 return 0;
28717}
28718_ACEOF
28719rm -f conftest.$ac_objext
28720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28721 (eval $ac_compile) 2>conftest.er1
28722 ac_status=$?
28723 grep -v '^ *+' conftest.er1 >conftest.err
28724 rm -f conftest.er1
28725 cat conftest.err >&5
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); } &&
64b75e64 28728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e9263684
VZ
28729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28730 (eval $ac_try) 2>&5
28731 ac_status=$?
28732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733 (exit $ac_status); }; } &&
28734 { ac_try='test -s conftest.$ac_objext'
28735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28736 (eval $ac_try) 2>&5
28737 ac_status=$?
28738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739 (exit $ac_status); }; }; then
28740
28741 cat >>confdefs.h <<\_ACEOF
28742#define __WXGTK26__ 1
28743_ACEOF
28744
28745 cat >>confdefs.h <<\_ACEOF
28746#define __WXGTK24__ 1
28747_ACEOF
28748
28749 echo "$as_me:$LINENO: result: yes" >&5
28750echo "${ECHO_T}yes" >&6
28751 ac_wxgtk26=1
28752
28753else
28754 echo "$as_me: failed program was:" >&5
28755sed 's/^/| /' conftest.$ac_ext >&5
28756
28757
28758 echo "$as_me:$LINENO: result: no" >&5
28759echo "${ECHO_T}no" >&6
28760 ac_wxgtk26=0
28761
28762fi
28763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28764
28765 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
28766 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28767echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28768 cat >conftest.$ac_ext <<_ACEOF
28769/* confdefs.h. */
28770_ACEOF
28771cat confdefs.h >>conftest.$ac_ext
28772cat >>conftest.$ac_ext <<_ACEOF
28773/* end confdefs.h. */
28774
28775 #include <gtk/gtk.h>
28776
28777int
28778main ()
28779{
28780
28781 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 28782 Not GTK+ 2.4
9755e73b
VS
28783 #endif
28784
28785 ;
28786 return 0;
28787}
28788_ACEOF
28789rm -f conftest.$ac_objext
28790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28791 (eval $ac_compile) 2>conftest.er1
28792 ac_status=$?
28793 grep -v '^ *+' conftest.er1 >conftest.err
28794 rm -f conftest.er1
28795 cat conftest.err >&5
28796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797 (exit $ac_status); } &&
64b75e64 28798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
28799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28800 (eval $ac_try) 2>&5
28801 ac_status=$?
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); }; } &&
28804 { ac_try='test -s conftest.$ac_objext'
28805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28806 (eval $ac_try) 2>&5
28807 ac_status=$?
28808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809 (exit $ac_status); }; }; then
28810
28811 cat >>confdefs.h <<\_ACEOF
28812#define __WXGTK24__ 1
28813_ACEOF
28814
28815 echo "$as_me:$LINENO: result: yes" >&5
28816echo "${ECHO_T}yes" >&6
28817
28818else
28819 echo "$as_me: failed program was:" >&5
28820sed 's/^/| /' conftest.$ac_ext >&5
28821
28822
28823 echo "$as_me:$LINENO: result: no" >&5
28824echo "${ECHO_T}no" >&6
28825
28826fi
28827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 28828 fi
9755e73b 28829
6954625c 28830 CFLAGS="$save_CFLAGS"
304205f1 28831 LIBS="$save_LIBS"
a848cd7e
SC
28832 else
28833 if test "$wxUSE_UNICODE" = "yes"; then
28834 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28835echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28836 wxUSE_UNICODE=no
28837 fi
64b75e64
RD
28838
28839 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28840echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28841if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28842 echo $ECHO_N "(cached) $ECHO_C" >&6
28843else
28844 ac_check_lib_save_LIBS=$LIBS
28845LIBS="-lgdk $LIBS"
28846cat >conftest.$ac_ext <<_ACEOF
28847/* confdefs.h. */
28848_ACEOF
28849cat confdefs.h >>conftest.$ac_ext
28850cat >>conftest.$ac_ext <<_ACEOF
28851/* end confdefs.h. */
28852
28853/* Override any gcc2 internal prototype to avoid an error. */
28854#ifdef __cplusplus
28855extern "C"
28856#endif
28857/* We use char because int might match the return type of a gcc2
28858 builtin and then its argument prototype would still apply. */
28859char gdk_im_open ();
28860int
28861main ()
28862{
28863gdk_im_open ();
28864 ;
28865 return 0;
28866}
28867_ACEOF
28868rm -f conftest.$ac_objext conftest$ac_exeext
28869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28870 (eval $ac_link) 2>conftest.er1
28871 ac_status=$?
28872 grep -v '^ *+' conftest.er1 >conftest.err
28873 rm -f conftest.er1
28874 cat conftest.err >&5
28875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876 (exit $ac_status); } &&
28877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28879 (eval $ac_try) 2>&5
28880 ac_status=$?
28881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28882 (exit $ac_status); }; } &&
28883 { ac_try='test -s conftest$ac_exeext'
28884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28885 (eval $ac_try) 2>&5
28886 ac_status=$?
28887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28888 (exit $ac_status); }; }; then
28889 ac_cv_lib_gdk_gdk_im_open=yes
28890else
28891 echo "$as_me: failed program was:" >&5
28892sed 's/^/| /' conftest.$ac_ext >&5
28893
28894ac_cv_lib_gdk_gdk_im_open=no
28895fi
28896rm -f conftest.err conftest.$ac_objext \
28897 conftest$ac_exeext conftest.$ac_ext
28898LIBS=$ac_check_lib_save_LIBS
28899fi
28900echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28901echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28902if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28903 cat >>confdefs.h <<\_ACEOF
28904#define HAVE_XIM 1
28905_ACEOF
28906
28907fi
28908
a848cd7e
SC
28909 fi
28910
e56f4f9e
VZ
28911 ac_ext=cc
28912ac_cpp='$CXXCPP $CPPFLAGS'
28913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28916
28917
a848cd7e
SC
28918 if test "$USE_DARWIN" != 1; then
28919
28920for ac_func in poll
28921do
28922as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28923echo "$as_me:$LINENO: checking for $ac_func" >&5
28924echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28925if eval "test \"\${$as_ac_var+set}\" = set"; then
28926 echo $ECHO_N "(cached) $ECHO_C" >&6
28927else
28928 cat >conftest.$ac_ext <<_ACEOF
28929/* confdefs.h. */
28930_ACEOF
28931cat confdefs.h >>conftest.$ac_ext
28932cat >>conftest.$ac_ext <<_ACEOF
28933/* end confdefs.h. */
ac1cb8d3
VS
28934/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28936#define $ac_func innocuous_$ac_func
28937
a848cd7e
SC
28938/* System header to define __stub macros and hopefully few prototypes,
28939 which can conflict with char $ac_func (); below.
28940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28941 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28942
a848cd7e
SC
28943#ifdef __STDC__
28944# include <limits.h>
28945#else
28946# include <assert.h>
28947#endif
ac1cb8d3
VS
28948
28949#undef $ac_func
28950
a848cd7e
SC
28951/* Override any gcc2 internal prototype to avoid an error. */
28952#ifdef __cplusplus
28953extern "C"
28954{
28955#endif
28956/* We use char because int might match the return type of a gcc2
28957 builtin and then its argument prototype would still apply. */
28958char $ac_func ();
28959/* The GNU C library defines this for functions which it implements
28960 to always fail with ENOSYS. Some functions are actually named
28961 something starting with __ and the normal name is an alias. */
28962#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28963choke me
28964#else
28965char (*f) () = $ac_func;
28966#endif
28967#ifdef __cplusplus
28968}
28969#endif
28970
28971int
28972main ()
28973{
28974return f != $ac_func;
28975 ;
28976 return 0;
28977}
28978_ACEOF
28979rm -f conftest.$ac_objext conftest$ac_exeext
28980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28981 (eval $ac_link) 2>conftest.er1
a848cd7e 28982 ac_status=$?
ac1cb8d3
VS
28983 grep -v '^ *+' conftest.er1 >conftest.err
28984 rm -f conftest.er1
28985 cat conftest.err >&5
a848cd7e
SC
28986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28987 (exit $ac_status); } &&
64b75e64 28988 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28990 (eval $ac_try) 2>&5
28991 ac_status=$?
28992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28993 (exit $ac_status); }; } &&
28994 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28996 (eval $ac_try) 2>&5
28997 ac_status=$?
28998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999 (exit $ac_status); }; }; then
29000 eval "$as_ac_var=yes"
29001else
29002 echo "$as_me: failed program was:" >&5
29003sed 's/^/| /' conftest.$ac_ext >&5
29004
29005eval "$as_ac_var=no"
29006fi
ac1cb8d3
VS
29007rm -f conftest.err conftest.$ac_objext \
29008 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29009fi
29010echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29011echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29012if test `eval echo '${'$as_ac_var'}'` = yes; then
29013 cat >>confdefs.h <<_ACEOF
29014#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29015_ACEOF
29016
29017fi
29018done
29019
29020 fi
29021
29022 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29023 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29024
29025 AFMINSTALL=afminstall
29026 TOOLKIT=GTK
29027 GUIDIST=GTK_DIST
29028
a848cd7e
SC
29029 if test "$wxUSE_GPE" = "yes"; then
29030 echo "$as_me:$LINENO: checking for gpewidget library" >&5
29031echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
29032
0ad5d837
VZ
29033 ac_find_libraries=
29034 for ac_dir in $SEARCH_LIB;
a848cd7e 29035 do
3eca31dc 29036 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29037 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29038 ac_find_libraries=$ac_dir
29039 break 2
29040 fi
29041 done
29042 done
29043
29044 if test "$ac_find_libraries" != "" ; then
29045
0ad5d837 29046 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29047 ac_path_to_link=""
29048 else
0ad5d837
VZ
29049 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29050 result=$?
29051 if test $result = 0; then
29052 ac_path_to_link=""
29053 else
29054 ac_path_to_link=" -L$ac_find_libraries"
29055 fi
a848cd7e
SC
29056 fi
29057
29058 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29059 WXGPE=1
0ad5d837
VZ
29060 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29061echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29062 else
29063 echo "$as_me:$LINENO: result: not found" >&5
29064echo "${ECHO_T}not found" >&6
29065 fi
29066
29067 fi
29068 fi
29069
29070 if test "$wxUSE_MGL" = 1; then
29071 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29072echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
29073 if test "x$MGL_ROOT" = x ; then
29074 echo "$as_me:$LINENO: result: not found" >&5
29075echo "${ECHO_T}not found" >&6
29076 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29077echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29078 { (exit 1); exit 1; }; }
29079 else
29080 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29081echo "${ECHO_T}$MGL_ROOT" >&6
29082 fi
29083
29084 echo "$as_me:$LINENO: checking for libmgl location" >&5
29085echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
29086 case "${host}" in
29087 *-*-linux* )
29088 if test "x$wxUSE_SHARED" = xyes ; then
29089 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29090 else
29091 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29092 fi
29093 ;;
29094 *-pc-msdosdjgpp )
29095 mgl_os_candidates="dos32/dj2"
29096 ;;
29097 *)
29098 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29099echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29100 { (exit 1); exit 1; }; }
29101 esac
29102
29103 mgl_lib_type=""
29104 mgl_os=""
29105
29106 for mgl_os_i in $mgl_os_candidates ; do
29107 if test "x$mgl_os" = x ; then
29108 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29109 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29110 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29111 mgl_lib_type=debug
29112 mgl_os=$mgl_os_i
29113 fi
29114 fi
29115 if test "x$mgl_lib_type" = x ; then
29116 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29117 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29118 mgl_lib_type=release
29119 mgl_os=$mgl_os_i
29120 fi
29121 fi
29122 fi
29123 done
29124
29125 if test "x$mgl_os" = x ; then
29126 echo "$as_me:$LINENO: result: not found" >&5
29127echo "${ECHO_T}not found" >&6
29128 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29129echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29130 { (exit 1); exit 1; }; }
29131 fi
29132 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29133echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
29134
29135 wxUSE_UNIVERSAL="yes"
29136
29137 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29138 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29139
29140 AFMINSTALL=afminstall
29141 TOOLKIT=MGL
29142 GUIDIST=MGL_DIST
29143 fi
29144
b3c86150
VS
29145 if test "$wxUSE_DFB" = 1; then
29146
29147
29148if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29149 if test -n "$ac_tool_prefix"; then
29150 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29151set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29152echo "$as_me:$LINENO: checking for $ac_word" >&5
29153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29154if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29155 echo $ECHO_N "(cached) $ECHO_C" >&6
29156else
29157 case $PKG_CONFIG in
29158 [\\/]* | ?:[\\/]*)
29159 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29160 ;;
29161 *)
29162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29163for as_dir in $PATH
29164do
29165 IFS=$as_save_IFS
29166 test -z "$as_dir" && as_dir=.
29167 for ac_exec_ext in '' $ac_executable_extensions; do
29168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29169 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29171 break 2
29172 fi
29173done
29174done
29175
29176 ;;
29177esac
29178fi
29179PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29180
29181if test -n "$PKG_CONFIG"; then
29182 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29183echo "${ECHO_T}$PKG_CONFIG" >&6
29184else
29185 echo "$as_me:$LINENO: result: no" >&5
29186echo "${ECHO_T}no" >&6
29187fi
29188
29189fi
29190if test -z "$ac_cv_path_PKG_CONFIG"; then
29191 ac_pt_PKG_CONFIG=$PKG_CONFIG
29192 # Extract the first word of "pkg-config", so it can be a program name with args.
29193set dummy pkg-config; ac_word=$2
29194echo "$as_me:$LINENO: checking for $ac_word" >&5
29195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29196if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29197 echo $ECHO_N "(cached) $ECHO_C" >&6
29198else
29199 case $ac_pt_PKG_CONFIG in
29200 [\\/]* | ?:[\\/]*)
29201 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29202 ;;
29203 *)
29204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29205for as_dir in $PATH
29206do
29207 IFS=$as_save_IFS
29208 test -z "$as_dir" && as_dir=.
29209 for ac_exec_ext in '' $ac_executable_extensions; do
29210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29211 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29213 break 2
29214 fi
29215done
29216done
29217
29218 ;;
29219esac
29220fi
29221ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29222
29223if test -n "$ac_pt_PKG_CONFIG"; then
29224 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29225echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
29226else
29227 echo "$as_me:$LINENO: result: no" >&5
29228echo "${ECHO_T}no" >&6
29229fi
29230
29231 PKG_CONFIG=$ac_pt_PKG_CONFIG
29232else
29233 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29234fi
29235
29236fi
29237if test -n "$PKG_CONFIG"; then
29238 _pkg_min_version=0.9.0
29239 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29240echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
29241 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29242 echo "$as_me:$LINENO: result: yes" >&5
29243echo "${ECHO_T}yes" >&6
29244 else
29245 echo "$as_me:$LINENO: result: no" >&5
29246echo "${ECHO_T}no" >&6
29247 PKG_CONFIG=""
29248 fi
29249
29250fi
29251
29252pkg_failed=no
29253echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29254echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
29255
29256if test -n "$PKG_CONFIG"; then
29257 if test -n "$DIRECTFB_CFLAGS"; then
29258 pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29259 else
29260 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29261 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29262 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29263 ac_status=$?
29264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29265 (exit $ac_status); }; then
737d3175 29266 pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29267else
29268 pkg_failed=yes
29269fi
29270 fi
29271else
29272 pkg_failed=untried
29273fi
29274if test -n "$PKG_CONFIG"; then
29275 if test -n "$DIRECTFB_LIBS"; then
29276 pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29277 else
29278 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29279 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29280 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29281 ac_status=$?
29282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283 (exit $ac_status); }; then
737d3175 29284 pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29285else
29286 pkg_failed=yes
29287fi
29288 fi
29289else
29290 pkg_failed=untried
29291fi
29292
29293
29294
29295if test $pkg_failed = yes; then
29296
29297if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29298 _pkg_short_errors_supported=yes
29299else
29300 _pkg_short_errors_supported=no
29301fi
29302 if test $_pkg_short_errors_supported = yes; then
737d3175 29303 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150 29304 else
737d3175 29305 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150
VS
29306 fi
29307 # Put the nasty error message in config.log where it belongs
29308 echo "$DIRECTFB_PKG_ERRORS" >&5
29309
29310
29311 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29312echo "$as_me: error: DirectFB not found." >&2;}
29313 { (exit 1); exit 1; }; }
29314
29315
29316elif test $pkg_failed = untried; then
29317
29318 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29319echo "$as_me: error: DirectFB not found." >&2;}
29320 { (exit 1); exit 1; }; }
29321
29322
29323else
29324 DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29325 DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29326 echo "$as_me:$LINENO: result: yes" >&5
29327echo "${ECHO_T}yes" >&6
29328
29329 wxUSE_UNIVERSAL="yes"
29330 TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29331 GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29332 TOOLKIT=DFB
29333 GUIDIST=DFB_DIST
29334
29335fi
29336 fi
29337
a848cd7e
SC
29338 if test "$wxUSE_MICROWIN" = 1; then
29339 echo "$as_me:$LINENO: checking for MicroWindows" >&5
29340echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
29341 if test "x$MICROWINDOWS" = x ; then
29342 echo "$as_me:$LINENO: result: not found" >&5
29343echo "${ECHO_T}not found" >&6
29344 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29345echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29346 { (exit 1); exit 1; }; }
29347 else
29348 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29349echo "${ECHO_T}$MICROWINDOWS" >&6
29350 fi
29351
29352 if test -f $MICROWINDOWS/lib/libmwin.a; then
29353 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29354echo "${ECHO_T}MicroWindows' libraries found." >&6
29355 else
29356 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29357echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29358 { (exit 1); exit 1; }; }
29359 fi
29360
29361 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29362 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29363
29364 wxUSE_UNIVERSAL="yes"
29365
29366 AFMINSTALL=afminstall
29367 TOOLKIT=MICROWIN
29368 GUIDIST=MICROWIN_DIST
29369
29370 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29371 fi
29372
74b84332 29373 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
64b75e64
RD
29374
29375if test "x$ac_path_x_has_been_run" != xyes; then
29376 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
29377echo $ECHO_N "checking for X... $ECHO_C" >&6
29378
64b75e64 29379ac_path_x_has_been_run=yes
a848cd7e
SC
29380
29381# Check whether --with-x or --without-x was given.
29382if test "${with_x+set}" = set; then
29383 withval="$with_x"
29384
29385fi;
29386# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29387if test "x$with_x" = xno; then
29388 # The user explicitly disabled X.
29389 have_x=disabled
29390else
29391 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29392 # Both variables are already set.
29393 have_x=yes
29394 else
29395 if test "${ac_cv_have_x+set}" = set; then
29396 echo $ECHO_N "(cached) $ECHO_C" >&6
29397else
29398 # One or both of the vars are not set, and there is no cached value.
29399ac_x_includes=no ac_x_libraries=no
29400rm -fr conftest.dir
29401if mkdir conftest.dir; then
29402 cd conftest.dir
29403 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29404 cat >Imakefile <<'_ACEOF'
29405acfindx:
29406 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29407_ACEOF
29408 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29409 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29410 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29411 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29412 for ac_extension in a so sl; do
29413 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
29414 test -f $ac_im_libdir/libX11.$ac_extension; then
29415 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
29416 fi
29417 done
29418 # Screen out bogus values from the imake configuration. They are
29419 # bogus both because they are the default anyway, and because
29420 # using them would break gcc on systems where it needs fixed includes.
29421 case $ac_im_incroot in
29422 /usr/include) ;;
29423 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29424 esac
29425 case $ac_im_usrlibdir in
29426 /usr/lib | /lib) ;;
29427 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29428 esac
29429 fi
29430 cd ..
29431 rm -fr conftest.dir
29432fi
29433
29434# Standard set of common directories for X headers.
29435# Check X11 before X11Rn because it is often a symlink to the current release.
29436ac_x_header_dirs='
29437/usr/X11/include
29438/usr/X11R6/include
29439/usr/X11R5/include
29440/usr/X11R4/include
29441
29442/usr/include/X11
29443/usr/include/X11R6
29444/usr/include/X11R5
29445/usr/include/X11R4
29446
29447/usr/local/X11/include
29448/usr/local/X11R6/include
29449/usr/local/X11R5/include
29450/usr/local/X11R4/include
29451
29452/usr/local/include/X11
29453/usr/local/include/X11R6
29454/usr/local/include/X11R5
29455/usr/local/include/X11R4
29456
29457/usr/X386/include
29458/usr/x386/include
29459/usr/XFree86/include/X11
29460
29461/usr/include
29462/usr/local/include
29463/usr/unsupported/include
29464/usr/athena/include
29465/usr/local/x11r5/include
29466/usr/lpp/Xamples/include
29467
29468/usr/openwin/include
29469/usr/openwin/share/include'
29470
29471if test "$ac_x_includes" = no; then
64b75e64 29472 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
29473 # First, try using that file with no special directory specified.
29474 cat >conftest.$ac_ext <<_ACEOF
29475/* confdefs.h. */
29476_ACEOF
29477cat confdefs.h >>conftest.$ac_ext
29478cat >>conftest.$ac_ext <<_ACEOF
29479/* end confdefs.h. */
3ea50042 29480#include <X11/Xlib.h>
a848cd7e
SC
29481_ACEOF
29482if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29484 ac_status=$?
29485 grep -v '^ *+' conftest.er1 >conftest.err
29486 rm -f conftest.er1
29487 cat conftest.err >&5
29488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489 (exit $ac_status); } >/dev/null; then
29490 if test -s conftest.err; then
5d7b7554
VZ
29491 ac_cpp_err=$ac_cxx_preproc_warn_flag
29492 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
29493 else
29494 ac_cpp_err=
29495 fi
29496else
29497 ac_cpp_err=yes
29498fi
29499if test -z "$ac_cpp_err"; then
29500 # We can compile using X headers with no special include directory.
29501ac_x_includes=
29502else
29503 echo "$as_me: failed program was:" >&5
29504sed 's/^/| /' conftest.$ac_ext >&5
29505
29506 for ac_dir in $ac_x_header_dirs; do
3ea50042 29507 if test -r "$ac_dir/X11/Xlib.h"; then
a848cd7e
SC
29508 ac_x_includes=$ac_dir
29509 break
29510 fi
29511done
29512fi
29513rm -f conftest.err conftest.$ac_ext
29514fi # $ac_x_includes = no
29515
29516if test "$ac_x_libraries" = no; then
29517 # Check for the libraries.
29518 # See if we find them without any special options.
29519 # Don't add to $LIBS permanently.
29520 ac_save_LIBS=$LIBS
64b75e64 29521 LIBS="-lX11 $LIBS"
a848cd7e
SC
29522 cat >conftest.$ac_ext <<_ACEOF
29523/* confdefs.h. */
29524_ACEOF
29525cat confdefs.h >>conftest.$ac_ext
29526cat >>conftest.$ac_ext <<_ACEOF
29527/* end confdefs.h. */
3ea50042 29528#include <X11/Xlib.h>
a848cd7e
SC
29529int
29530main ()
29531{
3ea50042 29532XrmInitialize ()
a848cd7e
SC
29533 ;
29534 return 0;
29535}
29536_ACEOF
29537rm -f conftest.$ac_objext conftest$ac_exeext
29538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29539 (eval $ac_link) 2>conftest.er1
a848cd7e 29540 ac_status=$?
ac1cb8d3
VS
29541 grep -v '^ *+' conftest.er1 >conftest.err
29542 rm -f conftest.er1
29543 cat conftest.err >&5
a848cd7e
SC
29544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545 (exit $ac_status); } &&
64b75e64 29546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29548 (eval $ac_try) 2>&5
29549 ac_status=$?
29550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551 (exit $ac_status); }; } &&
29552 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29554 (eval $ac_try) 2>&5
29555 ac_status=$?
29556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29557 (exit $ac_status); }; }; then
29558 LIBS=$ac_save_LIBS
29559# We can link X programs with no special library path.
29560ac_x_libraries=
29561else
29562 echo "$as_me: failed program was:" >&5
29563sed 's/^/| /' conftest.$ac_ext >&5
29564
29565LIBS=$ac_save_LIBS
29566for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29567do
29568 # Don't even attempt the hair of trying to link an X program!
29569 for ac_extension in a so sl; do
64b75e64 29570 if test -r $ac_dir/libX11.$ac_extension; then
a848cd7e
SC
29571 ac_x_libraries=$ac_dir
29572 break 2
29573 fi
29574 done
29575done
29576fi
ac1cb8d3
VS
29577rm -f conftest.err conftest.$ac_objext \
29578 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29579fi # $ac_x_libraries = no
29580
29581if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29582 # Didn't find X anywhere. Cache the known absence of X.
29583 ac_cv_have_x="have_x=no"
29584else
29585 # Record where we found X for the cache.
29586 ac_cv_have_x="have_x=yes \
ac1cb8d3 29587 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
29588fi
29589fi
29590
29591 fi
29592 eval "$ac_cv_have_x"
29593fi # $with_x != no
29594
29595if test "$have_x" != yes; then
29596 echo "$as_me:$LINENO: result: $have_x" >&5
29597echo "${ECHO_T}$have_x" >&6
29598 no_x=yes
29599else
29600 # If each of the values was on the command line, it overrides each guess.
29601 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29602 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29603 # Update the cache value to reflect the command line values.
29604 ac_cv_have_x="have_x=yes \
29605 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
64b75e64
RD
29606 # It might be that x_includes is empty (headers are found in the
29607 # standard search path. Then output the corresponding message
29608 ac_out_x_includes=$x_includes
29609 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
29610 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
29611echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
29612fi
29613
64b75e64 29614fi
a848cd7e
SC
29615if test "$no_x" = yes; then
29616 # Not all programs may use this symbol, but it does not hurt to define it.
29617
29618cat >>confdefs.h <<\_ACEOF
29619#define X_DISPLAY_MISSING 1
29620_ACEOF
29621
29622 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29623else
29624 if test -n "$x_includes"; then
29625 X_CFLAGS="$X_CFLAGS -I$x_includes"
29626 fi
29627
29628 # It would also be nice to do this for all -L options, not just this one.
29629 if test -n "$x_libraries"; then
29630 X_LIBS="$X_LIBS -L$x_libraries"
29631 # For Solaris; some versions of Sun CC require a space after -R and
29632 # others require no space. Words are not sufficient . . . .
29633 case `(uname -sr) 2>/dev/null` in
29634 "SunOS 5"*)
29635 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29636echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
29637 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29638 cat >conftest.$ac_ext <<_ACEOF
29639/* confdefs.h. */
29640_ACEOF
29641cat confdefs.h >>conftest.$ac_ext
29642cat >>conftest.$ac_ext <<_ACEOF
29643/* end confdefs.h. */
29644
29645int
29646main ()
29647{
29648
29649 ;
29650 return 0;
29651}
29652_ACEOF
29653rm -f conftest.$ac_objext conftest$ac_exeext
29654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29655 (eval $ac_link) 2>conftest.er1
a848cd7e 29656 ac_status=$?
ac1cb8d3
VS
29657 grep -v '^ *+' conftest.er1 >conftest.err
29658 rm -f conftest.er1
29659 cat conftest.err >&5
a848cd7e
SC
29660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661 (exit $ac_status); } &&
64b75e64 29662 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29664 (eval $ac_try) 2>&5
29665 ac_status=$?
29666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29667 (exit $ac_status); }; } &&
29668 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29670 (eval $ac_try) 2>&5
29671 ac_status=$?
29672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673 (exit $ac_status); }; }; then
29674 ac_R_nospace=yes
29675else
29676 echo "$as_me: failed program was:" >&5
29677sed 's/^/| /' conftest.$ac_ext >&5
29678
29679ac_R_nospace=no
29680fi
ac1cb8d3
VS
29681rm -f conftest.err conftest.$ac_objext \
29682 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29683 if test $ac_R_nospace = yes; then
29684 echo "$as_me:$LINENO: result: no" >&5
29685echo "${ECHO_T}no" >&6
29686 X_LIBS="$X_LIBS -R$x_libraries"
29687 else
29688 LIBS="$ac_xsave_LIBS -R $x_libraries"
29689 cat >conftest.$ac_ext <<_ACEOF
29690/* confdefs.h. */
29691_ACEOF
29692cat confdefs.h >>conftest.$ac_ext
29693cat >>conftest.$ac_ext <<_ACEOF
29694/* end confdefs.h. */
29695
29696int
29697main ()
29698{
29699
29700 ;
29701 return 0;
29702}
29703_ACEOF
29704rm -f conftest.$ac_objext conftest$ac_exeext
29705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29706 (eval $ac_link) 2>conftest.er1
a848cd7e 29707 ac_status=$?
ac1cb8d3
VS
29708 grep -v '^ *+' conftest.er1 >conftest.err
29709 rm -f conftest.er1
29710 cat conftest.err >&5
a848cd7e
SC
29711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29712 (exit $ac_status); } &&
64b75e64 29713 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29715 (eval $ac_try) 2>&5
29716 ac_status=$?
29717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718 (exit $ac_status); }; } &&
29719 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29721 (eval $ac_try) 2>&5
29722 ac_status=$?
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); }; }; then
29725 ac_R_space=yes
29726else
29727 echo "$as_me: failed program was:" >&5
29728sed 's/^/| /' conftest.$ac_ext >&5
29729
29730ac_R_space=no
29731fi
ac1cb8d3
VS
29732rm -f conftest.err conftest.$ac_objext \
29733 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29734 if test $ac_R_space = yes; then
29735 echo "$as_me:$LINENO: result: yes" >&5
29736echo "${ECHO_T}yes" >&6
29737 X_LIBS="$X_LIBS -R $x_libraries"
29738 else
29739 echo "$as_me:$LINENO: result: neither works" >&5
29740echo "${ECHO_T}neither works" >&6
29741 fi
29742 fi
29743 LIBS=$ac_xsave_LIBS
29744 esac
29745 fi
29746
29747 # Check for system-dependent libraries X programs must link with.
29748 # Do this before checking for the system-independent R6 libraries
29749 # (-lICE), since we may need -lsocket or whatever for X linking.
29750
29751 if test "$ISC" = yes; then
29752 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29753 else
29754 # Martyn Johnson says this is needed for Ultrix, if the X
29755 # libraries were built with DECnet support. And Karl Berry says
29756 # the Alpha needs dnet_stub (dnet does not exist).
29757 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29758 cat >conftest.$ac_ext <<_ACEOF
29759/* confdefs.h. */
29760_ACEOF
29761cat confdefs.h >>conftest.$ac_ext
29762cat >>conftest.$ac_ext <<_ACEOF
29763/* end confdefs.h. */
29764
29765/* Override any gcc2 internal prototype to avoid an error. */
29766#ifdef __cplusplus
29767extern "C"
29768#endif
29769/* We use char because int might match the return type of a gcc2
29770 builtin and then its argument prototype would still apply. */
29771char XOpenDisplay ();
29772int
29773main ()
29774{
29775XOpenDisplay ();
29776 ;
29777 return 0;
29778}
29779_ACEOF
29780rm -f conftest.$ac_objext conftest$ac_exeext
29781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29782 (eval $ac_link) 2>conftest.er1
a848cd7e 29783 ac_status=$?
ac1cb8d3
VS
29784 grep -v '^ *+' conftest.er1 >conftest.err
29785 rm -f conftest.er1
29786 cat conftest.err >&5
a848cd7e
SC
29787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788 (exit $ac_status); } &&
64b75e64 29789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29791 (eval $ac_try) 2>&5
29792 ac_status=$?
29793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794 (exit $ac_status); }; } &&
29795 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29797 (eval $ac_try) 2>&5
29798 ac_status=$?
29799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29800 (exit $ac_status); }; }; then
29801 :
29802else
29803 echo "$as_me: failed program was:" >&5
29804sed 's/^/| /' conftest.$ac_ext >&5
29805
29806echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29807echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29808if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29809 echo $ECHO_N "(cached) $ECHO_C" >&6
29810else
29811 ac_check_lib_save_LIBS=$LIBS
29812LIBS="-ldnet $LIBS"
29813cat >conftest.$ac_ext <<_ACEOF
29814/* confdefs.h. */
29815_ACEOF
29816cat confdefs.h >>conftest.$ac_ext
29817cat >>conftest.$ac_ext <<_ACEOF
29818/* end confdefs.h. */
29819
29820/* Override any gcc2 internal prototype to avoid an error. */
29821#ifdef __cplusplus
29822extern "C"
29823#endif
29824/* We use char because int might match the return type of a gcc2
29825 builtin and then its argument prototype would still apply. */
29826char dnet_ntoa ();
29827int
29828main ()
29829{
29830dnet_ntoa ();
29831 ;
29832 return 0;
29833}
29834_ACEOF
29835rm -f conftest.$ac_objext conftest$ac_exeext
29836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29837 (eval $ac_link) 2>conftest.er1
a848cd7e 29838 ac_status=$?
ac1cb8d3
VS
29839 grep -v '^ *+' conftest.er1 >conftest.err
29840 rm -f conftest.er1
29841 cat conftest.err >&5
a848cd7e
SC
29842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29843 (exit $ac_status); } &&
64b75e64 29844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29846 (eval $ac_try) 2>&5
29847 ac_status=$?
29848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849 (exit $ac_status); }; } &&
29850 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29852 (eval $ac_try) 2>&5
29853 ac_status=$?
29854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855 (exit $ac_status); }; }; then
29856 ac_cv_lib_dnet_dnet_ntoa=yes
29857else
29858 echo "$as_me: failed program was:" >&5
29859sed 's/^/| /' conftest.$ac_ext >&5
29860
29861ac_cv_lib_dnet_dnet_ntoa=no
29862fi
ac1cb8d3
VS
29863rm -f conftest.err conftest.$ac_objext \
29864 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29865LIBS=$ac_check_lib_save_LIBS
29866fi
29867echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29868echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29869if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29870 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29871fi
29872
29873 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29874 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29875echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29876if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29877 echo $ECHO_N "(cached) $ECHO_C" >&6
29878else
29879 ac_check_lib_save_LIBS=$LIBS
29880LIBS="-ldnet_stub $LIBS"
29881cat >conftest.$ac_ext <<_ACEOF
29882/* confdefs.h. */
29883_ACEOF
29884cat confdefs.h >>conftest.$ac_ext
29885cat >>conftest.$ac_ext <<_ACEOF
29886/* end confdefs.h. */
29887
29888/* Override any gcc2 internal prototype to avoid an error. */
29889#ifdef __cplusplus
29890extern "C"
29891#endif
29892/* We use char because int might match the return type of a gcc2
29893 builtin and then its argument prototype would still apply. */
29894char dnet_ntoa ();
29895int
29896main ()
29897{
29898dnet_ntoa ();
29899 ;
29900 return 0;
29901}
29902_ACEOF
29903rm -f conftest.$ac_objext conftest$ac_exeext
29904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29905 (eval $ac_link) 2>conftest.er1
a848cd7e 29906 ac_status=$?
ac1cb8d3
VS
29907 grep -v '^ *+' conftest.er1 >conftest.err
29908 rm -f conftest.er1
29909 cat conftest.err >&5
a848cd7e
SC
29910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911 (exit $ac_status); } &&
64b75e64 29912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29914 (eval $ac_try) 2>&5
29915 ac_status=$?
29916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29917 (exit $ac_status); }; } &&
29918 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29920 (eval $ac_try) 2>&5
29921 ac_status=$?
29922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923 (exit $ac_status); }; }; then
29924 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29925else
29926 echo "$as_me: failed program was:" >&5
29927sed 's/^/| /' conftest.$ac_ext >&5
29928
29929ac_cv_lib_dnet_stub_dnet_ntoa=no
29930fi
ac1cb8d3
VS
29931rm -f conftest.err conftest.$ac_objext \
29932 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29933LIBS=$ac_check_lib_save_LIBS
29934fi
29935echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29936echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29937if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29938 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29939fi
29940
29941 fi
29942fi
ac1cb8d3
VS
29943rm -f conftest.err conftest.$ac_objext \
29944 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29945 LIBS="$ac_xsave_LIBS"
29946
29947 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29948 # to get the SysV transport functions.
29949 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29950 # needs -lnsl.
29951 # The nsl library prevents programs from opening the X display
29952 # on Irix 5.2, according to T.E. Dickey.
29953 # The functions gethostbyname, getservbyname, and inet_addr are
29954 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29955 echo "$as_me:$LINENO: checking for gethostbyname" >&5
29956echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29957if test "${ac_cv_func_gethostbyname+set}" = set; then
29958 echo $ECHO_N "(cached) $ECHO_C" >&6
29959else
29960 cat >conftest.$ac_ext <<_ACEOF
29961/* confdefs.h. */
29962_ACEOF
29963cat confdefs.h >>conftest.$ac_ext
29964cat >>conftest.$ac_ext <<_ACEOF
29965/* end confdefs.h. */
ac1cb8d3
VS
29966/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29968#define gethostbyname innocuous_gethostbyname
29969
a848cd7e
SC
29970/* System header to define __stub macros and hopefully few prototypes,
29971 which can conflict with char gethostbyname (); below.
29972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29973 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29974
a848cd7e
SC
29975#ifdef __STDC__
29976# include <limits.h>
29977#else
29978# include <assert.h>
29979#endif
ac1cb8d3
VS
29980
29981#undef gethostbyname
29982
a848cd7e
SC
29983/* Override any gcc2 internal prototype to avoid an error. */
29984#ifdef __cplusplus
29985extern "C"
29986{
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 ();
29991/* The GNU C library defines this for functions which it implements
29992 to always fail with ENOSYS. Some functions are actually named
29993 something starting with __ and the normal name is an alias. */
29994#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29995choke me
29996#else
29997char (*f) () = gethostbyname;
29998#endif
29999#ifdef __cplusplus
30000}
30001#endif
30002
30003int
30004main ()
30005{
30006return f != gethostbyname;
30007 ;
30008 return 0;
30009}
30010_ACEOF
30011rm -f conftest.$ac_objext conftest$ac_exeext
30012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30013 (eval $ac_link) 2>conftest.er1
a848cd7e 30014 ac_status=$?
ac1cb8d3
VS
30015 grep -v '^ *+' conftest.er1 >conftest.err
30016 rm -f conftest.er1
30017 cat conftest.err >&5
a848cd7e
SC
30018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019 (exit $ac_status); } &&
64b75e64 30020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30022 (eval $ac_try) 2>&5
30023 ac_status=$?
30024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025 (exit $ac_status); }; } &&
30026 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30028 (eval $ac_try) 2>&5
30029 ac_status=$?
30030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30031 (exit $ac_status); }; }; then
30032 ac_cv_func_gethostbyname=yes
30033else
30034 echo "$as_me: failed program was:" >&5
30035sed 's/^/| /' conftest.$ac_ext >&5
30036
30037ac_cv_func_gethostbyname=no
30038fi
ac1cb8d3
VS
30039rm -f conftest.err conftest.$ac_objext \
30040 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30041fi
30042echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30043echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
30044
30045 if test $ac_cv_func_gethostbyname = no; then
30046 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30047echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
30048if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30049 echo $ECHO_N "(cached) $ECHO_C" >&6
30050else
30051 ac_check_lib_save_LIBS=$LIBS
30052LIBS="-lnsl $LIBS"
30053cat >conftest.$ac_ext <<_ACEOF
30054/* confdefs.h. */
30055_ACEOF
30056cat confdefs.h >>conftest.$ac_ext
30057cat >>conftest.$ac_ext <<_ACEOF
30058/* end confdefs.h. */
30059
30060/* Override any gcc2 internal prototype to avoid an error. */
30061#ifdef __cplusplus
30062extern "C"
30063#endif
30064/* We use char because int might match the return type of a gcc2
30065 builtin and then its argument prototype would still apply. */
30066char gethostbyname ();
30067int
30068main ()
30069{
30070gethostbyname ();
30071 ;
30072 return 0;
30073}
30074_ACEOF
30075rm -f conftest.$ac_objext conftest$ac_exeext
30076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
30077 (eval $ac_link) 2>conftest.er1
30078 ac_status=$?
30079 grep -v '^ *+' conftest.er1 >conftest.err
30080 rm -f conftest.er1
30081 cat conftest.err >&5
30082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083 (exit $ac_status); } &&
64b75e64 30084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30086 (eval $ac_try) 2>&5
30087 ac_status=$?
30088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089 (exit $ac_status); }; } &&
30090 { ac_try='test -s conftest$ac_exeext'
30091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30092 (eval $ac_try) 2>&5
30093 ac_status=$?
30094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095 (exit $ac_status); }; }; then
30096 ac_cv_lib_nsl_gethostbyname=yes
30097else
30098 echo "$as_me: failed program was:" >&5
30099sed 's/^/| /' conftest.$ac_ext >&5
30100
30101ac_cv_lib_nsl_gethostbyname=no
30102fi
30103rm -f conftest.err conftest.$ac_objext \
30104 conftest$ac_exeext conftest.$ac_ext
30105LIBS=$ac_check_lib_save_LIBS
30106fi
30107echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30108echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
30109if test $ac_cv_lib_nsl_gethostbyname = yes; then
30110 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30111fi
30112
30113 if test $ac_cv_lib_nsl_gethostbyname = no; then
30114 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30115echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
30116if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30117 echo $ECHO_N "(cached) $ECHO_C" >&6
30118else
30119 ac_check_lib_save_LIBS=$LIBS
30120LIBS="-lbsd $LIBS"
30121cat >conftest.$ac_ext <<_ACEOF
30122/* confdefs.h. */
30123_ACEOF
30124cat confdefs.h >>conftest.$ac_ext
30125cat >>conftest.$ac_ext <<_ACEOF
30126/* end confdefs.h. */
30127
30128/* Override any gcc2 internal prototype to avoid an error. */
30129#ifdef __cplusplus
30130extern "C"
30131#endif
30132/* We use char because int might match the return type of a gcc2
30133 builtin and then its argument prototype would still apply. */
30134char gethostbyname ();
30135int
30136main ()
30137{
30138gethostbyname ();
30139 ;
30140 return 0;
30141}
30142_ACEOF
30143rm -f conftest.$ac_objext conftest$ac_exeext
30144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30145 (eval $ac_link) 2>conftest.er1
a848cd7e 30146 ac_status=$?
ac1cb8d3
VS
30147 grep -v '^ *+' conftest.er1 >conftest.err
30148 rm -f conftest.er1
30149 cat conftest.err >&5
a848cd7e
SC
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); } &&
64b75e64 30152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
30153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30154 (eval $ac_try) 2>&5
30155 ac_status=$?
30156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
30157 (exit $ac_status); }; } &&
30158 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30160 (eval $ac_try) 2>&5
30161 ac_status=$?
30162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30163 (exit $ac_status); }; }; then
30164 ac_cv_lib_bsd_gethostbyname=yes
30165else
30166 echo "$as_me: failed program was:" >&5
30167sed 's/^/| /' conftest.$ac_ext >&5
30168
30169ac_cv_lib_bsd_gethostbyname=no
30170fi
ac1cb8d3
VS
30171rm -f conftest.err conftest.$ac_objext \
30172 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30173LIBS=$ac_check_lib_save_LIBS
30174fi
30175echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30176echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
30177if test $ac_cv_lib_bsd_gethostbyname = yes; then
30178 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30179fi
30180
30181 fi
30182 fi
30183
30184 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30185 # socket/setsockopt and other routines are undefined under SCO ODT
30186 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30187 # on later versions), says Simon Leinen: it contains gethostby*
30188 # variants that don't use the name server (or something). -lsocket
30189 # must be given before -lnsl if both are needed. We assume that
30190 # if connect needs -lnsl, so does gethostbyname.
30191 echo "$as_me:$LINENO: checking for connect" >&5
30192echo $ECHO_N "checking for connect... $ECHO_C" >&6
30193if test "${ac_cv_func_connect+set}" = set; then
30194 echo $ECHO_N "(cached) $ECHO_C" >&6
30195else
30196 cat >conftest.$ac_ext <<_ACEOF
30197/* confdefs.h. */
30198_ACEOF
30199cat confdefs.h >>conftest.$ac_ext
30200cat >>conftest.$ac_ext <<_ACEOF
30201/* end confdefs.h. */
ac1cb8d3
VS
30202/* Define connect to an innocuous variant, in case <limits.h> declares connect.
30203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30204#define connect innocuous_connect
30205
a848cd7e
SC
30206/* System header to define __stub macros and hopefully few prototypes,
30207 which can conflict with char connect (); below.
30208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30209 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30210
a848cd7e
SC
30211#ifdef __STDC__
30212# include <limits.h>
30213#else
30214# include <assert.h>
30215#endif
ac1cb8d3
VS
30216
30217#undef connect
30218
a848cd7e
SC
30219/* Override any gcc2 internal prototype to avoid an error. */
30220#ifdef __cplusplus
30221extern "C"
30222{
30223#endif
30224/* We use char because int might match the return type of a gcc2
30225 builtin and then its argument prototype would still apply. */
30226char connect ();
30227/* The GNU C library defines this for functions which it implements
30228 to always fail with ENOSYS. Some functions are actually named
30229 something starting with __ and the normal name is an alias. */
30230#if defined (__stub_connect) || defined (__stub___connect)
30231choke me
30232#else
30233char (*f) () = connect;
30234#endif
30235#ifdef __cplusplus
30236}
30237#endif
30238
30239int
30240main ()
30241{
30242return f != connect;
30243 ;
30244 return 0;
30245}
30246_ACEOF
30247rm -f conftest.$ac_objext conftest$ac_exeext
30248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30249 (eval $ac_link) 2>conftest.er1
a848cd7e 30250 ac_status=$?
ac1cb8d3
VS
30251 grep -v '^ *+' conftest.er1 >conftest.err
30252 rm -f conftest.er1
30253 cat conftest.err >&5
a848cd7e
SC
30254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30255 (exit $ac_status); } &&
64b75e64 30256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30258 (eval $ac_try) 2>&5
30259 ac_status=$?
30260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30261 (exit $ac_status); }; } &&
30262 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30264 (eval $ac_try) 2>&5
30265 ac_status=$?
30266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267 (exit $ac_status); }; }; then
30268 ac_cv_func_connect=yes
30269else
30270 echo "$as_me: failed program was:" >&5
30271sed 's/^/| /' conftest.$ac_ext >&5
30272
30273ac_cv_func_connect=no
30274fi
ac1cb8d3
VS
30275rm -f conftest.err conftest.$ac_objext \
30276 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30277fi
30278echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30279echo "${ECHO_T}$ac_cv_func_connect" >&6
30280
30281 if test $ac_cv_func_connect = no; then
30282 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30283echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
30284if test "${ac_cv_lib_socket_connect+set}" = set; then
30285 echo $ECHO_N "(cached) $ECHO_C" >&6
30286else
30287 ac_check_lib_save_LIBS=$LIBS
30288LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30289cat >conftest.$ac_ext <<_ACEOF
30290/* confdefs.h. */
30291_ACEOF
30292cat confdefs.h >>conftest.$ac_ext
30293cat >>conftest.$ac_ext <<_ACEOF
30294/* end confdefs.h. */
30295
30296/* Override any gcc2 internal prototype to avoid an error. */
30297#ifdef __cplusplus
30298extern "C"
30299#endif
30300/* We use char because int might match the return type of a gcc2
30301 builtin and then its argument prototype would still apply. */
30302char connect ();
30303int
30304main ()
30305{
30306connect ();
30307 ;
30308 return 0;
30309}
30310_ACEOF
30311rm -f conftest.$ac_objext conftest$ac_exeext
30312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30313 (eval $ac_link) 2>conftest.er1
a848cd7e 30314 ac_status=$?
ac1cb8d3
VS
30315 grep -v '^ *+' conftest.er1 >conftest.err
30316 rm -f conftest.er1
30317 cat conftest.err >&5
a848cd7e
SC
30318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319 (exit $ac_status); } &&
64b75e64 30320 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30322 (eval $ac_try) 2>&5
30323 ac_status=$?
30324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30325 (exit $ac_status); }; } &&
30326 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30328 (eval $ac_try) 2>&5
30329 ac_status=$?
30330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30331 (exit $ac_status); }; }; then
30332 ac_cv_lib_socket_connect=yes
30333else
30334 echo "$as_me: failed program was:" >&5
30335sed 's/^/| /' conftest.$ac_ext >&5
30336
30337ac_cv_lib_socket_connect=no
30338fi
ac1cb8d3
VS
30339rm -f conftest.err conftest.$ac_objext \
30340 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30341LIBS=$ac_check_lib_save_LIBS
30342fi
30343echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30344echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30345if test $ac_cv_lib_socket_connect = yes; then
30346 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30347fi
30348
30349 fi
30350
30351 # Guillermo Gomez says -lposix is necessary on A/UX.
30352 echo "$as_me:$LINENO: checking for remove" >&5
30353echo $ECHO_N "checking for remove... $ECHO_C" >&6
30354if test "${ac_cv_func_remove+set}" = set; then
30355 echo $ECHO_N "(cached) $ECHO_C" >&6
30356else
30357 cat >conftest.$ac_ext <<_ACEOF
30358/* confdefs.h. */
30359_ACEOF
30360cat confdefs.h >>conftest.$ac_ext
30361cat >>conftest.$ac_ext <<_ACEOF
30362/* end confdefs.h. */
ac1cb8d3
VS
30363/* Define remove to an innocuous variant, in case <limits.h> declares remove.
30364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30365#define remove innocuous_remove
30366
a848cd7e
SC
30367/* System header to define __stub macros and hopefully few prototypes,
30368 which can conflict with char remove (); below.
30369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30370 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30371
a848cd7e
SC
30372#ifdef __STDC__
30373# include <limits.h>
30374#else
30375# include <assert.h>
30376#endif
ac1cb8d3
VS
30377
30378#undef remove
30379
a848cd7e
SC
30380/* Override any gcc2 internal prototype to avoid an error. */
30381#ifdef __cplusplus
30382extern "C"
30383{
30384#endif
30385/* We use char because int might match the return type of a gcc2
30386 builtin and then its argument prototype would still apply. */
30387char remove ();
30388/* The GNU C library defines this for functions which it implements
30389 to always fail with ENOSYS. Some functions are actually named
30390 something starting with __ and the normal name is an alias. */
30391#if defined (__stub_remove) || defined (__stub___remove)
30392choke me
30393#else
30394char (*f) () = remove;
30395#endif
30396#ifdef __cplusplus
30397}
30398#endif
30399
30400int
30401main ()
30402{
30403return f != remove;
30404 ;
30405 return 0;
30406}
30407_ACEOF
30408rm -f conftest.$ac_objext conftest$ac_exeext
30409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30410 (eval $ac_link) 2>conftest.er1
a848cd7e 30411 ac_status=$?
ac1cb8d3
VS
30412 grep -v '^ *+' conftest.er1 >conftest.err
30413 rm -f conftest.er1
30414 cat conftest.err >&5
a848cd7e
SC
30415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30416 (exit $ac_status); } &&
64b75e64 30417 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30419 (eval $ac_try) 2>&5
30420 ac_status=$?
30421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30422 (exit $ac_status); }; } &&
30423 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30425 (eval $ac_try) 2>&5
30426 ac_status=$?
30427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428 (exit $ac_status); }; }; then
30429 ac_cv_func_remove=yes
30430else
30431 echo "$as_me: failed program was:" >&5
30432sed 's/^/| /' conftest.$ac_ext >&5
30433
30434ac_cv_func_remove=no
30435fi
ac1cb8d3
VS
30436rm -f conftest.err conftest.$ac_objext \
30437 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30438fi
30439echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30440echo "${ECHO_T}$ac_cv_func_remove" >&6
30441
30442 if test $ac_cv_func_remove = no; then
30443 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30444echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30445if test "${ac_cv_lib_posix_remove+set}" = set; then
30446 echo $ECHO_N "(cached) $ECHO_C" >&6
30447else
30448 ac_check_lib_save_LIBS=$LIBS
30449LIBS="-lposix $LIBS"
30450cat >conftest.$ac_ext <<_ACEOF
30451/* confdefs.h. */
30452_ACEOF
30453cat confdefs.h >>conftest.$ac_ext
30454cat >>conftest.$ac_ext <<_ACEOF
30455/* end confdefs.h. */
30456
30457/* Override any gcc2 internal prototype to avoid an error. */
30458#ifdef __cplusplus
30459extern "C"
30460#endif
30461/* We use char because int might match the return type of a gcc2
30462 builtin and then its argument prototype would still apply. */
30463char remove ();
30464int
30465main ()
30466{
30467remove ();
30468 ;
30469 return 0;
30470}
30471_ACEOF
30472rm -f conftest.$ac_objext conftest$ac_exeext
30473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30474 (eval $ac_link) 2>conftest.er1
a848cd7e 30475 ac_status=$?
ac1cb8d3
VS
30476 grep -v '^ *+' conftest.er1 >conftest.err
30477 rm -f conftest.er1
30478 cat conftest.err >&5
a848cd7e
SC
30479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480 (exit $ac_status); } &&
64b75e64 30481 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30483 (eval $ac_try) 2>&5
30484 ac_status=$?
30485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30486 (exit $ac_status); }; } &&
30487 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30489 (eval $ac_try) 2>&5
30490 ac_status=$?
30491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492 (exit $ac_status); }; }; then
30493 ac_cv_lib_posix_remove=yes
30494else
30495 echo "$as_me: failed program was:" >&5
30496sed 's/^/| /' conftest.$ac_ext >&5
30497
30498ac_cv_lib_posix_remove=no
30499fi
ac1cb8d3
VS
30500rm -f conftest.err conftest.$ac_objext \
30501 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30502LIBS=$ac_check_lib_save_LIBS
30503fi
30504echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30505echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30506if test $ac_cv_lib_posix_remove = yes; then
30507 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30508fi
30509
30510 fi
30511
30512 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30513 echo "$as_me:$LINENO: checking for shmat" >&5
30514echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30515if test "${ac_cv_func_shmat+set}" = set; then
30516 echo $ECHO_N "(cached) $ECHO_C" >&6
30517else
30518 cat >conftest.$ac_ext <<_ACEOF
30519/* confdefs.h. */
30520_ACEOF
30521cat confdefs.h >>conftest.$ac_ext
30522cat >>conftest.$ac_ext <<_ACEOF
30523/* end confdefs.h. */
ac1cb8d3
VS
30524/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30526#define shmat innocuous_shmat
30527
a848cd7e
SC
30528/* System header to define __stub macros and hopefully few prototypes,
30529 which can conflict with char shmat (); below.
30530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30531 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30532
a848cd7e
SC
30533#ifdef __STDC__
30534# include <limits.h>
30535#else
30536# include <assert.h>
30537#endif
ac1cb8d3
VS
30538
30539#undef shmat
30540
a848cd7e
SC
30541/* Override any gcc2 internal prototype to avoid an error. */
30542#ifdef __cplusplus
30543extern "C"
30544{
30545#endif
30546/* We use char because int might match the return type of a gcc2
30547 builtin and then its argument prototype would still apply. */
30548char shmat ();
30549/* The GNU C library defines this for functions which it implements
30550 to always fail with ENOSYS. Some functions are actually named
30551 something starting with __ and the normal name is an alias. */
30552#if defined (__stub_shmat) || defined (__stub___shmat)
30553choke me
30554#else
30555char (*f) () = shmat;
30556#endif
30557#ifdef __cplusplus
30558}
30559#endif
30560
30561int
30562main ()
30563{
30564return f != shmat;
30565 ;
30566 return 0;
30567}
30568_ACEOF
30569rm -f conftest.$ac_objext conftest$ac_exeext
30570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30571 (eval $ac_link) 2>conftest.er1
a848cd7e 30572 ac_status=$?
ac1cb8d3
VS
30573 grep -v '^ *+' conftest.er1 >conftest.err
30574 rm -f conftest.er1
30575 cat conftest.err >&5
a848cd7e
SC
30576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30577 (exit $ac_status); } &&
64b75e64 30578 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30580 (eval $ac_try) 2>&5
30581 ac_status=$?
30582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583 (exit $ac_status); }; } &&
30584 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30586 (eval $ac_try) 2>&5
30587 ac_status=$?
30588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30589 (exit $ac_status); }; }; then
30590 ac_cv_func_shmat=yes
30591else
30592 echo "$as_me: failed program was:" >&5
30593sed 's/^/| /' conftest.$ac_ext >&5
30594
30595ac_cv_func_shmat=no
30596fi
ac1cb8d3
VS
30597rm -f conftest.err conftest.$ac_objext \
30598 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30599fi
30600echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30601echo "${ECHO_T}$ac_cv_func_shmat" >&6
30602
30603 if test $ac_cv_func_shmat = no; then
30604 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30605echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
30606if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30607 echo $ECHO_N "(cached) $ECHO_C" >&6
30608else
30609 ac_check_lib_save_LIBS=$LIBS
30610LIBS="-lipc $LIBS"
30611cat >conftest.$ac_ext <<_ACEOF
30612/* confdefs.h. */
30613_ACEOF
30614cat confdefs.h >>conftest.$ac_ext
30615cat >>conftest.$ac_ext <<_ACEOF
30616/* end confdefs.h. */
30617
30618/* Override any gcc2 internal prototype to avoid an error. */
30619#ifdef __cplusplus
30620extern "C"
30621#endif
30622/* We use char because int might match the return type of a gcc2
30623 builtin and then its argument prototype would still apply. */
30624char shmat ();
30625int
30626main ()
30627{
30628shmat ();
30629 ;
30630 return 0;
30631}
30632_ACEOF
30633rm -f conftest.$ac_objext conftest$ac_exeext
30634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30635 (eval $ac_link) 2>conftest.er1
a848cd7e 30636 ac_status=$?
ac1cb8d3
VS
30637 grep -v '^ *+' conftest.er1 >conftest.err
30638 rm -f conftest.er1
30639 cat conftest.err >&5
a848cd7e
SC
30640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30641 (exit $ac_status); } &&
64b75e64 30642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30644 (eval $ac_try) 2>&5
30645 ac_status=$?
30646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30647 (exit $ac_status); }; } &&
30648 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30650 (eval $ac_try) 2>&5
30651 ac_status=$?
30652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653 (exit $ac_status); }; }; then
30654 ac_cv_lib_ipc_shmat=yes
30655else
30656 echo "$as_me: failed program was:" >&5
30657sed 's/^/| /' conftest.$ac_ext >&5
30658
30659ac_cv_lib_ipc_shmat=no
30660fi
ac1cb8d3
VS
30661rm -f conftest.err conftest.$ac_objext \
30662 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30663LIBS=$ac_check_lib_save_LIBS
30664fi
30665echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30666echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
30667if test $ac_cv_lib_ipc_shmat = yes; then
30668 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30669fi
30670
30671 fi
30672 fi
30673
30674 # Check for libraries that X11R6 Xt/Xaw programs need.
30675 ac_save_LDFLAGS=$LDFLAGS
30676 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30677 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30678 # check for ICE first), but we must link in the order -lSM -lICE or
30679 # we get undefined symbols. So assume we have SM if we have ICE.
30680 # These have to be linked with before -lX11, unlike the other
30681 # libraries we check for below, so use a different variable.
30682 # John Interrante, Karl Berry
30683 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30684echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
30685if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30686 echo $ECHO_N "(cached) $ECHO_C" >&6
30687else
30688 ac_check_lib_save_LIBS=$LIBS
30689LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30690cat >conftest.$ac_ext <<_ACEOF
30691/* confdefs.h. */
30692_ACEOF
30693cat confdefs.h >>conftest.$ac_ext
30694cat >>conftest.$ac_ext <<_ACEOF
30695/* end confdefs.h. */
30696
30697/* Override any gcc2 internal prototype to avoid an error. */
30698#ifdef __cplusplus
30699extern "C"
30700#endif
30701/* We use char because int might match the return type of a gcc2
30702 builtin and then its argument prototype would still apply. */
30703char IceConnectionNumber ();
30704int
30705main ()
30706{
30707IceConnectionNumber ();
30708 ;
30709 return 0;
30710}
30711_ACEOF
30712rm -f conftest.$ac_objext conftest$ac_exeext
30713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30714 (eval $ac_link) 2>conftest.er1
a848cd7e 30715 ac_status=$?
ac1cb8d3
VS
30716 grep -v '^ *+' conftest.er1 >conftest.err
30717 rm -f conftest.er1
30718 cat conftest.err >&5
a848cd7e
SC
30719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30720 (exit $ac_status); } &&
64b75e64 30721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30723 (eval $ac_try) 2>&5
30724 ac_status=$?
30725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726 (exit $ac_status); }; } &&
30727 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30729 (eval $ac_try) 2>&5
30730 ac_status=$?
30731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732 (exit $ac_status); }; }; then
30733 ac_cv_lib_ICE_IceConnectionNumber=yes
30734else
30735 echo "$as_me: failed program was:" >&5
30736sed 's/^/| /' conftest.$ac_ext >&5
30737
30738ac_cv_lib_ICE_IceConnectionNumber=no
30739fi
ac1cb8d3
VS
30740rm -f conftest.err conftest.$ac_objext \
30741 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30742LIBS=$ac_check_lib_save_LIBS
30743fi
30744echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30745echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30746if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30747 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30748fi
30749
30750 LDFLAGS=$ac_save_LDFLAGS
30751
30752fi
30753
30754
30755 if test "$no_x" = "yes"; then
89d90d6d
VZ
30756 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30757echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30758 { (exit 1); exit 1; }; }
a848cd7e
SC
30759 fi
30760
74b84332
VS
30761 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30762 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
30763 AFMINSTALL=afminstall
30764 COMPILED_X_PROGRAM=0
30765
74b84332
VS
30766 fi
30767
30768 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
30769 if test "$wxUSE_NANOX" = "yes"; then
30770 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30771echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
30772 if test "x$MICROWIN" = x ; then
30773 echo "$as_me:$LINENO: result: not found" >&5
30774echo "${ECHO_T}not found" >&6
30775 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30776echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30777 { (exit 1); exit 1; }; }
30778 else
30779 echo "$as_me:$LINENO: result: $MICROWIN" >&5
30780echo "${ECHO_T}$MICROWIN" >&6
30781 cat >>confdefs.h <<\_ACEOF
30782#define wxUSE_NANOX 1
30783_ACEOF
30784
30785 fi
30786 fi
30787
30788 if test "$wxUSE_UNICODE" = "yes"; then
30789
3ecd9f92
MW
30790pkg_failed=no
30791echo "$as_me:$LINENO: checking for PANGOX" >&5
30792echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
a848cd7e 30793
3ecd9f92
MW
30794if test -n "$PKG_CONFIG"; then
30795 if test -n "$PANGOX_CFLAGS"; then
30796 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
30797 else
30798 if test -n "$PKG_CONFIG" && \
30799 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30800 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30801 ac_status=$?
30802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803 (exit $ac_status); }; then
30804 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
30805else
30806 pkg_failed=yes
30807fi
30808 fi
30809else
30810 pkg_failed=untried
30811fi
30812if test -n "$PKG_CONFIG"; then
30813 if test -n "$PANGOX_LIBS"; then
30814 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
30815 else
30816 if test -n "$PKG_CONFIG" && \
30817 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30818 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30819 ac_status=$?
30820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821 (exit $ac_status); }; then
30822 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
30823else
30824 pkg_failed=yes
30825fi
30826 fi
30827else
30828 pkg_failed=untried
30829fi
30830
30831
30832
30833if test $pkg_failed = yes; then
30834
30835if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30836 _pkg_short_errors_supported=yes
30837else
30838 _pkg_short_errors_supported=no
30839fi
30840 if test $_pkg_short_errors_supported = yes; then
30841 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
30842 else
30843 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
a848cd7e 30844 fi
3ecd9f92
MW
30845 # Put the nasty error message in config.log where it belongs
30846 echo "$PANGOX_PKG_ERRORS" >&5
a848cd7e
SC
30847
30848
3ecd9f92
MW
30849 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30850echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30851 { (exit 1); exit 1; }; }
a848cd7e 30852
a848cd7e 30853
3ecd9f92 30854elif test $pkg_failed = untried; then
a848cd7e 30855
3ecd9f92
MW
30856 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30857echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30858 { (exit 1); exit 1; }; }
30859
30860
30861else
30862 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
30863 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
30864 echo "$as_me:$LINENO: result: yes" >&5
30865echo "${ECHO_T}yes" >&6
30866
30867 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
30868 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
30869
30870fi
30871
30872pkg_failed=no
30873echo "$as_me:$LINENO: checking for PANGOFT2" >&5
30874echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
30875
30876if test -n "$PKG_CONFIG"; then
30877 if test -n "$PANGOFT2_CFLAGS"; then
30878 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
30879 else
30880 if test -n "$PKG_CONFIG" && \
30881 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30882 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30883 ac_status=$?
30884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885 (exit $ac_status); }; then
30886 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30887else
30888 pkg_failed=yes
30889fi
30890 fi
30891else
30892 pkg_failed=untried
30893fi
30894if test -n "$PKG_CONFIG"; then
30895 if test -n "$PANGOFT2_LIBS"; then
30896 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
30897 else
30898 if test -n "$PKG_CONFIG" && \
30899 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30900 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30901 ac_status=$?
30902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30903 (exit $ac_status); }; then
30904 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30905else
30906 pkg_failed=yes
30907fi
30908 fi
30909else
30910 pkg_failed=untried
30911fi
30912
30913
30914
30915if test $pkg_failed = yes; then
30916
30917if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30918 _pkg_short_errors_supported=yes
30919else
30920 _pkg_short_errors_supported=no
30921fi
30922 if test $_pkg_short_errors_supported = yes; then
30923 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
30924 else
30925 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
30926 fi
30927 # Put the nasty error message in config.log where it belongs
30928 echo "$PANGOFT2_PKG_ERRORS" >&5
a848cd7e 30929
a848cd7e
SC
30930
30931 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30932echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30933 wxUSE_PRINTING_ARCHITECTURE="no"
30934
30935
3ecd9f92 30936elif test $pkg_failed = untried; then
a848cd7e 30937
3ecd9f92
MW
30938 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30939echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30940 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e 30941
a848cd7e 30942
a848cd7e 30943else
3ecd9f92
MW
30944 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
30945 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
30946 echo "$as_me:$LINENO: result: yes" >&5
30947echo "${ECHO_T}yes" >&6
30948
30949 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
30950 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
a848cd7e 30951
a848cd7e 30952fi
3ecd9f92
MW
30953
30954pkg_failed=no
30955echo "$as_me:$LINENO: checking for PANGOXFT" >&5
30956echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
a848cd7e
SC
30957
30958if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
30959 if test -n "$PANGOXFT_CFLAGS"; then
30960 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
30961 else
30962 if test -n "$PKG_CONFIG" && \
30963 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30964 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30965 ac_status=$?
30966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967 (exit $ac_status); }; then
30968 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
a848cd7e 30969else
3ecd9f92
MW
30970 pkg_failed=yes
30971fi
30972 fi
30973else
30974 pkg_failed=untried
30975fi
30976if test -n "$PKG_CONFIG"; then
30977 if test -n "$PANGOXFT_LIBS"; then
30978 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
30979 else
30980 if test -n "$PKG_CONFIG" && \
30981 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30982 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30983 ac_status=$?
30984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30985 (exit $ac_status); }; then
30986 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
30987else
30988 pkg_failed=yes
30989fi
30990 fi
30991else
30992 pkg_failed=untried
a848cd7e
SC
30993fi
30994
a848cd7e 30995
a848cd7e 30996
3ecd9f92 30997if test $pkg_failed = yes; then
a848cd7e 30998
3ecd9f92
MW
30999if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31000 _pkg_short_errors_supported=yes
31001else
31002 _pkg_short_errors_supported=no
31003fi
31004 if test $_pkg_short_errors_supported = yes; then
31005 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31006 else
31007 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
a848cd7e 31008 fi
3ecd9f92
MW
31009 # Put the nasty error message in config.log where it belongs
31010 echo "$PANGOXFT_PKG_ERRORS" >&5
a848cd7e
SC
31011
31012
3ecd9f92
MW
31013 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31014echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31015
a848cd7e 31016
3ecd9f92 31017elif test $pkg_failed = untried; then
a848cd7e 31018
3ecd9f92
MW
31019 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31020echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31021
31022
31023else
31024 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31025 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31026 echo "$as_me:$LINENO: result: yes" >&5
31027echo "${ECHO_T}yes" >&6
a848cd7e 31028
4ae1af05
MB
31029 cat >>confdefs.h <<\_ACEOF
31030#define HAVE_PANGO_XFT 1
31031_ACEOF
31032
c92ad099 31033 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
31034 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
31035
3ecd9f92 31036fi
e56f4f9e 31037 save_CXXFLAGS="$CXXFLAGS"
304205f1 31038 save_LIBS="$LIBS"
e56f4f9e 31039 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
304205f1
VS
31040 LIBS="$LIBS $PANGOX_LIBS"
31041
31042for ac_func in pango_font_family_is_monospace
31043do
31044as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31045echo "$as_me:$LINENO: checking for $ac_func" >&5
31046echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31047if eval "test \"\${$as_ac_var+set}\" = set"; then
31048 echo $ECHO_N "(cached) $ECHO_C" >&6
31049else
31050 cat >conftest.$ac_ext <<_ACEOF
31051/* confdefs.h. */
31052_ACEOF
31053cat confdefs.h >>conftest.$ac_ext
31054cat >>conftest.$ac_ext <<_ACEOF
31055/* end confdefs.h. */
31056/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31058#define $ac_func innocuous_$ac_func
31059
31060/* System header to define __stub macros and hopefully few prototypes,
31061 which can conflict with char $ac_func (); below.
31062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31063 <limits.h> exists even on freestanding compilers. */
31064
31065#ifdef __STDC__
31066# include <limits.h>
31067#else
31068# include <assert.h>
31069#endif
31070
31071#undef $ac_func
31072
31073/* Override any gcc2 internal prototype to avoid an error. */
31074#ifdef __cplusplus
31075extern "C"
31076{
31077#endif
31078/* We use char because int might match the return type of a gcc2
31079 builtin and then its argument prototype would still apply. */
31080char $ac_func ();
31081/* The GNU C library defines this for functions which it implements
31082 to always fail with ENOSYS. Some functions are actually named
31083 something starting with __ and the normal name is an alias. */
31084#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31085choke me
31086#else
31087char (*f) () = $ac_func;
31088#endif
31089#ifdef __cplusplus
31090}
31091#endif
31092
31093int
31094main ()
31095{
31096return f != $ac_func;
31097 ;
31098 return 0;
31099}
31100_ACEOF
31101rm -f conftest.$ac_objext conftest$ac_exeext
31102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31103 (eval $ac_link) 2>conftest.er1
31104 ac_status=$?
31105 grep -v '^ *+' conftest.er1 >conftest.err
31106 rm -f conftest.er1
31107 cat conftest.err >&5
31108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31109 (exit $ac_status); } &&
64b75e64 31110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
304205f1
VS
31111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31112 (eval $ac_try) 2>&5
31113 ac_status=$?
31114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115 (exit $ac_status); }; } &&
31116 { ac_try='test -s conftest$ac_exeext'
31117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31118 (eval $ac_try) 2>&5
31119 ac_status=$?
31120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31121 (exit $ac_status); }; }; then
31122 eval "$as_ac_var=yes"
31123else
31124 echo "$as_me: failed program was:" >&5
31125sed 's/^/| /' conftest.$ac_ext >&5
31126
31127eval "$as_ac_var=no"
31128fi
31129rm -f conftest.err conftest.$ac_objext \
31130 conftest$ac_exeext conftest.$ac_ext
31131fi
31132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31133echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31134if test `eval echo '${'$as_ac_var'}'` = yes; then
31135 cat >>confdefs.h <<_ACEOF
31136#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31137_ACEOF
31138
31139fi
31140done
31141
e56f4f9e 31142 CXXFLAGS="$save_CXXFLAGS"
304205f1 31143 LIBS="$save_LIBS"
a848cd7e
SC
31144 fi
31145
31146 wxUSE_UNIVERSAL="yes"
31147
31148 if test "$wxUSE_NANOX" = "yes"; then
31149 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31150 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"
31151 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31152 else
31153 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31154 fi
31155
a848cd7e
SC
31156 TOOLKIT=X11
31157 GUIDIST=X11_DIST
31158 fi
31159
31160 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
31161 if test "$wxUSE_UNICODE" = "yes"; then
31162 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
31163echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
31164 { (exit 1); exit 1; }; }
31165 fi
31166
74b84332
VS
31167 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31168echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 31169
74b84332
VS
31170ac_find_includes=
31171for ac_dir in $SEARCH_INCLUDE /usr/include;
31172 do
31173 if test -f "$ac_dir/Xm/Xm.h"; then
31174 ac_find_includes=$ac_dir
31175 break
31176 fi
31177 done
a848cd7e 31178
74b84332
VS
31179 if test "$ac_find_includes" != "" ; then
31180 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31181echo "${ECHO_T}found in $ac_find_includes" >&6
31182
31183 if test "x$ac_find_includes" = "x/usr/include"; then
31184 ac_path_to_include=""
31185 else
31186 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31187 result=$?
31188 if test $result = 0; then
31189 ac_path_to_include=""
31190 else
31191 ac_path_to_include=" -I$ac_find_includes"
31192 fi
a848cd7e
SC
31193 fi
31194
74b84332
VS
31195 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31196 else
e56f4f9e
VZ
31197 save_CXXFLAGS=$CXXFLAGS
31198 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 31199
74b84332 31200 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31201/* confdefs.h. */
31202_ACEOF
31203cat confdefs.h >>conftest.$ac_ext
31204cat >>conftest.$ac_ext <<_ACEOF
31205/* end confdefs.h. */
31206
74b84332
VS
31207 #include <Xm/Xm.h>
31208
a848cd7e
SC
31209int
31210main ()
31211{
31212
74b84332
VS
31213 int version;
31214 version = xmUseVersion;
31215
a848cd7e
SC
31216 ;
31217 return 0;
31218}
31219_ACEOF
74b84332
VS
31220rm -f conftest.$ac_objext
31221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31222 (eval $ac_compile) 2>conftest.er1
a848cd7e 31223 ac_status=$?
ac1cb8d3
VS
31224 grep -v '^ *+' conftest.er1 >conftest.err
31225 rm -f conftest.er1
31226 cat conftest.err >&5
a848cd7e
SC
31227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31228 (exit $ac_status); } &&
64b75e64 31229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31231 (eval $ac_try) 2>&5
31232 ac_status=$?
31233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234 (exit $ac_status); }; } &&
74b84332 31235 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31237 (eval $ac_try) 2>&5
31238 ac_status=$?
31239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31240 (exit $ac_status); }; }; then
74b84332
VS
31241
31242 echo "$as_me:$LINENO: result: found in default search path" >&5
31243echo "${ECHO_T}found in default search path" >&6
31244 COMPILED_X_PROGRAM=1
31245
a848cd7e
SC
31246else
31247 echo "$as_me: failed program was:" >&5
31248sed 's/^/| /' conftest.$ac_ext >&5
31249
a848cd7e 31250
74b84332
VS
31251 echo "$as_me:$LINENO: result: no" >&5
31252echo "${ECHO_T}no" >&6
e051b34e
MW
31253 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31254echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 31255 { (exit 1); exit 1; }; }
a848cd7e 31256
a848cd7e 31257
a848cd7e 31258fi
74b84332 31259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 31260
e56f4f9e 31261 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
31262 fi
31263
0ad5d837
VZ
31264
31265 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
31266echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
31267
0ad5d837
VZ
31268 ac_find_libraries=
31269 for ac_dir in $SEARCH_LIB;
74b84332 31270 do
3eca31dc 31271 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
31272 if test -f "$ac_dir/libXm.$ac_extension"; then
31273 ac_find_libraries=$ac_dir
31274 break 2
a848cd7e 31275 fi
74b84332
VS
31276 done
31277 done
a848cd7e 31278
0ad5d837
VZ
31279
31280 if test "x$ac_find_libraries" != "x" ; then
31281 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31282echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 31283
74b84332 31284
0ad5d837 31285 if test "$ac_find_libraries" = "default location"; then
74b84332 31286 ac_path_to_link=""
a848cd7e 31287 else
0ad5d837
VZ
31288 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31289 result=$?
31290 if test $result = 0; then
31291 ac_path_to_link=""
31292 else
31293 ac_path_to_link=" -L$ac_find_libraries"
31294 fi
74b84332
VS
31295 fi
31296
0ad5d837
VZ
31297 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31298 else
e56f4f9e
VZ
31299 save_CXXFLAGS=$CXXFLAGS
31300 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
31301 save_LIBS="$LIBS"
31302 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 31303
0ad5d837 31304 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31305/* confdefs.h. */
31306_ACEOF
31307cat confdefs.h >>conftest.$ac_ext
31308cat >>conftest.$ac_ext <<_ACEOF
31309/* end confdefs.h. */
31310
0ad5d837 31311 #include <Xm/Xm.h>
74b84332 31312
a848cd7e
SC
31313int
31314main ()
31315{
74b84332 31316
0ad5d837
VZ
31317 int version;
31318 version = xmUseVersion;
74b84332 31319
a848cd7e
SC
31320 ;
31321 return 0;
31322}
31323_ACEOF
0ad5d837
VZ
31324rm -f conftest.$ac_objext conftest$ac_exeext
31325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31326 (eval $ac_link) 2>conftest.er1
a848cd7e 31327 ac_status=$?
ac1cb8d3
VS
31328 grep -v '^ *+' conftest.er1 >conftest.err
31329 rm -f conftest.er1
31330 cat conftest.err >&5
a848cd7e
SC
31331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31332 (exit $ac_status); } &&
64b75e64 31333 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31335 (eval $ac_try) 2>&5
31336 ac_status=$?
31337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338 (exit $ac_status); }; } &&
0ad5d837 31339 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31341 (eval $ac_try) 2>&5
31342 ac_status=$?
31343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31344 (exit $ac_status); }; }; then
74b84332 31345
0ad5d837 31346 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 31347echo "${ECHO_T}found in default search path" >&6
0ad5d837 31348 COMPILED_X_PROGRAM=1
74b84332 31349
a848cd7e
SC
31350else
31351 echo "$as_me: failed program was:" >&5
31352sed 's/^/| /' conftest.$ac_ext >&5
31353
74b84332 31354
6f9cf1e6 31355 echo "$as_me:$LINENO: result: no" >&5
74b84332 31356echo "${ECHO_T}no" >&6
6f9cf1e6 31357 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
31358echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31359 { (exit 1); exit 1; }; }
31360
31361
31362fi
0ad5d837
VZ
31363rm -f conftest.err conftest.$ac_objext \
31364 conftest$ac_exeext conftest.$ac_ext
74b84332 31365
e56f4f9e 31366 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 31367 LIBS="$save_LIBS"
74b84332
VS
31368 fi
31369
31370 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31371echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
31372 libp_link=""
31373 libsm_ice_link=""
31374 libs_found=0
31375 for libp in "" " -lXp"; do
31376 if test "$libs_found" = "0"; then
31377 for libsm_ice in "" " -lSM -lICE"; do
31378 if test "$libs_found" = "0"; then
31379 save_LIBS="$LIBS"
31380 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
31381 save_CXXFLAGS=$CXXFLAGS
31382 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
31383
31384 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31385/* confdefs.h. */
31386_ACEOF
31387cat confdefs.h >>conftest.$ac_ext
31388cat >>conftest.$ac_ext <<_ACEOF
31389/* end confdefs.h. */
31390
74b84332
VS
31391 #include <Xm/Xm.h>
31392 #include <Xm/List.h>
31393
a848cd7e
SC
31394int
31395main ()
31396{
74b84332
VS
31397
31398 XmString string = NULL;
31399 Widget w = NULL;
31400 int position = 0;
31401 XmListAddItem(w, string, position);
31402
a848cd7e
SC
31403 ;
31404 return 0;
31405}
31406_ACEOF
31407rm -f conftest.$ac_objext conftest$ac_exeext
31408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31409 (eval $ac_link) 2>conftest.er1
a848cd7e 31410 ac_status=$?
ac1cb8d3
VS
31411 grep -v '^ *+' conftest.er1 >conftest.err
31412 rm -f conftest.er1
31413 cat conftest.err >&5
a848cd7e
SC
31414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31415 (exit $ac_status); } &&
64b75e64 31416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31418 (eval $ac_try) 2>&5
31419 ac_status=$?
31420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421 (exit $ac_status); }; } &&
31422 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
31428
31429 libp_link="$libp"
31430 libsm_ice_link="$libsm_ice"
31431 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31432echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
31433 libs_found=1
31434
31435else
31436 echo "$as_me: failed program was:" >&5
31437sed 's/^/| /' conftest.$ac_ext >&5
31438
31439
31440
31441fi
ac1cb8d3
VS
31442rm -f conftest.err conftest.$ac_objext \
31443 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31444
31445 LIBS="$save_LIBS"
e56f4f9e 31446 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31447 fi
31448 done
31449 fi
31450 done
31451
31452 if test "$libs_found" = "0"; then
31453 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31454echo "${ECHO_T}can't find the right libraries" >&6
31455 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31456echo "$as_me: error: can't link a simple motif program" >&2;}
31457 { (exit 1); exit 1; }; }
31458 fi
31459
62fa8b3a
MW
31460 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31461echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
31462if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31463 echo $ECHO_N "(cached) $ECHO_C" >&6
31464else
31465 ac_check_lib_save_LIBS=$LIBS
31466LIBS="-lSgm $LIBS"
31467cat >conftest.$ac_ext <<_ACEOF
31468/* confdefs.h. */
31469_ACEOF
31470cat confdefs.h >>conftest.$ac_ext
31471cat >>conftest.$ac_ext <<_ACEOF
31472/* end confdefs.h. */
31473
31474/* Override any gcc2 internal prototype to avoid an error. */
31475#ifdef __cplusplus
31476extern "C"
31477#endif
31478/* We use char because int might match the return type of a gcc2
31479 builtin and then its argument prototype would still apply. */
31480char SgCreateList ();
31481int
31482main ()
31483{
31484SgCreateList ();
31485 ;
31486 return 0;
31487}
31488_ACEOF
31489rm -f conftest.$ac_objext conftest$ac_exeext
31490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31491 (eval $ac_link) 2>conftest.er1
31492 ac_status=$?
31493 grep -v '^ *+' conftest.er1 >conftest.err
31494 rm -f conftest.er1
31495 cat conftest.err >&5
31496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31497 (exit $ac_status); } &&
64b75e64 31498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
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); }; } &&
31504 { ac_try='test -s conftest$ac_exeext'
31505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31506 (eval $ac_try) 2>&5
31507 ac_status=$?
31508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31509 (exit $ac_status); }; }; then
31510 ac_cv_lib_Sgm_SgCreateList=yes
31511else
31512 echo "$as_me: failed program was:" >&5
31513sed 's/^/| /' conftest.$ac_ext >&5
31514
31515ac_cv_lib_Sgm_SgCreateList=no
31516fi
31517rm -f conftest.err conftest.$ac_objext \
31518 conftest$ac_exeext conftest.$ac_ext
31519LIBS=$ac_check_lib_save_LIBS
31520fi
31521echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
31522echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
31523if test $ac_cv_lib_Sgm_SgCreateList = yes; then
31524 libsgm_link=" -lSgm"
31525fi
31526
31527
e56f4f9e
VZ
31528 save_CXXFLAGS=$CXXFLAGS
31529 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 31530
a848cd7e
SC
31531 echo "$as_me:$LINENO: checking for Motif 2" >&5
31532echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
31533if test "${wx_cv_lib_motif2+set}" = set; then
31534 echo $ECHO_N "(cached) $ECHO_C" >&6
31535else
31536 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31537/* confdefs.h. */
31538_ACEOF
31539cat confdefs.h >>conftest.$ac_ext
31540cat >>conftest.$ac_ext <<_ACEOF
31541/* end confdefs.h. */
31542
0ad5d837 31543 #include <Xm/Xm.h>
a848cd7e
SC
31544
31545int
31546main ()
31547{
31548
0ad5d837
VZ
31549 #if XmVersion < 2000
31550 Not Motif 2
31551 #endif
a848cd7e
SC
31552
31553 ;
31554 return 0;
31555}
31556_ACEOF
31557rm -f conftest.$ac_objext
31558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31559 (eval $ac_compile) 2>conftest.er1
a848cd7e 31560 ac_status=$?
ac1cb8d3
VS
31561 grep -v '^ *+' conftest.er1 >conftest.err
31562 rm -f conftest.er1
31563 cat conftest.err >&5
a848cd7e
SC
31564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31565 (exit $ac_status); } &&
64b75e64 31566 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31568 (eval $ac_try) 2>&5
31569 ac_status=$?
31570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31571 (exit $ac_status); }; } &&
31572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31574 (eval $ac_try) 2>&5
31575 ac_status=$?
31576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577 (exit $ac_status); }; }; then
0ad5d837 31578 wx_cv_lib_motif2="yes"
a848cd7e
SC
31579else
31580 echo "$as_me: failed program was:" >&5
31581sed 's/^/| /' conftest.$ac_ext >&5
31582
0ad5d837
VZ
31583wx_cv_lib_motif2="no"
31584fi
31585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31586fi
31587echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
31588echo "${ECHO_T}$wx_cv_lib_motif2" >&6
31589 if test "$wx_cv_lib_motif2" = "yes"; then
31590 cat >>confdefs.h <<\_ACEOF
31591#define __WXMOTIF20__ 1
31592_ACEOF
a848cd7e 31593
0ad5d837
VZ
31594 else
31595 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31596#define __WXMOTIF20__ 0
31597_ACEOF
31598
0ad5d837 31599 fi
2113bc77
MW
31600
31601 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
31602echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
31603if test "${wx_cv_lib_lesstif+set}" = set; then
31604 echo $ECHO_N "(cached) $ECHO_C" >&6
31605else
31606 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
31607/* confdefs.h. */
31608_ACEOF
31609cat confdefs.h >>conftest.$ac_ext
31610cat >>conftest.$ac_ext <<_ACEOF
31611/* end confdefs.h. */
31612
0ad5d837 31613 #include <Xm/Xm.h>
2113bc77
MW
31614
31615int
31616main ()
31617{
31618
0ad5d837
VZ
31619 #if !defined(LesstifVersion) || LesstifVersion <= 0
31620 Not Lesstif
31621 #endif
2113bc77
MW
31622
31623 ;
31624 return 0;
31625}
31626_ACEOF
31627rm -f conftest.$ac_objext
31628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31629 (eval $ac_compile) 2>conftest.er1
31630 ac_status=$?
31631 grep -v '^ *+' conftest.er1 >conftest.err
31632 rm -f conftest.er1
31633 cat conftest.err >&5
31634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635 (exit $ac_status); } &&
64b75e64 31636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2113bc77
MW
31637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31638 (eval $ac_try) 2>&5
31639 ac_status=$?
31640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31641 (exit $ac_status); }; } &&
31642 { ac_try='test -s conftest.$ac_objext'
31643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31644 (eval $ac_try) 2>&5
31645 ac_status=$?
31646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31647 (exit $ac_status); }; }; then
0ad5d837 31648 wx_cv_lib_lesstif="yes"
2113bc77
MW
31649else
31650 echo "$as_me: failed program was:" >&5
31651sed 's/^/| /' conftest.$ac_ext >&5
31652
0ad5d837
VZ
31653wx_cv_lib_lesstif="no"
31654fi
31655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 31656
0ad5d837
VZ
31657fi
31658echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31659echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
31660 if test "$wx_cv_lib_lesstif" = "yes"; then
31661 cat >>confdefs.h <<\_ACEOF
31662#define __WXLESSTIF__ 1
31663_ACEOF
31664
31665 else
31666 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
31667#define __WXLESSTIF__ 0
31668_ACEOF
31669
0ad5d837 31670 fi
2113bc77 31671
e56f4f9e 31672 CXXFLAGS=$save_CXXFLAGS
a848cd7e 31673
62fa8b3a 31674 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
31675 TOOLKIT=MOTIF
31676 GUIDIST=MOTIF_DIST
31677 fi
31678
74b84332 31679 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
31680 if test "$wxUSE_LIBXPM" = "sys"; then
31681 echo "$as_me:$LINENO: checking for Xpm library" >&5
31682echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
31683
0ad5d837
VZ
31684 ac_find_libraries=
31685 for ac_dir in $SEARCH_LIB;
a848cd7e 31686 do
3eca31dc 31687 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31688 if test -f "$ac_dir/libXpm.$ac_extension"; then
31689 ac_find_libraries=$ac_dir
31690 break 2
31691 fi
31692 done
31693 done
31694
31695 if test "$ac_find_libraries" != "" ; then
31696
0ad5d837 31697 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31698 ac_path_to_link=""
31699 else
0ad5d837
VZ
31700 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31701 result=$?
31702 if test $result = 0; then
31703 ac_path_to_link=""
31704 else
31705 ac_path_to_link=" -L$ac_find_libraries"
31706 fi
a848cd7e
SC
31707 fi
31708
31709 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
31710 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31711echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
31712
31713 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31714echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31715if test "${wx_cv_x11_xpm_h+set}" = set; then
31716 echo $ECHO_N "(cached) $ECHO_C" >&6
31717else
31718
e56f4f9e
VZ
31719 save_CXXFLAGS=$CXXFLAGS
31720 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31721
31722 cat >conftest.$ac_ext <<_ACEOF
31723/* confdefs.h. */
31724_ACEOF
31725cat confdefs.h >>conftest.$ac_ext
31726cat >>conftest.$ac_ext <<_ACEOF
31727/* end confdefs.h. */
31728
31729 #include <X11/xpm.h>
31730
31731int
31732main ()
31733{
31734
31735 int version;
31736 version = XpmLibraryVersion();
31737
31738 ;
31739 return 0;
31740}
31741_ACEOF
31742rm -f conftest.$ac_objext
31743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31744 (eval $ac_compile) 2>conftest.er1
a848cd7e 31745 ac_status=$?
ac1cb8d3
VS
31746 grep -v '^ *+' conftest.er1 >conftest.err
31747 rm -f conftest.er1
31748 cat conftest.err >&5
a848cd7e
SC
31749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750 (exit $ac_status); } &&
64b75e64 31751 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31753 (eval $ac_try) 2>&5
31754 ac_status=$?
31755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31756 (exit $ac_status); }; } &&
31757 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31759 (eval $ac_try) 2>&5
31760 ac_status=$?
31761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762 (exit $ac_status); }; }; then
31763 wx_cv_x11_xpm_h=yes
31764else
31765 echo "$as_me: failed program was:" >&5
31766sed 's/^/| /' conftest.$ac_ext >&5
31767
31768wx_cv_x11_xpm_h=no
31769
31770fi
ac1cb8d3 31771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 31772
e56f4f9e 31773 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31774
31775
31776fi
31777echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31778echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31779
31780 if test $wx_cv_x11_xpm_h = "yes"; then
31781 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31782 cat >>confdefs.h <<\_ACEOF
31783#define wxHAVE_LIB_XPM 1
31784_ACEOF
31785
31786 else
31787 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31788echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31789 fi
31790 fi
31791
31792 fi
31793
31794 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31795echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31796if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31797 echo $ECHO_N "(cached) $ECHO_C" >&6
31798else
31799 ac_check_lib_save_LIBS=$LIBS
31800LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31801cat >conftest.$ac_ext <<_ACEOF
31802/* confdefs.h. */
31803_ACEOF
31804cat confdefs.h >>conftest.$ac_ext
31805cat >>conftest.$ac_ext <<_ACEOF
31806/* end confdefs.h. */
31807
31808/* Override any gcc2 internal prototype to avoid an error. */
31809#ifdef __cplusplus
31810extern "C"
31811#endif
31812/* We use char because int might match the return type of a gcc2
31813 builtin and then its argument prototype would still apply. */
31814char XShapeQueryExtension ();
31815int
31816main ()
31817{
31818XShapeQueryExtension ();
31819 ;
31820 return 0;
31821}
31822_ACEOF
31823rm -f conftest.$ac_objext conftest$ac_exeext
31824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31825 (eval $ac_link) 2>conftest.er1
a848cd7e 31826 ac_status=$?
ac1cb8d3
VS
31827 grep -v '^ *+' conftest.er1 >conftest.err
31828 rm -f conftest.er1
31829 cat conftest.err >&5
a848cd7e
SC
31830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31831 (exit $ac_status); } &&
64b75e64 31832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31834 (eval $ac_try) 2>&5
31835 ac_status=$?
31836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31837 (exit $ac_status); }; } &&
31838 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31840 (eval $ac_try) 2>&5
31841 ac_status=$?
31842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843 (exit $ac_status); }; }; then
31844 ac_cv_lib_Xext_XShapeQueryExtension=yes
31845else
31846 echo "$as_me: failed program was:" >&5
31847sed 's/^/| /' conftest.$ac_ext >&5
31848
31849ac_cv_lib_Xext_XShapeQueryExtension=no
31850fi
ac1cb8d3
VS
31851rm -f conftest.err conftest.$ac_objext \
31852 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31853LIBS=$ac_check_lib_save_LIBS
31854fi
31855echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
31856echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
31857if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
31858
31859 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
31860 wxHAVE_XEXT_LIB=1
31861
31862fi
31863
31864
31865 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
31866 save_CXXFLAGS="$CXXFLAGS"
31867 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31868
31869 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
31870echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
31871 cat >conftest.$ac_ext <<_ACEOF
31872/* confdefs.h. */
31873_ACEOF
31874cat confdefs.h >>conftest.$ac_ext
31875cat >>conftest.$ac_ext <<_ACEOF
31876/* end confdefs.h. */
31877
31878 #include <X11/Xlib.h>
31879 #include <X11/extensions/shape.h>
31880
31881int
31882main ()
31883{
31884
31885 int dummy1, dummy2;
31886 XShapeQueryExtension((Display*)NULL,
31887 (int*)NULL, (int*)NULL);
31888
31889 ;
31890 return 0;
31891}
31892_ACEOF
31893rm -f conftest.$ac_objext
31894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31895 (eval $ac_compile) 2>conftest.er1
a848cd7e 31896 ac_status=$?
ac1cb8d3
VS
31897 grep -v '^ *+' conftest.er1 >conftest.err
31898 rm -f conftest.er1
31899 cat conftest.err >&5
a848cd7e
SC
31900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31901 (exit $ac_status); } &&
64b75e64 31902 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31904 (eval $ac_try) 2>&5
31905 ac_status=$?
31906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907 (exit $ac_status); }; } &&
31908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31910 (eval $ac_try) 2>&5
31911 ac_status=$?
31912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31913 (exit $ac_status); }; }; then
31914
31915 cat >>confdefs.h <<\_ACEOF
31916#define HAVE_XSHAPE 1
31917_ACEOF
31918
31919 echo "$as_me:$LINENO: result: found" >&5
31920echo "${ECHO_T}found" >&6
31921
31922else
31923 echo "$as_me: failed program was:" >&5
31924sed 's/^/| /' conftest.$ac_ext >&5
31925
31926
31927 echo "$as_me:$LINENO: result: not found" >&5
31928echo "${ECHO_T}not found" >&6
31929
31930fi
ac1cb8d3 31931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 31932 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
31933
31934 fi
31935 fi
31936
31937 if test "$wxUSE_MAC" = 1; then
31938 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31939echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31940 if test "$GCC" = yes; then
31941 echo "$as_me:$LINENO: result: gcc" >&5
31942echo "${ECHO_T}gcc" >&6
31943 CPPFLAGS_PASCAL="-fpascal-strings"
31944 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31945 echo "$as_me:$LINENO: result: xlc" >&5
31946echo "${ECHO_T}xlc" >&6
31947 CPPFLAGS_PASCAL="-qmacpstr"
31948 else
31949 echo "$as_me:$LINENO: result: none" >&5
31950echo "${ECHO_T}none" >&6
31951 fi
31952
1e9e8aba 31953 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 31954 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 31955 else
c92ad099 31956 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 31957 fi
a848cd7e 31958
a848cd7e
SC
31959 TOOLKIT=MAC
31960 GUIDIST=MACX_DIST
dd21ced8 31961 WXBASEPORT="_carbon"
a848cd7e
SC
31962 fi
31963
31964 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
31965 TOOLKIT=COCOA
31966 GUIDIST=COCOA_DIST
31967 fi
31968
31969 if test "$wxUSE_PM" = 1; then
31970 TOOLKIT=PM
de59c161
RD
31971 GUIDIST=PM_DIST
31972 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31973echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31974if test "${wx_cv_spbcdata+set}" = set; then
31975 echo $ECHO_N "(cached) $ECHO_C" >&6
31976else
31977
31978 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
31979/* confdefs.h. */
31980_ACEOF
31981cat confdefs.h >>conftest.$ac_ext
31982cat >>conftest.$ac_ext <<_ACEOF
31983/* end confdefs.h. */
31984
31985 #define INCL_PM
31986 #include <os2.h>
31987
31988int
31989main ()
31990{
31991
31992 SPBCDATA test;
31993
31994 ;
31995 return 0;
31996}
31997_ACEOF
31998rm -f conftest.$ac_objext
31999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32000 (eval $ac_compile) 2>conftest.er1
de59c161 32001 ac_status=$?
ac1cb8d3
VS
32002 grep -v '^ *+' conftest.er1 >conftest.err
32003 rm -f conftest.er1
32004 cat conftest.err >&5
de59c161
RD
32005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32006 (exit $ac_status); } &&
64b75e64 32007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32009 (eval $ac_try) 2>&5
32010 ac_status=$?
32011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32012 (exit $ac_status); }; } &&
32013 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
32014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32015 (eval $ac_try) 2>&5
32016 ac_status=$?
32017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32018 (exit $ac_status); }; }; then
32019 wx_cv_spbcdata=yes
32020else
32021 echo "$as_me: failed program was:" >&5
32022sed 's/^/| /' conftest.$ac_ext >&5
32023
32024wx_cv_spbcdata=no
32025
32026fi
ac1cb8d3 32027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
32028
32029
32030fi
32031echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32032echo "${ECHO_T}$wx_cv_spbcdata" >&6
32033
32034 if test $wx_cv_spbcdata = "yes"; then
32035 cat >>confdefs.h <<\_ACEOF
32036#define HAVE_SPBCDATA 1
32037_ACEOF
32038
32039 fi
a848cd7e
SC
32040 fi
32041
32042 if test "$TOOLKIT" = "PM" ; then
32043 TOOLKIT_DIR="os2"
32044 else
32045 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
32046 fi
32047
a848cd7e 32048 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
32049 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32050 WIDGET_SET=univ
a848cd7e
SC
32051 fi
32052
32053 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32054 DISTDIR="wx\$(TOOLKIT)"
32055else
32056 USE_GUI=0
32057
32058 TOOLKIT_DIR="base"
32059
32060 if test "$USE_WIN32" = 1 ; then
a848cd7e 32061 TOOLKIT="MSW"
a848cd7e
SC
32062 fi
32063
a848cd7e
SC
32064 GUIDIST="BASE_DIST"
32065 DISTDIR="wxBase"
32066fi
32067
32068
d12aef51
VZ
32069if test "$wxUSE_GUI" = "yes"; then
32070 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32071
32072for ac_header in X11/Xlib.h
32073do
32074as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32075if eval "test \"\${$as_ac_Header+set}\" = set"; then
32076 echo "$as_me:$LINENO: checking for $ac_header" >&5
32077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32078if eval "test \"\${$as_ac_Header+set}\" = set"; then
32079 echo $ECHO_N "(cached) $ECHO_C" >&6
32080fi
32081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32082echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32083else
32084 # Is the header compilable?
32085echo "$as_me:$LINENO: checking $ac_header usability" >&5
32086echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32087cat >conftest.$ac_ext <<_ACEOF
32088/* confdefs.h. */
32089_ACEOF
32090cat confdefs.h >>conftest.$ac_ext
32091cat >>conftest.$ac_ext <<_ACEOF
32092/* end confdefs.h. */
32093$ac_includes_default
32094#include <$ac_header>
32095_ACEOF
32096rm -f conftest.$ac_objext
32097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32098 (eval $ac_compile) 2>conftest.er1
32099 ac_status=$?
32100 grep -v '^ *+' conftest.er1 >conftest.err
32101 rm -f conftest.er1
32102 cat conftest.err >&5
32103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32104 (exit $ac_status); } &&
64b75e64 32105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
32106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32107 (eval $ac_try) 2>&5
32108 ac_status=$?
32109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32110 (exit $ac_status); }; } &&
32111 { ac_try='test -s conftest.$ac_objext'
32112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32113 (eval $ac_try) 2>&5
32114 ac_status=$?
32115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32116 (exit $ac_status); }; }; then
32117 ac_header_compiler=yes
32118else
32119 echo "$as_me: failed program was:" >&5
32120sed 's/^/| /' conftest.$ac_ext >&5
32121
32122ac_header_compiler=no
32123fi
32124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32125echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32126echo "${ECHO_T}$ac_header_compiler" >&6
32127
32128# Is the header present?
32129echo "$as_me:$LINENO: checking $ac_header presence" >&5
32130echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32131cat >conftest.$ac_ext <<_ACEOF
32132/* confdefs.h. */
32133_ACEOF
32134cat confdefs.h >>conftest.$ac_ext
32135cat >>conftest.$ac_ext <<_ACEOF
32136/* end confdefs.h. */
32137#include <$ac_header>
32138_ACEOF
32139if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32141 ac_status=$?
32142 grep -v '^ *+' conftest.er1 >conftest.err
32143 rm -f conftest.er1
32144 cat conftest.err >&5
32145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32146 (exit $ac_status); } >/dev/null; then
32147 if test -s conftest.err; then
5d7b7554
VZ
32148 ac_cpp_err=$ac_cxx_preproc_warn_flag
32149 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
32150 else
32151 ac_cpp_err=
32152 fi
32153else
32154 ac_cpp_err=yes
32155fi
32156if test -z "$ac_cpp_err"; then
32157 ac_header_preproc=yes
32158else
32159 echo "$as_me: failed program was:" >&5
32160sed 's/^/| /' conftest.$ac_ext >&5
32161
32162 ac_header_preproc=no
32163fi
32164rm -f conftest.err conftest.$ac_ext
32165echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32166echo "${ECHO_T}$ac_header_preproc" >&6
32167
32168# So? What about this header?
5d7b7554 32169case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
32170 yes:no: )
32171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32172echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32174echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32175 ac_header_preproc=yes
32176 ;;
32177 no:yes:* )
32178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32179echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32181echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32183echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32185echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32187echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32189echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32190 (
32191 cat <<\_ASBOX
32192## ----------------------------------------- ##
32193## Report this to wx-dev@lists.wxwidgets.org ##
32194## ----------------------------------------- ##
32195_ASBOX
32196 ) |
32197 sed "s/^/$as_me: WARNING: /" >&2
32198 ;;
32199esac
32200echo "$as_me:$LINENO: checking for $ac_header" >&5
32201echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32202if eval "test \"\${$as_ac_Header+set}\" = set"; then
32203 echo $ECHO_N "(cached) $ECHO_C" >&6
32204else
32205 eval "$as_ac_Header=\$ac_header_preproc"
32206fi
32207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32208echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32209
32210fi
32211if test `eval echo '${'$as_ac_Header'}'` = yes; then
32212 cat >>confdefs.h <<_ACEOF
32213#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32214_ACEOF
32215
32216fi
32217
32218done
32219
32220
32221for ac_header in X11/XKBlib.h
32222do
32223as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32224echo "$as_me:$LINENO: checking for $ac_header" >&5
32225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32226if eval "test \"\${$as_ac_Header+set}\" = set"; then
32227 echo $ECHO_N "(cached) $ECHO_C" >&6
32228else
32229 cat >conftest.$ac_ext <<_ACEOF
32230/* confdefs.h. */
32231_ACEOF
32232cat confdefs.h >>conftest.$ac_ext
32233cat >>conftest.$ac_ext <<_ACEOF
32234/* end confdefs.h. */
32235
32236 #if HAVE_X11_XLIB_H
32237 #include <X11/Xlib.h>
32238 #endif
32239
32240
32241#include <$ac_header>
32242_ACEOF
32243rm -f conftest.$ac_objext
32244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32245 (eval $ac_compile) 2>conftest.er1
32246 ac_status=$?
32247 grep -v '^ *+' conftest.er1 >conftest.err
32248 rm -f conftest.er1
32249 cat conftest.err >&5
32250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32251 (exit $ac_status); } &&
64b75e64 32252 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
32253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32254 (eval $ac_try) 2>&5
32255 ac_status=$?
32256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257 (exit $ac_status); }; } &&
32258 { ac_try='test -s conftest.$ac_objext'
32259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32260 (eval $ac_try) 2>&5
32261 ac_status=$?
32262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32263 (exit $ac_status); }; }; then
32264 eval "$as_ac_Header=yes"
32265else
32266 echo "$as_me: failed program was:" >&5
32267sed 's/^/| /' conftest.$ac_ext >&5
32268
32269eval "$as_ac_Header=no"
32270fi
32271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32272fi
32273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32274echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32275if test `eval echo '${'$as_ac_Header'}'` = yes; then
32276 cat >>confdefs.h <<_ACEOF
32277#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32278_ACEOF
32279
32280fi
32281
32282done
32283
32284 fi
32285fi
32286
a848cd7e
SC
32287
32288
32289IODBC_C_SRC=""
32290
32291
32292if test "$TOOLKIT" != "MSW" ; then
32293
32294 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
32295
32296 if test "${ac_cv_header_sql_h+set}" = set; then
32297 echo "$as_me:$LINENO: checking for sql.h" >&5
32298echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32299if test "${ac_cv_header_sql_h+set}" = set; then
32300 echo $ECHO_N "(cached) $ECHO_C" >&6
32301fi
32302echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32303echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32304else
32305 # Is the header compilable?
32306echo "$as_me:$LINENO: checking sql.h usability" >&5
32307echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
32308cat >conftest.$ac_ext <<_ACEOF
32309/* confdefs.h. */
32310_ACEOF
32311cat confdefs.h >>conftest.$ac_ext
32312cat >>conftest.$ac_ext <<_ACEOF
32313/* end confdefs.h. */
32314$ac_includes_default
32315#include <sql.h>
32316_ACEOF
32317rm -f conftest.$ac_objext
32318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32319 (eval $ac_compile) 2>conftest.er1
a848cd7e 32320 ac_status=$?
ac1cb8d3
VS
32321 grep -v '^ *+' conftest.er1 >conftest.err
32322 rm -f conftest.er1
32323 cat conftest.err >&5
a848cd7e
SC
32324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32325 (exit $ac_status); } &&
64b75e64 32326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32328 (eval $ac_try) 2>&5
32329 ac_status=$?
32330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32331 (exit $ac_status); }; } &&
32332 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
32338 ac_header_compiler=yes
32339else
32340 echo "$as_me: failed program was:" >&5
32341sed 's/^/| /' conftest.$ac_ext >&5
32342
32343ac_header_compiler=no
32344fi
ac1cb8d3 32345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32346echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32347echo "${ECHO_T}$ac_header_compiler" >&6
32348
32349# Is the header present?
32350echo "$as_me:$LINENO: checking sql.h presence" >&5
32351echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
32352cat >conftest.$ac_ext <<_ACEOF
32353/* confdefs.h. */
32354_ACEOF
32355cat confdefs.h >>conftest.$ac_ext
32356cat >>conftest.$ac_ext <<_ACEOF
32357/* end confdefs.h. */
32358#include <sql.h>
32359_ACEOF
32360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32362 ac_status=$?
32363 grep -v '^ *+' conftest.er1 >conftest.err
32364 rm -f conftest.er1
32365 cat conftest.err >&5
32366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367 (exit $ac_status); } >/dev/null; then
32368 if test -s conftest.err; then
5d7b7554
VZ
32369 ac_cpp_err=$ac_cxx_preproc_warn_flag
32370 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32371 else
32372 ac_cpp_err=
32373 fi
32374else
32375 ac_cpp_err=yes
32376fi
32377if test -z "$ac_cpp_err"; then
32378 ac_header_preproc=yes
32379else
32380 echo "$as_me: failed program was:" >&5
32381sed 's/^/| /' conftest.$ac_ext >&5
32382
32383 ac_header_preproc=no
32384fi
32385rm -f conftest.err conftest.$ac_ext
32386echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32387echo "${ECHO_T}$ac_header_preproc" >&6
32388
32389# So? What about this header?
5d7b7554 32390case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32391 yes:no: )
a848cd7e
SC
32392 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
32393echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32394 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
32395echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
32396 ac_header_preproc=yes
a848cd7e 32397 ;;
ac1cb8d3 32398 no:yes:* )
a848cd7e
SC
32399 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
32400echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32401 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
32402echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
32403 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
32404echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
32405 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
32406echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32407 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
32408echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32409 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
32410echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32411 (
32412 cat <<\_ASBOX
ac1cb8d3
VS
32413## ----------------------------------------- ##
32414## Report this to wx-dev@lists.wxwidgets.org ##
32415## ----------------------------------------- ##
a848cd7e
SC
32416_ASBOX
32417 ) |
32418 sed "s/^/$as_me: WARNING: /" >&2
32419 ;;
32420esac
32421echo "$as_me:$LINENO: checking for sql.h" >&5
32422echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32423if test "${ac_cv_header_sql_h+set}" = set; then
32424 echo $ECHO_N "(cached) $ECHO_C" >&6
32425else
32426 ac_cv_header_sql_h=$ac_header_preproc
32427fi
32428echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32429echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32430
32431fi
32432if test $ac_cv_header_sql_h = yes; then
32433 found_sql_h=1
32434fi
32435
32436
32437 if test "x$found_sql_h" = "x1" ; then
32438 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
32439echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
32440if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
32441 echo $ECHO_N "(cached) $ECHO_C" >&6
32442else
32443 ac_check_lib_save_LIBS=$LIBS
32444LIBS="-liodbc $LIBS"
32445cat >conftest.$ac_ext <<_ACEOF
32446/* confdefs.h. */
32447_ACEOF
32448cat confdefs.h >>conftest.$ac_ext
32449cat >>conftest.$ac_ext <<_ACEOF
32450/* end confdefs.h. */
32451
32452/* Override any gcc2 internal prototype to avoid an error. */
32453#ifdef __cplusplus
32454extern "C"
32455#endif
32456/* We use char because int might match the return type of a gcc2
32457 builtin and then its argument prototype would still apply. */
32458char SQLAllocEnv ();
32459int
32460main ()
32461{
32462SQLAllocEnv ();
32463 ;
32464 return 0;
32465}
32466_ACEOF
32467rm -f conftest.$ac_objext conftest$ac_exeext
32468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32469 (eval $ac_link) 2>conftest.er1
a848cd7e 32470 ac_status=$?
ac1cb8d3
VS
32471 grep -v '^ *+' conftest.er1 >conftest.err
32472 rm -f conftest.er1
32473 cat conftest.err >&5
a848cd7e
SC
32474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32475 (exit $ac_status); } &&
64b75e64 32476 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32478 (eval $ac_try) 2>&5
32479 ac_status=$?
32480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32481 (exit $ac_status); }; } &&
32482 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32484 (eval $ac_try) 2>&5
32485 ac_status=$?
32486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32487 (exit $ac_status); }; }; then
32488 ac_cv_lib_iodbc_SQLAllocEnv=yes
32489else
32490 echo "$as_me: failed program was:" >&5
32491sed 's/^/| /' conftest.$ac_ext >&5
32492
32493ac_cv_lib_iodbc_SQLAllocEnv=no
32494fi
ac1cb8d3
VS
32495rm -f conftest.err conftest.$ac_objext \
32496 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32497LIBS=$ac_check_lib_save_LIBS
32498fi
32499echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
32500echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
32501if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
32502 ODBC_LINK=" -liodbc"
32503else
32504
32505 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
32506echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
32507if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
32508 echo $ECHO_N "(cached) $ECHO_C" >&6
32509else
32510 ac_check_lib_save_LIBS=$LIBS
32511LIBS="-lunixodbc $LIBS"
32512cat >conftest.$ac_ext <<_ACEOF
32513/* confdefs.h. */
32514_ACEOF
32515cat confdefs.h >>conftest.$ac_ext
32516cat >>conftest.$ac_ext <<_ACEOF
32517/* end confdefs.h. */
32518
32519/* Override any gcc2 internal prototype to avoid an error. */
32520#ifdef __cplusplus
32521extern "C"
32522#endif
32523/* We use char because int might match the return type of a gcc2
32524 builtin and then its argument prototype would still apply. */
32525char SQLAllocEnv ();
32526int
32527main ()
32528{
32529SQLAllocEnv ();
32530 ;
32531 return 0;
32532}
32533_ACEOF
32534rm -f conftest.$ac_objext conftest$ac_exeext
32535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32536 (eval $ac_link) 2>conftest.er1
a848cd7e 32537 ac_status=$?
ac1cb8d3
VS
32538 grep -v '^ *+' conftest.er1 >conftest.err
32539 rm -f conftest.er1
32540 cat conftest.err >&5
a848cd7e
SC
32541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32542 (exit $ac_status); } &&
64b75e64 32543 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32545 (eval $ac_try) 2>&5
32546 ac_status=$?
32547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548 (exit $ac_status); }; } &&
32549 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32551 (eval $ac_try) 2>&5
32552 ac_status=$?
32553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554 (exit $ac_status); }; }; then
32555 ac_cv_lib_unixodbc_SQLAllocEnv=yes
32556else
32557 echo "$as_me: failed program was:" >&5
32558sed 's/^/| /' conftest.$ac_ext >&5
32559
32560ac_cv_lib_unixodbc_SQLAllocEnv=no
32561fi
ac1cb8d3
VS
32562rm -f conftest.err conftest.$ac_objext \
32563 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32564LIBS=$ac_check_lib_save_LIBS
32565fi
32566echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
32567echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
32568if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
32569 ODBC_LINK=" -lunixodbc"
32570else
32571
32572 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
32573echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
32574if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
32575 echo $ECHO_N "(cached) $ECHO_C" >&6
32576else
32577 ac_check_lib_save_LIBS=$LIBS
32578LIBS="-lodbc $LIBS"
32579cat >conftest.$ac_ext <<_ACEOF
32580/* confdefs.h. */
32581_ACEOF
32582cat confdefs.h >>conftest.$ac_ext
32583cat >>conftest.$ac_ext <<_ACEOF
32584/* end confdefs.h. */
32585
32586/* Override any gcc2 internal prototype to avoid an error. */
32587#ifdef __cplusplus
32588extern "C"
32589#endif
32590/* We use char because int might match the return type of a gcc2
32591 builtin and then its argument prototype would still apply. */
32592char SQLAllocEnv ();
32593int
32594main ()
32595{
32596SQLAllocEnv ();
32597 ;
32598 return 0;
32599}
32600_ACEOF
32601rm -f conftest.$ac_objext conftest$ac_exeext
32602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32603 (eval $ac_link) 2>conftest.er1
a848cd7e 32604 ac_status=$?
ac1cb8d3
VS
32605 grep -v '^ *+' conftest.er1 >conftest.err
32606 rm -f conftest.er1
32607 cat conftest.err >&5
a848cd7e
SC
32608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609 (exit $ac_status); } &&
64b75e64 32610 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32612 (eval $ac_try) 2>&5
32613 ac_status=$?
32614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615 (exit $ac_status); }; } &&
32616 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32618 (eval $ac_try) 2>&5
32619 ac_status=$?
32620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621 (exit $ac_status); }; }; then
32622 ac_cv_lib_odbc_SQLAllocEnv=yes
32623else
32624 echo "$as_me: failed program was:" >&5
32625sed 's/^/| /' conftest.$ac_ext >&5
32626
32627ac_cv_lib_odbc_SQLAllocEnv=no
32628fi
ac1cb8d3
VS
32629rm -f conftest.err conftest.$ac_objext \
32630 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32631LIBS=$ac_check_lib_save_LIBS
32632fi
32633echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
32634echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
32635if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
32636 ODBC_LINK=" -lodbc"
32637fi
32638
32639
32640fi
32641
32642
32643fi
32644
32645 fi
32646 if test "x$ODBC_LINK" = "x" ; then
32647 if test "$wxUSE_ODBC" = "sys" ; then
32648 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
32649echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
32650 { (exit 1); exit 1; }; }
32651 else
32652 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
32653echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
32654 wxUSE_ODBC=builtin
32655 fi
32656 else
32657 wxUSE_ODBC=sys
32658 fi
32659 fi
a848cd7e 32660
2da0c077
RD
32661 if test "$wxUSE_ODBC" = "builtin" ; then
32662 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
32663#define wxUSE_BUILTIN_IODBC 1
32664_ACEOF
32665
a848cd7e
SC
32666 fi
32667fi
32668
2da0c077
RD
32669if test "$wxUSE_ODBC" != "no" ; then
32670 cat >>confdefs.h <<\_ACEOF
32671#define wxUSE_ODBC 1
32672_ACEOF
32673
32674 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32675
5ff751d6 32676 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 32677fi
a848cd7e 32678
01cb68df 32679
a848cd7e 32680if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 32681 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
32682 echo "$as_me:$LINENO: checking for Xinerama" >&5
32683echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32684
0ad5d837
VZ
32685 ac_find_libraries=
32686 for ac_dir in $SEARCH_LIB;
32687 do
32688 for ac_extension in a so sl dylib dll.a; do
32689 if test -f "$ac_dir/libXinerama.$ac_extension"; then
32690 ac_find_libraries=$ac_dir
32691 break 2
32692 fi
32693 done
32694 done
32695
a848cd7e
SC
32696 if test "$ac_find_libraries" != "" ; then
32697
0ad5d837 32698 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32699 ac_path_to_link=""
32700 else
0ad5d837
VZ
32701 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32702 result=$?
32703 if test $result = 0; then
32704 ac_path_to_link=""
32705 else
32706 ac_path_to_link=" -L$ac_find_libraries"
32707 fi
a848cd7e
SC
32708 fi
32709
32710 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32711 LDFLAGS="$LDFLAGS $ac_path_to_link"
32712 fi
32713 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32714 echo "$as_me:$LINENO: result: yes" >&5
32715echo "${ECHO_T}yes" >&6
32716
32717 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32718echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32719
0ad5d837
VZ
32720 ac_find_libraries=
32721 for ac_dir in $SEARCH_LIB;
a848cd7e 32722 do
3eca31dc 32723 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32724 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32725 ac_find_libraries=$ac_dir
32726 break 2
32727 fi
32728 done
32729 done
32730
32731 if test "$ac_find_libraries" != "" ; then
32732 echo "$as_me:$LINENO: result: yes" >&5
32733echo "${ECHO_T}yes" >&6
32734
32735for ac_header in X11/extensions/xf86vmode.h
32736do
32737as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32738echo "$as_me:$LINENO: checking for $ac_header" >&5
32739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32740if eval "test \"\${$as_ac_Header+set}\" = set"; then
32741 echo $ECHO_N "(cached) $ECHO_C" >&6
32742else
32743 cat >conftest.$ac_ext <<_ACEOF
32744/* confdefs.h. */
32745_ACEOF
32746cat confdefs.h >>conftest.$ac_ext
32747cat >>conftest.$ac_ext <<_ACEOF
32748/* end confdefs.h. */
32749
32750 #if HAVE_X11_XLIB_H
32751 #include <X11/Xlib.h>
32752 #endif
32753
32754
32755#include <$ac_header>
32756_ACEOF
32757rm -f conftest.$ac_objext
32758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32759 (eval $ac_compile) 2>conftest.er1
a848cd7e 32760 ac_status=$?
ac1cb8d3
VS
32761 grep -v '^ *+' conftest.er1 >conftest.err
32762 rm -f conftest.er1
32763 cat conftest.err >&5
a848cd7e
SC
32764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765 (exit $ac_status); } &&
64b75e64 32766 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32768 (eval $ac_try) 2>&5
32769 ac_status=$?
32770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32771 (exit $ac_status); }; } &&
32772 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32774 (eval $ac_try) 2>&5
32775 ac_status=$?
32776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32777 (exit $ac_status); }; }; then
32778 eval "$as_ac_Header=yes"
32779else
32780 echo "$as_me: failed program was:" >&5
32781sed 's/^/| /' conftest.$ac_ext >&5
32782
32783eval "$as_ac_Header=no"
32784fi
ac1cb8d3 32785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32786fi
32787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32789if test `eval echo '${'$as_ac_Header'}'` = yes; then
32790 cat >>confdefs.h <<_ACEOF
32791#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32792_ACEOF
32793
32794 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32795
32796fi
32797
32798done
32799
32800 else
32801 echo "$as_me:$LINENO: result: no" >&5
32802echo "${ECHO_T}no" >&6
32803 fi
32804
32805 else
32806 echo "$as_me:$LINENO: result: no" >&5
32807echo "${ECHO_T}no" >&6
dcc1b6ad
VS
32808 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32809echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
32810 wxUSE_DISPLAY="no"
32811 fi
01cb68df
RG
32812 elif test "$wxUSE_MSW" = 1; then
32813
e5efa97e 32814for ac_header in ddraw.h
01cb68df
RG
32815do
32816as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 32817echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
32818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32819if eval "test \"\${$as_ac_Header+set}\" = set"; then
32820 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 32821else
5294a27e 32822 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
32823/* confdefs.h. */
32824_ACEOF
32825cat confdefs.h >>conftest.$ac_ext
32826cat >>conftest.$ac_ext <<_ACEOF
32827/* end confdefs.h. */
5294a27e
VZ
32828#include <windows.h>
32829
01cb68df
RG
32830#include <$ac_header>
32831_ACEOF
32832rm -f conftest.$ac_objext
32833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32834 (eval $ac_compile) 2>conftest.er1
01cb68df 32835 ac_status=$?
ac1cb8d3
VS
32836 grep -v '^ *+' conftest.er1 >conftest.err
32837 rm -f conftest.er1
32838 cat conftest.err >&5
01cb68df
RG
32839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32840 (exit $ac_status); } &&
64b75e64 32841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32843 (eval $ac_try) 2>&5
32844 ac_status=$?
32845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32846 (exit $ac_status); }; } &&
32847 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
32848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32849 (eval $ac_try) 2>&5
32850 ac_status=$?
32851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32852 (exit $ac_status); }; }; then
5294a27e 32853 eval "$as_ac_Header=yes"
01cb68df
RG
32854else
32855 echo "$as_me: failed program was:" >&5
32856sed 's/^/| /' conftest.$ac_ext >&5
32857
5294a27e 32858eval "$as_ac_Header=no"
01cb68df 32859fi
ac1cb8d3 32860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
32861fi
32862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32863echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
32864if test `eval echo '${'$as_ac_Header'}'` = yes; then
32865 cat >>confdefs.h <<_ACEOF
32866#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32867_ACEOF
32868
01cb68df
RG
32869fi
32870
32871done
32872
a848cd7e
SC
32873 fi
32874fi
32875
32876
32877USE_OPENGL=0
32878if test "$wxUSE_OPENGL" = "yes"; then
32879 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
32880 OPENGL_LIBS="-framework OpenGL -framework AGL"
32881 elif test "$wxUSE_MSW" = 1; then
32882 OPENGL_LIBS="-lopengl32 -lglu32"
32883 else
32884
32885
32886ac_find_includes=
32887for ac_dir in $SEARCH_INCLUDE /usr/include;
32888 do
32889 if test -f "$ac_dir/GL/gl.h"; then
32890 ac_find_includes=$ac_dir
32891 break
32892 fi
32893 done
32894
32895 if test "$ac_find_includes" != "" ; then
32896 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32897echo "${ECHO_T}found in $ac_find_includes" >&6
32898
32899 if test "x$ac_find_includes" = "x/usr/include"; then
32900 ac_path_to_include=""
32901 else
32902 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32903 result=$?
32904 if test $result = 0; then
32905 ac_path_to_include=""
32906 else
32907 ac_path_to_include=" -I$ac_find_includes"
32908 fi
32909 fi
32910
c92ad099 32911 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
32912 fi
32913
32914 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32915 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32916echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32917if test "${ac_cv_header_GL_gl_h+set}" = set; then
32918 echo $ECHO_N "(cached) $ECHO_C" >&6
32919fi
32920echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32921echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32922else
32923 # Is the header compilable?
32924echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
32925echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
32926cat >conftest.$ac_ext <<_ACEOF
32927/* confdefs.h. */
32928_ACEOF
32929cat confdefs.h >>conftest.$ac_ext
32930cat >>conftest.$ac_ext <<_ACEOF
32931/* end confdefs.h. */
32932$ac_includes_default
32933#include <GL/gl.h>
32934_ACEOF
32935rm -f conftest.$ac_objext
32936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32937 (eval $ac_compile) 2>conftest.er1
a848cd7e 32938 ac_status=$?
ac1cb8d3
VS
32939 grep -v '^ *+' conftest.er1 >conftest.err
32940 rm -f conftest.er1
32941 cat conftest.err >&5
a848cd7e
SC
32942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32943 (exit $ac_status); } &&
64b75e64 32944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32946 (eval $ac_try) 2>&5
32947 ac_status=$?
32948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32949 (exit $ac_status); }; } &&
32950 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32952 (eval $ac_try) 2>&5
32953 ac_status=$?
32954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32955 (exit $ac_status); }; }; then
32956 ac_header_compiler=yes
32957else
32958 echo "$as_me: failed program was:" >&5
32959sed 's/^/| /' conftest.$ac_ext >&5
32960
32961ac_header_compiler=no
32962fi
ac1cb8d3 32963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32964echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32965echo "${ECHO_T}$ac_header_compiler" >&6
32966
32967# Is the header present?
32968echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32969echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32970cat >conftest.$ac_ext <<_ACEOF
32971/* confdefs.h. */
32972_ACEOF
32973cat confdefs.h >>conftest.$ac_ext
32974cat >>conftest.$ac_ext <<_ACEOF
32975/* end confdefs.h. */
32976#include <GL/gl.h>
32977_ACEOF
32978if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32980 ac_status=$?
32981 grep -v '^ *+' conftest.er1 >conftest.err
32982 rm -f conftest.er1
32983 cat conftest.err >&5
32984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985 (exit $ac_status); } >/dev/null; then
32986 if test -s conftest.err; then
5d7b7554
VZ
32987 ac_cpp_err=$ac_cxx_preproc_warn_flag
32988 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32989 else
32990 ac_cpp_err=
32991 fi
32992else
32993 ac_cpp_err=yes
32994fi
32995if test -z "$ac_cpp_err"; then
32996 ac_header_preproc=yes
32997else
32998 echo "$as_me: failed program was:" >&5
32999sed 's/^/| /' conftest.$ac_ext >&5
33000
33001 ac_header_preproc=no
33002fi
33003rm -f conftest.err conftest.$ac_ext
33004echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33005echo "${ECHO_T}$ac_header_preproc" >&6
33006
33007# So? What about this header?
5d7b7554 33008case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 33009 yes:no: )
a848cd7e
SC
33010 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33011echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33012 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
33013echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
33014 ac_header_preproc=yes
a848cd7e 33015 ;;
ac1cb8d3 33016 no:yes:* )
a848cd7e
SC
33017 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
33018echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33019 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
33020echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
33021 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
33022echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
33023 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
33024echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33025 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
33026echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33027 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
33028echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33029 (
33030 cat <<\_ASBOX
ac1cb8d3
VS
33031## ----------------------------------------- ##
33032## Report this to wx-dev@lists.wxwidgets.org ##
33033## ----------------------------------------- ##
a848cd7e
SC
33034_ASBOX
33035 ) |
33036 sed "s/^/$as_me: WARNING: /" >&2
33037 ;;
33038esac
33039echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33040echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33041if test "${ac_cv_header_GL_gl_h+set}" = set; then
33042 echo $ECHO_N "(cached) $ECHO_C" >&6
33043else
33044 ac_cv_header_GL_gl_h=$ac_header_preproc
33045fi
33046echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33047echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33048
33049fi
33050if test $ac_cv_header_GL_gl_h = yes; then
33051
33052 found_gl=0
33053
33054 echo "$as_me:$LINENO: checking for -lGL" >&5
33055echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
33056
0ad5d837
VZ
33057 ac_find_libraries=
33058 for ac_dir in $SEARCH_LIB;
a848cd7e 33059 do
3eca31dc 33060 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33061 if test -f "$ac_dir/libGL.$ac_extension"; then
33062 ac_find_libraries=$ac_dir
33063 break 2
33064 fi
33065 done
33066 done
33067
33068 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
33069 echo "$as_me:$LINENO: result: yes" >&5
33070echo "${ECHO_T}yes" >&6
33071
a848cd7e 33072
0ad5d837 33073 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33074 ac_path_to_link=""
33075 else
0ad5d837
VZ
33076 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33077 result=$?
33078 if test $result = 0; then
33079 ac_path_to_link=""
33080 else
33081 ac_path_to_link=" -L$ac_find_libraries"
33082 fi
a848cd7e
SC
33083 fi
33084
33085 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33086 LDFLAGS_GL="$ac_path_to_link"
33087 fi
33088
69120ee4
VZ
33089 echo "$as_me:$LINENO: checking for -lGLU" >&5
33090echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 33091
0ad5d837
VZ
33092 ac_find_libraries=
33093 for ac_dir in $SEARCH_LIB;
33094 do
33095 for ac_extension in a so sl dylib dll.a; do
33096 if test -f "$ac_dir/libGLU.$ac_extension"; then
33097 ac_find_libraries=$ac_dir
33098 break 2
33099 fi
33100 done
33101 done
33102
a848cd7e
SC
33103 if test "$ac_find_libraries" != "" ; then
33104
0ad5d837 33105 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33106 ac_path_to_link=""
33107 else
0ad5d837
VZ
33108 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33109 result=$?
33110 if test $result = 0; then
33111 ac_path_to_link=""
33112 else
33113 ac_path_to_link=" -L$ac_find_libraries"
33114 fi
a848cd7e
SC
33115 fi
33116
33117 if test "$ac_path_to_link" != " -L/usr/lib" -a \
33118 "$ac_path_to_link" != "$LDFLAGS_GL"; then
33119 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33120 fi
33121
33122 found_gl=1
33123 OPENGL_LIBS="-lGL -lGLU"
33124 echo "$as_me:$LINENO: result: yes" >&5
33125echo "${ECHO_T}yes" >&6
69120ee4
VZ
33126 else
33127 echo "$as_me:$LINENO: result: no" >&5
33128echo "${ECHO_T}no" >&6
a848cd7e 33129 fi
69120ee4
VZ
33130 else
33131 echo "$as_me:$LINENO: result: no" >&5
33132echo "${ECHO_T}no" >&6
a848cd7e
SC
33133 fi
33134
33135 if test "$found_gl" != 1; then
a848cd7e
SC
33136 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33137echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
33138
0ad5d837
VZ
33139 ac_find_libraries=
33140 for ac_dir in $SEARCH_LIB;
a848cd7e 33141 do
3eca31dc 33142 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33143 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33144 ac_find_libraries=$ac_dir
33145 break 2
33146 fi
33147 done
33148 done
33149
33150 if test "$ac_find_libraries" != "" ; then
33151
0ad5d837 33152 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33153 ac_path_to_link=""
33154 else
0ad5d837
VZ
33155 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33156 result=$?
33157 if test $result = 0; then
33158 ac_path_to_link=""
33159 else
33160 ac_path_to_link=" -L$ac_find_libraries"
33161 fi
a848cd7e
SC
33162 fi
33163
33164 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33165 OPENGL_LIBS="-lMesaGL -lMesaGLU"
33166 echo "$as_me:$LINENO: result: yes" >&5
33167echo "${ECHO_T}yes" >&6
33168 else
33169 echo "$as_me:$LINENO: result: no" >&5
33170echo "${ECHO_T}no" >&6
33171 fi
33172 fi
33173
33174fi
33175
33176
33177
33178 if test "x$OPENGL_LIBS" = "x"; then
33179 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33180echo "$as_me: error: OpenGL libraries not available" >&2;}
33181 { (exit 1); exit 1; }; }
33182 fi
33183 fi
33184
33185 if test "$wxUSE_OPENGL" = "yes"; then
33186 USE_OPENGL=1
33187 cat >>confdefs.h <<\_ACEOF
33188#define wxUSE_OPENGL 1
33189_ACEOF
33190
33191 cat >>confdefs.h <<\_ACEOF
33192#define wxUSE_GLCANVAS 1
33193_ACEOF
33194
33195 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33196 fi
33197fi
33198
a848cd7e
SC
33199
33200if test -n "$TOOLKIT" ; then
33201 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33202fi
33203
a848cd7e
SC
33204
33205
33206if test "$wxUSE_SHARED" = "yes"; then
33207 case "${host}" in
33208 *-pc-msdosdjgpp )
33209 wxUSE_SHARED=no
33210 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33211echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33212 ;;
33213 esac
33214fi
33215
a848cd7e 33216if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
33217
33218
33219 found_versioning=no
33220
33221
33222 if test $found_versioning = no ; then
33223 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33224echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
33225if test "${wx_cv_version_script+set}" = set; then
33226 echo $ECHO_N "(cached) $ECHO_C" >&6
33227else
33228
33229 echo "VER_1 { *; };" >conftest.sym
33230 echo "int main() { return 0; }" >conftest.cpp
33231
33232 if { ac_try='
33233 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33234 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33236 (eval $ac_try) 2>&5
33237 ac_status=$?
33238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33239 (exit $ac_status); }; } ; then
33240 if test -s conftest.stderr ; then
33241 wx_cv_version_script=no
33242 else
33243 wx_cv_version_script=yes
33244 fi
33245 else
33246 wx_cv_version_script=no
33247 fi
e5d4b470
MW
33248
33249 if test $wx_cv_version_script = yes
33250 then
33251 echo "struct B { virtual ~B() { } }; \
33252 struct D : public B { }; \
33253 void F() { D d; }" > conftest.cpp
33254
33255 if { ac_try='
33256 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33257 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33259 (eval $ac_try) 2>&5
33260 ac_status=$?
33261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33262 (exit $ac_status); }; } &&
33263 { ac_try='
33264 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33265 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33267 (eval $ac_try) 2>&5
33268 ac_status=$?
33269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33270 (exit $ac_status); }; }
33271 then
33272 if { ac_try='
33273 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33274 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33276 (eval $ac_try) 2>&5
33277 ac_status=$?
33278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33279 (exit $ac_status); }; }
33280 then
33281 wx_cv_version_script=yes
33282 else
33283 wx_cv_version_script=no
33284 fi
33285 fi
33286 fi
33287
a848cd7e 33288 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 33289 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
33290
33291fi
33292echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33293echo "${ECHO_T}$wx_cv_version_script" >&6
33294 if test $wx_cv_version_script = yes ; then
33295 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
33296 fi
33297 fi
33298
33299
33300 case "${host}" in
33301 *-*-linux* | *-*-gnu* )
33302 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33303 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 33304 ;;
a848cd7e
SC
33305
33306 *-*-solaris2* )
33307 if test "$GCC" = yes ; then
c92ad099 33308 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
33309
33310 saveLdflags="$LDFLAGS"
33311 LDFLAGS="$saveLdflags -Wl,-rpath,/"
33312 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33313echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
33314 cat >conftest.$ac_ext <<_ACEOF
33315/* confdefs.h. */
33316_ACEOF
33317cat confdefs.h >>conftest.$ac_ext
33318cat >>conftest.$ac_ext <<_ACEOF
33319/* end confdefs.h. */
33320
33321int
33322main ()
33323{
33324
33325 ;
33326 return 0;
33327}
33328_ACEOF
33329rm -f conftest.$ac_objext conftest$ac_exeext
33330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33331 (eval $ac_link) 2>conftest.er1
a848cd7e 33332 ac_status=$?
ac1cb8d3
VS
33333 grep -v '^ *+' conftest.er1 >conftest.err
33334 rm -f conftest.er1
33335 cat conftest.err >&5
a848cd7e
SC
33336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33337 (exit $ac_status); } &&
64b75e64 33338 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33340 (eval $ac_try) 2>&5
33341 ac_status=$?
33342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33343 (exit $ac_status); }; } &&
33344 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33346 (eval $ac_try) 2>&5
33347 ac_status=$?
33348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33349 (exit $ac_status); }; }; then
33350
33351 echo "$as_me:$LINENO: result: yes" >&5
33352echo "${ECHO_T}yes" >&6
33353 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33354 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
33355
33356else
33357 echo "$as_me: failed program was:" >&5
33358sed 's/^/| /' conftest.$ac_ext >&5
33359
33360
33361 echo "$as_me:$LINENO: result: no" >&5
33362echo "${ECHO_T}no" >&6
33363 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33364echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
33365 LDFLAGS="$saveLdflags -Wl,-R,/"
33366 cat >conftest.$ac_ext <<_ACEOF
33367/* confdefs.h. */
33368_ACEOF
33369cat confdefs.h >>conftest.$ac_ext
33370cat >>conftest.$ac_ext <<_ACEOF
33371/* end confdefs.h. */
33372
33373int
33374main ()
33375{
33376
33377 ;
33378 return 0;
33379}
33380_ACEOF
33381rm -f conftest.$ac_objext conftest$ac_exeext
33382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33383 (eval $ac_link) 2>conftest.er1
a848cd7e 33384 ac_status=$?
ac1cb8d3
VS
33385 grep -v '^ *+' conftest.er1 >conftest.err
33386 rm -f conftest.er1
33387 cat conftest.err >&5
a848cd7e
SC
33388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33389 (exit $ac_status); } &&
64b75e64 33390 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33392 (eval $ac_try) 2>&5
33393 ac_status=$?
33394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33395 (exit $ac_status); }; } &&
33396 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33398 (eval $ac_try) 2>&5
33399 ac_status=$?
33400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33401 (exit $ac_status); }; }; then
33402
ffa0583f 33403 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 33404echo "${ECHO_T}yes" >&6
ffa0583f
RL
33405 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
33406 WXCONFIG_RPATH="-Wl,-R,\$libdir"
33407
a848cd7e
SC
33408else
33409 echo "$as_me: failed program was:" >&5
33410sed 's/^/| /' conftest.$ac_ext >&5
33411
33412
33413 echo "$as_me:$LINENO: result: no" >&5
33414echo "${ECHO_T}no" >&6
33415
33416fi
ac1cb8d3
VS
33417rm -f conftest.err conftest.$ac_objext \
33418 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33419
33420fi
ac1cb8d3
VS
33421rm -f conftest.err conftest.$ac_objext \
33422 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33423 LDFLAGS="$saveLdflags"
33424 else
a848cd7e 33425 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 33426 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
33427 fi
33428 ;;
33429
cfda0ea8 33430 *-*-darwin* )
0caebc27
MW
33431 install_name_tool=`which install_name_tool`
33432 if test "$install_name_tool" -a -x "$install_name_tool"; then
33433 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33434 cat <<EOF >change-install-names
a848cd7e
SC
33435#!/bin/sh
33436libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33437inst_cmd="install_name_tool "
33438for i in \${libnames} ; do
33439 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33440done
33441\${inst_cmd} \${3}
33442EOF
0caebc27
MW
33443 chmod +x change-install-names
33444 fi
a848cd7e
SC
33445 ;;
33446
33447 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
33448 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33449 ;;
a848cd7e 33450
81f90336
MW
33451 *-*-hpux* )
33452 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
33453 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 33454 ;;
81f90336 33455
a848cd7e 33456 esac
ceec2216 33457
ffa0583f
RL
33458 if test $wxUSE_RPATH = "no"; then
33459 SAMPLES_RPATH_FLAG=''
33460 SAMPLES_RPATH_POSTLINK=''
33461 WXCONFIG_RPATH=''
33462 fi
33463
33464 SHARED=1
33465
33466else
33467
ceec2216
RL
33468 config_linkage_component="-static"
33469 SHARED=0
ffa0583f 33470
ceec2216 33471fi
a848cd7e 33472
a848cd7e 33473
ceec2216
RL
33474UNICODE=0
33475lib_unicode_suffix=
33476WX_CHARTYPE="ansi"
33477if test "$wxUSE_UNICODE" = "yes"; then
33478 lib_unicode_suffix=u
33479 WX_CHARTYPE="unicode"
33480 UNICODE=1
a848cd7e
SC
33481fi
33482
ceec2216
RL
33483lib_debug_suffix=
33484WX_DEBUGTYPE="release"
33485DEBUG_FLAG=0
33486if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33487 lib_debug_suffix=d
33488 WX_DEBUGTYPE="debug"
33489 DEBUG_FLAG=1
33490fi
a848cd7e 33491
ceec2216
RL
33492WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33493WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 33494
ceec2216
RL
33495DEBUG_INFO=0
33496if test "$wxUSE_DEBUG_INFO" = "yes"; then
33497 DEBUG_INFO=1
33498fi
a848cd7e 33499
ceec2216 33500WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 33501
ceec2216 33502TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 33503
ceec2216 33504TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 33505
ceec2216
RL
33506if test "$cross_compiling" = "yes"; then
33507 HOST_SUFFIX="-$host_alias"
33508 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33509 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
33510fi
33511
dd21ced8 33512WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
33513if test "${TOOLKIT_DIR}" = "os2"; then
33514 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33515else
33516 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33517fi
ceec2216
RL
33518
33519
33520
1d1af5ea
DE
33521if test "$wxUSE_COCOA" = 1; then
33522
33523
33524 ac_ext=c
33525ac_cpp='$CPP $CPPFLAGS'
33526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33528ac_compiler_gnu=$ac_cv_c_compiler_gnu
33529
33530ac_ext=m
33531
33532 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33533echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
33534 cat >conftest.$ac_ext <<_ACEOF
33535/* confdefs.h. */
33536_ACEOF
33537cat confdefs.h >>conftest.$ac_ext
33538cat >>conftest.$ac_ext <<_ACEOF
33539/* end confdefs.h. */
33540#include <AppKit/NSEvent.h>
33541#include <CoreFoundation/CoreFoundation.h>
33542
33543int
33544main ()
33545{
33546
33547 ;
33548 return 0;
33549}
33550_ACEOF
33551rm -f conftest.$ac_objext
33552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33553 (eval $ac_compile) 2>conftest.er1
33554 ac_status=$?
33555 grep -v '^ *+' conftest.er1 >conftest.err
33556 rm -f conftest.er1
33557 cat conftest.err >&5
33558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33559 (exit $ac_status); } &&
64b75e64 33560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
33561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33562 (eval $ac_try) 2>&5
33563 ac_status=$?
33564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565 (exit $ac_status); }; } &&
33566 { ac_try='test -s conftest.$ac_objext'
33567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33568 (eval $ac_try) 2>&5
33569 ac_status=$?
33570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571 (exit $ac_status); }; }; then
33572 echo "$as_me:$LINENO: result: no" >&5
33573echo "${ECHO_T}no" >&6
33574else
33575 echo "$as_me: failed program was:" >&5
33576sed 's/^/| /' conftest.$ac_ext >&5
33577
33578echo "$as_me:$LINENO: result: yes" >&5
33579echo "${ECHO_T}yes" >&6
33580 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
33581echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
33582 cat >conftest.$ac_ext <<_ACEOF
33583/* confdefs.h. */
33584_ACEOF
33585cat confdefs.h >>conftest.$ac_ext
33586cat >>conftest.$ac_ext <<_ACEOF
33587/* end confdefs.h. */
33588#define __Point__ 1
33589#include <AppKit/NSEvent.h>
33590#include <CoreFoundation/CoreFoundation.h>
33591
33592int
33593main ()
33594{
33595
33596 ;
33597 return 0;
33598}
33599_ACEOF
33600rm -f conftest.$ac_objext
33601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33602 (eval $ac_compile) 2>conftest.er1
33603 ac_status=$?
33604 grep -v '^ *+' conftest.er1 >conftest.err
33605 rm -f conftest.er1
33606 cat conftest.err >&5
33607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33608 (exit $ac_status); } &&
64b75e64 33609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
33610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33611 (eval $ac_try) 2>&5
33612 ac_status=$?
33613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33614 (exit $ac_status); }; } &&
33615 { ac_try='test -s conftest.$ac_objext'
33616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33617 (eval $ac_try) 2>&5
33618 ac_status=$?
33619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33620 (exit $ac_status); }; }; then
33621 echo "$as_me:$LINENO: result: yes" >&5
33622echo "${ECHO_T}yes" >&6
33623 cat >>confdefs.h <<\_ACEOF
33624#define __Point__ 1
33625_ACEOF
33626
33627
33628else
33629 echo "$as_me: failed program was:" >&5
33630sed 's/^/| /' conftest.$ac_ext >&5
33631
33632{ { echo "$as_me:$LINENO: error: no
33633See \`config.log' for more details." >&5
33634echo "$as_me: error: no
33635See \`config.log' for more details." >&2;}
33636 { (exit 1); exit 1; }; }
33637
33638fi
33639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33640
33641fi
33642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
33643 ac_ext=cc
33644ac_cpp='$CXXCPP $CPPFLAGS'
33645ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33646ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33647ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
33648
33649fi
33650
a848cd7e 33651if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
33652 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
33653 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 33654
a848cd7e 33655 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
33656
33657 # Extract the first word of "Rez", so it can be a program name with args.
33658set dummy Rez; ac_word=$2
33659echo "$as_me:$LINENO: checking for $ac_word" >&5
33660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 33661if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
33662 echo $ECHO_N "(cached) $ECHO_C" >&6
33663else
8ced02f6
DE
33664 if test -n "$REZ"; then
33665 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
33666else
33667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33668for as_dir in $PATH
33669do
33670 IFS=$as_save_IFS
33671 test -z "$as_dir" && as_dir=.
33672 for ac_exec_ext in '' $ac_executable_extensions; do
33673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 33674 ac_cv_prog_REZ="Rez"
a848cd7e
SC
33675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33676 break 2
33677 fi
33678done
33679done
33680
8ced02f6 33681 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
33682fi
33683fi
8ced02f6
DE
33684REZ=$ac_cv_prog_REZ
33685if test -n "$REZ"; then
33686 echo "$as_me:$LINENO: result: $REZ" >&5
33687echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
33688else
33689 echo "$as_me:$LINENO: result: no" >&5
33690echo "${ECHO_T}no" >&6
33691fi
33692
33693 # Extract the first word of "DeRez", so it can be a program name with args.
33694set dummy DeRez; ac_word=$2
33695echo "$as_me:$LINENO: checking for $ac_word" >&5
33696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33697if test "${ac_cv_prog_DEREZ+set}" = set; then
33698 echo $ECHO_N "(cached) $ECHO_C" >&6
33699else
33700 if test -n "$DEREZ"; then
33701 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33702else
33703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33704for as_dir in $PATH
33705do
33706 IFS=$as_save_IFS
33707 test -z "$as_dir" && as_dir=.
33708 for ac_exec_ext in '' $ac_executable_extensions; do
33709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33710 ac_cv_prog_DEREZ="DeRez"
33711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33712 break 2
33713 fi
33714done
33715done
33716
33717 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33718fi
33719fi
33720DEREZ=$ac_cv_prog_DEREZ
33721if test -n "$DEREZ"; then
33722 echo "$as_me:$LINENO: result: $DEREZ" >&5
33723echo "${ECHO_T}$DEREZ" >&6
33724else
33725 echo "$as_me:$LINENO: result: no" >&5
33726echo "${ECHO_T}no" >&6
33727fi
33728
33729 # Extract the first word of "SetFile", so it can be a program name with args.
33730set dummy SetFile; ac_word=$2
33731echo "$as_me:$LINENO: checking for $ac_word" >&5
33732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33733if test "${ac_cv_prog_SETFILE+set}" = set; then
33734 echo $ECHO_N "(cached) $ECHO_C" >&6
33735else
33736 if test -n "$SETFILE"; then
33737 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33738else
33739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33740for as_dir in $PATH
33741do
33742 IFS=$as_save_IFS
33743 test -z "$as_dir" && as_dir=.
33744 for ac_exec_ext in '' $ac_executable_extensions; do
33745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33746 ac_cv_prog_SETFILE="SetFile"
33747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33748 break 2
33749 fi
33750done
33751done
33752
33753 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33754fi
33755fi
33756SETFILE=$ac_cv_prog_SETFILE
33757if test -n "$SETFILE"; then
33758 echo "$as_me:$LINENO: result: $SETFILE" >&5
33759echo "${ECHO_T}$SETFILE" >&6
33760else
33761 echo "$as_me:$LINENO: result: no" >&5
33762echo "${ECHO_T}no" >&6
33763fi
33764
33765
33766 MACSETFILE="\$(SETFILE)"
33767
33768 if test "$wxUSE_MAC" = 1; then
8ced02f6 33769 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
33770 RESCOMP="$REZ"
33771 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 33772 else
004ee6da
RL
33773 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33774 RESCOMP="echo -n \| $REZ"
33775 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 33776 fi
004ee6da 33777
a848cd7e 33778else
ffa0583f 33779 MACSETFILE="@true"
a848cd7e 33780
8ced02f6 33781 if test "$wxUSE_PM" = 1; then
004ee6da
RL
33782 RESCOMP="emxbind"
33783 WXCONFIG_RESFLAGS="-ep"
33784
33785 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 33786 else
8ced02f6 33787 POSTLINK_COMMAND="@true"
a848cd7e 33788 fi
004ee6da 33789
a848cd7e
SC
33790fi
33791
33792
33793
33794echo "$as_me:$LINENO: checking for mode_t" >&5
33795echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33796if test "${ac_cv_type_mode_t+set}" = set; then
33797 echo $ECHO_N "(cached) $ECHO_C" >&6
33798else
33799 cat >conftest.$ac_ext <<_ACEOF
33800/* confdefs.h. */
33801_ACEOF
33802cat confdefs.h >>conftest.$ac_ext
33803cat >>conftest.$ac_ext <<_ACEOF
33804/* end confdefs.h. */
33805$ac_includes_default
33806int
33807main ()
33808{
33809if ((mode_t *) 0)
33810 return 0;
33811if (sizeof (mode_t))
33812 return 0;
33813 ;
33814 return 0;
33815}
33816_ACEOF
33817rm -f conftest.$ac_objext
33818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33819 (eval $ac_compile) 2>conftest.er1
a848cd7e 33820 ac_status=$?
ac1cb8d3
VS
33821 grep -v '^ *+' conftest.er1 >conftest.err
33822 rm -f conftest.er1
33823 cat conftest.err >&5
a848cd7e
SC
33824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33825 (exit $ac_status); } &&
64b75e64 33826 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33828 (eval $ac_try) 2>&5
33829 ac_status=$?
33830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33831 (exit $ac_status); }; } &&
33832 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33834 (eval $ac_try) 2>&5
33835 ac_status=$?
33836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33837 (exit $ac_status); }; }; then
33838 ac_cv_type_mode_t=yes
33839else
33840 echo "$as_me: failed program was:" >&5
33841sed 's/^/| /' conftest.$ac_ext >&5
33842
33843ac_cv_type_mode_t=no
33844fi
ac1cb8d3 33845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33846fi
33847echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33848echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33849if test $ac_cv_type_mode_t = yes; then
33850 :
33851else
33852
33853cat >>confdefs.h <<_ACEOF
33854#define mode_t int
33855_ACEOF
33856
33857fi
33858
33859echo "$as_me:$LINENO: checking for off_t" >&5
33860echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33861if test "${ac_cv_type_off_t+set}" = set; then
33862 echo $ECHO_N "(cached) $ECHO_C" >&6
33863else
33864 cat >conftest.$ac_ext <<_ACEOF
33865/* confdefs.h. */
33866_ACEOF
33867cat confdefs.h >>conftest.$ac_ext
33868cat >>conftest.$ac_ext <<_ACEOF
33869/* end confdefs.h. */
33870$ac_includes_default
33871int
33872main ()
33873{
33874if ((off_t *) 0)
33875 return 0;
33876if (sizeof (off_t))
33877 return 0;
33878 ;
33879 return 0;
33880}
33881_ACEOF
33882rm -f conftest.$ac_objext
33883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33884 (eval $ac_compile) 2>conftest.er1
a848cd7e 33885 ac_status=$?
ac1cb8d3
VS
33886 grep -v '^ *+' conftest.er1 >conftest.err
33887 rm -f conftest.er1
33888 cat conftest.err >&5
a848cd7e
SC
33889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33890 (exit $ac_status); } &&
64b75e64 33891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33893 (eval $ac_try) 2>&5
33894 ac_status=$?
33895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33896 (exit $ac_status); }; } &&
33897 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33899 (eval $ac_try) 2>&5
33900 ac_status=$?
33901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902 (exit $ac_status); }; }; then
33903 ac_cv_type_off_t=yes
33904else
33905 echo "$as_me: failed program was:" >&5
33906sed 's/^/| /' conftest.$ac_ext >&5
33907
33908ac_cv_type_off_t=no
33909fi
ac1cb8d3 33910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33911fi
33912echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33913echo "${ECHO_T}$ac_cv_type_off_t" >&6
33914if test $ac_cv_type_off_t = yes; then
33915 :
33916else
33917
33918cat >>confdefs.h <<_ACEOF
33919#define off_t long
33920_ACEOF
33921
33922fi
33923
33924echo "$as_me:$LINENO: checking for pid_t" >&5
33925echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33926if test "${ac_cv_type_pid_t+set}" = set; then
33927 echo $ECHO_N "(cached) $ECHO_C" >&6
33928else
33929 cat >conftest.$ac_ext <<_ACEOF
33930/* confdefs.h. */
33931_ACEOF
33932cat confdefs.h >>conftest.$ac_ext
33933cat >>conftest.$ac_ext <<_ACEOF
33934/* end confdefs.h. */
33935$ac_includes_default
33936int
33937main ()
33938{
33939if ((pid_t *) 0)
33940 return 0;
33941if (sizeof (pid_t))
33942 return 0;
33943 ;
33944 return 0;
33945}
33946_ACEOF
33947rm -f conftest.$ac_objext
33948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33949 (eval $ac_compile) 2>conftest.er1
a848cd7e 33950 ac_status=$?
ac1cb8d3
VS
33951 grep -v '^ *+' conftest.er1 >conftest.err
33952 rm -f conftest.er1
33953 cat conftest.err >&5
a848cd7e
SC
33954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33955 (exit $ac_status); } &&
64b75e64 33956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33958 (eval $ac_try) 2>&5
33959 ac_status=$?
33960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33961 (exit $ac_status); }; } &&
33962 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33964 (eval $ac_try) 2>&5
33965 ac_status=$?
33966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33967 (exit $ac_status); }; }; then
33968 ac_cv_type_pid_t=yes
33969else
33970 echo "$as_me: failed program was:" >&5
33971sed 's/^/| /' conftest.$ac_ext >&5
33972
33973ac_cv_type_pid_t=no
33974fi
ac1cb8d3 33975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33976fi
33977echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33978echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33979if test $ac_cv_type_pid_t = yes; then
33980 :
33981else
33982
33983cat >>confdefs.h <<_ACEOF
33984#define pid_t int
33985_ACEOF
33986
33987fi
33988
33989echo "$as_me:$LINENO: checking for size_t" >&5
33990echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33991if test "${ac_cv_type_size_t+set}" = set; then
33992 echo $ECHO_N "(cached) $ECHO_C" >&6
33993else
33994 cat >conftest.$ac_ext <<_ACEOF
33995/* confdefs.h. */
33996_ACEOF
33997cat confdefs.h >>conftest.$ac_ext
33998cat >>conftest.$ac_ext <<_ACEOF
33999/* end confdefs.h. */
34000$ac_includes_default
34001int
34002main ()
34003{
34004if ((size_t *) 0)
34005 return 0;
34006if (sizeof (size_t))
34007 return 0;
34008 ;
34009 return 0;
34010}
34011_ACEOF
34012rm -f conftest.$ac_objext
34013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34014 (eval $ac_compile) 2>conftest.er1
a848cd7e 34015 ac_status=$?
ac1cb8d3
VS
34016 grep -v '^ *+' conftest.er1 >conftest.err
34017 rm -f conftest.er1
34018 cat conftest.err >&5
a848cd7e
SC
34019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34020 (exit $ac_status); } &&
64b75e64 34021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34023 (eval $ac_try) 2>&5
34024 ac_status=$?
34025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026 (exit $ac_status); }; } &&
34027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34029 (eval $ac_try) 2>&5
34030 ac_status=$?
34031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34032 (exit $ac_status); }; }; then
34033 ac_cv_type_size_t=yes
34034else
34035 echo "$as_me: failed program was:" >&5
34036sed 's/^/| /' conftest.$ac_ext >&5
34037
34038ac_cv_type_size_t=no
34039fi
ac1cb8d3 34040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34041fi
34042echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34043echo "${ECHO_T}$ac_cv_type_size_t" >&6
34044if test $ac_cv_type_size_t = yes; then
34045 :
34046else
34047
34048cat >>confdefs.h <<_ACEOF
34049#define size_t unsigned
34050_ACEOF
34051
34052fi
34053
34054echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34055echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34056if test "${ac_cv_type_uid_t+set}" = set; then
34057 echo $ECHO_N "(cached) $ECHO_C" >&6
34058else
34059 cat >conftest.$ac_ext <<_ACEOF
34060/* confdefs.h. */
34061_ACEOF
34062cat confdefs.h >>conftest.$ac_ext
34063cat >>conftest.$ac_ext <<_ACEOF
34064/* end confdefs.h. */
34065#include <sys/types.h>
34066
34067_ACEOF
34068if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34069 $EGREP "uid_t" >/dev/null 2>&1; then
34070 ac_cv_type_uid_t=yes
34071else
34072 ac_cv_type_uid_t=no
34073fi
34074rm -f conftest*
34075
34076fi
34077echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34078echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34079if test $ac_cv_type_uid_t = no; then
34080
34081cat >>confdefs.h <<\_ACEOF
34082#define uid_t int
34083_ACEOF
34084
34085
34086cat >>confdefs.h <<\_ACEOF
34087#define gid_t int
34088_ACEOF
34089
34090fi
34091
34092
d51253e8
RL
34093echo "$as_me:$LINENO: checking for ssize_t" >&5
34094echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
34095if test "${ac_cv_type_ssize_t+set}" = set; then
34096 echo $ECHO_N "(cached) $ECHO_C" >&6
34097else
34098 cat >conftest.$ac_ext <<_ACEOF
34099/* confdefs.h. */
34100_ACEOF
34101cat confdefs.h >>conftest.$ac_ext
34102cat >>conftest.$ac_ext <<_ACEOF
34103/* end confdefs.h. */
34104$ac_includes_default
34105int
34106main ()
34107{
34108if ((ssize_t *) 0)
34109 return 0;
34110if (sizeof (ssize_t))
34111 return 0;
34112 ;
34113 return 0;
34114}
34115_ACEOF
34116rm -f conftest.$ac_objext
34117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34118 (eval $ac_compile) 2>conftest.er1
34119 ac_status=$?
34120 grep -v '^ *+' conftest.er1 >conftest.err
34121 rm -f conftest.er1
34122 cat conftest.err >&5
34123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34124 (exit $ac_status); } &&
64b75e64 34125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d51253e8
RL
34126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34127 (eval $ac_try) 2>&5
34128 ac_status=$?
34129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34130 (exit $ac_status); }; } &&
34131 { ac_try='test -s conftest.$ac_objext'
34132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34133 (eval $ac_try) 2>&5
34134 ac_status=$?
34135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34136 (exit $ac_status); }; }; then
34137 ac_cv_type_ssize_t=yes
34138else
34139 echo "$as_me: failed program was:" >&5
34140sed 's/^/| /' conftest.$ac_ext >&5
34141
34142ac_cv_type_ssize_t=no
34143fi
34144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34145fi
34146echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34147echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34148if test $ac_cv_type_ssize_t = yes; then
34149
34150cat >>confdefs.h <<_ACEOF
34151#define HAVE_SSIZE_T 1
34152_ACEOF
34153
34154
34155fi
34156
34157
a848cd7e
SC
34158echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34159echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
34160if test "${wx_cv_size_t_is_uint+set}" = set; then
34161 echo $ECHO_N "(cached) $ECHO_C" >&6
34162else
34163
34164 cat >conftest.$ac_ext <<_ACEOF
34165/* confdefs.h. */
34166_ACEOF
34167cat confdefs.h >>conftest.$ac_ext
34168cat >>conftest.$ac_ext <<_ACEOF
34169/* end confdefs.h. */
34170#include <stddef.h>
34171int
34172main ()
34173{
34174
34175 return 0; }
34176
34177 struct Foo { void foo(size_t); void foo(unsigned int); };
34178
34179 int bar() {
34180
34181 ;
34182 return 0;
34183}
34184_ACEOF
34185rm -f conftest.$ac_objext
34186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34187 (eval $ac_compile) 2>conftest.er1
a848cd7e 34188 ac_status=$?
ac1cb8d3
VS
34189 grep -v '^ *+' conftest.er1 >conftest.err
34190 rm -f conftest.er1
34191 cat conftest.err >&5
a848cd7e
SC
34192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34193 (exit $ac_status); } &&
64b75e64 34194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34196 (eval $ac_try) 2>&5
34197 ac_status=$?
34198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34199 (exit $ac_status); }; } &&
34200 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34202 (eval $ac_try) 2>&5
34203 ac_status=$?
34204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34205 (exit $ac_status); }; }; then
34206 wx_cv_size_t_is_uint=no
34207else
34208 echo "$as_me: failed program was:" >&5
34209sed 's/^/| /' conftest.$ac_ext >&5
34210
34211wx_cv_size_t_is_uint=yes
34212
34213fi
ac1cb8d3 34214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34215
34216
34217fi
34218echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34219echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
34220
34221if test "$wx_cv_size_t_is_uint" = "yes"; then
34222 cat >>confdefs.h <<\_ACEOF
34223#define wxSIZE_T_IS_UINT 1
34224_ACEOF
34225
34226else
34227 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34228echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
34229if test "${wx_cv_size_t_is_ulong+set}" = set; then
34230 echo $ECHO_N "(cached) $ECHO_C" >&6
34231else
34232 cat >conftest.$ac_ext <<_ACEOF
34233/* confdefs.h. */
34234_ACEOF
34235cat confdefs.h >>conftest.$ac_ext
34236cat >>conftest.$ac_ext <<_ACEOF
34237/* end confdefs.h. */
34238#include <stddef.h>
34239int
34240main ()
34241{
34242
34243 return 0; }
34244
34245 struct Foo { void foo(size_t); void foo(unsigned long); };
34246
34247 int bar() {
34248
34249 ;
34250 return 0;
34251}
34252_ACEOF
34253rm -f conftest.$ac_objext
34254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34255 (eval $ac_compile) 2>conftest.er1
a848cd7e 34256 ac_status=$?
ac1cb8d3
VS
34257 grep -v '^ *+' conftest.er1 >conftest.err
34258 rm -f conftest.er1
34259 cat conftest.err >&5
a848cd7e
SC
34260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34261 (exit $ac_status); } &&
64b75e64 34262 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34264 (eval $ac_try) 2>&5
34265 ac_status=$?
34266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267 (exit $ac_status); }; } &&
34268 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34270 (eval $ac_try) 2>&5
34271 ac_status=$?
34272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34273 (exit $ac_status); }; }; then
34274 wx_cv_size_t_is_ulong=no
34275else
34276 echo "$as_me: failed program was:" >&5
34277sed 's/^/| /' conftest.$ac_ext >&5
34278
34279wx_cv_size_t_is_ulong=yes
34280
34281fi
ac1cb8d3 34282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34283
34284fi
34285echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34286echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
34287
34288 if test "$wx_cv_size_t_is_ulong" = "yes"; then
34289 cat >>confdefs.h <<\_ACEOF
34290#define wxSIZE_T_IS_ULONG 1
34291_ACEOF
34292
34293 fi
34294fi
34295
a848cd7e
SC
34296
34297echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34298echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
34299if test "${wx_cv_struct_pw_gecos+set}" = set; then
34300 echo $ECHO_N "(cached) $ECHO_C" >&6
34301else
34302
34303 cat >conftest.$ac_ext <<_ACEOF
34304/* confdefs.h. */
34305_ACEOF
34306cat confdefs.h >>conftest.$ac_ext
34307cat >>conftest.$ac_ext <<_ACEOF
34308/* end confdefs.h. */
34309#include <pwd.h>
34310int
34311main ()
34312{
34313
34314 char *p;
34315 struct passwd *pw;
34316 p = pw->pw_gecos;
34317
34318 ;
34319 return 0;
34320}
34321_ACEOF
34322rm -f conftest.$ac_objext
34323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34324 (eval $ac_compile) 2>conftest.er1
a848cd7e 34325 ac_status=$?
ac1cb8d3
VS
34326 grep -v '^ *+' conftest.er1 >conftest.err
34327 rm -f conftest.er1
34328 cat conftest.err >&5
a848cd7e
SC
34329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34330 (exit $ac_status); } &&
64b75e64 34331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34333 (eval $ac_try) 2>&5
34334 ac_status=$?
34335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34336 (exit $ac_status); }; } &&
34337 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34339 (eval $ac_try) 2>&5
34340 ac_status=$?
34341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34342 (exit $ac_status); }; }; then
34343
34344 wx_cv_struct_pw_gecos=yes
34345
34346else
34347 echo "$as_me: failed program was:" >&5
34348sed 's/^/| /' conftest.$ac_ext >&5
34349
34350
34351 wx_cv_struct_pw_gecos=no
34352
34353
34354fi
ac1cb8d3 34355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34356
34357
34358fi
34359echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34360echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
34361
34362if test "$wx_cv_struct_pw_gecos" = "yes"; then
34363 cat >>confdefs.h <<\_ACEOF
34364#define HAVE_PW_GECOS 1
34365_ACEOF
34366
34367fi
34368
34369
47a7e797 34370if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
34371 cat >>confdefs.h <<\_ACEOF
34372#define wxUSE_WCHAR_T 1
34373_ACEOF
34374
34375
34376 WCSLEN_FOUND=0
34377 WCHAR_LINK=
34378
34379for ac_func in wcslen
34380do
34381as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34382echo "$as_me:$LINENO: checking for $ac_func" >&5
34383echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34384if eval "test \"\${$as_ac_var+set}\" = set"; then
34385 echo $ECHO_N "(cached) $ECHO_C" >&6
34386else
34387 cat >conftest.$ac_ext <<_ACEOF
34388/* confdefs.h. */
34389_ACEOF
34390cat confdefs.h >>conftest.$ac_ext
34391cat >>conftest.$ac_ext <<_ACEOF
34392/* end confdefs.h. */
ac1cb8d3
VS
34393/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34395#define $ac_func innocuous_$ac_func
34396
a848cd7e
SC
34397/* System header to define __stub macros and hopefully few prototypes,
34398 which can conflict with char $ac_func (); below.
34399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34400 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34401
a848cd7e
SC
34402#ifdef __STDC__
34403# include <limits.h>
34404#else
34405# include <assert.h>
34406#endif
ac1cb8d3
VS
34407
34408#undef $ac_func
34409
a848cd7e
SC
34410/* Override any gcc2 internal prototype to avoid an error. */
34411#ifdef __cplusplus
34412extern "C"
34413{
34414#endif
34415/* We use char because int might match the return type of a gcc2
34416 builtin and then its argument prototype would still apply. */
34417char $ac_func ();
34418/* The GNU C library defines this for functions which it implements
34419 to always fail with ENOSYS. Some functions are actually named
34420 something starting with __ and the normal name is an alias. */
34421#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34422choke me
34423#else
34424char (*f) () = $ac_func;
34425#endif
34426#ifdef __cplusplus
34427}
34428#endif
34429
34430int
34431main ()
34432{
34433return f != $ac_func;
34434 ;
34435 return 0;
34436}
34437_ACEOF
34438rm -f conftest.$ac_objext conftest$ac_exeext
34439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34440 (eval $ac_link) 2>conftest.er1
a848cd7e 34441 ac_status=$?
ac1cb8d3
VS
34442 grep -v '^ *+' conftest.er1 >conftest.err
34443 rm -f conftest.er1
34444 cat conftest.err >&5
a848cd7e
SC
34445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34446 (exit $ac_status); } &&
64b75e64 34447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34449 (eval $ac_try) 2>&5
34450 ac_status=$?
34451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34452 (exit $ac_status); }; } &&
34453 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34455 (eval $ac_try) 2>&5
34456 ac_status=$?
34457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34458 (exit $ac_status); }; }; then
34459 eval "$as_ac_var=yes"
34460else
34461 echo "$as_me: failed program was:" >&5
34462sed 's/^/| /' conftest.$ac_ext >&5
34463
34464eval "$as_ac_var=no"
34465fi
ac1cb8d3
VS
34466rm -f conftest.err conftest.$ac_objext \
34467 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34468fi
34469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34470echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34471if test `eval echo '${'$as_ac_var'}'` = yes; then
34472 cat >>confdefs.h <<_ACEOF
34473#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34474_ACEOF
34475 WCSLEN_FOUND=1
34476fi
34477done
34478
34479
34480 if test "$WCSLEN_FOUND" = 0; then
34481 if test "$TOOLKIT" = "MSW"; then
34482 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34483echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
34484if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34485 echo $ECHO_N "(cached) $ECHO_C" >&6
34486else
34487 ac_check_lib_save_LIBS=$LIBS
34488LIBS="-lmsvcrt $LIBS"
34489cat >conftest.$ac_ext <<_ACEOF
34490/* confdefs.h. */
34491_ACEOF
34492cat confdefs.h >>conftest.$ac_ext
34493cat >>conftest.$ac_ext <<_ACEOF
34494/* end confdefs.h. */
34495
34496/* Override any gcc2 internal prototype to avoid an error. */
34497#ifdef __cplusplus
34498extern "C"
34499#endif
34500/* We use char because int might match the return type of a gcc2
34501 builtin and then its argument prototype would still apply. */
34502char wcslen ();
34503int
34504main ()
34505{
34506wcslen ();
34507 ;
34508 return 0;
34509}
34510_ACEOF
34511rm -f conftest.$ac_objext conftest$ac_exeext
34512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34513 (eval $ac_link) 2>conftest.er1
a848cd7e 34514 ac_status=$?
ac1cb8d3
VS
34515 grep -v '^ *+' conftest.er1 >conftest.err
34516 rm -f conftest.er1
34517 cat conftest.err >&5
a848cd7e
SC
34518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34519 (exit $ac_status); } &&
64b75e64 34520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34522 (eval $ac_try) 2>&5
34523 ac_status=$?
34524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34525 (exit $ac_status); }; } &&
34526 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34528 (eval $ac_try) 2>&5
34529 ac_status=$?
34530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34531 (exit $ac_status); }; }; then
34532 ac_cv_lib_msvcrt_wcslen=yes
34533else
34534 echo "$as_me: failed program was:" >&5
34535sed 's/^/| /' conftest.$ac_ext >&5
34536
34537ac_cv_lib_msvcrt_wcslen=no
34538fi
ac1cb8d3
VS
34539rm -f conftest.err conftest.$ac_objext \
34540 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34541LIBS=$ac_check_lib_save_LIBS
34542fi
34543echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34544echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
34545if test $ac_cv_lib_msvcrt_wcslen = yes; then
34546 WCHAR_OK=1
34547fi
34548
34549 else
34550 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34551echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
34552if test "${ac_cv_lib_w_wcslen+set}" = set; then
34553 echo $ECHO_N "(cached) $ECHO_C" >&6
34554else
34555 ac_check_lib_save_LIBS=$LIBS
34556LIBS="-lw $LIBS"
34557cat >conftest.$ac_ext <<_ACEOF
34558/* confdefs.h. */
34559_ACEOF
34560cat confdefs.h >>conftest.$ac_ext
34561cat >>conftest.$ac_ext <<_ACEOF
34562/* end confdefs.h. */
34563
34564/* Override any gcc2 internal prototype to avoid an error. */
34565#ifdef __cplusplus
34566extern "C"
34567#endif
34568/* We use char because int might match the return type of a gcc2
34569 builtin and then its argument prototype would still apply. */
34570char wcslen ();
34571int
34572main ()
34573{
34574wcslen ();
34575 ;
34576 return 0;
34577}
34578_ACEOF
34579rm -f conftest.$ac_objext conftest$ac_exeext
34580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34581 (eval $ac_link) 2>conftest.er1
a848cd7e 34582 ac_status=$?
ac1cb8d3
VS
34583 grep -v '^ *+' conftest.er1 >conftest.err
34584 rm -f conftest.er1
34585 cat conftest.err >&5
a848cd7e
SC
34586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34587 (exit $ac_status); } &&
64b75e64 34588 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34590 (eval $ac_try) 2>&5
34591 ac_status=$?
34592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34593 (exit $ac_status); }; } &&
34594 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34596 (eval $ac_try) 2>&5
34597 ac_status=$?
34598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34599 (exit $ac_status); }; }; then
34600 ac_cv_lib_w_wcslen=yes
34601else
34602 echo "$as_me: failed program was:" >&5
34603sed 's/^/| /' conftest.$ac_ext >&5
34604
34605ac_cv_lib_w_wcslen=no
34606fi
ac1cb8d3
VS
34607rm -f conftest.err conftest.$ac_objext \
34608 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34609LIBS=$ac_check_lib_save_LIBS
34610fi
34611echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34612echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
34613if test $ac_cv_lib_w_wcslen = yes; then
34614
34615 WCHAR_LINK=" -lw"
34616 WCSLEN_FOUND=1
34617
34618fi
34619
34620 fi
34621 fi
34622
34623 if test "$WCSLEN_FOUND" = 1; then
34624 cat >>confdefs.h <<\_ACEOF
34625#define HAVE_WCSLEN 1
34626_ACEOF
34627
34628 fi
34629
efdf6afe 34630 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 34631 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
34632 fi
34633
efdf6afe
VZ
34634 echo "$as_me:$LINENO: checking for mbstate_t" >&5
34635echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
34636if test "${ac_cv_type_mbstate_t+set}" = set; then
34637 echo $ECHO_N "(cached) $ECHO_C" >&6
34638else
34639 cat >conftest.$ac_ext <<_ACEOF
34640/* confdefs.h. */
34641_ACEOF
34642cat confdefs.h >>conftest.$ac_ext
34643cat >>conftest.$ac_ext <<_ACEOF
34644/* end confdefs.h. */
34645#include <wchar.h>
34646
34647int
34648main ()
34649{
34650if ((mbstate_t *) 0)
34651 return 0;
34652if (sizeof (mbstate_t))
34653 return 0;
34654 ;
34655 return 0;
34656}
34657_ACEOF
34658rm -f conftest.$ac_objext
34659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34660 (eval $ac_compile) 2>conftest.er1
34661 ac_status=$?
34662 grep -v '^ *+' conftest.er1 >conftest.err
34663 rm -f conftest.er1
34664 cat conftest.err >&5
34665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34666 (exit $ac_status); } &&
64b75e64 34667 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
34668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34669 (eval $ac_try) 2>&5
34670 ac_status=$?
34671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34672 (exit $ac_status); }; } &&
34673 { ac_try='test -s conftest.$ac_objext'
34674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34675 (eval $ac_try) 2>&5
34676 ac_status=$?
34677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34678 (exit $ac_status); }; }; then
34679 ac_cv_type_mbstate_t=yes
34680else
34681 echo "$as_me: failed program was:" >&5
34682sed 's/^/| /' conftest.$ac_ext >&5
34683
34684ac_cv_type_mbstate_t=no
34685fi
34686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34687fi
34688echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34689echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34690if test $ac_cv_type_mbstate_t = yes; then
34691
34692cat >>confdefs.h <<_ACEOF
34693#define HAVE_MBSTATE_T 1
34694_ACEOF
34695
a848cd7e
SC
34696
34697for ac_func in wcsrtombs
34698do
34699as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34700echo "$as_me:$LINENO: checking for $ac_func" >&5
34701echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34702if eval "test \"\${$as_ac_var+set}\" = set"; then
34703 echo $ECHO_N "(cached) $ECHO_C" >&6
34704else
34705 cat >conftest.$ac_ext <<_ACEOF
34706/* confdefs.h. */
34707_ACEOF
34708cat confdefs.h >>conftest.$ac_ext
34709cat >>conftest.$ac_ext <<_ACEOF
34710/* end confdefs.h. */
ac1cb8d3
VS
34711/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34713#define $ac_func innocuous_$ac_func
34714
a848cd7e
SC
34715/* System header to define __stub macros and hopefully few prototypes,
34716 which can conflict with char $ac_func (); below.
34717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34718 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34719
a848cd7e
SC
34720#ifdef __STDC__
34721# include <limits.h>
34722#else
34723# include <assert.h>
34724#endif
ac1cb8d3
VS
34725
34726#undef $ac_func
34727
a848cd7e
SC
34728/* Override any gcc2 internal prototype to avoid an error. */
34729#ifdef __cplusplus
34730extern "C"
34731{
34732#endif
34733/* We use char because int might match the return type of a gcc2
34734 builtin and then its argument prototype would still apply. */
34735char $ac_func ();
34736/* The GNU C library defines this for functions which it implements
34737 to always fail with ENOSYS. Some functions are actually named
34738 something starting with __ and the normal name is an alias. */
34739#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34740choke me
34741#else
34742char (*f) () = $ac_func;
34743#endif
34744#ifdef __cplusplus
34745}
34746#endif
34747
34748int
34749main ()
34750{
34751return f != $ac_func;
34752 ;
34753 return 0;
34754}
34755_ACEOF
34756rm -f conftest.$ac_objext conftest$ac_exeext
34757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34758 (eval $ac_link) 2>conftest.er1
a848cd7e 34759 ac_status=$?
ac1cb8d3
VS
34760 grep -v '^ *+' conftest.er1 >conftest.err
34761 rm -f conftest.er1
34762 cat conftest.err >&5
a848cd7e
SC
34763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34764 (exit $ac_status); } &&
64b75e64 34765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34767 (eval $ac_try) 2>&5
34768 ac_status=$?
34769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34770 (exit $ac_status); }; } &&
34771 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34773 (eval $ac_try) 2>&5
34774 ac_status=$?
34775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34776 (exit $ac_status); }; }; then
34777 eval "$as_ac_var=yes"
34778else
34779 echo "$as_me: failed program was:" >&5
34780sed 's/^/| /' conftest.$ac_ext >&5
34781
34782eval "$as_ac_var=no"
34783fi
ac1cb8d3
VS
34784rm -f conftest.err conftest.$ac_objext \
34785 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34786fi
34787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34788echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34789if test `eval echo '${'$as_ac_var'}'` = yes; then
34790 cat >>confdefs.h <<_ACEOF
34791#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34792_ACEOF
34793
34794fi
34795done
34796
efdf6afe
VZ
34797fi
34798
a848cd7e
SC
34799else
34800 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34801echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34802fi
34803
a848cd7e 34804
4a767dd5
VZ
34805
34806for ac_func in snprintf vsnprintf
a848cd7e
SC
34807do
34808as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34809echo "$as_me:$LINENO: checking for $ac_func" >&5
34810echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34811if eval "test \"\${$as_ac_var+set}\" = set"; then
34812 echo $ECHO_N "(cached) $ECHO_C" >&6
34813else
34814 cat >conftest.$ac_ext <<_ACEOF
34815/* confdefs.h. */
34816_ACEOF
34817cat confdefs.h >>conftest.$ac_ext
34818cat >>conftest.$ac_ext <<_ACEOF
34819/* end confdefs.h. */
ac1cb8d3
VS
34820/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34822#define $ac_func innocuous_$ac_func
34823
a848cd7e
SC
34824/* System header to define __stub macros and hopefully few prototypes,
34825 which can conflict with char $ac_func (); below.
34826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34827 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34828
a848cd7e
SC
34829#ifdef __STDC__
34830# include <limits.h>
34831#else
34832# include <assert.h>
34833#endif
ac1cb8d3
VS
34834
34835#undef $ac_func
34836
a848cd7e
SC
34837/* Override any gcc2 internal prototype to avoid an error. */
34838#ifdef __cplusplus
34839extern "C"
34840{
34841#endif
34842/* We use char because int might match the return type of a gcc2
34843 builtin and then its argument prototype would still apply. */
34844char $ac_func ();
34845/* The GNU C library defines this for functions which it implements
34846 to always fail with ENOSYS. Some functions are actually named
34847 something starting with __ and the normal name is an alias. */
34848#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34849choke me
34850#else
34851char (*f) () = $ac_func;
34852#endif
34853#ifdef __cplusplus
34854}
34855#endif
34856
34857int
34858main ()
34859{
34860return f != $ac_func;
34861 ;
34862 return 0;
34863}
34864_ACEOF
34865rm -f conftest.$ac_objext conftest$ac_exeext
34866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34867 (eval $ac_link) 2>conftest.er1
a848cd7e 34868 ac_status=$?
ac1cb8d3
VS
34869 grep -v '^ *+' conftest.er1 >conftest.err
34870 rm -f conftest.er1
34871 cat conftest.err >&5
a848cd7e
SC
34872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34873 (exit $ac_status); } &&
64b75e64 34874 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34876 (eval $ac_try) 2>&5
34877 ac_status=$?
34878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34879 (exit $ac_status); }; } &&
34880 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34882 (eval $ac_try) 2>&5
34883 ac_status=$?
34884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34885 (exit $ac_status); }; }; then
34886 eval "$as_ac_var=yes"
34887else
34888 echo "$as_me: failed program was:" >&5
34889sed 's/^/| /' conftest.$ac_ext >&5
34890
34891eval "$as_ac_var=no"
34892fi
ac1cb8d3
VS
34893rm -f conftest.err conftest.$ac_objext \
34894 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34895fi
34896echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34897echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34898if test `eval echo '${'$as_ac_var'}'` = yes; then
34899 cat >>confdefs.h <<_ACEOF
34900#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34901_ACEOF
34902
34903fi
34904done
34905
34906
34907if test "$ac_cv_func_vsnprintf" = "yes"; then
34908 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34909echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
34910if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34911 echo $ECHO_N "(cached) $ECHO_C" >&6
34912else
34913
efdf6afe 34914 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
34915/* confdefs.h. */
34916_ACEOF
34917cat confdefs.h >>conftest.$ac_ext
34918cat >>conftest.$ac_ext <<_ACEOF
34919/* end confdefs.h. */
34920
34921 #include <stdio.h>
34922 #include <stdarg.h>
efdf6afe
VZ
34923 #ifdef __MSL__
34924 #if __MSL__ >= 0x6000
34925 namespace std {}
34926 using namespace std;
34927 #endif
34928 #endif
a848cd7e
SC
34929
34930int
34931main ()
34932{
34933
34934 char *buf;
34935 va_list ap;
62fa8b3a 34936 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
34937
34938 ;
34939 return 0;
34940}
34941_ACEOF
34942rm -f conftest.$ac_objext
34943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34944 (eval $ac_compile) 2>conftest.er1
34945 ac_status=$?
34946 grep -v '^ *+' conftest.er1 >conftest.err
34947 rm -f conftest.er1
34948 cat conftest.err >&5
34949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34950 (exit $ac_status); } &&
64b75e64 34951 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
34952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34953 (eval $ac_try) 2>&5
34954 ac_status=$?
34955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34956 (exit $ac_status); }; } &&
34957 { ac_try='test -s conftest.$ac_objext'
34958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34959 (eval $ac_try) 2>&5
34960 ac_status=$?
34961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34962 (exit $ac_status); }; }; then
34963 wx_cv_func_vsnprintf_decl=yes
34964else
34965 echo "$as_me: failed program was:" >&5
34966sed 's/^/| /' conftest.$ac_ext >&5
34967
a848cd7e
SC
34968wx_cv_func_vsnprintf_decl=no
34969
34970fi
ac1cb8d3 34971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34972
34973
34974fi
34975echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34976echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
34977
34978 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34979 cat >>confdefs.h <<\_ACEOF
34980#define HAVE_VSNPRINTF_DECL 1
34981_ACEOF
34982
62fa8b3a
MW
34983
34984 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34985echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
34986if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34987 echo $ECHO_N "(cached) $ECHO_C" >&6
34988else
34989
34990 cat >conftest.$ac_ext <<_ACEOF
34991/* confdefs.h. */
34992_ACEOF
34993cat confdefs.h >>conftest.$ac_ext
34994cat >>conftest.$ac_ext <<_ACEOF
34995/* end confdefs.h. */
34996
34997 #include <stdio.h>
34998 #include <stdarg.h>
34999 #ifdef __MSL__
35000 #if __MSL__ >= 0x6000
35001 namespace std {}
35002 using namespace std;
35003 #endif
35004 #endif
35005
35006int
35007main ()
35008{
35009
35010 char *buf;
35011 va_list ap;
35012 const char *fmt = "%s";
35013 vsnprintf(buf, 10u, fmt, ap);
35014
35015 ;
35016 return 0;
35017}
35018_ACEOF
35019rm -f conftest.$ac_objext
35020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35021 (eval $ac_compile) 2>conftest.er1
35022 ac_status=$?
35023 grep -v '^ *+' conftest.er1 >conftest.err
35024 rm -f conftest.er1
35025 cat conftest.err >&5
35026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35027 (exit $ac_status); } &&
64b75e64 35028 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
35029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35030 (eval $ac_try) 2>&5
35031 ac_status=$?
35032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35033 (exit $ac_status); }; } &&
35034 { ac_try='test -s conftest.$ac_objext'
35035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35036 (eval $ac_try) 2>&5
35037 ac_status=$?
35038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35039 (exit $ac_status); }; }; then
35040 wx_cv_func_broken_vsnprintf_decl=no
35041else
35042 echo "$as_me: failed program was:" >&5
35043sed 's/^/| /' conftest.$ac_ext >&5
35044
35045wx_cv_func_broken_vsnprintf_decl=yes
35046
35047fi
35048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35049
35050
35051fi
35052echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35053echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
35054
35055 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35056 cat >>confdefs.h <<\_ACEOF
35057#define HAVE_BROKEN_VSNPRINTF_DECL 1
35058_ACEOF
35059
35060 fi
a848cd7e
SC
35061 fi
35062fi
35063
4a767dd5
VZ
35064if test "$ac_cv_func_snprintf" = "yes"; then
35065 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35066echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
35067if test "${wx_cv_func_snprintf_decl+set}" = set; then
35068 echo $ECHO_N "(cached) $ECHO_C" >&6
35069else
35070
35071 cat >conftest.$ac_ext <<_ACEOF
35072/* confdefs.h. */
35073_ACEOF
35074cat confdefs.h >>conftest.$ac_ext
35075cat >>conftest.$ac_ext <<_ACEOF
35076/* end confdefs.h. */
35077
35078 #include <stdio.h>
35079 #include <stdarg.h>
35080 #ifdef __MSL__
35081 #if __MSL__ >= 0x6000
35082 namespace std {}
35083 using namespace std;
35084 #endif
35085 #endif
35086
35087int
35088main ()
35089{
35090
35091 char *buf;
62fa8b3a 35092 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
35093
35094 ;
35095 return 0;
35096}
35097_ACEOF
35098rm -f conftest.$ac_objext
35099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35100 (eval $ac_compile) 2>conftest.er1
35101 ac_status=$?
35102 grep -v '^ *+' conftest.er1 >conftest.err
35103 rm -f conftest.er1
35104 cat conftest.err >&5
35105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35106 (exit $ac_status); } &&
64b75e64 35107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
35108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35109 (eval $ac_try) 2>&5
35110 ac_status=$?
35111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35112 (exit $ac_status); }; } &&
35113 { ac_try='test -s conftest.$ac_objext'
35114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35115 (eval $ac_try) 2>&5
35116 ac_status=$?
35117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35118 (exit $ac_status); }; }; then
35119 wx_cv_func_snprintf_decl=yes
35120else
35121 echo "$as_me: failed program was:" >&5
35122sed 's/^/| /' conftest.$ac_ext >&5
35123
35124wx_cv_func_snprintf_decl=no
35125
35126fi
35127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35128
35129
35130fi
35131echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35132echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
35133
35134 if test "$wx_cv_func_snprintf_decl" = "yes"; then
35135 cat >>confdefs.h <<\_ACEOF
35136#define HAVE_SNPRINTF_DECL 1
35137_ACEOF
35138
62fa8b3a
MW
35139
35140 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
35141echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
35142if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
35143 echo $ECHO_N "(cached) $ECHO_C" >&6
35144else
35145
35146 cat >conftest.$ac_ext <<_ACEOF
35147/* confdefs.h. */
35148_ACEOF
35149cat confdefs.h >>conftest.$ac_ext
35150cat >>conftest.$ac_ext <<_ACEOF
35151/* end confdefs.h. */
35152
35153 #include <stdio.h>
35154 #include <stdarg.h>
35155 #ifdef __MSL__
35156 #if __MSL__ >= 0x6000
35157 namespace std {}
35158 using namespace std;
35159 #endif
35160 #endif
35161
35162int
35163main ()
35164{
35165
35166 char *buf;
35167 const char *fmt = "%s";
35168 snprintf(buf, 10u, fmt, "wx");
35169
35170 ;
35171 return 0;
35172}
35173_ACEOF
35174rm -f conftest.$ac_objext
35175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35176 (eval $ac_compile) 2>conftest.er1
35177 ac_status=$?
35178 grep -v '^ *+' conftest.er1 >conftest.err
35179 rm -f conftest.er1
35180 cat conftest.err >&5
35181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35182 (exit $ac_status); } &&
64b75e64 35183 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
35184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35185 (eval $ac_try) 2>&5
35186 ac_status=$?
35187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35188 (exit $ac_status); }; } &&
35189 { ac_try='test -s conftest.$ac_objext'
35190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35191 (eval $ac_try) 2>&5
35192 ac_status=$?
35193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35194 (exit $ac_status); }; }; then
35195 wx_cv_func_broken_snprintf_decl=no
35196else
35197 echo "$as_me: failed program was:" >&5
35198sed 's/^/| /' conftest.$ac_ext >&5
35199
35200wx_cv_func_broken_snprintf_decl=yes
35201
35202fi
35203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35204
35205
35206fi
35207echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
35208echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
35209
35210 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
35211 cat >>confdefs.h <<\_ACEOF
35212#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
35213_ACEOF
35214
35215 fi
35216 fi
35217
35218 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35219
35220 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35221echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
35222if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35223 echo $ECHO_N "(cached) $ECHO_C" >&6
35224else
35225
35226 if test "$cross_compiling" = yes; then
5039a2df
VZ
35227
35228 { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35229define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35230echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35231define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35232 wx_cv_func_snprintf_pos_params=no
35233
35234
8b6682b9
JS
35235else
35236 cat >conftest.$ac_ext <<_ACEOF
35237/* confdefs.h. */
35238_ACEOF
35239cat confdefs.h >>conftest.$ac_ext
35240cat >>conftest.$ac_ext <<_ACEOF
35241/* end confdefs.h. */
35242
35243 #include <stdio.h>
35244
35245 int main (void)
35246 {
35247 char buffer[128];
35248 snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
35249 if (strcmp ("2 3 1", buffer) == 0)
35250 exit (0);
35251 exit (1);
35252 }
35253
35254_ACEOF
35255rm -f conftest$ac_exeext
35256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35257 (eval $ac_link) 2>&5
35258 ac_status=$?
35259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35262 (eval $ac_try) 2>&5
35263 ac_status=$?
35264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35265 (exit $ac_status); }; }; then
35266 wx_cv_func_snprintf_pos_params=no
35267else
35268 echo "$as_me: program exited with status $ac_status" >&5
35269echo "$as_me: failed program was:" >&5
35270sed 's/^/| /' conftest.$ac_ext >&5
35271
35272( exit $ac_status )
35273wx_cv_func_snprintf_pos_params=yes
8b6682b9
JS
35274fi
35275rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35276fi
35277
35278
35279fi
35280echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35281echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
35282
35283 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35284 cat >>confdefs.h <<\_ACEOF
35285#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
35286_ACEOF
35287
35288 fi
4a767dd5
VZ
35289 fi
35290fi
35291
a848cd7e
SC
35292if test "$wxUSE_UNICODE" = yes; then
35293
35294
6a5c9b3f
RR
35295for ac_func in swprintf
35296do
35297as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35298echo "$as_me:$LINENO: checking for $ac_func" >&5
35299echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35300if eval "test \"\${$as_ac_var+set}\" = set"; then
35301 echo $ECHO_N "(cached) $ECHO_C" >&6
35302else
35303 cat >conftest.$ac_ext <<_ACEOF
35304/* confdefs.h. */
35305_ACEOF
35306cat confdefs.h >>conftest.$ac_ext
35307cat >>conftest.$ac_ext <<_ACEOF
35308/* end confdefs.h. */
35309/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35311#define $ac_func innocuous_$ac_func
35312
35313/* System header to define __stub macros and hopefully few prototypes,
35314 which can conflict with char $ac_func (); below.
35315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35316 <limits.h> exists even on freestanding compilers. */
35317
35318#ifdef __STDC__
35319# include <limits.h>
35320#else
35321# include <assert.h>
35322#endif
35323
35324#undef $ac_func
35325
35326/* Override any gcc2 internal prototype to avoid an error. */
35327#ifdef __cplusplus
35328extern "C"
35329{
35330#endif
35331/* We use char because int might match the return type of a gcc2
35332 builtin and then its argument prototype would still apply. */
35333char $ac_func ();
35334/* The GNU C library defines this for functions which it implements
35335 to always fail with ENOSYS. Some functions are actually named
35336 something starting with __ and the normal name is an alias. */
35337#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35338choke me
35339#else
35340char (*f) () = $ac_func;
35341#endif
35342#ifdef __cplusplus
35343}
35344#endif
35345
35346int
35347main ()
35348{
35349return f != $ac_func;
35350 ;
35351 return 0;
35352}
35353_ACEOF
35354rm -f conftest.$ac_objext conftest$ac_exeext
35355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35356 (eval $ac_link) 2>conftest.er1
35357 ac_status=$?
35358 grep -v '^ *+' conftest.er1 >conftest.err
35359 rm -f conftest.er1
35360 cat conftest.err >&5
35361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35362 (exit $ac_status); } &&
64b75e64 35363 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
35364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35365 (eval $ac_try) 2>&5
35366 ac_status=$?
35367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35368 (exit $ac_status); }; } &&
35369 { ac_try='test -s conftest$ac_exeext'
35370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35371 (eval $ac_try) 2>&5
35372 ac_status=$?
35373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35374 (exit $ac_status); }; }; then
35375 eval "$as_ac_var=yes"
35376else
35377 echo "$as_me: failed program was:" >&5
35378sed 's/^/| /' conftest.$ac_ext >&5
35379
35380eval "$as_ac_var=no"
35381fi
35382rm -f conftest.err conftest.$ac_objext \
35383 conftest$ac_exeext conftest.$ac_ext
35384fi
35385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35386echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35387if test `eval echo '${'$as_ac_var'}'` = yes; then
35388 cat >>confdefs.h <<_ACEOF
35389#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35390_ACEOF
35391
35392fi
35393done
35394
35395
35396 if test "$ac_cv_func_swprintf" = "yes"; then
35397 echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
35398echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6
35399if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
35400 echo $ECHO_N "(cached) $ECHO_C" >&6
35401else
35402
35403 cat >conftest.$ac_ext <<_ACEOF
35404/* confdefs.h. */
35405_ACEOF
35406cat confdefs.h >>conftest.$ac_ext
35407cat >>conftest.$ac_ext <<_ACEOF
35408/* end confdefs.h. */
35409
35410 #include <stdio.h>
35411 #include <stdarg.h>
35412 #include <wchar.h>
35413
35414int
35415main ()
35416{
35417
35418 wchar_t *buf;
35419 const wchar_t *fmt = L"test";
35420 swprintf(buf, 10u, fmt);
35421
35422 ;
35423 return 0;
35424}
35425_ACEOF
35426rm -f conftest.$ac_objext
35427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35428 (eval $ac_compile) 2>conftest.er1
35429 ac_status=$?
35430 grep -v '^ *+' conftest.er1 >conftest.err
35431 rm -f conftest.er1
35432 cat conftest.err >&5
35433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35434 (exit $ac_status); } &&
64b75e64 35435 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
35436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35437 (eval $ac_try) 2>&5
35438 ac_status=$?
35439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35440 (exit $ac_status); }; } &&
35441 { ac_try='test -s conftest.$ac_objext'
35442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35443 (eval $ac_try) 2>&5
35444 ac_status=$?
35445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35446 (exit $ac_status); }; }; then
35447 wx_cv_func_broken_swprintf_decl=no
35448else
35449 echo "$as_me: failed program was:" >&5
35450sed 's/^/| /' conftest.$ac_ext >&5
35451
35452wx_cv_func_broken_swprintf_decl=yes
35453
35454fi
35455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35456
35457
35458fi
35459echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
35460echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6
35461
35462 if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
35463 cat >>confdefs.h <<\_ACEOF
35464#define HAVE_BROKEN_SWPRINTF_DECL 1
35465_ACEOF
35466
35467 fi
35468 fi
35469
35470
35471
a848cd7e 35472
fbe47c7b
VS
35473
35474
35475
35476for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
35477do
35478as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35479echo "$as_me:$LINENO: checking for $ac_func" >&5
35480echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35481if eval "test \"\${$as_ac_var+set}\" = set"; then
35482 echo $ECHO_N "(cached) $ECHO_C" >&6
35483else
35484 cat >conftest.$ac_ext <<_ACEOF
35485/* confdefs.h. */
35486_ACEOF
35487cat confdefs.h >>conftest.$ac_ext
35488cat >>conftest.$ac_ext <<_ACEOF
35489/* end confdefs.h. */
ac1cb8d3
VS
35490/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35492#define $ac_func innocuous_$ac_func
35493
a848cd7e
SC
35494/* System header to define __stub macros and hopefully few prototypes,
35495 which can conflict with char $ac_func (); below.
35496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35497 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35498
a848cd7e
SC
35499#ifdef __STDC__
35500# include <limits.h>
35501#else
35502# include <assert.h>
35503#endif
ac1cb8d3
VS
35504
35505#undef $ac_func
35506
a848cd7e
SC
35507/* Override any gcc2 internal prototype to avoid an error. */
35508#ifdef __cplusplus
35509extern "C"
35510{
35511#endif
35512/* We use char because int might match the return type of a gcc2
35513 builtin and then its argument prototype would still apply. */
35514char $ac_func ();
35515/* The GNU C library defines this for functions which it implements
35516 to always fail with ENOSYS. Some functions are actually named
35517 something starting with __ and the normal name is an alias. */
35518#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35519choke me
35520#else
35521char (*f) () = $ac_func;
35522#endif
35523#ifdef __cplusplus
35524}
35525#endif
35526
35527int
35528main ()
35529{
35530return f != $ac_func;
35531 ;
35532 return 0;
35533}
35534_ACEOF
35535rm -f conftest.$ac_objext conftest$ac_exeext
35536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35537 (eval $ac_link) 2>conftest.er1
a848cd7e 35538 ac_status=$?
ac1cb8d3
VS
35539 grep -v '^ *+' conftest.er1 >conftest.err
35540 rm -f conftest.er1
35541 cat conftest.err >&5
a848cd7e
SC
35542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35543 (exit $ac_status); } &&
64b75e64 35544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35546 (eval $ac_try) 2>&5
35547 ac_status=$?
35548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35549 (exit $ac_status); }; } &&
35550 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35552 (eval $ac_try) 2>&5
35553 ac_status=$?
35554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35555 (exit $ac_status); }; }; then
35556 eval "$as_ac_var=yes"
35557else
35558 echo "$as_me: failed program was:" >&5
35559sed 's/^/| /' conftest.$ac_ext >&5
35560
35561eval "$as_ac_var=no"
35562fi
ac1cb8d3
VS
35563rm -f conftest.err conftest.$ac_objext \
35564 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35565fi
35566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35567echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35568if test `eval echo '${'$as_ac_var'}'` = yes; then
35569 cat >>confdefs.h <<_ACEOF
35570#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35571_ACEOF
35572
35573fi
35574done
35575
35576
35577 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35578echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
35579 cat >conftest.$ac_ext <<_ACEOF
35580/* confdefs.h. */
35581_ACEOF
35582cat confdefs.h >>conftest.$ac_ext
35583cat >>conftest.$ac_ext <<_ACEOF
35584/* end confdefs.h. */
35585#include <wchar.h>
35586int
35587main ()
35588{
35589&_vsnwprintf;
35590 ;
35591 return 0;
35592}
35593_ACEOF
35594rm -f conftest.$ac_objext
35595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35596 (eval $ac_compile) 2>conftest.er1
a848cd7e 35597 ac_status=$?
ac1cb8d3
VS
35598 grep -v '^ *+' conftest.er1 >conftest.err
35599 rm -f conftest.er1
35600 cat conftest.err >&5
a848cd7e
SC
35601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35602 (exit $ac_status); } &&
64b75e64 35603 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35605 (eval $ac_try) 2>&5
35606 ac_status=$?
35607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35608 (exit $ac_status); }; } &&
35609 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35611 (eval $ac_try) 2>&5
35612 ac_status=$?
35613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35614 (exit $ac_status); }; }; then
35615 echo "$as_me:$LINENO: result: yes" >&5
35616echo "${ECHO_T}yes" >&6
35617 cat >>confdefs.h <<\_ACEOF
35618#define HAVE__VSNWPRINTF 1
35619_ACEOF
35620
35621else
35622 echo "$as_me: failed program was:" >&5
35623sed 's/^/| /' conftest.$ac_ext >&5
35624
35625echo "$as_me:$LINENO: result: no" >&5
35626echo "${ECHO_T}no" >&6
35627fi
ac1cb8d3 35628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
35629fi
35630
6ebeb4c7
VZ
35631if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
35632
35633for ac_func in fnmatch
35634do
35635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35636echo "$as_me:$LINENO: checking for $ac_func" >&5
35637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35638if eval "test \"\${$as_ac_var+set}\" = set"; then
35639 echo $ECHO_N "(cached) $ECHO_C" >&6
35640else
35641 cat >conftest.$ac_ext <<_ACEOF
35642/* confdefs.h. */
35643_ACEOF
35644cat confdefs.h >>conftest.$ac_ext
35645cat >>conftest.$ac_ext <<_ACEOF
35646/* end confdefs.h. */
35647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35649#define $ac_func innocuous_$ac_func
35650
35651/* System header to define __stub macros and hopefully few prototypes,
35652 which can conflict with char $ac_func (); below.
35653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35654 <limits.h> exists even on freestanding compilers. */
35655
35656#ifdef __STDC__
35657# include <limits.h>
35658#else
35659# include <assert.h>
35660#endif
35661
35662#undef $ac_func
35663
35664/* Override any gcc2 internal prototype to avoid an error. */
35665#ifdef __cplusplus
35666extern "C"
35667{
35668#endif
35669/* We use char because int might match the return type of a gcc2
35670 builtin and then its argument prototype would still apply. */
35671char $ac_func ();
35672/* The GNU C library defines this for functions which it implements
35673 to always fail with ENOSYS. Some functions are actually named
35674 something starting with __ and the normal name is an alias. */
35675#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35676choke me
35677#else
35678char (*f) () = $ac_func;
35679#endif
35680#ifdef __cplusplus
35681}
35682#endif
35683
35684int
35685main ()
35686{
35687return f != $ac_func;
35688 ;
35689 return 0;
35690}
35691_ACEOF
35692rm -f conftest.$ac_objext conftest$ac_exeext
35693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35694 (eval $ac_link) 2>conftest.er1
35695 ac_status=$?
35696 grep -v '^ *+' conftest.er1 >conftest.err
35697 rm -f conftest.er1
35698 cat conftest.err >&5
35699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35700 (exit $ac_status); } &&
64b75e64 35701 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
35702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35703 (eval $ac_try) 2>&5
35704 ac_status=$?
35705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35706 (exit $ac_status); }; } &&
35707 { ac_try='test -s conftest$ac_exeext'
35708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35709 (eval $ac_try) 2>&5
35710 ac_status=$?
35711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35712 (exit $ac_status); }; }; then
35713 eval "$as_ac_var=yes"
35714else
35715 echo "$as_me: failed program was:" >&5
35716sed 's/^/| /' conftest.$ac_ext >&5
35717
35718eval "$as_ac_var=no"
35719fi
35720rm -f conftest.err conftest.$ac_objext \
35721 conftest$ac_exeext conftest.$ac_ext
35722fi
35723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35724echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35725if test `eval echo '${'$as_ac_var'}'` = yes; then
35726 cat >>confdefs.h <<_ACEOF
35727#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35728_ACEOF
35729
35730fi
35731done
35732
35733fi
35734
35735if test "$wxUSE_FILE" = "yes"; then
35736
35737for ac_func in fsync
35738do
35739as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35740echo "$as_me:$LINENO: checking for $ac_func" >&5
35741echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35742if eval "test \"\${$as_ac_var+set}\" = set"; then
35743 echo $ECHO_N "(cached) $ECHO_C" >&6
35744else
35745 cat >conftest.$ac_ext <<_ACEOF
35746/* confdefs.h. */
35747_ACEOF
35748cat confdefs.h >>conftest.$ac_ext
35749cat >>conftest.$ac_ext <<_ACEOF
35750/* end confdefs.h. */
35751/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35753#define $ac_func innocuous_$ac_func
35754
35755/* System header to define __stub macros and hopefully few prototypes,
35756 which can conflict with char $ac_func (); below.
35757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35758 <limits.h> exists even on freestanding compilers. */
35759
35760#ifdef __STDC__
35761# include <limits.h>
35762#else
35763# include <assert.h>
35764#endif
35765
35766#undef $ac_func
35767
35768/* Override any gcc2 internal prototype to avoid an error. */
35769#ifdef __cplusplus
35770extern "C"
35771{
35772#endif
35773/* We use char because int might match the return type of a gcc2
35774 builtin and then its argument prototype would still apply. */
35775char $ac_func ();
35776/* The GNU C library defines this for functions which it implements
35777 to always fail with ENOSYS. Some functions are actually named
35778 something starting with __ and the normal name is an alias. */
35779#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35780choke me
35781#else
35782char (*f) () = $ac_func;
35783#endif
35784#ifdef __cplusplus
35785}
35786#endif
35787
35788int
35789main ()
35790{
35791return f != $ac_func;
35792 ;
35793 return 0;
35794}
35795_ACEOF
35796rm -f conftest.$ac_objext conftest$ac_exeext
35797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35798 (eval $ac_link) 2>conftest.er1
35799 ac_status=$?
35800 grep -v '^ *+' conftest.er1 >conftest.err
35801 rm -f conftest.er1
35802 cat conftest.err >&5
35803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35804 (exit $ac_status); } &&
64b75e64 35805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
35806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35807 (eval $ac_try) 2>&5
35808 ac_status=$?
35809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35810 (exit $ac_status); }; } &&
35811 { ac_try='test -s conftest$ac_exeext'
35812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35813 (eval $ac_try) 2>&5
35814 ac_status=$?
35815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35816 (exit $ac_status); }; }; then
35817 eval "$as_ac_var=yes"
35818else
35819 echo "$as_me: failed program was:" >&5
35820sed 's/^/| /' conftest.$ac_ext >&5
35821
35822eval "$as_ac_var=no"
35823fi
35824rm -f conftest.err conftest.$ac_objext \
35825 conftest$ac_exeext conftest.$ac_ext
35826fi
35827echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35828echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35829if test `eval echo '${'$as_ac_var'}'` = yes; then
35830 cat >>confdefs.h <<_ACEOF
35831#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35832_ACEOF
35833
35834fi
35835done
35836
35837fi
a848cd7e
SC
35838
35839
c2e9ada4
VZ
35840for ac_func in round
35841do
35842as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35843echo "$as_me:$LINENO: checking for $ac_func" >&5
35844echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35845if eval "test \"\${$as_ac_var+set}\" = set"; then
35846 echo $ECHO_N "(cached) $ECHO_C" >&6
35847else
35848 cat >conftest.$ac_ext <<_ACEOF
35849/* confdefs.h. */
35850_ACEOF
35851cat confdefs.h >>conftest.$ac_ext
35852cat >>conftest.$ac_ext <<_ACEOF
35853/* end confdefs.h. */
35854/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35856#define $ac_func innocuous_$ac_func
35857
35858/* System header to define __stub macros and hopefully few prototypes,
35859 which can conflict with char $ac_func (); below.
35860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35861 <limits.h> exists even on freestanding compilers. */
35862
35863#ifdef __STDC__
35864# include <limits.h>
35865#else
35866# include <assert.h>
35867#endif
35868
35869#undef $ac_func
35870
35871/* Override any gcc2 internal prototype to avoid an error. */
35872#ifdef __cplusplus
35873extern "C"
35874{
35875#endif
35876/* We use char because int might match the return type of a gcc2
35877 builtin and then its argument prototype would still apply. */
35878char $ac_func ();
35879/* The GNU C library defines this for functions which it implements
35880 to always fail with ENOSYS. Some functions are actually named
35881 something starting with __ and the normal name is an alias. */
35882#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35883choke me
35884#else
35885char (*f) () = $ac_func;
35886#endif
35887#ifdef __cplusplus
35888}
35889#endif
35890
35891int
35892main ()
35893{
35894return f != $ac_func;
35895 ;
35896 return 0;
35897}
35898_ACEOF
35899rm -f conftest.$ac_objext conftest$ac_exeext
35900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35901 (eval $ac_link) 2>conftest.er1
35902 ac_status=$?
35903 grep -v '^ *+' conftest.er1 >conftest.err
35904 rm -f conftest.er1
35905 cat conftest.err >&5
35906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35907 (exit $ac_status); } &&
64b75e64 35908 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
35909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35910 (eval $ac_try) 2>&5
35911 ac_status=$?
35912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35913 (exit $ac_status); }; } &&
35914 { ac_try='test -s conftest$ac_exeext'
35915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35916 (eval $ac_try) 2>&5
35917 ac_status=$?
35918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35919 (exit $ac_status); }; }; then
35920 eval "$as_ac_var=yes"
35921else
35922 echo "$as_me: failed program was:" >&5
35923sed 's/^/| /' conftest.$ac_ext >&5
35924
35925eval "$as_ac_var=no"
35926fi
35927rm -f conftest.err conftest.$ac_objext \
35928 conftest$ac_exeext conftest.$ac_ext
35929fi
35930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35931echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35932if test `eval echo '${'$as_ac_var'}'` = yes; then
35933 cat >>confdefs.h <<_ACEOF
35934#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35935_ACEOF
35936
35937fi
35938done
35939
35940if test "$ac_cv_func_round" = yes; then
35941 echo "$as_me:$LINENO: checking whether round is declared" >&5
35942echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6
35943if test "${ac_cv_have_decl_round+set}" = set; then
35944 echo $ECHO_N "(cached) $ECHO_C" >&6
35945else
35946 cat >conftest.$ac_ext <<_ACEOF
35947/* confdefs.h. */
35948_ACEOF
35949cat confdefs.h >>conftest.$ac_ext
35950cat >>conftest.$ac_ext <<_ACEOF
35951/* end confdefs.h. */
35952#include <math.h>
35953
35954int
35955main ()
35956{
35957#ifndef round
35958 char *p = (char *) round;
35959#endif
35960
35961 ;
35962 return 0;
35963}
35964_ACEOF
35965rm -f conftest.$ac_objext
35966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35967 (eval $ac_compile) 2>conftest.er1
35968 ac_status=$?
35969 grep -v '^ *+' conftest.er1 >conftest.err
35970 rm -f conftest.er1
35971 cat conftest.err >&5
35972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35973 (exit $ac_status); } &&
64b75e64 35974 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
35975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35976 (eval $ac_try) 2>&5
35977 ac_status=$?
35978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35979 (exit $ac_status); }; } &&
35980 { ac_try='test -s conftest.$ac_objext'
35981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35982 (eval $ac_try) 2>&5
35983 ac_status=$?
35984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35985 (exit $ac_status); }; }; then
35986 ac_cv_have_decl_round=yes
35987else
35988 echo "$as_me: failed program was:" >&5
35989sed 's/^/| /' conftest.$ac_ext >&5
35990
35991ac_cv_have_decl_round=no
35992fi
35993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35994fi
35995echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5
35996echo "${ECHO_T}$ac_cv_have_decl_round" >&6
35997if test $ac_cv_have_decl_round = yes; then
35998
35999cat >>confdefs.h <<_ACEOF
36000#define HAVE_DECL_ROUND 1
36001_ACEOF
36002
36003
36004else
36005 cat >>confdefs.h <<_ACEOF
36006#define HAVE_DECL_ROUND 0
36007_ACEOF
36008
36009
36010fi
36011
36012
36013fi
36014
36015
a848cd7e
SC
36016if test "$TOOLKIT" != "MSW"; then
36017
36018
a848cd7e
SC
36019
36020
36021
36022# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
36023if test "${with_libiconv_prefix+set}" = set; then
36024 withval="$with_libiconv_prefix"
36025
36026 for dir in `echo "$withval" | tr : ' '`; do
36027 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36028 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36029 done
36030
36031fi;
36032
36033 echo "$as_me:$LINENO: checking for iconv" >&5
36034echo $ECHO_N "checking for iconv... $ECHO_C" >&6
36035if test "${am_cv_func_iconv+set}" = set; then
36036 echo $ECHO_N "(cached) $ECHO_C" >&6
36037else
36038
36039 am_cv_func_iconv="no, consider installing GNU libiconv"
36040 am_cv_lib_iconv=no
36041 cat >conftest.$ac_ext <<_ACEOF
36042/* confdefs.h. */
36043_ACEOF
36044cat confdefs.h >>conftest.$ac_ext
36045cat >>conftest.$ac_ext <<_ACEOF
36046/* end confdefs.h. */
36047#include <stdlib.h>
36048#include <iconv.h>
36049int
36050main ()
36051{
36052iconv_t cd = iconv_open("","");
36053 iconv(cd,NULL,NULL,NULL,NULL);
36054 iconv_close(cd);
36055 ;
36056 return 0;
36057}
36058_ACEOF
36059rm -f conftest.$ac_objext conftest$ac_exeext
36060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36061 (eval $ac_link) 2>conftest.er1
a848cd7e 36062 ac_status=$?
ac1cb8d3
VS
36063 grep -v '^ *+' conftest.er1 >conftest.err
36064 rm -f conftest.er1
36065 cat conftest.err >&5
a848cd7e
SC
36066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36067 (exit $ac_status); } &&
64b75e64 36068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36070 (eval $ac_try) 2>&5
36071 ac_status=$?
36072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36073 (exit $ac_status); }; } &&
36074 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36076 (eval $ac_try) 2>&5
36077 ac_status=$?
36078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36079 (exit $ac_status); }; }; then
36080 am_cv_func_iconv=yes
36081else
36082 echo "$as_me: failed program was:" >&5
36083sed 's/^/| /' conftest.$ac_ext >&5
36084
36085fi
ac1cb8d3
VS
36086rm -f conftest.err conftest.$ac_objext \
36087 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36088 if test "$am_cv_func_iconv" != yes; then
36089 am_save_LIBS="$LIBS"
36090 LIBS="$LIBS -liconv"
36091 cat >conftest.$ac_ext <<_ACEOF
36092/* confdefs.h. */
36093_ACEOF
36094cat confdefs.h >>conftest.$ac_ext
36095cat >>conftest.$ac_ext <<_ACEOF
36096/* end confdefs.h. */
36097#include <stdlib.h>
36098#include <iconv.h>
36099int
36100main ()
36101{
36102iconv_t cd = iconv_open("","");
36103 iconv(cd,NULL,NULL,NULL,NULL);
36104 iconv_close(cd);
36105 ;
36106 return 0;
36107}
36108_ACEOF
36109rm -f conftest.$ac_objext conftest$ac_exeext
36110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36111 (eval $ac_link) 2>conftest.er1
a848cd7e 36112 ac_status=$?
ac1cb8d3
VS
36113 grep -v '^ *+' conftest.er1 >conftest.err
36114 rm -f conftest.er1
36115 cat conftest.err >&5
a848cd7e
SC
36116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36117 (exit $ac_status); } &&
64b75e64 36118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36120 (eval $ac_try) 2>&5
36121 ac_status=$?
36122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36123 (exit $ac_status); }; } &&
36124 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36126 (eval $ac_try) 2>&5
36127 ac_status=$?
36128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36129 (exit $ac_status); }; }; then
36130 am_cv_lib_iconv=yes
36131 am_cv_func_iconv=yes
36132else
36133 echo "$as_me: failed program was:" >&5
36134sed 's/^/| /' conftest.$ac_ext >&5
36135
36136fi
ac1cb8d3
VS
36137rm -f conftest.err conftest.$ac_objext \
36138 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36139 LIBS="$am_save_LIBS"
36140 fi
36141
36142fi
36143echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36144echo "${ECHO_T}$am_cv_func_iconv" >&6
36145 if test "$am_cv_func_iconv" = yes; then
36146
36147cat >>confdefs.h <<\_ACEOF
36148#define HAVE_ICONV 1
36149_ACEOF
36150
36151 echo "$as_me:$LINENO: checking if iconv needs const" >&5
36152echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
36153if test "${wx_cv_func_iconv_const+set}" = set; then
36154 echo $ECHO_N "(cached) $ECHO_C" >&6
36155else
36156 cat >conftest.$ac_ext <<_ACEOF
36157/* confdefs.h. */
36158_ACEOF
36159cat confdefs.h >>conftest.$ac_ext
36160cat >>conftest.$ac_ext <<_ACEOF
36161/* end confdefs.h. */
36162
36163#include <stdlib.h>
36164#include <iconv.h>
36165extern
36166#ifdef __cplusplus
36167"C"
36168#endif
36169#if defined(__STDC__) || defined(__cplusplus)
36170size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36171#else
36172size_t iconv();
36173#endif
36174
36175int
36176main ()
36177{
36178
36179 ;
36180 return 0;
36181}
36182_ACEOF
36183rm -f conftest.$ac_objext
36184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36185 (eval $ac_compile) 2>conftest.er1
a848cd7e 36186 ac_status=$?
ac1cb8d3
VS
36187 grep -v '^ *+' conftest.er1 >conftest.err
36188 rm -f conftest.er1
36189 cat conftest.err >&5
a848cd7e
SC
36190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36191 (exit $ac_status); } &&
64b75e64 36192 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36194 (eval $ac_try) 2>&5
36195 ac_status=$?
36196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36197 (exit $ac_status); }; } &&
36198 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36200 (eval $ac_try) 2>&5
36201 ac_status=$?
36202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36203 (exit $ac_status); }; }; then
36204 wx_cv_func_iconv_const="no"
36205else
36206 echo "$as_me: failed program was:" >&5
36207sed 's/^/| /' conftest.$ac_ext >&5
36208
36209wx_cv_func_iconv_const="yes"
36210
36211fi
ac1cb8d3 36212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36213
36214fi
36215echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36216echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
36217
36218 iconv_const=
36219 if test "x$wx_cv_func_iconv_const" = "xyes"; then
36220 iconv_const="const"
36221 fi
36222
36223
36224cat >>confdefs.h <<_ACEOF
36225#define ICONV_CONST $iconv_const
36226_ACEOF
36227
36228 fi
36229 LIBICONV=
36230 if test "$am_cv_lib_iconv" = yes; then
36231 LIBICONV="-liconv"
36232 fi
36233
36234
36235LIBS="$LIBICONV $LIBS"
a848cd7e
SC
36236
36237if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36238
36239for ac_func in sigaction
36240do
36241as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36242echo "$as_me:$LINENO: checking for $ac_func" >&5
36243echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36244if eval "test \"\${$as_ac_var+set}\" = set"; then
36245 echo $ECHO_N "(cached) $ECHO_C" >&6
36246else
36247 cat >conftest.$ac_ext <<_ACEOF
36248/* confdefs.h. */
36249_ACEOF
36250cat confdefs.h >>conftest.$ac_ext
36251cat >>conftest.$ac_ext <<_ACEOF
36252/* end confdefs.h. */
ac1cb8d3
VS
36253/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36255#define $ac_func innocuous_$ac_func
36256
a848cd7e
SC
36257/* System header to define __stub macros and hopefully few prototypes,
36258 which can conflict with char $ac_func (); below.
36259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36260 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36261
a848cd7e
SC
36262#ifdef __STDC__
36263# include <limits.h>
36264#else
36265# include <assert.h>
36266#endif
ac1cb8d3
VS
36267
36268#undef $ac_func
36269
a848cd7e
SC
36270/* Override any gcc2 internal prototype to avoid an error. */
36271#ifdef __cplusplus
36272extern "C"
36273{
36274#endif
36275/* We use char because int might match the return type of a gcc2
36276 builtin and then its argument prototype would still apply. */
36277char $ac_func ();
36278/* The GNU C library defines this for functions which it implements
36279 to always fail with ENOSYS. Some functions are actually named
36280 something starting with __ and the normal name is an alias. */
36281#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36282choke me
36283#else
36284char (*f) () = $ac_func;
36285#endif
36286#ifdef __cplusplus
36287}
36288#endif
36289
36290int
36291main ()
36292{
36293return f != $ac_func;
36294 ;
36295 return 0;
36296}
36297_ACEOF
36298rm -f conftest.$ac_objext conftest$ac_exeext
36299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36300 (eval $ac_link) 2>conftest.er1
a848cd7e 36301 ac_status=$?
ac1cb8d3
VS
36302 grep -v '^ *+' conftest.er1 >conftest.err
36303 rm -f conftest.er1
36304 cat conftest.err >&5
a848cd7e
SC
36305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36306 (exit $ac_status); } &&
64b75e64 36307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36309 (eval $ac_try) 2>&5
36310 ac_status=$?
36311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36312 (exit $ac_status); }; } &&
36313 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36315 (eval $ac_try) 2>&5
36316 ac_status=$?
36317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36318 (exit $ac_status); }; }; then
36319 eval "$as_ac_var=yes"
36320else
36321 echo "$as_me: failed program was:" >&5
36322sed 's/^/| /' conftest.$ac_ext >&5
36323
36324eval "$as_ac_var=no"
36325fi
ac1cb8d3
VS
36326rm -f conftest.err conftest.$ac_objext \
36327 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36328fi
36329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36330echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36331if test `eval echo '${'$as_ac_var'}'` = yes; then
36332 cat >>confdefs.h <<_ACEOF
36333#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36334_ACEOF
36335
36336fi
36337done
36338
36339
36340 if test "$ac_cv_func_sigaction" = "no"; then
36341 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36342echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36343 wxUSE_ON_FATAL_EXCEPTION=no
36344 fi
36345
36346 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
36347 echo "$as_me:$LINENO: checking for sa_handler type" >&5
36348echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
36349if test "${wx_cv_type_sa_handler+set}" = set; then
36350 echo $ECHO_N "(cached) $ECHO_C" >&6
36351else
36352
36353 cat >conftest.$ac_ext <<_ACEOF
36354/* confdefs.h. */
36355_ACEOF
36356cat confdefs.h >>conftest.$ac_ext
36357cat >>conftest.$ac_ext <<_ACEOF
36358/* end confdefs.h. */
36359#include <signal.h>
36360int
36361main ()
36362{
36363
36364 extern void testSigHandler(int);
36365
36366 struct sigaction sa;
36367 sa.sa_handler = testSigHandler;
36368
36369 ;
36370 return 0;
36371}
36372_ACEOF
36373rm -f conftest.$ac_objext
36374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36375 (eval $ac_compile) 2>conftest.er1
a848cd7e 36376 ac_status=$?
ac1cb8d3
VS
36377 grep -v '^ *+' conftest.er1 >conftest.err
36378 rm -f conftest.er1
36379 cat conftest.err >&5
a848cd7e
SC
36380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36381 (exit $ac_status); } &&
64b75e64 36382 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36384 (eval $ac_try) 2>&5
36385 ac_status=$?
36386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36387 (exit $ac_status); }; } &&
36388 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36390 (eval $ac_try) 2>&5
36391 ac_status=$?
36392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36393 (exit $ac_status); }; }; then
36394
36395 wx_cv_type_sa_handler=int
36396
36397else
36398 echo "$as_me: failed program was:" >&5
36399sed 's/^/| /' conftest.$ac_ext >&5
36400
36401
36402 wx_cv_type_sa_handler=void
36403
36404fi
ac1cb8d3 36405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36406
36407fi
36408echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36409echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
36410
a848cd7e
SC
36411 cat >>confdefs.h <<_ACEOF
36412#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36413_ACEOF
36414
36415 fi
36416fi
36417
eaff0f0d 36418if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
36419 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36420echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
36421if test "${wx_cv_func_backtrace+set}" = set; then
36422 echo $ECHO_N "(cached) $ECHO_C" >&6
36423else
36424
36425 cat >conftest.$ac_ext <<_ACEOF
36426/* confdefs.h. */
36427_ACEOF
36428cat confdefs.h >>conftest.$ac_ext
36429cat >>conftest.$ac_ext <<_ACEOF
36430/* end confdefs.h. */
36431#include <execinfo.h>
36432int
36433main ()
36434{
36435
36436 void *trace[1];
36437 char **messages;
36438
36439 backtrace(trace, 1);
36440 messages = backtrace_symbols(trace, 1);
36441
36442 ;
36443 return 0;
36444}
36445_ACEOF
36446rm -f conftest.$ac_objext
36447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36448 (eval $ac_compile) 2>conftest.er1
36449 ac_status=$?
36450 grep -v '^ *+' conftest.er1 >conftest.err
36451 rm -f conftest.er1
36452 cat conftest.err >&5
36453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36454 (exit $ac_status); } &&
64b75e64 36455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
36456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36457 (eval $ac_try) 2>&5
36458 ac_status=$?
36459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36460 (exit $ac_status); }; } &&
36461 { ac_try='test -s conftest.$ac_objext'
36462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36463 (eval $ac_try) 2>&5
36464 ac_status=$?
36465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36466 (exit $ac_status); }; }; then
36467 wx_cv_func_backtrace=yes
36468else
36469 echo "$as_me: failed program was:" >&5
36470sed 's/^/| /' conftest.$ac_ext >&5
36471
36472wx_cv_func_backtrace=no
36473
36474fi
36475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36476
36477
36478fi
36479echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36480echo "${ECHO_T}$wx_cv_func_backtrace" >&6
36481
36482
36483 if test "$wx_cv_func_backtrace" = "no"; then
36484 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36485echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36486 wxUSE_STACKWALKER=no
36487 else
36488 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36489echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
36490if test "${wx_cv_func_cxa_demangle+set}" = set; then
36491 echo $ECHO_N "(cached) $ECHO_C" >&6
36492else
36493
36494 cat >conftest.$ac_ext <<_ACEOF
36495/* confdefs.h. */
36496_ACEOF
36497cat confdefs.h >>conftest.$ac_ext
36498cat >>conftest.$ac_ext <<_ACEOF
36499/* end confdefs.h. */
36500#include <cxxabi.h>
36501int
36502main ()
36503{
36504
36505 int rc;
36506 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36507
36508 ;
36509 return 0;
36510}
36511_ACEOF
dfe0c803
JS
36512rm -f conftest.$ac_objext conftest$ac_exeext
36513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36514 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
36515 ac_status=$?
36516 grep -v '^ *+' conftest.er1 >conftest.err
36517 rm -f conftest.er1
36518 cat conftest.err >&5
36519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36520 (exit $ac_status); } &&
64b75e64 36521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
36522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36523 (eval $ac_try) 2>&5
36524 ac_status=$?
36525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36526 (exit $ac_status); }; } &&
dfe0c803 36527 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
36528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36529 (eval $ac_try) 2>&5
36530 ac_status=$?
36531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36532 (exit $ac_status); }; }; then
36533 wx_cv_func_cxa_demangle=yes
36534else
36535 echo "$as_me: failed program was:" >&5
36536sed 's/^/| /' conftest.$ac_ext >&5
36537
36538wx_cv_func_cxa_demangle=no
36539
36540fi
dfe0c803
JS
36541rm -f conftest.err conftest.$ac_objext \
36542 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
36543
36544
36545fi
36546echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36547echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
36548
36549 if test "$wx_cv_func_cxa_demangle" = "yes"; then
36550 cat >>confdefs.h <<\_ACEOF
36551#define HAVE_CXA_DEMANGLE 1
36552_ACEOF
36553
36554 fi
36555 fi
eaff0f0d
VZ
36556fi
36557
898beab1
DE
36558if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
36559 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36560echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36561 wxUSE_STACKWALKER=no
36562fi
36563
36564
a848cd7e
SC
36565
36566
36567for ac_func in mkstemp mktemp
36568do
36569as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36570echo "$as_me:$LINENO: checking for $ac_func" >&5
36571echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36572if eval "test \"\${$as_ac_var+set}\" = set"; then
36573 echo $ECHO_N "(cached) $ECHO_C" >&6
36574else
36575 cat >conftest.$ac_ext <<_ACEOF
36576/* confdefs.h. */
36577_ACEOF
36578cat confdefs.h >>conftest.$ac_ext
36579cat >>conftest.$ac_ext <<_ACEOF
36580/* end confdefs.h. */
ac1cb8d3
VS
36581/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36583#define $ac_func innocuous_$ac_func
36584
a848cd7e
SC
36585/* System header to define __stub macros and hopefully few prototypes,
36586 which can conflict with char $ac_func (); below.
36587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36588 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36589
a848cd7e
SC
36590#ifdef __STDC__
36591# include <limits.h>
36592#else
36593# include <assert.h>
36594#endif
ac1cb8d3
VS
36595
36596#undef $ac_func
36597
a848cd7e
SC
36598/* Override any gcc2 internal prototype to avoid an error. */
36599#ifdef __cplusplus
36600extern "C"
36601{
36602#endif
36603/* We use char because int might match the return type of a gcc2
36604 builtin and then its argument prototype would still apply. */
36605char $ac_func ();
36606/* The GNU C library defines this for functions which it implements
36607 to always fail with ENOSYS. Some functions are actually named
36608 something starting with __ and the normal name is an alias. */
36609#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36610choke me
36611#else
36612char (*f) () = $ac_func;
36613#endif
36614#ifdef __cplusplus
36615}
36616#endif
36617
36618int
36619main ()
36620{
36621return f != $ac_func;
36622 ;
36623 return 0;
36624}
36625_ACEOF
36626rm -f conftest.$ac_objext conftest$ac_exeext
36627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36628 (eval $ac_link) 2>conftest.er1
a848cd7e 36629 ac_status=$?
ac1cb8d3
VS
36630 grep -v '^ *+' conftest.er1 >conftest.err
36631 rm -f conftest.er1
36632 cat conftest.err >&5
a848cd7e
SC
36633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36634 (exit $ac_status); } &&
64b75e64 36635 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36637 (eval $ac_try) 2>&5
36638 ac_status=$?
36639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36640 (exit $ac_status); }; } &&
36641 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36643 (eval $ac_try) 2>&5
36644 ac_status=$?
36645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36646 (exit $ac_status); }; }; then
36647 eval "$as_ac_var=yes"
36648else
36649 echo "$as_me: failed program was:" >&5
36650sed 's/^/| /' conftest.$ac_ext >&5
36651
36652eval "$as_ac_var=no"
36653fi
ac1cb8d3
VS
36654rm -f conftest.err conftest.$ac_objext \
36655 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36656fi
36657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36658echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36659if test `eval echo '${'$as_ac_var'}'` = yes; then
36660 cat >>confdefs.h <<_ACEOF
36661#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36662_ACEOF
36663 break
36664fi
36665done
36666
36667
36668echo "$as_me:$LINENO: checking for statfs" >&5
36669echo $ECHO_N "checking for statfs... $ECHO_C" >&6
36670if test "${wx_cv_func_statfs+set}" = set; then
36671 echo $ECHO_N "(cached) $ECHO_C" >&6
36672else
36673 cat >conftest.$ac_ext <<_ACEOF
36674/* confdefs.h. */
36675_ACEOF
36676cat confdefs.h >>conftest.$ac_ext
36677cat >>conftest.$ac_ext <<_ACEOF
36678/* end confdefs.h. */
36679
36680 #if defined(__BSD__)
84ae7ca4
VZ
36681 #include <sys/param.h>
36682 #include <sys/mount.h>
a848cd7e 36683 #else
84ae7ca4 36684 #include <sys/vfs.h>
a848cd7e
SC
36685 #endif
36686
36687int
36688main ()
36689{
36690
36691 long l;
36692 struct statfs fs;
36693 statfs("/", &fs);
36694 l = fs.f_bsize;
36695 l += fs.f_blocks;
36696 l += fs.f_bavail;
36697
36698 ;
36699 return 0;
36700}
36701_ACEOF
36702rm -f conftest.$ac_objext
36703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36704 (eval $ac_compile) 2>conftest.er1
a848cd7e 36705 ac_status=$?
ac1cb8d3
VS
36706 grep -v '^ *+' conftest.er1 >conftest.err
36707 rm -f conftest.er1
36708 cat conftest.err >&5
a848cd7e
SC
36709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36710 (exit $ac_status); } &&
64b75e64 36711 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36713 (eval $ac_try) 2>&5
36714 ac_status=$?
36715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36716 (exit $ac_status); }; } &&
36717 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36719 (eval $ac_try) 2>&5
36720 ac_status=$?
36721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36722 (exit $ac_status); }; }; then
84ae7ca4 36723 wx_cv_func_statfs=yes
a848cd7e
SC
36724else
36725 echo "$as_me: failed program was:" >&5
36726sed 's/^/| /' conftest.$ac_ext >&5
36727
84ae7ca4 36728wx_cv_func_statfs=no
a848cd7e
SC
36729
36730fi
ac1cb8d3 36731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36732
36733fi
36734echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36735echo "${ECHO_T}$wx_cv_func_statfs" >&6
36736
36737if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 36738 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
36739echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
36740if test "${wx_cv_func_statfs_decl+set}" = set; then
36741 echo $ECHO_N "(cached) $ECHO_C" >&6
36742else
0683aca6
VZ
36743 cat >conftest.$ac_ext <<_ACEOF
36744/* confdefs.h. */
36745_ACEOF
36746cat confdefs.h >>conftest.$ac_ext
36747cat >>conftest.$ac_ext <<_ACEOF
36748/* end confdefs.h. */
84ae7ca4 36749
0683aca6
VZ
36750 #if defined(__BSD__)
36751 #include <sys/param.h>
36752 #include <sys/mount.h>
36753 #else
36754 #include <sys/vfs.h>
36755 #endif
36756
36757int
36758main ()
36759{
36760
36761 struct statfs fs;
36762 statfs("", &fs);
36763
36764 ;
36765 return 0;
36766}
36767_ACEOF
36768rm -f conftest.$ac_objext
36769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36770 (eval $ac_compile) 2>conftest.er1
36771 ac_status=$?
36772 grep -v '^ *+' conftest.er1 >conftest.err
36773 rm -f conftest.er1
36774 cat conftest.err >&5
36775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36776 (exit $ac_status); } &&
64b75e64 36777 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
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); }; } &&
36783 { ac_try='test -s conftest.$ac_objext'
36784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36785 (eval $ac_try) 2>&5
36786 ac_status=$?
36787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36788 (exit $ac_status); }; }; then
36789 wx_cv_func_statfs_decl=yes
36790else
36791 echo "$as_me: failed program was:" >&5
36792sed 's/^/| /' conftest.$ac_ext >&5
36793
36794wx_cv_func_statfs_decl=no
36795
36796fi
36797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
36798
36799fi
36800echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36801echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
36802
36803 if test "$wx_cv_func_statfs_decl" = "yes"; then
36804 cat >>confdefs.h <<\_ACEOF
36805#define HAVE_STATFS_DECL 1
36806_ACEOF
36807
36808 fi
36809
a848cd7e
SC
36810 wx_cv_type_statvfs_t="struct statfs"
36811 cat >>confdefs.h <<\_ACEOF
36812#define HAVE_STATFS 1
36813_ACEOF
36814
36815else
36816 echo "$as_me:$LINENO: checking for statvfs" >&5
36817echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
36818if test "${wx_cv_func_statvfs+set}" = set; then
36819 echo $ECHO_N "(cached) $ECHO_C" >&6
36820else
36821 cat >conftest.$ac_ext <<_ACEOF
36822/* confdefs.h. */
36823_ACEOF
36824cat confdefs.h >>conftest.$ac_ext
36825cat >>conftest.$ac_ext <<_ACEOF
36826/* end confdefs.h. */
36827
36828 #include <stddef.h>
36829 #include <sys/statvfs.h>
36830
36831int
36832main ()
36833{
36834
36835 statvfs("/", NULL);
36836
36837 ;
36838 return 0;
36839}
36840_ACEOF
36841rm -f conftest.$ac_objext
36842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36843 (eval $ac_compile) 2>conftest.er1
a848cd7e 36844 ac_status=$?
ac1cb8d3
VS
36845 grep -v '^ *+' conftest.er1 >conftest.err
36846 rm -f conftest.er1
36847 cat conftest.err >&5
a848cd7e
SC
36848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36849 (exit $ac_status); } &&
64b75e64 36850 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36852 (eval $ac_try) 2>&5
36853 ac_status=$?
36854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36855 (exit $ac_status); }; } &&
36856 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36858 (eval $ac_try) 2>&5
36859 ac_status=$?
36860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36861 (exit $ac_status); }; }; then
36862 wx_cv_func_statvfs=yes
36863else
36864 echo "$as_me: failed program was:" >&5
36865sed 's/^/| /' conftest.$ac_ext >&5
36866
36867wx_cv_func_statvfs=no
36868
36869fi
ac1cb8d3 36870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36871
36872fi
36873echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36874echo "${ECHO_T}$wx_cv_func_statvfs" >&6
36875
36876 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 36877 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
36878echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
36879if test "${wx_cv_type_statvfs_t+set}" = set; then
36880 echo $ECHO_N "(cached) $ECHO_C" >&6
36881else
36882 cat >conftest.$ac_ext <<_ACEOF
36883/* confdefs.h. */
36884_ACEOF
36885cat confdefs.h >>conftest.$ac_ext
36886cat >>conftest.$ac_ext <<_ACEOF
36887/* end confdefs.h. */
36888
36889 #include <sys/statvfs.h>
36890
36891int
36892main ()
36893{
36894
36895 long l;
36896 statvfs_t fs;
36897 statvfs("/", &fs);
36898 l = fs.f_bsize;
36899 l += fs.f_blocks;
36900 l += fs.f_bavail;
36901
36902 ;
36903 return 0;
36904}
36905_ACEOF
36906rm -f conftest.$ac_objext
36907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36908 (eval $ac_compile) 2>conftest.er1
a848cd7e 36909 ac_status=$?
ac1cb8d3
VS
36910 grep -v '^ *+' conftest.er1 >conftest.err
36911 rm -f conftest.er1
36912 cat conftest.err >&5
a848cd7e
SC
36913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36914 (exit $ac_status); } &&
64b75e64 36915 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36917 (eval $ac_try) 2>&5
36918 ac_status=$?
36919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36920 (exit $ac_status); }; } &&
36921 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36923 (eval $ac_try) 2>&5
36924 ac_status=$?
36925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36926 (exit $ac_status); }; }; then
36927 wx_cv_type_statvfs_t=statvfs_t
36928else
36929 echo "$as_me: failed program was:" >&5
36930sed 's/^/| /' conftest.$ac_ext >&5
36931
36932
36933 cat >conftest.$ac_ext <<_ACEOF
36934/* confdefs.h. */
36935_ACEOF
36936cat confdefs.h >>conftest.$ac_ext
36937cat >>conftest.$ac_ext <<_ACEOF
36938/* end confdefs.h. */
36939
36940 #include <sys/statvfs.h>
36941
36942int
36943main ()
36944{
36945
36946 long l;
36947 struct statvfs fs;
36948 statvfs("/", &fs);
36949 l = fs.f_bsize;
36950 l += fs.f_blocks;
36951 l += fs.f_bavail;
36952
36953 ;
36954 return 0;
36955}
36956_ACEOF
36957rm -f conftest.$ac_objext
36958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36959 (eval $ac_compile) 2>conftest.er1
a848cd7e 36960 ac_status=$?
ac1cb8d3
VS
36961 grep -v '^ *+' conftest.er1 >conftest.err
36962 rm -f conftest.er1
36963 cat conftest.err >&5
a848cd7e
SC
36964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36965 (exit $ac_status); } &&
64b75e64 36966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36968 (eval $ac_try) 2>&5
36969 ac_status=$?
36970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36971 (exit $ac_status); }; } &&
36972 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36974 (eval $ac_try) 2>&5
36975 ac_status=$?
36976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36977 (exit $ac_status); }; }; then
36978 wx_cv_type_statvfs_t="struct statvfs"
36979else
36980 echo "$as_me: failed program was:" >&5
36981sed 's/^/| /' conftest.$ac_ext >&5
36982
36983wx_cv_type_statvfs_t="unknown"
36984
36985fi
ac1cb8d3 36986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36987
36988
36989fi
ac1cb8d3 36990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36991
36992fi
36993echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
36994echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
36995
a848cd7e
SC
36996 if test "$wx_cv_type_statvfs_t" != "unknown"; then
36997 cat >>confdefs.h <<\_ACEOF
36998#define HAVE_STATVFS 1
36999_ACEOF
37000
37001 fi
37002 else
37003 wx_cv_type_statvfs_t="unknown"
37004 fi
37005fi
37006
37007if test "$wx_cv_type_statvfs_t" != "unknown"; then
37008 cat >>confdefs.h <<_ACEOF
37009#define WX_STATFS_T $wx_cv_type_statvfs_t
37010_ACEOF
37011
37012else
37013 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37014echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37015fi
37016
37017if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37018
37019
37020for ac_func in fcntl flock
37021do
37022as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37023echo "$as_me:$LINENO: checking for $ac_func" >&5
37024echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37025if eval "test \"\${$as_ac_var+set}\" = set"; then
37026 echo $ECHO_N "(cached) $ECHO_C" >&6
37027else
37028 cat >conftest.$ac_ext <<_ACEOF
37029/* confdefs.h. */
37030_ACEOF
37031cat confdefs.h >>conftest.$ac_ext
37032cat >>conftest.$ac_ext <<_ACEOF
37033/* end confdefs.h. */
ac1cb8d3
VS
37034/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37036#define $ac_func innocuous_$ac_func
37037
a848cd7e
SC
37038/* System header to define __stub macros and hopefully few prototypes,
37039 which can conflict with char $ac_func (); below.
37040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37041 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37042
a848cd7e
SC
37043#ifdef __STDC__
37044# include <limits.h>
37045#else
37046# include <assert.h>
37047#endif
ac1cb8d3
VS
37048
37049#undef $ac_func
37050
a848cd7e
SC
37051/* Override any gcc2 internal prototype to avoid an error. */
37052#ifdef __cplusplus
37053extern "C"
37054{
37055#endif
37056/* We use char because int might match the return type of a gcc2
37057 builtin and then its argument prototype would still apply. */
37058char $ac_func ();
37059/* The GNU C library defines this for functions which it implements
37060 to always fail with ENOSYS. Some functions are actually named
37061 something starting with __ and the normal name is an alias. */
37062#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37063choke me
37064#else
37065char (*f) () = $ac_func;
37066#endif
37067#ifdef __cplusplus
37068}
37069#endif
37070
37071int
37072main ()
37073{
37074return f != $ac_func;
37075 ;
37076 return 0;
37077}
37078_ACEOF
37079rm -f conftest.$ac_objext conftest$ac_exeext
37080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37081 (eval $ac_link) 2>conftest.er1
a848cd7e 37082 ac_status=$?
ac1cb8d3
VS
37083 grep -v '^ *+' conftest.er1 >conftest.err
37084 rm -f conftest.er1
37085 cat conftest.err >&5
a848cd7e
SC
37086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37087 (exit $ac_status); } &&
64b75e64 37088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37090 (eval $ac_try) 2>&5
37091 ac_status=$?
37092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37093 (exit $ac_status); }; } &&
37094 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37096 (eval $ac_try) 2>&5
37097 ac_status=$?
37098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37099 (exit $ac_status); }; }; then
37100 eval "$as_ac_var=yes"
37101else
37102 echo "$as_me: failed program was:" >&5
37103sed 's/^/| /' conftest.$ac_ext >&5
37104
37105eval "$as_ac_var=no"
37106fi
ac1cb8d3
VS
37107rm -f conftest.err conftest.$ac_objext \
37108 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37109fi
37110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37111echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37112if test `eval echo '${'$as_ac_var'}'` = yes; then
37113 cat >>confdefs.h <<_ACEOF
37114#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37115_ACEOF
37116 break
37117fi
37118done
37119
37120
37121 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37122 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37123echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37124 wxUSE_SNGLINST_CHECKER=no
37125 fi
37126fi
37127
37128
37129for ac_func in timegm
37130do
37131as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37132echo "$as_me:$LINENO: checking for $ac_func" >&5
37133echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37134if eval "test \"\${$as_ac_var+set}\" = set"; then
37135 echo $ECHO_N "(cached) $ECHO_C" >&6
37136else
37137 cat >conftest.$ac_ext <<_ACEOF
37138/* confdefs.h. */
37139_ACEOF
37140cat confdefs.h >>conftest.$ac_ext
37141cat >>conftest.$ac_ext <<_ACEOF
37142/* end confdefs.h. */
ac1cb8d3
VS
37143/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37145#define $ac_func innocuous_$ac_func
37146
a848cd7e
SC
37147/* System header to define __stub macros and hopefully few prototypes,
37148 which can conflict with char $ac_func (); below.
37149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37150 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37151
a848cd7e
SC
37152#ifdef __STDC__
37153# include <limits.h>
37154#else
37155# include <assert.h>
37156#endif
ac1cb8d3
VS
37157
37158#undef $ac_func
37159
a848cd7e
SC
37160/* Override any gcc2 internal prototype to avoid an error. */
37161#ifdef __cplusplus
37162extern "C"
37163{
37164#endif
37165/* We use char because int might match the return type of a gcc2
37166 builtin and then its argument prototype would still apply. */
37167char $ac_func ();
37168/* The GNU C library defines this for functions which it implements
37169 to always fail with ENOSYS. Some functions are actually named
37170 something starting with __ and the normal name is an alias. */
37171#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37172choke me
37173#else
37174char (*f) () = $ac_func;
37175#endif
37176#ifdef __cplusplus
37177}
37178#endif
37179
37180int
37181main ()
37182{
37183return f != $ac_func;
37184 ;
37185 return 0;
37186}
37187_ACEOF
37188rm -f conftest.$ac_objext conftest$ac_exeext
37189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37190 (eval $ac_link) 2>conftest.er1
a848cd7e 37191 ac_status=$?
ac1cb8d3
VS
37192 grep -v '^ *+' conftest.er1 >conftest.err
37193 rm -f conftest.er1
37194 cat conftest.err >&5
a848cd7e
SC
37195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37196 (exit $ac_status); } &&
64b75e64 37197 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37199 (eval $ac_try) 2>&5
37200 ac_status=$?
37201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37202 (exit $ac_status); }; } &&
37203 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37205 (eval $ac_try) 2>&5
37206 ac_status=$?
37207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37208 (exit $ac_status); }; }; then
37209 eval "$as_ac_var=yes"
37210else
37211 echo "$as_me: failed program was:" >&5
37212sed 's/^/| /' conftest.$ac_ext >&5
37213
37214eval "$as_ac_var=no"
37215fi
ac1cb8d3
VS
37216rm -f conftest.err conftest.$ac_objext \
37217 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37218fi
37219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37220echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37221if test `eval echo '${'$as_ac_var'}'` = yes; then
37222 cat >>confdefs.h <<_ACEOF
37223#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37224_ACEOF
37225
37226fi
37227done
37228
37229
37230
37231
37232for ac_func in putenv setenv
37233do
37234as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37235echo "$as_me:$LINENO: checking for $ac_func" >&5
37236echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37237if eval "test \"\${$as_ac_var+set}\" = set"; then
37238 echo $ECHO_N "(cached) $ECHO_C" >&6
37239else
37240 cat >conftest.$ac_ext <<_ACEOF
37241/* confdefs.h. */
37242_ACEOF
37243cat confdefs.h >>conftest.$ac_ext
37244cat >>conftest.$ac_ext <<_ACEOF
37245/* end confdefs.h. */
ac1cb8d3
VS
37246/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37248#define $ac_func innocuous_$ac_func
37249
a848cd7e
SC
37250/* System header to define __stub macros and hopefully few prototypes,
37251 which can conflict with char $ac_func (); below.
37252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37253 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37254
a848cd7e
SC
37255#ifdef __STDC__
37256# include <limits.h>
37257#else
37258# include <assert.h>
37259#endif
ac1cb8d3
VS
37260
37261#undef $ac_func
37262
a848cd7e
SC
37263/* Override any gcc2 internal prototype to avoid an error. */
37264#ifdef __cplusplus
37265extern "C"
37266{
37267#endif
37268/* We use char because int might match the return type of a gcc2
37269 builtin and then its argument prototype would still apply. */
37270char $ac_func ();
37271/* The GNU C library defines this for functions which it implements
37272 to always fail with ENOSYS. Some functions are actually named
37273 something starting with __ and the normal name is an alias. */
37274#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37275choke me
37276#else
37277char (*f) () = $ac_func;
37278#endif
37279#ifdef __cplusplus
37280}
37281#endif
37282
37283int
37284main ()
37285{
37286return f != $ac_func;
37287 ;
37288 return 0;
37289}
37290_ACEOF
37291rm -f conftest.$ac_objext conftest$ac_exeext
37292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37293 (eval $ac_link) 2>conftest.er1
a848cd7e 37294 ac_status=$?
ac1cb8d3
VS
37295 grep -v '^ *+' conftest.er1 >conftest.err
37296 rm -f conftest.er1
37297 cat conftest.err >&5
a848cd7e
SC
37298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37299 (exit $ac_status); } &&
64b75e64 37300 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37302 (eval $ac_try) 2>&5
37303 ac_status=$?
37304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37305 (exit $ac_status); }; } &&
37306 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37308 (eval $ac_try) 2>&5
37309 ac_status=$?
37310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37311 (exit $ac_status); }; }; then
37312 eval "$as_ac_var=yes"
37313else
37314 echo "$as_me: failed program was:" >&5
37315sed 's/^/| /' conftest.$ac_ext >&5
37316
37317eval "$as_ac_var=no"
37318fi
ac1cb8d3
VS
37319rm -f conftest.err conftest.$ac_objext \
37320 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37321fi
37322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37323echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37324if test `eval echo '${'$as_ac_var'}'` = yes; then
37325 cat >>confdefs.h <<_ACEOF
37326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37327_ACEOF
37328 break
37329fi
37330done
37331
37332
37333HAVE_SOME_SLEEP_FUNC=0
37334if test "$USE_BEOS" = 1; then
37335 cat >>confdefs.h <<\_ACEOF
37336#define HAVE_SLEEP 1
37337_ACEOF
37338
37339 HAVE_SOME_SLEEP_FUNC=1
37340fi
37341
37342if test "$USE_DARWIN" = 1; then
37343 cat >>confdefs.h <<\_ACEOF
37344#define HAVE_USLEEP 1
37345_ACEOF
37346
37347 HAVE_SOME_SLEEP_FUNC=1
37348fi
37349
37350if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37351 POSIX4_LINK=
37352
37353for ac_func in nanosleep
37354do
37355as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37356echo "$as_me:$LINENO: checking for $ac_func" >&5
37357echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37358if eval "test \"\${$as_ac_var+set}\" = set"; then
37359 echo $ECHO_N "(cached) $ECHO_C" >&6
37360else
37361 cat >conftest.$ac_ext <<_ACEOF
37362/* confdefs.h. */
37363_ACEOF
37364cat confdefs.h >>conftest.$ac_ext
37365cat >>conftest.$ac_ext <<_ACEOF
37366/* end confdefs.h. */
ac1cb8d3
VS
37367/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37369#define $ac_func innocuous_$ac_func
37370
a848cd7e
SC
37371/* System header to define __stub macros and hopefully few prototypes,
37372 which can conflict with char $ac_func (); below.
37373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37374 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37375
a848cd7e
SC
37376#ifdef __STDC__
37377# include <limits.h>
37378#else
37379# include <assert.h>
37380#endif
ac1cb8d3
VS
37381
37382#undef $ac_func
37383
a848cd7e
SC
37384/* Override any gcc2 internal prototype to avoid an error. */
37385#ifdef __cplusplus
37386extern "C"
37387{
37388#endif
37389/* We use char because int might match the return type of a gcc2
37390 builtin and then its argument prototype would still apply. */
37391char $ac_func ();
37392/* The GNU C library defines this for functions which it implements
37393 to always fail with ENOSYS. Some functions are actually named
37394 something starting with __ and the normal name is an alias. */
37395#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37396choke me
37397#else
37398char (*f) () = $ac_func;
37399#endif
37400#ifdef __cplusplus
37401}
37402#endif
37403
37404int
37405main ()
37406{
37407return f != $ac_func;
37408 ;
37409 return 0;
37410}
37411_ACEOF
37412rm -f conftest.$ac_objext conftest$ac_exeext
37413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37414 (eval $ac_link) 2>conftest.er1
a848cd7e 37415 ac_status=$?
ac1cb8d3
VS
37416 grep -v '^ *+' conftest.er1 >conftest.err
37417 rm -f conftest.er1
37418 cat conftest.err >&5
a848cd7e
SC
37419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37420 (exit $ac_status); } &&
64b75e64 37421 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37423 (eval $ac_try) 2>&5
37424 ac_status=$?
37425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37426 (exit $ac_status); }; } &&
37427 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37429 (eval $ac_try) 2>&5
37430 ac_status=$?
37431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37432 (exit $ac_status); }; }; then
37433 eval "$as_ac_var=yes"
37434else
37435 echo "$as_me: failed program was:" >&5
37436sed 's/^/| /' conftest.$ac_ext >&5
37437
37438eval "$as_ac_var=no"
37439fi
ac1cb8d3
VS
37440rm -f conftest.err conftest.$ac_objext \
37441 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37442fi
37443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37444echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37445if test `eval echo '${'$as_ac_var'}'` = yes; then
37446 cat >>confdefs.h <<_ACEOF
37447#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37448_ACEOF
37449 cat >>confdefs.h <<\_ACEOF
37450#define HAVE_NANOSLEEP 1
37451_ACEOF
37452
37453else
37454
37455 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37456echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
37457if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37458 echo $ECHO_N "(cached) $ECHO_C" >&6
37459else
37460 ac_check_lib_save_LIBS=$LIBS
37461LIBS="-lposix4 $LIBS"
37462cat >conftest.$ac_ext <<_ACEOF
37463/* confdefs.h. */
37464_ACEOF
37465cat confdefs.h >>conftest.$ac_ext
37466cat >>conftest.$ac_ext <<_ACEOF
37467/* end confdefs.h. */
37468
37469/* Override any gcc2 internal prototype to avoid an error. */
37470#ifdef __cplusplus
37471extern "C"
37472#endif
37473/* We use char because int might match the return type of a gcc2
37474 builtin and then its argument prototype would still apply. */
37475char nanosleep ();
37476int
37477main ()
37478{
37479nanosleep ();
37480 ;
37481 return 0;
37482}
37483_ACEOF
37484rm -f conftest.$ac_objext conftest$ac_exeext
37485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37486 (eval $ac_link) 2>conftest.er1
a848cd7e 37487 ac_status=$?
ac1cb8d3
VS
37488 grep -v '^ *+' conftest.er1 >conftest.err
37489 rm -f conftest.er1
37490 cat conftest.err >&5
a848cd7e
SC
37491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37492 (exit $ac_status); } &&
64b75e64 37493 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37495 (eval $ac_try) 2>&5
37496 ac_status=$?
37497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37498 (exit $ac_status); }; } &&
37499 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37501 (eval $ac_try) 2>&5
37502 ac_status=$?
37503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37504 (exit $ac_status); }; }; then
37505 ac_cv_lib_posix4_nanosleep=yes
37506else
37507 echo "$as_me: failed program was:" >&5
37508sed 's/^/| /' conftest.$ac_ext >&5
37509
37510ac_cv_lib_posix4_nanosleep=no
37511fi
ac1cb8d3
VS
37512rm -f conftest.err conftest.$ac_objext \
37513 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37514LIBS=$ac_check_lib_save_LIBS
37515fi
37516echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37517echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
37518if test $ac_cv_lib_posix4_nanosleep = yes; then
37519
37520 cat >>confdefs.h <<\_ACEOF
37521#define HAVE_NANOSLEEP 1
37522_ACEOF
37523
37524 POSIX4_LINK=" -lposix4"
37525
37526else
37527
37528
37529for ac_func in usleep
37530do
37531as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37532echo "$as_me:$LINENO: checking for $ac_func" >&5
37533echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37534if eval "test \"\${$as_ac_var+set}\" = set"; then
37535 echo $ECHO_N "(cached) $ECHO_C" >&6
37536else
37537 cat >conftest.$ac_ext <<_ACEOF
37538/* confdefs.h. */
37539_ACEOF
37540cat confdefs.h >>conftest.$ac_ext
37541cat >>conftest.$ac_ext <<_ACEOF
37542/* end confdefs.h. */
ac1cb8d3
VS
37543/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37545#define $ac_func innocuous_$ac_func
37546
a848cd7e
SC
37547/* System header to define __stub macros and hopefully few prototypes,
37548 which can conflict with char $ac_func (); below.
37549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37550 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37551
a848cd7e
SC
37552#ifdef __STDC__
37553# include <limits.h>
37554#else
37555# include <assert.h>
37556#endif
ac1cb8d3
VS
37557
37558#undef $ac_func
37559
a848cd7e
SC
37560/* Override any gcc2 internal prototype to avoid an error. */
37561#ifdef __cplusplus
37562extern "C"
37563{
37564#endif
37565/* We use char because int might match the return type of a gcc2
37566 builtin and then its argument prototype would still apply. */
37567char $ac_func ();
37568/* The GNU C library defines this for functions which it implements
37569 to always fail with ENOSYS. Some functions are actually named
37570 something starting with __ and the normal name is an alias. */
37571#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37572choke me
37573#else
37574char (*f) () = $ac_func;
37575#endif
37576#ifdef __cplusplus
37577}
37578#endif
37579
37580int
37581main ()
37582{
37583return f != $ac_func;
37584 ;
37585 return 0;
37586}
37587_ACEOF
37588rm -f conftest.$ac_objext conftest$ac_exeext
37589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37590 (eval $ac_link) 2>conftest.er1
a848cd7e 37591 ac_status=$?
ac1cb8d3
VS
37592 grep -v '^ *+' conftest.er1 >conftest.err
37593 rm -f conftest.er1
37594 cat conftest.err >&5
a848cd7e
SC
37595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37596 (exit $ac_status); } &&
64b75e64 37597 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37599 (eval $ac_try) 2>&5
37600 ac_status=$?
37601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37602 (exit $ac_status); }; } &&
37603 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37605 (eval $ac_try) 2>&5
37606 ac_status=$?
37607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37608 (exit $ac_status); }; }; then
37609 eval "$as_ac_var=yes"
37610else
37611 echo "$as_me: failed program was:" >&5
37612sed 's/^/| /' conftest.$ac_ext >&5
37613
37614eval "$as_ac_var=no"
37615fi
ac1cb8d3
VS
37616rm -f conftest.err conftest.$ac_objext \
37617 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37618fi
37619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37620echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37621if test `eval echo '${'$as_ac_var'}'` = yes; then
37622 cat >>confdefs.h <<_ACEOF
37623#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37624_ACEOF
37625 cat >>confdefs.h <<\_ACEOF
37626#define HAVE_USLEEP 1
37627_ACEOF
37628
37629else
37630 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37631echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37632
37633fi
37634done
37635
37636
37637
37638fi
37639
37640
37641
37642fi
37643done
37644
37645fi
37646
37647
37648
37649for ac_func in uname gethostname
37650do
37651as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37652echo "$as_me:$LINENO: checking for $ac_func" >&5
37653echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37654if eval "test \"\${$as_ac_var+set}\" = set"; then
37655 echo $ECHO_N "(cached) $ECHO_C" >&6
37656else
37657 cat >conftest.$ac_ext <<_ACEOF
37658/* confdefs.h. */
37659_ACEOF
37660cat confdefs.h >>conftest.$ac_ext
37661cat >>conftest.$ac_ext <<_ACEOF
37662/* end confdefs.h. */
ac1cb8d3
VS
37663/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37665#define $ac_func innocuous_$ac_func
37666
a848cd7e
SC
37667/* System header to define __stub macros and hopefully few prototypes,
37668 which can conflict with char $ac_func (); below.
37669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37670 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37671
a848cd7e
SC
37672#ifdef __STDC__
37673# include <limits.h>
37674#else
37675# include <assert.h>
37676#endif
ac1cb8d3
VS
37677
37678#undef $ac_func
37679
a848cd7e
SC
37680/* Override any gcc2 internal prototype to avoid an error. */
37681#ifdef __cplusplus
37682extern "C"
37683{
37684#endif
37685/* We use char because int might match the return type of a gcc2
37686 builtin and then its argument prototype would still apply. */
37687char $ac_func ();
37688/* The GNU C library defines this for functions which it implements
37689 to always fail with ENOSYS. Some functions are actually named
37690 something starting with __ and the normal name is an alias. */
37691#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37692choke me
37693#else
37694char (*f) () = $ac_func;
37695#endif
37696#ifdef __cplusplus
37697}
37698#endif
37699
37700int
37701main ()
37702{
37703return f != $ac_func;
37704 ;
37705 return 0;
37706}
37707_ACEOF
37708rm -f conftest.$ac_objext conftest$ac_exeext
37709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37710 (eval $ac_link) 2>conftest.er1
a848cd7e 37711 ac_status=$?
ac1cb8d3
VS
37712 grep -v '^ *+' conftest.er1 >conftest.err
37713 rm -f conftest.er1
37714 cat conftest.err >&5
a848cd7e
SC
37715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37716 (exit $ac_status); } &&
64b75e64 37717 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37719 (eval $ac_try) 2>&5
37720 ac_status=$?
37721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37722 (exit $ac_status); }; } &&
37723 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37725 (eval $ac_try) 2>&5
37726 ac_status=$?
37727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37728 (exit $ac_status); }; }; then
37729 eval "$as_ac_var=yes"
37730else
37731 echo "$as_me: failed program was:" >&5
37732sed 's/^/| /' conftest.$ac_ext >&5
37733
37734eval "$as_ac_var=no"
37735fi
ac1cb8d3
VS
37736rm -f conftest.err conftest.$ac_objext \
37737 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37738fi
37739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37740echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37741if test `eval echo '${'$as_ac_var'}'` = yes; then
37742 cat >>confdefs.h <<_ACEOF
37743#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37744_ACEOF
37745 break
37746fi
37747done
37748
37749
56632e81
MW
37750
37751 for wx_func in strtok_r
37752 do
37753 echo "$as_me:$LINENO: checking for $wx_func" >&5
37754echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
37755if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
37756 echo $ECHO_N "(cached) $ECHO_C" >&6
37757else
56632e81
MW
37758
37759 cat >conftest.$ac_ext <<_ACEOF
37760
37761 /* confdefs.h. */
a848cd7e
SC
37762_ACEOF
37763cat confdefs.h >>conftest.$ac_ext
37764cat >>conftest.$ac_ext <<_ACEOF
37765/* end confdefs.h. */
56632e81
MW
37766
37767 #define _REENTRANT
37768 $ac_includes_default
37769
a848cd7e
SC
37770int
37771main ()
37772{
56632e81
MW
37773
37774 #ifndef $wx_func
37775 &$wx_func;
37776 #endif
37777
5acfd58d 37778
a848cd7e
SC
37779 ;
37780 return 0;
37781}
56632e81 37782
a848cd7e 37783_ACEOF
56632e81
MW
37784rm -f conftest.$ac_objext conftest$ac_exeext
37785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37786 (eval $ac_link) 2>conftest.er1
a848cd7e 37787 ac_status=$?
ac1cb8d3
VS
37788 grep -v '^ *+' conftest.er1 >conftest.err
37789 rm -f conftest.er1
37790 cat conftest.err >&5
a848cd7e
SC
37791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37792 (exit $ac_status); } &&
64b75e64 37793 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37795 (eval $ac_try) 2>&5
37796 ac_status=$?
37797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37798 (exit $ac_status); }; } &&
56632e81 37799 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37801 (eval $ac_try) 2>&5
37802 ac_status=$?
37803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37804 (exit $ac_status); }; }; then
56632e81 37805 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
37806else
37807 echo "$as_me: failed program was:" >&5
37808sed 's/^/| /' conftest.$ac_ext >&5
37809
56632e81 37810eval wx_cv_func_$wx_func=no
a848cd7e 37811fi
56632e81
MW
37812rm -f conftest.err conftest.$ac_objext \
37813 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37814
56632e81
MW
37815fi
37816echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
37817echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
a848cd7e 37818
56632e81
MW
37819 if eval test \$wx_cv_func_$wx_func = yes
37820 then
37821 cat >>confdefs.h <<_ACEOF
37822#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
82a2636b
MW
37823_ACEOF
37824
37825
56632e81
MW
37826 else
37827 :
5acfd58d 37828
56632e81
MW
37829 fi
37830 done
5acfd58d 37831
a848cd7e 37832
a848cd7e
SC
37833INET_LINK=
37834
37835for ac_func in inet_addr
37836do
37837as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37838echo "$as_me:$LINENO: checking for $ac_func" >&5
37839echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37840if eval "test \"\${$as_ac_var+set}\" = set"; then
37841 echo $ECHO_N "(cached) $ECHO_C" >&6
37842else
37843 cat >conftest.$ac_ext <<_ACEOF
37844/* confdefs.h. */
37845_ACEOF
37846cat confdefs.h >>conftest.$ac_ext
37847cat >>conftest.$ac_ext <<_ACEOF
37848/* end confdefs.h. */
ac1cb8d3
VS
37849/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37851#define $ac_func innocuous_$ac_func
37852
a848cd7e
SC
37853/* System header to define __stub macros and hopefully few prototypes,
37854 which can conflict with char $ac_func (); below.
37855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37856 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37857
a848cd7e
SC
37858#ifdef __STDC__
37859# include <limits.h>
37860#else
37861# include <assert.h>
37862#endif
ac1cb8d3
VS
37863
37864#undef $ac_func
37865
a848cd7e
SC
37866/* Override any gcc2 internal prototype to avoid an error. */
37867#ifdef __cplusplus
37868extern "C"
37869{
37870#endif
37871/* We use char because int might match the return type of a gcc2
37872 builtin and then its argument prototype would still apply. */
37873char $ac_func ();
37874/* The GNU C library defines this for functions which it implements
37875 to always fail with ENOSYS. Some functions are actually named
37876 something starting with __ and the normal name is an alias. */
37877#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37878choke me
37879#else
37880char (*f) () = $ac_func;
37881#endif
37882#ifdef __cplusplus
37883}
37884#endif
37885
37886int
37887main ()
37888{
37889return f != $ac_func;
37890 ;
37891 return 0;
37892}
37893_ACEOF
37894rm -f conftest.$ac_objext conftest$ac_exeext
37895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37896 (eval $ac_link) 2>conftest.er1
a848cd7e 37897 ac_status=$?
ac1cb8d3
VS
37898 grep -v '^ *+' conftest.er1 >conftest.err
37899 rm -f conftest.er1
37900 cat conftest.err >&5
a848cd7e
SC
37901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37902 (exit $ac_status); } &&
64b75e64 37903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37905 (eval $ac_try) 2>&5
37906 ac_status=$?
37907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37908 (exit $ac_status); }; } &&
37909 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37911 (eval $ac_try) 2>&5
37912 ac_status=$?
37913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37914 (exit $ac_status); }; }; then
37915 eval "$as_ac_var=yes"
37916else
37917 echo "$as_me: failed program was:" >&5
37918sed 's/^/| /' conftest.$ac_ext >&5
37919
37920eval "$as_ac_var=no"
37921fi
ac1cb8d3
VS
37922rm -f conftest.err conftest.$ac_objext \
37923 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37924fi
37925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37926echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37927if test `eval echo '${'$as_ac_var'}'` = yes; then
37928 cat >>confdefs.h <<_ACEOF
37929#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37930_ACEOF
37931 cat >>confdefs.h <<\_ACEOF
37932#define HAVE_INET_ADDR 1
37933_ACEOF
37934
37935else
37936
37937 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
37938echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
37939if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
37940 echo $ECHO_N "(cached) $ECHO_C" >&6
37941else
37942 ac_check_lib_save_LIBS=$LIBS
37943LIBS="-lnsl $LIBS"
37944cat >conftest.$ac_ext <<_ACEOF
37945/* confdefs.h. */
37946_ACEOF
37947cat confdefs.h >>conftest.$ac_ext
37948cat >>conftest.$ac_ext <<_ACEOF
37949/* end confdefs.h. */
37950
37951/* Override any gcc2 internal prototype to avoid an error. */
37952#ifdef __cplusplus
37953extern "C"
37954#endif
37955/* We use char because int might match the return type of a gcc2
37956 builtin and then its argument prototype would still apply. */
37957char inet_addr ();
37958int
37959main ()
37960{
37961inet_addr ();
37962 ;
37963 return 0;
37964}
37965_ACEOF
37966rm -f conftest.$ac_objext conftest$ac_exeext
37967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37968 (eval $ac_link) 2>conftest.er1
a848cd7e 37969 ac_status=$?
ac1cb8d3
VS
37970 grep -v '^ *+' conftest.er1 >conftest.err
37971 rm -f conftest.er1
37972 cat conftest.err >&5
a848cd7e
SC
37973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37974 (exit $ac_status); } &&
64b75e64 37975 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37977 (eval $ac_try) 2>&5
37978 ac_status=$?
37979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37980 (exit $ac_status); }; } &&
37981 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37983 (eval $ac_try) 2>&5
37984 ac_status=$?
37985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37986 (exit $ac_status); }; }; then
37987 ac_cv_lib_nsl_inet_addr=yes
37988else
37989 echo "$as_me: failed program was:" >&5
37990sed 's/^/| /' conftest.$ac_ext >&5
37991
37992ac_cv_lib_nsl_inet_addr=no
37993fi
ac1cb8d3
VS
37994rm -f conftest.err conftest.$ac_objext \
37995 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37996LIBS=$ac_check_lib_save_LIBS
37997fi
37998echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
37999echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
38000if test $ac_cv_lib_nsl_inet_addr = yes; then
38001 INET_LINK="nsl"
38002else
38003
38004 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38005echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
38006if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38007 echo $ECHO_N "(cached) $ECHO_C" >&6
38008else
38009 ac_check_lib_save_LIBS=$LIBS
38010LIBS="-lresolv $LIBS"
38011cat >conftest.$ac_ext <<_ACEOF
38012/* confdefs.h. */
38013_ACEOF
38014cat confdefs.h >>conftest.$ac_ext
38015cat >>conftest.$ac_ext <<_ACEOF
38016/* end confdefs.h. */
38017
38018/* Override any gcc2 internal prototype to avoid an error. */
38019#ifdef __cplusplus
38020extern "C"
38021#endif
38022/* We use char because int might match the return type of a gcc2
38023 builtin and then its argument prototype would still apply. */
38024char inet_addr ();
38025int
38026main ()
38027{
38028inet_addr ();
38029 ;
38030 return 0;
38031}
38032_ACEOF
38033rm -f conftest.$ac_objext conftest$ac_exeext
38034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38035 (eval $ac_link) 2>conftest.er1
a848cd7e 38036 ac_status=$?
ac1cb8d3
VS
38037 grep -v '^ *+' conftest.er1 >conftest.err
38038 rm -f conftest.er1
38039 cat conftest.err >&5
a848cd7e
SC
38040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38041 (exit $ac_status); } &&
64b75e64 38042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38044 (eval $ac_try) 2>&5
38045 ac_status=$?
38046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38047 (exit $ac_status); }; } &&
38048 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38050 (eval $ac_try) 2>&5
38051 ac_status=$?
38052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38053 (exit $ac_status); }; }; then
38054 ac_cv_lib_resolv_inet_addr=yes
38055else
38056 echo "$as_me: failed program was:" >&5
38057sed 's/^/| /' conftest.$ac_ext >&5
38058
38059ac_cv_lib_resolv_inet_addr=no
38060fi
ac1cb8d3
VS
38061rm -f conftest.err conftest.$ac_objext \
38062 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38063LIBS=$ac_check_lib_save_LIBS
38064fi
38065echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38066echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
38067if test $ac_cv_lib_resolv_inet_addr = yes; then
38068 INET_LINK="resolv"
38069else
38070
38071 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38072echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
38073if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38074 echo $ECHO_N "(cached) $ECHO_C" >&6
38075else
38076 ac_check_lib_save_LIBS=$LIBS
38077LIBS="-lsocket $LIBS"
38078cat >conftest.$ac_ext <<_ACEOF
38079/* confdefs.h. */
38080_ACEOF
38081cat confdefs.h >>conftest.$ac_ext
38082cat >>conftest.$ac_ext <<_ACEOF
38083/* end confdefs.h. */
38084
38085/* Override any gcc2 internal prototype to avoid an error. */
38086#ifdef __cplusplus
38087extern "C"
38088#endif
38089/* We use char because int might match the return type of a gcc2
38090 builtin and then its argument prototype would still apply. */
38091char inet_addr ();
38092int
38093main ()
38094{
38095inet_addr ();
38096 ;
38097 return 0;
38098}
38099_ACEOF
38100rm -f conftest.$ac_objext conftest$ac_exeext
38101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38102 (eval $ac_link) 2>conftest.er1
a848cd7e 38103 ac_status=$?
ac1cb8d3
VS
38104 grep -v '^ *+' conftest.er1 >conftest.err
38105 rm -f conftest.er1
38106 cat conftest.err >&5
a848cd7e
SC
38107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38108 (exit $ac_status); } &&
64b75e64 38109 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38111 (eval $ac_try) 2>&5
38112 ac_status=$?
38113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38114 (exit $ac_status); }; } &&
38115 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38117 (eval $ac_try) 2>&5
38118 ac_status=$?
38119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38120 (exit $ac_status); }; }; then
38121 ac_cv_lib_socket_inet_addr=yes
38122else
38123 echo "$as_me: failed program was:" >&5
38124sed 's/^/| /' conftest.$ac_ext >&5
38125
38126ac_cv_lib_socket_inet_addr=no
38127fi
ac1cb8d3
VS
38128rm -f conftest.err conftest.$ac_objext \
38129 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38130LIBS=$ac_check_lib_save_LIBS
38131fi
38132echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38133echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
38134if test $ac_cv_lib_socket_inet_addr = yes; then
38135 INET_LINK="socket"
38136
38137fi
38138
38139
38140
38141fi
38142
38143
38144
38145fi
38146
38147
38148
38149fi
38150done
38151
38152
38153
38154for ac_func in inet_aton
38155do
38156as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38157echo "$as_me:$LINENO: checking for $ac_func" >&5
38158echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38159if eval "test \"\${$as_ac_var+set}\" = set"; then
38160 echo $ECHO_N "(cached) $ECHO_C" >&6
38161else
38162 cat >conftest.$ac_ext <<_ACEOF
38163/* confdefs.h. */
38164_ACEOF
38165cat confdefs.h >>conftest.$ac_ext
38166cat >>conftest.$ac_ext <<_ACEOF
38167/* end confdefs.h. */
ac1cb8d3
VS
38168/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38170#define $ac_func innocuous_$ac_func
38171
a848cd7e
SC
38172/* System header to define __stub macros and hopefully few prototypes,
38173 which can conflict with char $ac_func (); below.
38174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38175 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38176
a848cd7e
SC
38177#ifdef __STDC__
38178# include <limits.h>
38179#else
38180# include <assert.h>
38181#endif
ac1cb8d3
VS
38182
38183#undef $ac_func
38184
a848cd7e
SC
38185/* Override any gcc2 internal prototype to avoid an error. */
38186#ifdef __cplusplus
38187extern "C"
38188{
38189#endif
38190/* We use char because int might match the return type of a gcc2
38191 builtin and then its argument prototype would still apply. */
38192char $ac_func ();
38193/* The GNU C library defines this for functions which it implements
38194 to always fail with ENOSYS. Some functions are actually named
38195 something starting with __ and the normal name is an alias. */
38196#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38197choke me
38198#else
38199char (*f) () = $ac_func;
38200#endif
38201#ifdef __cplusplus
38202}
38203#endif
38204
38205int
38206main ()
38207{
38208return f != $ac_func;
38209 ;
38210 return 0;
38211}
38212_ACEOF
38213rm -f conftest.$ac_objext conftest$ac_exeext
38214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38215 (eval $ac_link) 2>conftest.er1
a848cd7e 38216 ac_status=$?
ac1cb8d3
VS
38217 grep -v '^ *+' conftest.er1 >conftest.err
38218 rm -f conftest.er1
38219 cat conftest.err >&5
a848cd7e
SC
38220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38221 (exit $ac_status); } &&
64b75e64 38222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38224 (eval $ac_try) 2>&5
38225 ac_status=$?
38226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38227 (exit $ac_status); }; } &&
38228 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38230 (eval $ac_try) 2>&5
38231 ac_status=$?
38232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38233 (exit $ac_status); }; }; then
38234 eval "$as_ac_var=yes"
38235else
38236 echo "$as_me: failed program was:" >&5
38237sed 's/^/| /' conftest.$ac_ext >&5
38238
38239eval "$as_ac_var=no"
38240fi
ac1cb8d3
VS
38241rm -f conftest.err conftest.$ac_objext \
38242 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38243fi
38244echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38245echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38246if test `eval echo '${'$as_ac_var'}'` = yes; then
38247 cat >>confdefs.h <<_ACEOF
38248#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38249_ACEOF
38250 cat >>confdefs.h <<\_ACEOF
38251#define HAVE_INET_ATON 1
38252_ACEOF
38253
38254else
38255
38256 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38257echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38258echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
38259if eval "test \"\${$as_ac_Lib+set}\" = set"; then
38260 echo $ECHO_N "(cached) $ECHO_C" >&6
38261else
38262 ac_check_lib_save_LIBS=$LIBS
38263LIBS="-l$INET_LINK $LIBS"
38264cat >conftest.$ac_ext <<_ACEOF
38265/* confdefs.h. */
38266_ACEOF
38267cat confdefs.h >>conftest.$ac_ext
38268cat >>conftest.$ac_ext <<_ACEOF
38269/* end confdefs.h. */
38270
38271/* Override any gcc2 internal prototype to avoid an error. */
38272#ifdef __cplusplus
38273extern "C"
38274#endif
38275/* We use char because int might match the return type of a gcc2
38276 builtin and then its argument prototype would still apply. */
38277char inet_aton ();
38278int
38279main ()
38280{
38281inet_aton ();
38282 ;
38283 return 0;
38284}
38285_ACEOF
38286rm -f conftest.$ac_objext conftest$ac_exeext
38287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38288 (eval $ac_link) 2>conftest.er1
a848cd7e 38289 ac_status=$?
ac1cb8d3
VS
38290 grep -v '^ *+' conftest.er1 >conftest.err
38291 rm -f conftest.er1
38292 cat conftest.err >&5
a848cd7e
SC
38293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38294 (exit $ac_status); } &&
64b75e64 38295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38297 (eval $ac_try) 2>&5
38298 ac_status=$?
38299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38300 (exit $ac_status); }; } &&
38301 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38303 (eval $ac_try) 2>&5
38304 ac_status=$?
38305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38306 (exit $ac_status); }; }; then
38307 eval "$as_ac_Lib=yes"
38308else
38309 echo "$as_me: failed program was:" >&5
38310sed 's/^/| /' conftest.$ac_ext >&5
38311
38312eval "$as_ac_Lib=no"
38313fi
ac1cb8d3
VS
38314rm -f conftest.err conftest.$ac_objext \
38315 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38316LIBS=$ac_check_lib_save_LIBS
38317fi
38318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
38319echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
38320if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38321 cat >>confdefs.h <<\_ACEOF
38322#define HAVE_INET_ATON 1
38323_ACEOF
38324
38325fi
38326
38327
38328fi
38329done
38330
38331
38332if test "x$INET_LINK" != "x"; then
38333 cat >>confdefs.h <<\_ACEOF
38334#define HAVE_INET_ADDR 1
38335_ACEOF
38336
38337 INET_LINK=" -l$INET_LINK"
38338fi
38339
38340fi
38341
38342
38343
38344EXTRALIBS_ESD=
38345echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
38346echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
38347if test "${ac_cv_lib_esd_esd_close+set}" = set; then
38348 echo $ECHO_N "(cached) $ECHO_C" >&6
38349else
38350 ac_check_lib_save_LIBS=$LIBS
38351LIBS="-lesd $LIBS"
38352cat >conftest.$ac_ext <<_ACEOF
38353/* confdefs.h. */
38354_ACEOF
38355cat confdefs.h >>conftest.$ac_ext
38356cat >>conftest.$ac_ext <<_ACEOF
38357/* end confdefs.h. */
38358
38359/* Override any gcc2 internal prototype to avoid an error. */
38360#ifdef __cplusplus
38361extern "C"
38362#endif
38363/* We use char because int might match the return type of a gcc2
38364 builtin and then its argument prototype would still apply. */
38365char esd_close ();
38366int
38367main ()
38368{
38369esd_close ();
38370 ;
38371 return 0;
38372}
38373_ACEOF
38374rm -f conftest.$ac_objext conftest$ac_exeext
38375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38376 (eval $ac_link) 2>conftest.er1
a848cd7e 38377 ac_status=$?
ac1cb8d3
VS
38378 grep -v '^ *+' conftest.er1 >conftest.err
38379 rm -f conftest.er1
38380 cat conftest.err >&5
a848cd7e
SC
38381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38382 (exit $ac_status); } &&
64b75e64 38383 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38385 (eval $ac_try) 2>&5
38386 ac_status=$?
38387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38388 (exit $ac_status); }; } &&
38389 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38391 (eval $ac_try) 2>&5
38392 ac_status=$?
38393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38394 (exit $ac_status); }; }; then
38395 ac_cv_lib_esd_esd_close=yes
38396else
38397 echo "$as_me: failed program was:" >&5
38398sed 's/^/| /' conftest.$ac_ext >&5
38399
38400ac_cv_lib_esd_esd_close=no
38401fi
ac1cb8d3
VS
38402rm -f conftest.err conftest.$ac_objext \
38403 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38404LIBS=$ac_check_lib_save_LIBS
38405fi
38406echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
38407echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
38408if test $ac_cv_lib_esd_esd_close = yes; then
38409
38410
38411for ac_header in esd.h
38412do
38413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38414if eval "test \"\${$as_ac_Header+set}\" = set"; then
38415 echo "$as_me:$LINENO: checking for $ac_header" >&5
38416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38417if eval "test \"\${$as_ac_Header+set}\" = set"; then
38418 echo $ECHO_N "(cached) $ECHO_C" >&6
38419fi
38420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38421echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38422else
38423 # Is the header compilable?
38424echo "$as_me:$LINENO: checking $ac_header usability" >&5
38425echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38426cat >conftest.$ac_ext <<_ACEOF
38427/* confdefs.h. */
38428_ACEOF
38429cat confdefs.h >>conftest.$ac_ext
38430cat >>conftest.$ac_ext <<_ACEOF
38431/* end confdefs.h. */
38432$ac_includes_default
38433#include <$ac_header>
38434_ACEOF
38435rm -f conftest.$ac_objext
38436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38437 (eval $ac_compile) 2>conftest.er1
a848cd7e 38438 ac_status=$?
ac1cb8d3
VS
38439 grep -v '^ *+' conftest.er1 >conftest.err
38440 rm -f conftest.er1
38441 cat conftest.err >&5
a848cd7e
SC
38442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38443 (exit $ac_status); } &&
64b75e64 38444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38446 (eval $ac_try) 2>&5
38447 ac_status=$?
38448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38449 (exit $ac_status); }; } &&
38450 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38452 (eval $ac_try) 2>&5
38453 ac_status=$?
38454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38455 (exit $ac_status); }; }; then
38456 ac_header_compiler=yes
38457else
38458 echo "$as_me: failed program was:" >&5
38459sed 's/^/| /' conftest.$ac_ext >&5
38460
38461ac_header_compiler=no
38462fi
ac1cb8d3 38463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38464echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38465echo "${ECHO_T}$ac_header_compiler" >&6
38466
38467# Is the header present?
38468echo "$as_me:$LINENO: checking $ac_header presence" >&5
38469echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38470cat >conftest.$ac_ext <<_ACEOF
38471/* confdefs.h. */
38472_ACEOF
38473cat confdefs.h >>conftest.$ac_ext
38474cat >>conftest.$ac_ext <<_ACEOF
38475/* end confdefs.h. */
38476#include <$ac_header>
38477_ACEOF
38478if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38480 ac_status=$?
38481 grep -v '^ *+' conftest.er1 >conftest.err
38482 rm -f conftest.er1
38483 cat conftest.err >&5
38484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38485 (exit $ac_status); } >/dev/null; then
38486 if test -s conftest.err; then
5d7b7554
VZ
38487 ac_cpp_err=$ac_cxx_preproc_warn_flag
38488 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
38489 else
38490 ac_cpp_err=
38491 fi
38492else
38493 ac_cpp_err=yes
38494fi
38495if test -z "$ac_cpp_err"; then
38496 ac_header_preproc=yes
38497else
38498 echo "$as_me: failed program was:" >&5
38499sed 's/^/| /' conftest.$ac_ext >&5
38500
38501 ac_header_preproc=no
38502fi
38503rm -f conftest.err conftest.$ac_ext
38504echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38505echo "${ECHO_T}$ac_header_preproc" >&6
38506
38507# So? What about this header?
5d7b7554 38508case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 38509 yes:no: )
a848cd7e
SC
38510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38511echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38513echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38514 ac_header_preproc=yes
a848cd7e 38515 ;;
ac1cb8d3 38516 no:yes:* )
a848cd7e
SC
38517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38518echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38520echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38522echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38524echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38526echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38528echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38529 (
38530 cat <<\_ASBOX
ac1cb8d3
VS
38531## ----------------------------------------- ##
38532## Report this to wx-dev@lists.wxwidgets.org ##
38533## ----------------------------------------- ##
a848cd7e
SC
38534_ASBOX
38535 ) |
38536 sed "s/^/$as_me: WARNING: /" >&2
38537 ;;
38538esac
38539echo "$as_me:$LINENO: checking for $ac_header" >&5
38540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38541if eval "test \"\${$as_ac_Header+set}\" = set"; then
38542 echo $ECHO_N "(cached) $ECHO_C" >&6
38543else
ac1cb8d3 38544 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38545fi
38546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38547echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38548
38549fi
38550if test `eval echo '${'$as_ac_Header'}'` = yes; then
38551 cat >>confdefs.h <<_ACEOF
38552#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38553_ACEOF
38554
38555 EXTRALIBS_ESD="-lesd"
38556
38557fi
38558
38559done
38560
38561
38562fi
38563
38564
38565
38566echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
38567echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
38568cat >conftest.$ac_ext <<_ACEOF
38569/* confdefs.h. */
38570_ACEOF
38571cat confdefs.h >>conftest.$ac_ext
38572cat >>conftest.$ac_ext <<_ACEOF
38573/* end confdefs.h. */
38574#ifdef __linux__
38575 #include <linux/cdrom.h>
38576 #else
38577 /* For Solaris */
38578 #include <sys/cdio.h>
38579 #endif
38580
38581int
38582main ()
38583{
38584struct cdrom_tocentry entry, old_entry;
38585 ;
38586 return 0;
38587}
38588_ACEOF
38589rm -f conftest.$ac_objext
38590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38591 (eval $ac_compile) 2>conftest.er1
a848cd7e 38592 ac_status=$?
ac1cb8d3
VS
38593 grep -v '^ *+' conftest.er1 >conftest.err
38594 rm -f conftest.er1
38595 cat conftest.err >&5
a848cd7e
SC
38596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38597 (exit $ac_status); } &&
64b75e64 38598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38600 (eval $ac_try) 2>&5
38601 ac_status=$?
38602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38603 (exit $ac_status); }; } &&
38604 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38606 (eval $ac_try) 2>&5
38607 ac_status=$?
38608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38609 (exit $ac_status); }; }; then
38610 echo "$as_me:$LINENO: result: yes" >&5
38611echo "${ECHO_T}yes" >&6
38612 cat >>confdefs.h <<\_ACEOF
38613#define HAVE_KNOWN_CDROM_INTERFACE 1
38614_ACEOF
38615
38616else
38617 echo "$as_me: failed program was:" >&5
38618sed 's/^/| /' conftest.$ac_ext >&5
38619
38620echo "$as_me:$LINENO: result: no" >&5
38621echo "${ECHO_T}no" >&6
38622fi
ac1cb8d3 38623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38624
38625
38626cat >confcache <<\_ACEOF
38627# This file is a shell script that caches the results of configure
38628# tests run on this system so they can be shared between configure
38629# scripts and configure runs, see configure's option --config-cache.
38630# It is not useful on other systems. If it contains results you don't
38631# want to keep, you may remove or edit it.
38632#
38633# config.status only pays attention to the cache file if you give it
38634# the --recheck option to rerun configure.
38635#
38636# `ac_cv_env_foo' variables (set or unset) will be overridden when
38637# loading this file, other *unset* `ac_cv_foo' will be assigned the
38638# following values.
38639
38640_ACEOF
38641
38642# The following way of writing the cache mishandles newlines in values,
38643# but we know of no workaround that is simple, portable, and efficient.
38644# So, don't put newlines in cache variables' values.
38645# Ultrix sh set writes to stderr and can't be redirected directly,
38646# and sets the high bit in the cache file unless we assign to the vars.
38647{
38648 (set) 2>&1 |
38649 case `(ac_space=' '; set | grep ac_space) 2>&1` in
38650 *ac_space=\ *)
38651 # `set' does not quote correctly, so add quotes (double-quote
38652 # substitution turns \\\\ into \\, and sed turns \\ into \).
38653 sed -n \
ac1cb8d3
VS
38654 "s/'/'\\\\''/g;
38655 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
38656 ;;
38657 *)
38658 # `set' quotes correctly as required by POSIX, so do not add quotes.
38659 sed -n \
ac1cb8d3 38660 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
38661 ;;
38662 esac;
38663} |
38664 sed '
38665 t clear
38666 : clear
38667 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38668 t end
38669 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38670 : end' >>confcache
38671if diff $cache_file confcache >/dev/null 2>&1; then :; else
38672 if test -w $cache_file; then
38673 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
38674 cat confcache >$cache_file
38675 else
38676 echo "not updating unwritable cache $cache_file"
38677 fi
38678fi
38679rm -f confcache
38680
38681
a848cd7e
SC
38682if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38683
38684
38685 THREADS_LINK=
e56f4f9e 38686 THREADS_CXXFLAGS=
a848cd7e
SC
38687
38688 if test "$wxUSE_THREADS" = "yes" ; then
38689 if test "$USE_BEOS" = 1; then
38690 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38691echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38692 wxUSE_THREADS="no"
38693 fi
38694 fi
38695
38696 if test "$wxUSE_THREADS" = "yes" ; then
38697
38698
38699 THREAD_OPTS="-pthread"
38700 case "${host}" in
38701 *-*-solaris2* | *-*-sunos4* )
38702 if test "x$GCC" = "xyes"; then
38703 THREAD_OPTS="-pthreads $THREAD_OPTS"
38704 else
38705 THREAD_OPTS="-mt $THREAD_OPTS"
38706 fi
38707 ;;
38708 *-*-freebsd*)
38709 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38710 ;;
38711 *-*-darwin* | *-*-cygwin* )
38712 THREAD_OPTS=""
38713 ;;
38714 *-*-aix*)
38715 THREAD_OPTS="pthreads"
38716 ;;
38717 *-hp-hpux* )
00421666
MW
38718 if test "x$GCC" = "xyes"; then
38719 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38720 THREAD_OPTS=""
38721 else
0093c2fc 38722 THREAD_OPTS="-mt"
a848cd7e
SC
38723 fi
38724 ;;
38725
38726 *-*-irix* )
38727 if test "x$GCC" = "xyes"; then
38728 THREAD_OPTS=""
38729 fi
38730 ;;
38731
38732 *-*-*UnixWare*)
38733 if test "x$GCC" != "xyes"; then
38734 THREAD_OPTS="-Ethread"
38735 fi
38736 ;;
38737 esac
38738
38739 THREAD_OPTS="$THREAD_OPTS pthread none"
38740
38741 THREADS_OK=no
38742 for flag in $THREAD_OPTS; do
38743 case $flag in
38744 none)
38745 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38746echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
38747 ;;
38748
38749 -*)
38750 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38751echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 38752 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
38753 ;;
38754
38755 *)
38756 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38757echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
38758 THREADS_LINK="-l$flag"
38759 ;;
38760 esac
38761
38762 save_LIBS="$LIBS"
e56f4f9e 38763 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 38764 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 38765 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
38766
38767 cat >conftest.$ac_ext <<_ACEOF
38768/* confdefs.h. */
38769_ACEOF
38770cat confdefs.h >>conftest.$ac_ext
38771cat >>conftest.$ac_ext <<_ACEOF
38772/* end confdefs.h. */
38773#include <pthread.h>
38774int
38775main ()
38776{
38777pthread_create(0,0,0,0);
38778 ;
38779 return 0;
38780}
38781_ACEOF
38782rm -f conftest.$ac_objext conftest$ac_exeext
38783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38784 (eval $ac_link) 2>conftest.er1
a848cd7e 38785 ac_status=$?
ac1cb8d3
VS
38786 grep -v '^ *+' conftest.er1 >conftest.err
38787 rm -f conftest.er1
38788 cat conftest.err >&5
a848cd7e
SC
38789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38790 (exit $ac_status); } &&
64b75e64 38791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38793 (eval $ac_try) 2>&5
38794 ac_status=$?
38795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38796 (exit $ac_status); }; } &&
38797 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38799 (eval $ac_try) 2>&5
38800 ac_status=$?
38801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38802 (exit $ac_status); }; }; then
38803 THREADS_OK=yes
38804else
38805 echo "$as_me: failed program was:" >&5
38806sed 's/^/| /' conftest.$ac_ext >&5
38807
38808fi
ac1cb8d3
VS
38809rm -f conftest.err conftest.$ac_objext \
38810 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38811
38812 LIBS="$save_LIBS"
e56f4f9e 38813 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
38814
38815 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38816echo "${ECHO_T}$THREADS_OK" >&6
38817 if test "x$THREADS_OK" = "xyes"; then
38818 break;
38819 fi
38820
38821 THREADS_LINK=""
e56f4f9e 38822 THREADS_CXXFLAGS=""
a848cd7e
SC
38823 done
38824
38825 if test "x$THREADS_OK" != "xyes"; then
38826 wxUSE_THREADS=no
38827 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
38828echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
38829 else
e56f4f9e 38830 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
38831 LIBS="$THREADS_LINK $LIBS"
38832
38833 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
38834echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
38835 flag=no
38836 case "${host}" in
38837 *-aix*)
38838 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
38839 flag="-D_THREAD_SAFE"
38840 ;;
38841 *-freebsd*)
38842 flag="-D_THREAD_SAFE"
38843 ;;
38844 *-hp-hpux* )
38845 flag="-D_REENTRANT"
38846 if test "x$GCC" != "xyes"; then
38847 flag="$flag -D_RWSTD_MULTI_THREAD"
38848 fi
38849 ;;
38850 *solaris* | alpha*-osf*)
38851 flag="-D_REENTRANT"
38852 ;;
38853 esac
38854 echo "$as_me:$LINENO: result: ${flag}" >&5
38855echo "${ECHO_T}${flag}" >&6
38856 if test "x$flag" != xno; then
e56f4f9e 38857 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
38858 fi
38859
e56f4f9e 38860 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
38861 fi
38862 fi
38863
38864 if test "$wxUSE_THREADS" = "yes" ; then
38865
38866for ac_func in thr_setconcurrency
38867do
38868as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38869echo "$as_me:$LINENO: checking for $ac_func" >&5
38870echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38871if eval "test \"\${$as_ac_var+set}\" = set"; then
38872 echo $ECHO_N "(cached) $ECHO_C" >&6
38873else
38874 cat >conftest.$ac_ext <<_ACEOF
38875/* confdefs.h. */
38876_ACEOF
38877cat confdefs.h >>conftest.$ac_ext
38878cat >>conftest.$ac_ext <<_ACEOF
38879/* end confdefs.h. */
ac1cb8d3
VS
38880/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38882#define $ac_func innocuous_$ac_func
38883
a848cd7e
SC
38884/* System header to define __stub macros and hopefully few prototypes,
38885 which can conflict with char $ac_func (); below.
38886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38887 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38888
a848cd7e
SC
38889#ifdef __STDC__
38890# include <limits.h>
38891#else
38892# include <assert.h>
38893#endif
ac1cb8d3
VS
38894
38895#undef $ac_func
38896
a848cd7e
SC
38897/* Override any gcc2 internal prototype to avoid an error. */
38898#ifdef __cplusplus
38899extern "C"
38900{
38901#endif
38902/* We use char because int might match the return type of a gcc2
38903 builtin and then its argument prototype would still apply. */
38904char $ac_func ();
38905/* The GNU C library defines this for functions which it implements
38906 to always fail with ENOSYS. Some functions are actually named
38907 something starting with __ and the normal name is an alias. */
38908#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38909choke me
38910#else
38911char (*f) () = $ac_func;
38912#endif
38913#ifdef __cplusplus
38914}
38915#endif
38916
38917int
38918main ()
38919{
38920return f != $ac_func;
38921 ;
38922 return 0;
38923}
38924_ACEOF
38925rm -f conftest.$ac_objext conftest$ac_exeext
38926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38927 (eval $ac_link) 2>conftest.er1
a848cd7e 38928 ac_status=$?
ac1cb8d3
VS
38929 grep -v '^ *+' conftest.er1 >conftest.err
38930 rm -f conftest.er1
38931 cat conftest.err >&5
a848cd7e
SC
38932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38933 (exit $ac_status); } &&
64b75e64 38934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38936 (eval $ac_try) 2>&5
38937 ac_status=$?
38938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38939 (exit $ac_status); }; } &&
38940 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38942 (eval $ac_try) 2>&5
38943 ac_status=$?
38944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38945 (exit $ac_status); }; }; then
38946 eval "$as_ac_var=yes"
38947else
38948 echo "$as_me: failed program was:" >&5
38949sed 's/^/| /' conftest.$ac_ext >&5
38950
38951eval "$as_ac_var=no"
38952fi
ac1cb8d3
VS
38953rm -f conftest.err conftest.$ac_objext \
38954 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38955fi
38956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38957echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38958if test `eval echo '${'$as_ac_var'}'` = yes; then
38959 cat >>confdefs.h <<_ACEOF
38960#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38961_ACEOF
38962
38963fi
38964done
38965
38966
6ebeb4c7
VZ
38967 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
38968echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
38969if test "${wx_cv_func_pthread_cleanup+set}" = set; then
38970 echo $ECHO_N "(cached) $ECHO_C" >&6
38971else
38972
38973 cat >conftest.$ac_ext <<_ACEOF
38974/* confdefs.h. */
38975_ACEOF
38976cat confdefs.h >>conftest.$ac_ext
38977cat >>conftest.$ac_ext <<_ACEOF
38978/* end confdefs.h. */
38979#include <pthread.h>
38980 void ThreadCleanupFunc(void *p);
38981
38982int
38983main ()
38984{
38985
38986 void *p;
38987 pthread_cleanup_push(ThreadCleanupFunc, p);
38988 pthread_cleanup_pop(0);
38989
38990 ;
38991 return 0;
38992}
38993_ACEOF
38994rm -f conftest.$ac_objext
38995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38996 (eval $ac_compile) 2>conftest.er1
38997 ac_status=$?
38998 grep -v '^ *+' conftest.er1 >conftest.err
38999 rm -f conftest.er1
39000 cat conftest.err >&5
39001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39002 (exit $ac_status); } &&
64b75e64 39003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
39004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39005 (eval $ac_try) 2>&5
39006 ac_status=$?
39007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39008 (exit $ac_status); }; } &&
39009 { ac_try='test -s conftest.$ac_objext'
39010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39011 (eval $ac_try) 2>&5
39012 ac_status=$?
39013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39014 (exit $ac_status); }; }; then
39015
39016 wx_cv_func_pthread_cleanup=yes
39017
39018else
39019 echo "$as_me: failed program was:" >&5
39020sed 's/^/| /' conftest.$ac_ext >&5
39021
39022
39023 wx_cv_func_pthread_cleanup=no
39024
39025
39026fi
39027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39028
39029fi
39030echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39031echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
39032 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39033 cat >>confdefs.h <<\_ACEOF
39034#define wxHAVE_PTHREAD_CLEANUP 1
39035_ACEOF
39036
39037 fi
39038
a848cd7e
SC
39039
39040for ac_header in sched.h
39041do
39042as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39043if eval "test \"\${$as_ac_Header+set}\" = set"; then
39044 echo "$as_me:$LINENO: checking for $ac_header" >&5
39045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39046if eval "test \"\${$as_ac_Header+set}\" = set"; then
39047 echo $ECHO_N "(cached) $ECHO_C" >&6
39048fi
39049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39050echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39051else
39052 # Is the header compilable?
39053echo "$as_me:$LINENO: checking $ac_header usability" >&5
39054echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39055cat >conftest.$ac_ext <<_ACEOF
39056/* confdefs.h. */
39057_ACEOF
39058cat confdefs.h >>conftest.$ac_ext
39059cat >>conftest.$ac_ext <<_ACEOF
39060/* end confdefs.h. */
39061$ac_includes_default
39062#include <$ac_header>
39063_ACEOF
39064rm -f conftest.$ac_objext
39065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39066 (eval $ac_compile) 2>conftest.er1
a848cd7e 39067 ac_status=$?
ac1cb8d3
VS
39068 grep -v '^ *+' conftest.er1 >conftest.err
39069 rm -f conftest.er1
39070 cat conftest.err >&5
a848cd7e
SC
39071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39072 (exit $ac_status); } &&
64b75e64 39073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39075 (eval $ac_try) 2>&5
39076 ac_status=$?
39077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39078 (exit $ac_status); }; } &&
39079 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39081 (eval $ac_try) 2>&5
39082 ac_status=$?
39083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39084 (exit $ac_status); }; }; then
39085 ac_header_compiler=yes
39086else
39087 echo "$as_me: failed program was:" >&5
39088sed 's/^/| /' conftest.$ac_ext >&5
39089
39090ac_header_compiler=no
39091fi
ac1cb8d3 39092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39093echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39094echo "${ECHO_T}$ac_header_compiler" >&6
39095
39096# Is the header present?
39097echo "$as_me:$LINENO: checking $ac_header presence" >&5
39098echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39099cat >conftest.$ac_ext <<_ACEOF
39100/* confdefs.h. */
39101_ACEOF
39102cat confdefs.h >>conftest.$ac_ext
39103cat >>conftest.$ac_ext <<_ACEOF
39104/* end confdefs.h. */
39105#include <$ac_header>
39106_ACEOF
39107if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39109 ac_status=$?
39110 grep -v '^ *+' conftest.er1 >conftest.err
39111 rm -f conftest.er1
39112 cat conftest.err >&5
39113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39114 (exit $ac_status); } >/dev/null; then
39115 if test -s conftest.err; then
5d7b7554
VZ
39116 ac_cpp_err=$ac_cxx_preproc_warn_flag
39117 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
39118 else
39119 ac_cpp_err=
39120 fi
39121else
39122 ac_cpp_err=yes
39123fi
39124if test -z "$ac_cpp_err"; then
39125 ac_header_preproc=yes
39126else
39127 echo "$as_me: failed program was:" >&5
39128sed 's/^/| /' conftest.$ac_ext >&5
39129
39130 ac_header_preproc=no
39131fi
39132rm -f conftest.err conftest.$ac_ext
39133echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39134echo "${ECHO_T}$ac_header_preproc" >&6
39135
39136# So? What about this header?
5d7b7554 39137case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 39138 yes:no: )
a848cd7e
SC
39139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39140echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39142echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39143 ac_header_preproc=yes
a848cd7e 39144 ;;
ac1cb8d3 39145 no:yes:* )
a848cd7e
SC
39146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39147echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39149echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39151echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39153echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39155echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39157echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39158 (
39159 cat <<\_ASBOX
ac1cb8d3
VS
39160## ----------------------------------------- ##
39161## Report this to wx-dev@lists.wxwidgets.org ##
39162## ----------------------------------------- ##
a848cd7e
SC
39163_ASBOX
39164 ) |
39165 sed "s/^/$as_me: WARNING: /" >&2
39166 ;;
39167esac
39168echo "$as_me:$LINENO: checking for $ac_header" >&5
39169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39170if eval "test \"\${$as_ac_Header+set}\" = set"; then
39171 echo $ECHO_N "(cached) $ECHO_C" >&6
39172else
ac1cb8d3 39173 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39174fi
39175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39176echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39177
39178fi
39179if test `eval echo '${'$as_ac_Header'}'` = yes; then
39180 cat >>confdefs.h <<_ACEOF
39181#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39182_ACEOF
39183
39184fi
39185
39186done
39187
39188 if test "$ac_cv_header_sched_h" = "yes"; then
39189 echo "$as_me:$LINENO: checking for sched_yield" >&5
39190echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
39191if test "${ac_cv_func_sched_yield+set}" = set; then
39192 echo $ECHO_N "(cached) $ECHO_C" >&6
39193else
39194 cat >conftest.$ac_ext <<_ACEOF
39195/* confdefs.h. */
39196_ACEOF
39197cat confdefs.h >>conftest.$ac_ext
39198cat >>conftest.$ac_ext <<_ACEOF
39199/* end confdefs.h. */
ac1cb8d3
VS
39200/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39202#define sched_yield innocuous_sched_yield
39203
a848cd7e
SC
39204/* System header to define __stub macros and hopefully few prototypes,
39205 which can conflict with char sched_yield (); below.
39206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39207 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39208
a848cd7e
SC
39209#ifdef __STDC__
39210# include <limits.h>
39211#else
39212# include <assert.h>
39213#endif
ac1cb8d3
VS
39214
39215#undef sched_yield
39216
a848cd7e
SC
39217/* Override any gcc2 internal prototype to avoid an error. */
39218#ifdef __cplusplus
39219extern "C"
39220{
39221#endif
39222/* We use char because int might match the return type of a gcc2
39223 builtin and then its argument prototype would still apply. */
39224char sched_yield ();
39225/* The GNU C library defines this for functions which it implements
39226 to always fail with ENOSYS. Some functions are actually named
39227 something starting with __ and the normal name is an alias. */
39228#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
39229choke me
39230#else
39231char (*f) () = sched_yield;
39232#endif
39233#ifdef __cplusplus
39234}
39235#endif
39236
39237int
39238main ()
39239{
39240return f != sched_yield;
39241 ;
39242 return 0;
39243}
39244_ACEOF
39245rm -f conftest.$ac_objext conftest$ac_exeext
39246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39247 (eval $ac_link) 2>conftest.er1
a848cd7e 39248 ac_status=$?
ac1cb8d3
VS
39249 grep -v '^ *+' conftest.er1 >conftest.err
39250 rm -f conftest.er1
39251 cat conftest.err >&5
a848cd7e
SC
39252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39253 (exit $ac_status); } &&
64b75e64 39254 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39256 (eval $ac_try) 2>&5
39257 ac_status=$?
39258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39259 (exit $ac_status); }; } &&
39260 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39262 (eval $ac_try) 2>&5
39263 ac_status=$?
39264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39265 (exit $ac_status); }; }; then
39266 ac_cv_func_sched_yield=yes
39267else
39268 echo "$as_me: failed program was:" >&5
39269sed 's/^/| /' conftest.$ac_ext >&5
39270
39271ac_cv_func_sched_yield=no
39272fi
ac1cb8d3
VS
39273rm -f conftest.err conftest.$ac_objext \
39274 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39275fi
39276echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39277echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
39278if test $ac_cv_func_sched_yield = yes; then
39279 cat >>confdefs.h <<\_ACEOF
39280#define HAVE_SCHED_YIELD 1
39281_ACEOF
39282
39283else
39284
39285 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39286echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
39287if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39288 echo $ECHO_N "(cached) $ECHO_C" >&6
39289else
39290 ac_check_lib_save_LIBS=$LIBS
39291LIBS="-lposix4 $LIBS"
39292cat >conftest.$ac_ext <<_ACEOF
39293/* confdefs.h. */
39294_ACEOF
39295cat confdefs.h >>conftest.$ac_ext
39296cat >>conftest.$ac_ext <<_ACEOF
39297/* end confdefs.h. */
39298
39299/* Override any gcc2 internal prototype to avoid an error. */
39300#ifdef __cplusplus
39301extern "C"
39302#endif
39303/* We use char because int might match the return type of a gcc2
39304 builtin and then its argument prototype would still apply. */
39305char sched_yield ();
39306int
39307main ()
39308{
39309sched_yield ();
39310 ;
39311 return 0;
39312}
39313_ACEOF
39314rm -f conftest.$ac_objext conftest$ac_exeext
39315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39316 (eval $ac_link) 2>conftest.er1
a848cd7e 39317 ac_status=$?
ac1cb8d3
VS
39318 grep -v '^ *+' conftest.er1 >conftest.err
39319 rm -f conftest.er1
39320 cat conftest.err >&5
a848cd7e
SC
39321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39322 (exit $ac_status); } &&
64b75e64 39323 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39325 (eval $ac_try) 2>&5
39326 ac_status=$?
39327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39328 (exit $ac_status); }; } &&
39329 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39331 (eval $ac_try) 2>&5
39332 ac_status=$?
39333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39334 (exit $ac_status); }; }; then
39335 ac_cv_lib_posix4_sched_yield=yes
39336else
39337 echo "$as_me: failed program was:" >&5
39338sed 's/^/| /' conftest.$ac_ext >&5
39339
39340ac_cv_lib_posix4_sched_yield=no
39341fi
ac1cb8d3
VS
39342rm -f conftest.err conftest.$ac_objext \
39343 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39344LIBS=$ac_check_lib_save_LIBS
39345fi
39346echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39347echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
39348if test $ac_cv_lib_posix4_sched_yield = yes; then
39349 cat >>confdefs.h <<\_ACEOF
39350#define HAVE_SCHED_YIELD 1
39351_ACEOF
39352 POSIX4_LINK=" -lposix4"
39353else
39354 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39355echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39356
39357fi
39358
39359
39360
39361fi
39362
39363 fi
39364
39365 HAVE_PRIOR_FUNCS=0
39366 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39367echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
39368if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39369 echo $ECHO_N "(cached) $ECHO_C" >&6
39370else
39371 cat >conftest.$ac_ext <<_ACEOF
39372/* confdefs.h. */
39373_ACEOF
39374cat confdefs.h >>conftest.$ac_ext
39375cat >>conftest.$ac_ext <<_ACEOF
39376/* end confdefs.h. */
ac1cb8d3
VS
39377/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39379#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39380
a848cd7e
SC
39381/* System header to define __stub macros and hopefully few prototypes,
39382 which can conflict with char pthread_attr_getschedpolicy (); below.
39383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39384 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39385
a848cd7e
SC
39386#ifdef __STDC__
39387# include <limits.h>
39388#else
39389# include <assert.h>
39390#endif
ac1cb8d3
VS
39391
39392#undef pthread_attr_getschedpolicy
39393
a848cd7e
SC
39394/* Override any gcc2 internal prototype to avoid an error. */
39395#ifdef __cplusplus
39396extern "C"
39397{
39398#endif
39399/* We use char because int might match the return type of a gcc2
39400 builtin and then its argument prototype would still apply. */
39401char pthread_attr_getschedpolicy ();
39402/* The GNU C library defines this for functions which it implements
39403 to always fail with ENOSYS. Some functions are actually named
39404 something starting with __ and the normal name is an alias. */
39405#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
39406choke me
39407#else
39408char (*f) () = pthread_attr_getschedpolicy;
39409#endif
39410#ifdef __cplusplus
39411}
39412#endif
39413
39414int
39415main ()
39416{
39417return f != pthread_attr_getschedpolicy;
39418 ;
39419 return 0;
39420}
39421_ACEOF
39422rm -f conftest.$ac_objext conftest$ac_exeext
39423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39424 (eval $ac_link) 2>conftest.er1
a848cd7e 39425 ac_status=$?
ac1cb8d3
VS
39426 grep -v '^ *+' conftest.er1 >conftest.err
39427 rm -f conftest.er1
39428 cat conftest.err >&5
a848cd7e
SC
39429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39430 (exit $ac_status); } &&
64b75e64 39431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39433 (eval $ac_try) 2>&5
39434 ac_status=$?
39435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39436 (exit $ac_status); }; } &&
39437 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39439 (eval $ac_try) 2>&5
39440 ac_status=$?
39441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39442 (exit $ac_status); }; }; then
39443 ac_cv_func_pthread_attr_getschedpolicy=yes
39444else
39445 echo "$as_me: failed program was:" >&5
39446sed 's/^/| /' conftest.$ac_ext >&5
39447
39448ac_cv_func_pthread_attr_getschedpolicy=no
39449fi
ac1cb8d3
VS
39450rm -f conftest.err conftest.$ac_objext \
39451 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39452fi
39453echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39454echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
39455if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39456 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39457echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
39458if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39459 echo $ECHO_N "(cached) $ECHO_C" >&6
39460else
39461 cat >conftest.$ac_ext <<_ACEOF
39462/* confdefs.h. */
39463_ACEOF
39464cat confdefs.h >>conftest.$ac_ext
39465cat >>conftest.$ac_ext <<_ACEOF
39466/* end confdefs.h. */
ac1cb8d3
VS
39467/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39469#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39470
a848cd7e
SC
39471/* System header to define __stub macros and hopefully few prototypes,
39472 which can conflict with char pthread_attr_setschedparam (); below.
39473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39474 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39475
a848cd7e
SC
39476#ifdef __STDC__
39477# include <limits.h>
39478#else
39479# include <assert.h>
39480#endif
ac1cb8d3
VS
39481
39482#undef pthread_attr_setschedparam
39483
a848cd7e
SC
39484/* Override any gcc2 internal prototype to avoid an error. */
39485#ifdef __cplusplus
39486extern "C"
39487{
39488#endif
39489/* We use char because int might match the return type of a gcc2
39490 builtin and then its argument prototype would still apply. */
39491char pthread_attr_setschedparam ();
39492/* The GNU C library defines this for functions which it implements
39493 to always fail with ENOSYS. Some functions are actually named
39494 something starting with __ and the normal name is an alias. */
39495#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
39496choke me
39497#else
39498char (*f) () = pthread_attr_setschedparam;
39499#endif
39500#ifdef __cplusplus
39501}
39502#endif
39503
39504int
39505main ()
39506{
39507return f != pthread_attr_setschedparam;
39508 ;
39509 return 0;
39510}
39511_ACEOF
39512rm -f conftest.$ac_objext conftest$ac_exeext
39513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39514 (eval $ac_link) 2>conftest.er1
a848cd7e 39515 ac_status=$?
ac1cb8d3
VS
39516 grep -v '^ *+' conftest.er1 >conftest.err
39517 rm -f conftest.er1
39518 cat conftest.err >&5
a848cd7e
SC
39519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39520 (exit $ac_status); } &&
64b75e64 39521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39523 (eval $ac_try) 2>&5
39524 ac_status=$?
39525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39526 (exit $ac_status); }; } &&
39527 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39529 (eval $ac_try) 2>&5
39530 ac_status=$?
39531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39532 (exit $ac_status); }; }; then
39533 ac_cv_func_pthread_attr_setschedparam=yes
39534else
39535 echo "$as_me: failed program was:" >&5
39536sed 's/^/| /' conftest.$ac_ext >&5
39537
39538ac_cv_func_pthread_attr_setschedparam=no
39539fi
ac1cb8d3
VS
39540rm -f conftest.err conftest.$ac_objext \
39541 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39542fi
39543echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39544echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
39545if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39546 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39547echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
39548if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39549 echo $ECHO_N "(cached) $ECHO_C" >&6
39550else
39551 cat >conftest.$ac_ext <<_ACEOF
39552/* confdefs.h. */
39553_ACEOF
39554cat confdefs.h >>conftest.$ac_ext
39555cat >>conftest.$ac_ext <<_ACEOF
39556/* end confdefs.h. */
ac1cb8d3
VS
39557/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39559#define sched_get_priority_max innocuous_sched_get_priority_max
39560
a848cd7e
SC
39561/* System header to define __stub macros and hopefully few prototypes,
39562 which can conflict with char sched_get_priority_max (); below.
39563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39564 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39565
a848cd7e
SC
39566#ifdef __STDC__
39567# include <limits.h>
39568#else
39569# include <assert.h>
39570#endif
ac1cb8d3
VS
39571
39572#undef sched_get_priority_max
39573
a848cd7e
SC
39574/* Override any gcc2 internal prototype to avoid an error. */
39575#ifdef __cplusplus
39576extern "C"
39577{
39578#endif
39579/* We use char because int might match the return type of a gcc2
39580 builtin and then its argument prototype would still apply. */
39581char sched_get_priority_max ();
39582/* The GNU C library defines this for functions which it implements
39583 to always fail with ENOSYS. Some functions are actually named
39584 something starting with __ and the normal name is an alias. */
39585#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
39586choke me
39587#else
39588char (*f) () = sched_get_priority_max;
39589#endif
39590#ifdef __cplusplus
39591}
39592#endif
39593
39594int
39595main ()
39596{
39597return f != sched_get_priority_max;
39598 ;
39599 return 0;
39600}
39601_ACEOF
39602rm -f conftest.$ac_objext conftest$ac_exeext
39603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39604 (eval $ac_link) 2>conftest.er1
a848cd7e 39605 ac_status=$?
ac1cb8d3
VS
39606 grep -v '^ *+' conftest.er1 >conftest.err
39607 rm -f conftest.er1
39608 cat conftest.err >&5
a848cd7e
SC
39609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39610 (exit $ac_status); } &&
64b75e64 39611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39613 (eval $ac_try) 2>&5
39614 ac_status=$?
39615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39616 (exit $ac_status); }; } &&
39617 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39619 (eval $ac_try) 2>&5
39620 ac_status=$?
39621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39622 (exit $ac_status); }; }; then
39623 ac_cv_func_sched_get_priority_max=yes
39624else
39625 echo "$as_me: failed program was:" >&5
39626sed 's/^/| /' conftest.$ac_ext >&5
39627
39628ac_cv_func_sched_get_priority_max=no
39629fi
ac1cb8d3
VS
39630rm -f conftest.err conftest.$ac_objext \
39631 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39632fi
39633echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39634echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
39635if test $ac_cv_func_sched_get_priority_max = yes; then
39636 HAVE_PRIOR_FUNCS=1
39637else
39638 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39639echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
39640if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39641 echo $ECHO_N "(cached) $ECHO_C" >&6
39642else
39643 ac_check_lib_save_LIBS=$LIBS
39644LIBS="-lposix4 $LIBS"
39645cat >conftest.$ac_ext <<_ACEOF
39646/* confdefs.h. */
39647_ACEOF
39648cat confdefs.h >>conftest.$ac_ext
39649cat >>conftest.$ac_ext <<_ACEOF
39650/* end confdefs.h. */
39651
39652/* Override any gcc2 internal prototype to avoid an error. */
39653#ifdef __cplusplus
39654extern "C"
39655#endif
39656/* We use char because int might match the return type of a gcc2
39657 builtin and then its argument prototype would still apply. */
39658char sched_get_priority_max ();
39659int
39660main ()
39661{
39662sched_get_priority_max ();
39663 ;
39664 return 0;
39665}
39666_ACEOF
39667rm -f conftest.$ac_objext conftest$ac_exeext
39668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39669 (eval $ac_link) 2>conftest.er1
a848cd7e 39670 ac_status=$?
ac1cb8d3
VS
39671 grep -v '^ *+' conftest.er1 >conftest.err
39672 rm -f conftest.er1
39673 cat conftest.err >&5
a848cd7e
SC
39674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39675 (exit $ac_status); } &&
64b75e64 39676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39678 (eval $ac_try) 2>&5
39679 ac_status=$?
39680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39681 (exit $ac_status); }; } &&
39682 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39684 (eval $ac_try) 2>&5
39685 ac_status=$?
39686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39687 (exit $ac_status); }; }; then
39688 ac_cv_lib_posix4_sched_get_priority_max=yes
39689else
39690 echo "$as_me: failed program was:" >&5
39691sed 's/^/| /' conftest.$ac_ext >&5
39692
39693ac_cv_lib_posix4_sched_get_priority_max=no
39694fi
ac1cb8d3
VS
39695rm -f conftest.err conftest.$ac_objext \
39696 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39697LIBS=$ac_check_lib_save_LIBS
39698fi
39699echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39700echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
39701if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39702
39703 HAVE_PRIOR_FUNCS=1
39704 POSIX4_LINK=" -lposix4"
39705
39706fi
39707
39708
39709fi
39710
39711
39712fi
39713
39714
39715fi
39716
39717
39718 if test "$HAVE_PRIOR_FUNCS" = 1; then
39719 cat >>confdefs.h <<\_ACEOF
39720#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39721_ACEOF
39722
39723 else
39724 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39725echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39726 fi
39727
39728 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39729echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
39730if test "${ac_cv_func_pthread_cancel+set}" = set; then
39731 echo $ECHO_N "(cached) $ECHO_C" >&6
39732else
39733 cat >conftest.$ac_ext <<_ACEOF
39734/* confdefs.h. */
39735_ACEOF
39736cat confdefs.h >>conftest.$ac_ext
39737cat >>conftest.$ac_ext <<_ACEOF
39738/* end confdefs.h. */
ac1cb8d3
VS
39739/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39741#define pthread_cancel innocuous_pthread_cancel
39742
a848cd7e
SC
39743/* System header to define __stub macros and hopefully few prototypes,
39744 which can conflict with char pthread_cancel (); below.
39745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39746 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39747
a848cd7e
SC
39748#ifdef __STDC__
39749# include <limits.h>
39750#else
39751# include <assert.h>
39752#endif
ac1cb8d3
VS
39753
39754#undef pthread_cancel
39755
a848cd7e
SC
39756/* Override any gcc2 internal prototype to avoid an error. */
39757#ifdef __cplusplus
39758extern "C"
39759{
39760#endif
39761/* We use char because int might match the return type of a gcc2
39762 builtin and then its argument prototype would still apply. */
39763char pthread_cancel ();
39764/* The GNU C library defines this for functions which it implements
39765 to always fail with ENOSYS. Some functions are actually named
39766 something starting with __ and the normal name is an alias. */
39767#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
39768choke me
39769#else
39770char (*f) () = pthread_cancel;
39771#endif
39772#ifdef __cplusplus
39773}
39774#endif
39775
39776int
39777main ()
39778{
39779return f != pthread_cancel;
39780 ;
39781 return 0;
39782}
39783_ACEOF
39784rm -f conftest.$ac_objext conftest$ac_exeext
39785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39786 (eval $ac_link) 2>conftest.er1
a848cd7e 39787 ac_status=$?
ac1cb8d3
VS
39788 grep -v '^ *+' conftest.er1 >conftest.err
39789 rm -f conftest.er1
39790 cat conftest.err >&5
a848cd7e
SC
39791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39792 (exit $ac_status); } &&
64b75e64 39793 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39795 (eval $ac_try) 2>&5
39796 ac_status=$?
39797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39798 (exit $ac_status); }; } &&
39799 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39801 (eval $ac_try) 2>&5
39802 ac_status=$?
39803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39804 (exit $ac_status); }; }; then
39805 ac_cv_func_pthread_cancel=yes
39806else
39807 echo "$as_me: failed program was:" >&5
39808sed 's/^/| /' conftest.$ac_ext >&5
39809
39810ac_cv_func_pthread_cancel=no
39811fi
ac1cb8d3
VS
39812rm -f conftest.err conftest.$ac_objext \
39813 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39814fi
39815echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39816echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
39817if test $ac_cv_func_pthread_cancel = yes; then
39818 cat >>confdefs.h <<\_ACEOF
39819#define HAVE_PTHREAD_CANCEL 1
39820_ACEOF
39821
39822else
39823 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39824echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39825fi
39826
39827
abc736fd
MW
39828 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39829echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
39830if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39831 echo $ECHO_N "(cached) $ECHO_C" >&6
39832else
39833 cat >conftest.$ac_ext <<_ACEOF
39834/* confdefs.h. */
39835_ACEOF
39836cat confdefs.h >>conftest.$ac_ext
39837cat >>conftest.$ac_ext <<_ACEOF
39838/* end confdefs.h. */
39839/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39841#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39842
39843/* System header to define __stub macros and hopefully few prototypes,
39844 which can conflict with char pthread_attr_setstacksize (); below.
39845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39846 <limits.h> exists even on freestanding compilers. */
39847
39848#ifdef __STDC__
39849# include <limits.h>
39850#else
39851# include <assert.h>
39852#endif
39853
39854#undef pthread_attr_setstacksize
39855
39856/* Override any gcc2 internal prototype to avoid an error. */
39857#ifdef __cplusplus
39858extern "C"
39859{
39860#endif
39861/* We use char because int might match the return type of a gcc2
39862 builtin and then its argument prototype would still apply. */
39863char pthread_attr_setstacksize ();
39864/* The GNU C library defines this for functions which it implements
39865 to always fail with ENOSYS. Some functions are actually named
39866 something starting with __ and the normal name is an alias. */
39867#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
39868choke me
39869#else
39870char (*f) () = pthread_attr_setstacksize;
39871#endif
39872#ifdef __cplusplus
39873}
39874#endif
39875
39876int
39877main ()
39878{
39879return f != pthread_attr_setstacksize;
39880 ;
39881 return 0;
39882}
39883_ACEOF
39884rm -f conftest.$ac_objext conftest$ac_exeext
39885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39886 (eval $ac_link) 2>conftest.er1
39887 ac_status=$?
39888 grep -v '^ *+' conftest.er1 >conftest.err
39889 rm -f conftest.er1
39890 cat conftest.err >&5
39891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39892 (exit $ac_status); } &&
64b75e64 39893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
abc736fd
MW
39894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39895 (eval $ac_try) 2>&5
39896 ac_status=$?
39897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39898 (exit $ac_status); }; } &&
39899 { ac_try='test -s conftest$ac_exeext'
39900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39901 (eval $ac_try) 2>&5
39902 ac_status=$?
39903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39904 (exit $ac_status); }; }; then
39905 ac_cv_func_pthread_attr_setstacksize=yes
39906else
39907 echo "$as_me: failed program was:" >&5
39908sed 's/^/| /' conftest.$ac_ext >&5
39909
39910ac_cv_func_pthread_attr_setstacksize=no
39911fi
39912rm -f conftest.err conftest.$ac_objext \
39913 conftest$ac_exeext conftest.$ac_ext
39914fi
39915echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
39916echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
39917if test $ac_cv_func_pthread_attr_setstacksize = yes; then
39918 cat >>confdefs.h <<\_ACEOF
39919#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
39920_ACEOF
39921
39922fi
39923
a848cd7e
SC
39924
39925
39926 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
39927echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
39928if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
39929 echo $ECHO_N "(cached) $ECHO_C" >&6
39930else
39931
39932 cat >conftest.$ac_ext <<_ACEOF
39933/* confdefs.h. */
39934_ACEOF
39935cat confdefs.h >>conftest.$ac_ext
39936cat >>conftest.$ac_ext <<_ACEOF
39937/* end confdefs.h. */
39938#include <pthread.h>
39939int
39940main ()
39941{
39942
39943 pthread_mutexattr_t attr;
39944 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39945
39946 ;
39947 return 0;
39948}
39949_ACEOF
39950rm -f conftest.$ac_objext
39951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39952 (eval $ac_compile) 2>conftest.er1
a848cd7e 39953 ac_status=$?
ac1cb8d3
VS
39954 grep -v '^ *+' conftest.er1 >conftest.err
39955 rm -f conftest.er1
39956 cat conftest.err >&5
a848cd7e
SC
39957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39958 (exit $ac_status); } &&
64b75e64 39959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39961 (eval $ac_try) 2>&5
39962 ac_status=$?
39963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39964 (exit $ac_status); }; } &&
39965 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39967 (eval $ac_try) 2>&5
39968 ac_status=$?
39969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39970 (exit $ac_status); }; }; then
123dca7d 39971 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
39972else
39973 echo "$as_me: failed program was:" >&5
39974sed 's/^/| /' conftest.$ac_ext >&5
39975
123dca7d 39976wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
39977
39978fi
ac1cb8d3 39979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39980
39981fi
39982echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
39983echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
39984
39985 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
39986 cat >>confdefs.h <<\_ACEOF
39987#define HAVE_PTHREAD_MUTEXATTR_T 1
39988_ACEOF
39989
123dca7d
VZ
39990
39991 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
39992echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
39993if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
39994 echo $ECHO_N "(cached) $ECHO_C" >&6
39995else
39996
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#include <pthread.h>
40004int
40005main ()
40006{
40007
40008 pthread_mutexattr_t attr;
40009 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40010
40011 ;
40012 return 0;
40013}
40014_ACEOF
40015rm -f conftest.$ac_objext
40016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40017 (eval $ac_compile) 2>conftest.er1
40018 ac_status=$?
40019 grep -v '^ *+' conftest.er1 >conftest.err
40020 rm -f conftest.er1
40021 cat conftest.err >&5
40022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40023 (exit $ac_status); } &&
64b75e64 40024 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
40025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40026 (eval $ac_try) 2>&5
40027 ac_status=$?
40028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40029 (exit $ac_status); }; } &&
40030 { ac_try='test -s conftest.$ac_objext'
40031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40032 (eval $ac_try) 2>&5
40033 ac_status=$?
40034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40035 (exit $ac_status); }; }; then
40036 wx_cv_func_pthread_mutexattr_settype_decl=yes
40037else
40038 echo "$as_me: failed program was:" >&5
40039sed 's/^/| /' conftest.$ac_ext >&5
40040
40041wx_cv_func_pthread_mutexattr_settype_decl=no
40042
40043fi
40044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40045
40046fi
40047echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40048echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
40049 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40050 cat >>confdefs.h <<\_ACEOF
40051#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40052_ACEOF
40053
40054 fi
a848cd7e
SC
40055 else
40056 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40057echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
40058if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40059 echo $ECHO_N "(cached) $ECHO_C" >&6
40060else
40061
40062 cat >conftest.$ac_ext <<_ACEOF
40063/* confdefs.h. */
40064_ACEOF
40065cat confdefs.h >>conftest.$ac_ext
40066cat >>conftest.$ac_ext <<_ACEOF
40067/* end confdefs.h. */
40068#include <pthread.h>
40069int
40070main ()
40071{
40072
40073 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40074
40075 ;
40076 return 0;
40077}
40078_ACEOF
40079rm -f conftest.$ac_objext
40080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40081 (eval $ac_compile) 2>conftest.er1
a848cd7e 40082 ac_status=$?
ac1cb8d3
VS
40083 grep -v '^ *+' conftest.er1 >conftest.err
40084 rm -f conftest.er1
40085 cat conftest.err >&5
a848cd7e
SC
40086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40087 (exit $ac_status); } &&
64b75e64 40088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40090 (eval $ac_try) 2>&5
40091 ac_status=$?
40092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40093 (exit $ac_status); }; } &&
40094 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40096 (eval $ac_try) 2>&5
40097 ac_status=$?
40098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40099 (exit $ac_status); }; }; then
40100
40101 wx_cv_type_pthread_rec_mutex_init=yes
40102
40103else
40104 echo "$as_me: failed program was:" >&5
40105sed 's/^/| /' conftest.$ac_ext >&5
40106
40107
40108 wx_cv_type_pthread_rec_mutex_init=no
40109
40110
40111fi
ac1cb8d3 40112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40113
40114fi
40115echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40116echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
40117 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40118 cat >>confdefs.h <<\_ACEOF
40119#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40120_ACEOF
40121
40122 else
40123 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40124echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40125 fi
40126 fi
40127 fi
40128
40129else
40130 if test "$wxUSE_THREADS" = "yes" ; then
40131 case "${host}" in
40132 *-*-mingw32* )
40133 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40134echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
40135if test "${wx_cv_cflags_mthread+set}" = set; then
40136 echo $ECHO_N "(cached) $ECHO_C" >&6
40137else
40138
e56f4f9e
VZ
40139 CXXFLAGS_OLD="$CXXFLAGS"
40140 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
40141 cat >conftest.$ac_ext <<_ACEOF
40142/* confdefs.h. */
40143_ACEOF
40144cat confdefs.h >>conftest.$ac_ext
40145cat >>conftest.$ac_ext <<_ACEOF
40146/* end confdefs.h. */
40147
40148int
40149main ()
40150{
40151
40152 ;
40153 return 0;
40154}
40155_ACEOF
40156rm -f conftest.$ac_objext
40157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40158 (eval $ac_compile) 2>conftest.er1
a848cd7e 40159 ac_status=$?
ac1cb8d3
VS
40160 grep -v '^ *+' conftest.er1 >conftest.err
40161 rm -f conftest.er1
40162 cat conftest.err >&5
a848cd7e
SC
40163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40164 (exit $ac_status); } &&
64b75e64 40165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40167 (eval $ac_try) 2>&5
40168 ac_status=$?
40169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40170 (exit $ac_status); }; } &&
40171 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40173 (eval $ac_try) 2>&5
40174 ac_status=$?
40175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40176 (exit $ac_status); }; }; then
40177 wx_cv_cflags_mthread=yes
40178else
40179 echo "$as_me: failed program was:" >&5
40180sed 's/^/| /' conftest.$ac_ext >&5
40181
40182wx_cv_cflags_mthread=no
40183
40184fi
ac1cb8d3 40185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40186
40187
40188fi
40189echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40190echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
40191
40192 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 40193 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
40194 LDFLAGS="$LDFLAGS -mthreads"
40195 else
e56f4f9e 40196 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
40197 fi
40198 ;;
40199 *-pc-os2*emx )
5ff751d6
VZ
40200 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40201 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
40202 LDFLAGS="$LDFLAGS -Zmt"
40203 ;;
40204 esac
40205 fi
40206fi
40207
004ee6da
RL
40208echo "$as_me:$LINENO: checking for localtime_r" >&5
40209echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
40210if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
40211 echo $ECHO_N "(cached) $ECHO_C" >&6
40212else
40213 cat >conftest.$ac_ext <<_ACEOF
40214/* confdefs.h. */
40215_ACEOF
40216cat confdefs.h >>conftest.$ac_ext
40217cat >>conftest.$ac_ext <<_ACEOF
40218/* end confdefs.h. */
004ee6da 40219/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 40220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 40221#define localtime_r innocuous_localtime_r
ac1cb8d3 40222
a848cd7e 40223/* System header to define __stub macros and hopefully few prototypes,
004ee6da 40224 which can conflict with char localtime_r (); below.
a848cd7e
SC
40225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40226 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40227
a848cd7e
SC
40228#ifdef __STDC__
40229# include <limits.h>
40230#else
40231# include <assert.h>
40232#endif
ac1cb8d3 40233
004ee6da 40234#undef localtime_r
ac1cb8d3 40235
a848cd7e
SC
40236/* Override any gcc2 internal prototype to avoid an error. */
40237#ifdef __cplusplus
40238extern "C"
40239{
40240#endif
40241/* We use char because int might match the return type of a gcc2
40242 builtin and then its argument prototype would still apply. */
004ee6da 40243char localtime_r ();
a848cd7e
SC
40244/* The GNU C library defines this for functions which it implements
40245 to always fail with ENOSYS. Some functions are actually named
40246 something starting with __ and the normal name is an alias. */
004ee6da 40247#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
40248choke me
40249#else
004ee6da 40250char (*f) () = localtime_r;
a848cd7e
SC
40251#endif
40252#ifdef __cplusplus
40253}
40254#endif
40255
40256int
40257main ()
40258{
004ee6da
RL
40259return f != localtime_r;
40260 ;
40261 return 0;
40262}
40263_ACEOF
40264rm -f conftest.$ac_objext conftest$ac_exeext
40265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40266 (eval $ac_link) 2>conftest.er1
40267 ac_status=$?
40268 grep -v '^ *+' conftest.er1 >conftest.err
40269 rm -f conftest.er1
40270 cat conftest.err >&5
40271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40272 (exit $ac_status); } &&
64b75e64 40273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40275 (eval $ac_try) 2>&5
40276 ac_status=$?
40277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40278 (exit $ac_status); }; } &&
40279 { ac_try='test -s conftest$ac_exeext'
40280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40281 (eval $ac_try) 2>&5
40282 ac_status=$?
40283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40284 (exit $ac_status); }; }; then
40285 ac_cv_func_localtime_r=yes
40286else
40287 echo "$as_me: failed program was:" >&5
40288sed 's/^/| /' conftest.$ac_ext >&5
40289
40290ac_cv_func_localtime_r=no
40291fi
40292rm -f conftest.err conftest.$ac_objext \
40293 conftest$ac_exeext conftest.$ac_ext
40294fi
40295echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40296echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
40297if test $ac_cv_func_localtime_r = yes; then
40298 cat >>confdefs.h <<\_ACEOF
40299#define HAVE_LOCALTIME_R 1
40300_ACEOF
40301
40302fi
40303
40304echo "$as_me:$LINENO: checking for gmtime_r" >&5
40305echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
40306if test "${ac_cv_func_gmtime_r+set}" = set; then
40307 echo $ECHO_N "(cached) $ECHO_C" >&6
40308else
40309 cat >conftest.$ac_ext <<_ACEOF
40310/* confdefs.h. */
40311_ACEOF
40312cat confdefs.h >>conftest.$ac_ext
40313cat >>conftest.$ac_ext <<_ACEOF
40314/* end confdefs.h. */
40315/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40317#define gmtime_r innocuous_gmtime_r
40318
40319/* System header to define __stub macros and hopefully few prototypes,
40320 which can conflict with char gmtime_r (); below.
40321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40322 <limits.h> exists even on freestanding compilers. */
40323
40324#ifdef __STDC__
40325# include <limits.h>
40326#else
40327# include <assert.h>
40328#endif
40329
40330#undef gmtime_r
40331
40332/* Override any gcc2 internal prototype to avoid an error. */
40333#ifdef __cplusplus
40334extern "C"
40335{
40336#endif
40337/* We use char because int might match the return type of a gcc2
40338 builtin and then its argument prototype would still apply. */
40339char gmtime_r ();
40340/* The GNU C library defines this for functions which it implements
40341 to always fail with ENOSYS. Some functions are actually named
40342 something starting with __ and the normal name is an alias. */
40343#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
40344choke me
40345#else
40346char (*f) () = gmtime_r;
40347#endif
40348#ifdef __cplusplus
40349}
40350#endif
40351
40352int
40353main ()
40354{
40355return f != gmtime_r;
40356 ;
40357 return 0;
40358}
40359_ACEOF
40360rm -f conftest.$ac_objext conftest$ac_exeext
40361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40362 (eval $ac_link) 2>conftest.er1
40363 ac_status=$?
40364 grep -v '^ *+' conftest.er1 >conftest.err
40365 rm -f conftest.er1
40366 cat conftest.err >&5
40367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40368 (exit $ac_status); } &&
64b75e64 40369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40371 (eval $ac_try) 2>&5
40372 ac_status=$?
40373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40374 (exit $ac_status); }; } &&
40375 { ac_try='test -s conftest$ac_exeext'
40376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40377 (eval $ac_try) 2>&5
40378 ac_status=$?
40379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40380 (exit $ac_status); }; }; then
40381 ac_cv_func_gmtime_r=yes
40382else
40383 echo "$as_me: failed program was:" >&5
40384sed 's/^/| /' conftest.$ac_ext >&5
40385
40386ac_cv_func_gmtime_r=no
40387fi
40388rm -f conftest.err conftest.$ac_objext \
40389 conftest$ac_exeext conftest.$ac_ext
40390fi
40391echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40392echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
40393if test $ac_cv_func_gmtime_r = yes; then
40394 cat >>confdefs.h <<\_ACEOF
40395#define HAVE_GMTIME_R 1
40396_ACEOF
40397
40398fi
40399
40400echo "$as_me:$LINENO: checking for readdir_r" >&5
40401echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
40402if test "${ac_cv_func_readdir_r+set}" = set; then
40403 echo $ECHO_N "(cached) $ECHO_C" >&6
40404else
40405 cat >conftest.$ac_ext <<_ACEOF
40406/* confdefs.h. */
40407_ACEOF
40408cat confdefs.h >>conftest.$ac_ext
40409cat >>conftest.$ac_ext <<_ACEOF
40410/* end confdefs.h. */
40411/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
40412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40413#define readdir_r innocuous_readdir_r
40414
40415/* System header to define __stub macros and hopefully few prototypes,
40416 which can conflict with char readdir_r (); below.
40417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40418 <limits.h> exists even on freestanding compilers. */
40419
40420#ifdef __STDC__
40421# include <limits.h>
40422#else
40423# include <assert.h>
40424#endif
40425
40426#undef readdir_r
40427
40428/* Override any gcc2 internal prototype to avoid an error. */
40429#ifdef __cplusplus
40430extern "C"
40431{
40432#endif
40433/* We use char because int might match the return type of a gcc2
40434 builtin and then its argument prototype would still apply. */
40435char readdir_r ();
40436/* The GNU C library defines this for functions which it implements
40437 to always fail with ENOSYS. Some functions are actually named
40438 something starting with __ and the normal name is an alias. */
40439#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
40440choke me
40441#else
40442char (*f) () = readdir_r;
40443#endif
40444#ifdef __cplusplus
40445}
40446#endif
40447
40448int
40449main ()
40450{
40451return f != readdir_r;
40452 ;
40453 return 0;
40454}
40455_ACEOF
40456rm -f conftest.$ac_objext conftest$ac_exeext
40457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40458 (eval $ac_link) 2>conftest.er1
40459 ac_status=$?
40460 grep -v '^ *+' conftest.er1 >conftest.err
40461 rm -f conftest.er1
40462 cat conftest.err >&5
40463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40464 (exit $ac_status); } &&
64b75e64 40465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40467 (eval $ac_try) 2>&5
40468 ac_status=$?
40469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40470 (exit $ac_status); }; } &&
40471 { ac_try='test -s conftest$ac_exeext'
40472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40473 (eval $ac_try) 2>&5
40474 ac_status=$?
40475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40476 (exit $ac_status); }; }; then
40477 ac_cv_func_readdir_r=yes
40478else
40479 echo "$as_me: failed program was:" >&5
40480sed 's/^/| /' conftest.$ac_ext >&5
40481
40482ac_cv_func_readdir_r=no
40483fi
40484rm -f conftest.err conftest.$ac_objext \
40485 conftest$ac_exeext conftest.$ac_ext
40486fi
40487echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
40488echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
40489if test $ac_cv_func_readdir_r = yes; then
40490 cat >>confdefs.h <<\_ACEOF
40491#define HAVE_READDIR_R 1
40492_ACEOF
40493
40494fi
40495
004ee6da 40496
004ee6da
RL
40497
40498
40499 ac_ext=c
40500ac_cpp='$CPP $CPPFLAGS'
40501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40503ac_compiler_gnu=$ac_cv_c_compiler_gnu
40504
40505 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40506echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
40507
40508 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40509 echo $ECHO_N "(cached) $ECHO_C" >&6
40510else
40511
40512
2f6c5bb5 40513################################################################
004ee6da
RL
40514
40515ac_cv_func_which_gethostbyname_r=unknown
40516
40517#
40518# ONE ARGUMENT (sanity check)
40519#
40520
40521# This should fail, as there is no variant of gethostbyname_r() that takes
40522# a single argument. If it actually compiles, then we can assume that
40523# netdb.h is not declaring the function, and the compiler is thereby
40524# assuming an implicit prototype. In which case, we're out of luck.
40525#
40526cat >conftest.$ac_ext <<_ACEOF
40527/* confdefs.h. */
40528_ACEOF
40529cat confdefs.h >>conftest.$ac_ext
40530cat >>conftest.$ac_ext <<_ACEOF
40531/* end confdefs.h. */
40532#include <netdb.h>
40533int
40534main ()
40535{
40536
40537 char *name = "www.gnu.org";
40538 (void)gethostbyname_r(name) /* ; */
40539
40540 ;
40541 return 0;
40542}
40543_ACEOF
40544rm -f conftest.$ac_objext
40545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40546 (eval $ac_compile) 2>conftest.er1
40547 ac_status=$?
40548 grep -v '^ *+' conftest.er1 >conftest.err
40549 rm -f conftest.er1
40550 cat conftest.err >&5
40551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40552 (exit $ac_status); } &&
64b75e64 40553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40555 (eval $ac_try) 2>&5
40556 ac_status=$?
40557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40558 (exit $ac_status); }; } &&
40559 { ac_try='test -s conftest.$ac_objext'
40560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40561 (eval $ac_try) 2>&5
40562 ac_status=$?
40563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40564 (exit $ac_status); }; }; then
40565 ac_cv_func_which_gethostbyname_r=no
40566else
40567 echo "$as_me: failed program was:" >&5
40568sed 's/^/| /' conftest.$ac_ext >&5
40569
40570fi
40571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40572
40573#
40574# SIX ARGUMENTS
40575# (e.g. Linux)
40576#
40577
40578if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40579
40580cat >conftest.$ac_ext <<_ACEOF
40581/* confdefs.h. */
40582_ACEOF
40583cat confdefs.h >>conftest.$ac_ext
40584cat >>conftest.$ac_ext <<_ACEOF
40585/* end confdefs.h. */
40586#include <netdb.h>
40587int
40588main ()
40589{
40590
40591 char *name = "www.gnu.org";
40592 struct hostent ret, *retp;
40593 char buf[1024];
40594 int buflen = 1024;
40595 int my_h_errno;
40596 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40597
40598 ;
40599 return 0;
40600}
40601_ACEOF
40602rm -f conftest.$ac_objext
40603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40604 (eval $ac_compile) 2>conftest.er1
40605 ac_status=$?
40606 grep -v '^ *+' conftest.er1 >conftest.err
40607 rm -f conftest.er1
40608 cat conftest.err >&5
40609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40610 (exit $ac_status); } &&
64b75e64 40611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40613 (eval $ac_try) 2>&5
40614 ac_status=$?
40615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40616 (exit $ac_status); }; } &&
40617 { ac_try='test -s conftest.$ac_objext'
40618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40619 (eval $ac_try) 2>&5
40620 ac_status=$?
40621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40622 (exit $ac_status); }; }; then
40623 ac_cv_func_which_gethostbyname_r=six
40624else
40625 echo "$as_me: failed program was:" >&5
40626sed 's/^/| /' conftest.$ac_ext >&5
40627
40628fi
40629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40630
40631fi
40632
40633#
40634# FIVE ARGUMENTS
40635# (e.g. Solaris)
40636#
40637
40638if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40639
40640cat >conftest.$ac_ext <<_ACEOF
40641/* confdefs.h. */
40642_ACEOF
40643cat confdefs.h >>conftest.$ac_ext
40644cat >>conftest.$ac_ext <<_ACEOF
40645/* end confdefs.h. */
40646#include <netdb.h>
40647int
40648main ()
40649{
40650
40651 char *name = "www.gnu.org";
40652 struct hostent ret;
40653 char buf[1024];
40654 int buflen = 1024;
40655 int my_h_errno;
40656 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40657
40658 ;
40659 return 0;
40660}
40661_ACEOF
40662rm -f conftest.$ac_objext
40663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40664 (eval $ac_compile) 2>conftest.er1
40665 ac_status=$?
40666 grep -v '^ *+' conftest.er1 >conftest.err
40667 rm -f conftest.er1
40668 cat conftest.err >&5
40669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40670 (exit $ac_status); } &&
64b75e64 40671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40673 (eval $ac_try) 2>&5
40674 ac_status=$?
40675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40676 (exit $ac_status); }; } &&
40677 { ac_try='test -s conftest.$ac_objext'
40678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40679 (eval $ac_try) 2>&5
40680 ac_status=$?
40681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40682 (exit $ac_status); }; }; then
40683 ac_cv_func_which_gethostbyname_r=five
40684else
40685 echo "$as_me: failed program was:" >&5
40686sed 's/^/| /' conftest.$ac_ext >&5
40687
40688fi
40689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40690
40691fi
40692
40693#
40694# THREE ARGUMENTS
40695# (e.g. AIX, HP-UX, Tru64)
40696#
40697
40698if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40699
40700cat >conftest.$ac_ext <<_ACEOF
40701/* confdefs.h. */
40702_ACEOF
40703cat confdefs.h >>conftest.$ac_ext
40704cat >>conftest.$ac_ext <<_ACEOF
40705/* end confdefs.h. */
40706#include <netdb.h>
40707int
40708main ()
40709{
40710
40711 char *name = "www.gnu.org";
40712 struct hostent ret;
40713 struct hostent_data data;
40714 (void)gethostbyname_r(name, &ret, &data) /* ; */
40715
40716 ;
40717 return 0;
40718}
40719_ACEOF
40720rm -f conftest.$ac_objext
40721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40722 (eval $ac_compile) 2>conftest.er1
40723 ac_status=$?
40724 grep -v '^ *+' conftest.er1 >conftest.err
40725 rm -f conftest.er1
40726 cat conftest.err >&5
40727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40728 (exit $ac_status); } &&
64b75e64 40729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40731 (eval $ac_try) 2>&5
40732 ac_status=$?
40733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40734 (exit $ac_status); }; } &&
40735 { ac_try='test -s conftest.$ac_objext'
40736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40737 (eval $ac_try) 2>&5
40738 ac_status=$?
40739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40740 (exit $ac_status); }; }; then
40741 ac_cv_func_which_gethostbyname_r=three
40742else
40743 echo "$as_me: failed program was:" >&5
40744sed 's/^/| /' conftest.$ac_ext >&5
40745
40746fi
40747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40748
40749fi
40750
2f6c5bb5 40751################################################################
004ee6da
RL
40752
40753
40754fi
40755
40756case "$ac_cv_func_which_gethostbyname_r" in
40757 three)
40758 echo "$as_me:$LINENO: result: three" >&5
40759echo "${ECHO_T}three" >&6
40760 cat >>confdefs.h <<\_ACEOF
40761#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40762_ACEOF
40763
40764 ;;
40765
40766 five)
40767 echo "$as_me:$LINENO: result: five" >&5
40768echo "${ECHO_T}five" >&6
40769 cat >>confdefs.h <<\_ACEOF
40770#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40771_ACEOF
40772
40773 ;;
40774
40775 six)
40776 echo "$as_me:$LINENO: result: six" >&5
40777echo "${ECHO_T}six" >&6
40778 cat >>confdefs.h <<\_ACEOF
40779#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40780_ACEOF
40781
40782 ;;
40783
40784 no)
40785 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40786echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
40787 ;;
40788
40789 unknown)
40790 echo "$as_me:$LINENO: result: can't tell" >&5
40791echo "${ECHO_T}can't tell" >&6
40792 ;;
40793
40794 *)
40795 { { echo "$as_me:$LINENO: error: internal error" >&5
40796echo "$as_me: error: internal error" >&2;}
40797 { (exit 1); exit 1; }; }
40798 ;;
40799esac
40800
5ec3bc43
JS
40801ac_ext=cc
40802ac_cpp='$CXXCPP $CPPFLAGS'
40803ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40804ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40805ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
40806
40807
40808
40809 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40810 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40811 echo "$as_me:$LINENO: checking for gethostbyname" >&5
40812echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
40813if test "${ac_cv_func_gethostbyname+set}" = set; then
40814 echo $ECHO_N "(cached) $ECHO_C" >&6
40815else
40816 cat >conftest.$ac_ext <<_ACEOF
40817/* confdefs.h. */
40818_ACEOF
40819cat confdefs.h >>conftest.$ac_ext
40820cat >>conftest.$ac_ext <<_ACEOF
40821/* end confdefs.h. */
40822/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
40823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40824#define gethostbyname innocuous_gethostbyname
40825
40826/* System header to define __stub macros and hopefully few prototypes,
40827 which can conflict with char gethostbyname (); below.
40828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40829 <limits.h> exists even on freestanding compilers. */
40830
40831#ifdef __STDC__
40832# include <limits.h>
40833#else
40834# include <assert.h>
40835#endif
40836
40837#undef gethostbyname
40838
40839/* Override any gcc2 internal prototype to avoid an error. */
40840#ifdef __cplusplus
40841extern "C"
40842{
40843#endif
40844/* We use char because int might match the return type of a gcc2
40845 builtin and then its argument prototype would still apply. */
40846char gethostbyname ();
40847/* The GNU C library defines this for functions which it implements
40848 to always fail with ENOSYS. Some functions are actually named
40849 something starting with __ and the normal name is an alias. */
40850#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
40851choke me
40852#else
40853char (*f) () = gethostbyname;
40854#endif
40855#ifdef __cplusplus
40856}
40857#endif
40858
40859int
40860main ()
40861{
40862return f != gethostbyname;
40863 ;
40864 return 0;
40865}
40866_ACEOF
40867rm -f conftest.$ac_objext conftest$ac_exeext
40868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40869 (eval $ac_link) 2>conftest.er1
40870 ac_status=$?
40871 grep -v '^ *+' conftest.er1 >conftest.err
40872 rm -f conftest.er1
40873 cat conftest.err >&5
40874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40875 (exit $ac_status); } &&
64b75e64 40876 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40878 (eval $ac_try) 2>&5
40879 ac_status=$?
40880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40881 (exit $ac_status); }; } &&
40882 { ac_try='test -s conftest$ac_exeext'
40883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40884 (eval $ac_try) 2>&5
40885 ac_status=$?
40886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40887 (exit $ac_status); }; }; then
40888 ac_cv_func_gethostbyname=yes
40889else
40890 echo "$as_me: failed program was:" >&5
40891sed 's/^/| /' conftest.$ac_ext >&5
40892
40893ac_cv_func_gethostbyname=no
40894fi
40895rm -f conftest.err conftest.$ac_objext \
40896 conftest$ac_exeext conftest.$ac_ext
40897fi
40898echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
40899echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
40900if test $ac_cv_func_gethostbyname = yes; then
40901 cat >>confdefs.h <<\_ACEOF
40902#define HAVE_GETHOSTBYNAME 1
40903_ACEOF
40904
40905fi
40906
40907 fi
3ecd9f92 40908
81c330c6
VZ
40909echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
40910echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6
40911if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
004ee6da
RL
40912 echo $ECHO_N "(cached) $ECHO_C" >&6
40913else
3ecd9f92
MW
40914
40915 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40916/* confdefs.h. */
40917_ACEOF
40918cat confdefs.h >>conftest.$ac_ext
40919cat >>conftest.$ac_ext <<_ACEOF
40920/* end confdefs.h. */
81c330c6 40921#include <netdb.h>
004ee6da
RL
40922int
40923main ()
40924{
40925
81c330c6
VZ
40926 char *name;
40927 char *proto;
40928 struct servent *se, *res;
40929 char buffer[2048];
40930 int buflen = 2048;
40931 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
004ee6da
RL
40932
40933 ;
40934 return 0;
40935}
40936_ACEOF
40937rm -f conftest.$ac_objext
40938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40939 (eval $ac_compile) 2>conftest.er1
40940 ac_status=$?
40941 grep -v '^ *+' conftest.er1 >conftest.err
40942 rm -f conftest.er1
40943 cat conftest.err >&5
40944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40945 (exit $ac_status); } &&
64b75e64 40946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40948 (eval $ac_try) 2>&5
40949 ac_status=$?
40950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40951 (exit $ac_status); }; } &&
40952 { ac_try='test -s conftest.$ac_objext'
40953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40954 (eval $ac_try) 2>&5
40955 ac_status=$?
40956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40957 (exit $ac_status); }; }; then
81c330c6 40958 ac_cv_func_which_getservbyname_r=six
004ee6da
RL
40959else
40960 echo "$as_me: failed program was:" >&5
40961sed 's/^/| /' conftest.$ac_ext >&5
40962
3ecd9f92 40963
81c330c6 40964 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40965/* confdefs.h. */
40966_ACEOF
40967cat confdefs.h >>conftest.$ac_ext
40968cat >>conftest.$ac_ext <<_ACEOF
40969/* end confdefs.h. */
81c330c6 40970#include <netdb.h>
004ee6da
RL
40971int
40972main ()
40973{
40974
81c330c6
VZ
40975 char *name;
40976 char *proto;
40977 struct servent *se;
40978 char buffer[2048];
40979 int buflen = 2048;
40980 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
40981
40982 ;
40983 return 0;
40984}
40985_ACEOF
40986rm -f conftest.$ac_objext
40987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40988 (eval $ac_compile) 2>conftest.er1
40989 ac_status=$?
40990 grep -v '^ *+' conftest.er1 >conftest.err
40991 rm -f conftest.er1
40992 cat conftest.err >&5
40993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40994 (exit $ac_status); } &&
64b75e64 40995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40997 (eval $ac_try) 2>&5
40998 ac_status=$?
40999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41000 (exit $ac_status); }; } &&
41001 { ac_try='test -s conftest.$ac_objext'
41002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41003 (eval $ac_try) 2>&5
41004 ac_status=$?
41005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41006 (exit $ac_status); }; }; then
81c330c6 41007 ac_cv_func_which_getservbyname_r=five
004ee6da
RL
41008else
41009 echo "$as_me: failed program was:" >&5
41010sed 's/^/| /' conftest.$ac_ext >&5
41011
3ecd9f92 41012
81c330c6 41013 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41014/* confdefs.h. */
41015_ACEOF
41016cat confdefs.h >>conftest.$ac_ext
41017cat >>conftest.$ac_ext <<_ACEOF
41018/* end confdefs.h. */
81c330c6 41019#include <netdb.h>
004ee6da
RL
41020int
41021main ()
41022{
41023
81c330c6
VZ
41024 char *name;
41025 char *proto;
41026 struct servent *se;
41027 struct servent_data data;
41028 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
41029
41030 ;
41031 return 0;
41032}
41033_ACEOF
41034rm -f conftest.$ac_objext
41035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41036 (eval $ac_compile) 2>conftest.er1
41037 ac_status=$?
41038 grep -v '^ *+' conftest.er1 >conftest.err
41039 rm -f conftest.er1
41040 cat conftest.err >&5
41041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41042 (exit $ac_status); } &&
64b75e64 41043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41045 (eval $ac_try) 2>&5
41046 ac_status=$?
41047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41048 (exit $ac_status); }; } &&
41049 { ac_try='test -s conftest.$ac_objext'
41050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41051 (eval $ac_try) 2>&5
41052 ac_status=$?
41053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41054 (exit $ac_status); }; }; then
81c330c6 41055 ac_cv_func_which_getservbyname_r=four
004ee6da
RL
41056else
41057 echo "$as_me: failed program was:" >&5
41058sed 's/^/| /' conftest.$ac_ext >&5
41059
41060ac_cv_func_which_getservbyname_r=no
81c330c6 41061
004ee6da
RL
41062fi
41063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41064
3ecd9f92 41065
004ee6da
RL
41066fi
41067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41068
3ecd9f92 41069
004ee6da
RL
41070fi
41071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3ecd9f92 41072
004ee6da 41073
3ecd9f92
MW
41074fi
41075echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41076echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
004ee6da
RL
41077
41078if test $ac_cv_func_which_getservbyname_r = six; then
41079 cat >>confdefs.h <<\_ACEOF
41080#define HAVE_FUNC_GETSERVBYNAME_R_6 1
41081_ACEOF
41082
41083elif test $ac_cv_func_which_getservbyname_r = five; then
41084 cat >>confdefs.h <<\_ACEOF
41085#define HAVE_FUNC_GETSERVBYNAME_R_5 1
41086_ACEOF
41087
41088elif test $ac_cv_func_which_getservbyname_r = four; then
41089 cat >>confdefs.h <<\_ACEOF
41090#define HAVE_FUNC_GETSERVBYNAME_R_4 1
41091_ACEOF
41092
004ee6da
RL
41093fi
41094
41095
41096 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41097 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41098
41099for ac_func in getservbyname
41100do
41101as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41102echo "$as_me:$LINENO: checking for $ac_func" >&5
41103echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41104if eval "test \"\${$as_ac_var+set}\" = set"; then
41105 echo $ECHO_N "(cached) $ECHO_C" >&6
41106else
41107 cat >conftest.$ac_ext <<_ACEOF
41108/* confdefs.h. */
41109_ACEOF
41110cat confdefs.h >>conftest.$ac_ext
41111cat >>conftest.$ac_ext <<_ACEOF
41112/* end confdefs.h. */
41113/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41115#define $ac_func innocuous_$ac_func
41116
41117/* System header to define __stub macros and hopefully few prototypes,
41118 which can conflict with char $ac_func (); below.
41119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41120 <limits.h> exists even on freestanding compilers. */
41121
41122#ifdef __STDC__
41123# include <limits.h>
41124#else
41125# include <assert.h>
41126#endif
41127
41128#undef $ac_func
41129
41130/* Override any gcc2 internal prototype to avoid an error. */
41131#ifdef __cplusplus
41132extern "C"
41133{
41134#endif
41135/* We use char because int might match the return type of a gcc2
41136 builtin and then its argument prototype would still apply. */
41137char $ac_func ();
41138/* The GNU C library defines this for functions which it implements
41139 to always fail with ENOSYS. Some functions are actually named
41140 something starting with __ and the normal name is an alias. */
41141#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41142choke me
41143#else
41144char (*f) () = $ac_func;
41145#endif
41146#ifdef __cplusplus
41147}
41148#endif
41149
41150int
41151main ()
41152{
41153return f != $ac_func;
41154 ;
41155 return 0;
41156}
41157_ACEOF
41158rm -f conftest.$ac_objext conftest$ac_exeext
41159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41160 (eval $ac_link) 2>conftest.er1
41161 ac_status=$?
41162 grep -v '^ *+' conftest.er1 >conftest.err
41163 rm -f conftest.er1
41164 cat conftest.err >&5
41165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41166 (exit $ac_status); } &&
64b75e64 41167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41169 (eval $ac_try) 2>&5
41170 ac_status=$?
41171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41172 (exit $ac_status); }; } &&
41173 { ac_try='test -s conftest$ac_exeext'
41174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41175 (eval $ac_try) 2>&5
41176 ac_status=$?
41177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41178 (exit $ac_status); }; }; then
41179 eval "$as_ac_var=yes"
41180else
41181 echo "$as_me: failed program was:" >&5
41182sed 's/^/| /' conftest.$ac_ext >&5
41183
41184eval "$as_ac_var=no"
41185fi
41186rm -f conftest.err conftest.$ac_objext \
41187 conftest$ac_exeext conftest.$ac_ext
41188fi
41189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41190echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41191if test `eval echo '${'$as_ac_var'}'` = yes; then
41192 cat >>confdefs.h <<_ACEOF
41193#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41194_ACEOF
41195 cat >>confdefs.h <<\_ACEOF
41196#define HAVE_GETSERVBYNAME 1
41197_ACEOF
41198
41199fi
41200done
41201
41202 fi
41203
004ee6da
RL
41204if test "$wxUSE_THREADS" = "yes"; then
41205 cat >>confdefs.h <<\_ACEOF
41206#define wxUSE_THREADS 1
41207_ACEOF
41208
41209
41210 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41211else
56632e81 41212 if test "$wx_cv_func_strtok_r" = "yes"; then
004ee6da
RL
41213 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41214echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
41215 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41216 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41217 echo "$as_me:$LINENO: result: yes" >&5
41218echo "${ECHO_T}yes" >&6
41219 else
41220 echo "$as_me:$LINENO: result: no" >&5
41221echo "${ECHO_T}no" >&6
41222 fi
41223 fi
41224fi
41225
41226if test "$WXGTK20" = 1 ; then
41227 cat >>confdefs.h <<_ACEOF
41228#define __WXGTK20__ $WXGTK20
41229_ACEOF
41230
41231 WXGTK12=1
41232fi
41233
41234if test "$WXGTK12" = 1 ; then
41235 cat >>confdefs.h <<_ACEOF
41236#define __WXGTK12__ $WXGTK12
41237_ACEOF
41238
41239fi
41240
41241if test "$WXGTK127" = 1 ; then
41242 cat >>confdefs.h <<_ACEOF
41243#define __WXGTK127__ $WXGTK127
41244_ACEOF
41245
41246fi
41247
41248if test "$WXGPE" = 1 ; then
41249 cat >>confdefs.h <<_ACEOF
41250#define __WXGPE__ $WXGPE
41251_ACEOF
41252
41253fi
41254
41255DEBUG_CFLAGS=
41256if test "$wxUSE_DEBUG_INFO" = "yes" ; then
41257 DEBUG_CFLAGS="-g"
41258 wxUSE_OPTIMISE=no
41259fi
41260
41261if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41262 wxUSE_DEBUG_INFO=yes
41263 if test "$GCC" = yes; then
41264 DEBUG_CFLAGS="-ggdb"
41265 fi
41266fi
41267
41268if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41269 cat >>confdefs.h <<\_ACEOF
41270#define WXDEBUG 1
41271_ACEOF
41272
41273 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41274else
41275 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
41276 if test "x$wxGTK_VERSION" = "x1" ; then
41277 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41278 fi
004ee6da
RL
41279 fi
41280fi
41281
41282if test "$wxUSE_MEM_TRACING" = "yes" ; then
41283 cat >>confdefs.h <<\_ACEOF
41284#define wxUSE_MEMORY_TRACING 1
41285_ACEOF
41286
41287 cat >>confdefs.h <<\_ACEOF
41288#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41289_ACEOF
41290
41291 cat >>confdefs.h <<\_ACEOF
41292#define wxUSE_DEBUG_NEW_ALWAYS 1
41293_ACEOF
41294
41295 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41296fi
41297
41298if test "$wxUSE_DMALLOC" = "yes" ; then
41299 DMALLOC_LIBS="-ldmallocthcxx"
41300fi
41301
41302PROFILE_FLAGS=
41303if test "$wxUSE_PROFILE" = "yes" ; then
41304 PROFILE_FLAGS=" -pg"
41305fi
41306
41307if test "$GCC" = "yes" ; then
41308 if test "$wxUSE_NO_RTTI" = "yes" ; then
41309 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41310 fi
41311 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41312 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41313 fi
41314 if test "$wxUSE_PERMISSIVE" = "yes" ; then
41315 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41316 fi
41317
41318 case "${host}" in
41319 powerpc*-*-aix* )
41320 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41321 ;;
41322 *-hppa* )
41323 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41324 ;;
41325 esac
41326fi
41327
41328OPTIMISE_CFLAGS=
41329if test "$wxUSE_OPTIMISE" = "no" ; then
41330 if test "$GCC" = yes ; then
41331 OPTIMISE_CFLAGS="-O0"
41332 fi
41333else
41334 if test "$GCC" = yes ; then
e5efa97e
VZ
41335 case "${host}" in
41336 *-pc-os2_emx | *-pc-os2-emx )
41337 OPTIMISE_CFLAGS="-O2"
41338 ;;
41339 *)
41340 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41341 ;;
41342 esac
004ee6da
RL
41343 else
41344 OPTIMISE_CFLAGS="-O"
41345 fi
41346fi
41347
41348
41349if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
41350 cat >>confdefs.h <<\_ACEOF
41351#define WXWIN_COMPATIBILITY_2_4 1
41352_ACEOF
41353
41354
41355 WXWIN_COMPATIBILITY_2_6="yes"
41356fi
41357
41358if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
41359 cat >>confdefs.h <<\_ACEOF
41360#define WXWIN_COMPATIBILITY_2_6 1
41361_ACEOF
41362
41363fi
41364
41365
41366if test "$wxUSE_GUI" = "yes"; then
41367 cat >>confdefs.h <<\_ACEOF
41368#define wxUSE_GUI 1
41369_ACEOF
41370
41371
41372 fi
41373
41374
41375if test "$wxUSE_UNIX" = "yes"; then
41376 cat >>confdefs.h <<\_ACEOF
41377#define wxUSE_UNIX 1
41378_ACEOF
41379
41380fi
41381
41382
41383if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41384
41385 HAVE_DL_FUNCS=0
41386 HAVE_SHL_FUNCS=0
41387 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41388 if test "$USE_DARWIN" = 1; then
41389 HAVE_DL_FUNCS=1
41390 elif test "$USE_DOS" = 1; then
41391 HAVE_DL_FUNCS=0
41392 else
41393
41394for ac_func in dlopen
41395do
41396as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41397echo "$as_me:$LINENO: checking for $ac_func" >&5
41398echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41399if eval "test \"\${$as_ac_var+set}\" = set"; then
41400 echo $ECHO_N "(cached) $ECHO_C" >&6
41401else
41402 cat >conftest.$ac_ext <<_ACEOF
41403/* confdefs.h. */
41404_ACEOF
41405cat confdefs.h >>conftest.$ac_ext
41406cat >>conftest.$ac_ext <<_ACEOF
41407/* end confdefs.h. */
41408/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41410#define $ac_func innocuous_$ac_func
41411
41412/* System header to define __stub macros and hopefully few prototypes,
41413 which can conflict with char $ac_func (); below.
41414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41415 <limits.h> exists even on freestanding compilers. */
41416
41417#ifdef __STDC__
41418# include <limits.h>
41419#else
41420# include <assert.h>
41421#endif
41422
41423#undef $ac_func
41424
41425/* Override any gcc2 internal prototype to avoid an error. */
41426#ifdef __cplusplus
41427extern "C"
41428{
41429#endif
41430/* We use char because int might match the return type of a gcc2
41431 builtin and then its argument prototype would still apply. */
41432char $ac_func ();
41433/* The GNU C library defines this for functions which it implements
41434 to always fail with ENOSYS. Some functions are actually named
41435 something starting with __ and the normal name is an alias. */
41436#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41437choke me
41438#else
41439char (*f) () = $ac_func;
41440#endif
41441#ifdef __cplusplus
41442}
41443#endif
41444
41445int
41446main ()
41447{
41448return f != $ac_func;
a848cd7e
SC
41449 ;
41450 return 0;
41451}
41452_ACEOF
41453rm -f conftest.$ac_objext conftest$ac_exeext
41454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41455 (eval $ac_link) 2>conftest.er1
a848cd7e 41456 ac_status=$?
ac1cb8d3
VS
41457 grep -v '^ *+' conftest.er1 >conftest.err
41458 rm -f conftest.er1
41459 cat conftest.err >&5
a848cd7e
SC
41460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41461 (exit $ac_status); } &&
64b75e64 41462 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41464 (eval $ac_try) 2>&5
41465 ac_status=$?
41466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41467 (exit $ac_status); }; } &&
41468 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41470 (eval $ac_try) 2>&5
41471 ac_status=$?
41472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41473 (exit $ac_status); }; }; then
41474 eval "$as_ac_var=yes"
41475else
41476 echo "$as_me: failed program was:" >&5
41477sed 's/^/| /' conftest.$ac_ext >&5
41478
41479eval "$as_ac_var=no"
41480fi
ac1cb8d3
VS
41481rm -f conftest.err conftest.$ac_objext \
41482 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41483fi
41484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41485echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41486if test `eval echo '${'$as_ac_var'}'` = yes; then
41487 cat >>confdefs.h <<_ACEOF
41488#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41489_ACEOF
41490
41491 cat >>confdefs.h <<\_ACEOF
41492#define HAVE_DLOPEN 1
41493_ACEOF
41494
41495 HAVE_DL_FUNCS=1
41496
41497else
41498
41499 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41500echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
41501if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41502 echo $ECHO_N "(cached) $ECHO_C" >&6
41503else
41504 ac_check_lib_save_LIBS=$LIBS
41505LIBS="-ldl $LIBS"
41506cat >conftest.$ac_ext <<_ACEOF
41507/* confdefs.h. */
41508_ACEOF
41509cat confdefs.h >>conftest.$ac_ext
41510cat >>conftest.$ac_ext <<_ACEOF
41511/* end confdefs.h. */
41512
41513/* Override any gcc2 internal prototype to avoid an error. */
41514#ifdef __cplusplus
41515extern "C"
41516#endif
41517/* We use char because int might match the return type of a gcc2
41518 builtin and then its argument prototype would still apply. */
41519char dlopen ();
41520int
41521main ()
41522{
41523dlopen ();
41524 ;
41525 return 0;
41526}
41527_ACEOF
41528rm -f conftest.$ac_objext conftest$ac_exeext
41529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41530 (eval $ac_link) 2>conftest.er1
a848cd7e 41531 ac_status=$?
ac1cb8d3
VS
41532 grep -v '^ *+' conftest.er1 >conftest.err
41533 rm -f conftest.er1
41534 cat conftest.err >&5
a848cd7e
SC
41535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41536 (exit $ac_status); } &&
64b75e64 41537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41539 (eval $ac_try) 2>&5
41540 ac_status=$?
41541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41542 (exit $ac_status); }; } &&
41543 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41545 (eval $ac_try) 2>&5
41546 ac_status=$?
41547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41548 (exit $ac_status); }; }; then
41549 ac_cv_lib_dl_dlopen=yes
41550else
41551 echo "$as_me: failed program was:" >&5
41552sed 's/^/| /' conftest.$ac_ext >&5
41553
41554ac_cv_lib_dl_dlopen=no
41555fi
ac1cb8d3
VS
41556rm -f conftest.err conftest.$ac_objext \
41557 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41558LIBS=$ac_check_lib_save_LIBS
41559fi
41560echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41561echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
41562if test $ac_cv_lib_dl_dlopen = yes; then
41563
41564 cat >>confdefs.h <<\_ACEOF
41565#define HAVE_DLOPEN 1
41566_ACEOF
41567
41568 HAVE_DL_FUNCS=1
41569 DL_LINK=" -ldl$DL_LINK"
41570
41571else
41572
41573
41574for ac_func in shl_load
41575do
41576as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41577echo "$as_me:$LINENO: checking for $ac_func" >&5
41578echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41579if eval "test \"\${$as_ac_var+set}\" = set"; then
41580 echo $ECHO_N "(cached) $ECHO_C" >&6
41581else
41582 cat >conftest.$ac_ext <<_ACEOF
41583/* confdefs.h. */
41584_ACEOF
41585cat confdefs.h >>conftest.$ac_ext
41586cat >>conftest.$ac_ext <<_ACEOF
41587/* end confdefs.h. */
ac1cb8d3
VS
41588/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41590#define $ac_func innocuous_$ac_func
41591
a848cd7e
SC
41592/* System header to define __stub macros and hopefully few prototypes,
41593 which can conflict with char $ac_func (); below.
41594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41595 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41596
a848cd7e
SC
41597#ifdef __STDC__
41598# include <limits.h>
41599#else
41600# include <assert.h>
41601#endif
ac1cb8d3
VS
41602
41603#undef $ac_func
41604
a848cd7e
SC
41605/* Override any gcc2 internal prototype to avoid an error. */
41606#ifdef __cplusplus
41607extern "C"
41608{
41609#endif
41610/* We use char because int might match the return type of a gcc2
41611 builtin and then its argument prototype would still apply. */
41612char $ac_func ();
41613/* The GNU C library defines this for functions which it implements
41614 to always fail with ENOSYS. Some functions are actually named
41615 something starting with __ and the normal name is an alias. */
41616#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41617choke me
41618#else
41619char (*f) () = $ac_func;
41620#endif
41621#ifdef __cplusplus
41622}
41623#endif
41624
41625int
41626main ()
41627{
41628return f != $ac_func;
41629 ;
41630 return 0;
41631}
41632_ACEOF
41633rm -f conftest.$ac_objext conftest$ac_exeext
41634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41635 (eval $ac_link) 2>conftest.er1
a848cd7e 41636 ac_status=$?
ac1cb8d3
VS
41637 grep -v '^ *+' conftest.er1 >conftest.err
41638 rm -f conftest.er1
41639 cat conftest.err >&5
a848cd7e
SC
41640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41641 (exit $ac_status); } &&
64b75e64 41642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41644 (eval $ac_try) 2>&5
41645 ac_status=$?
41646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41647 (exit $ac_status); }; } &&
41648 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41650 (eval $ac_try) 2>&5
41651 ac_status=$?
41652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41653 (exit $ac_status); }; }; then
41654 eval "$as_ac_var=yes"
41655else
41656 echo "$as_me: failed program was:" >&5
41657sed 's/^/| /' conftest.$ac_ext >&5
41658
41659eval "$as_ac_var=no"
41660fi
ac1cb8d3
VS
41661rm -f conftest.err conftest.$ac_objext \
41662 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41663fi
41664echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41665echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41666if test `eval echo '${'$as_ac_var'}'` = yes; then
41667 cat >>confdefs.h <<_ACEOF
41668#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41669_ACEOF
41670
41671 cat >>confdefs.h <<\_ACEOF
41672#define HAVE_SHL_LOAD 1
41673_ACEOF
41674
41675 HAVE_SHL_FUNCS=1
41676
41677else
41678
41679 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41680echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
41681if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41682 echo $ECHO_N "(cached) $ECHO_C" >&6
41683else
41684 ac_check_lib_save_LIBS=$LIBS
41685LIBS="-lshl_load $LIBS"
41686cat >conftest.$ac_ext <<_ACEOF
41687/* confdefs.h. */
41688_ACEOF
41689cat confdefs.h >>conftest.$ac_ext
41690cat >>conftest.$ac_ext <<_ACEOF
41691/* end confdefs.h. */
41692
41693/* Override any gcc2 internal prototype to avoid an error. */
41694#ifdef __cplusplus
41695extern "C"
41696#endif
41697/* We use char because int might match the return type of a gcc2
41698 builtin and then its argument prototype would still apply. */
41699char dld ();
41700int
41701main ()
41702{
41703dld ();
41704 ;
41705 return 0;
41706}
41707_ACEOF
41708rm -f conftest.$ac_objext conftest$ac_exeext
41709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41710 (eval $ac_link) 2>conftest.er1
a848cd7e 41711 ac_status=$?
ac1cb8d3
VS
41712 grep -v '^ *+' conftest.er1 >conftest.err
41713 rm -f conftest.er1
41714 cat conftest.err >&5
a848cd7e
SC
41715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41716 (exit $ac_status); } &&
64b75e64 41717 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41719 (eval $ac_try) 2>&5
41720 ac_status=$?
41721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41722 (exit $ac_status); }; } &&
41723 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41725 (eval $ac_try) 2>&5
41726 ac_status=$?
41727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41728 (exit $ac_status); }; }; then
41729 ac_cv_lib_shl_load_dld=yes
41730else
41731 echo "$as_me: failed program was:" >&5
41732sed 's/^/| /' conftest.$ac_ext >&5
41733
41734ac_cv_lib_shl_load_dld=no
41735fi
ac1cb8d3
VS
41736rm -f conftest.err conftest.$ac_objext \
41737 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41738LIBS=$ac_check_lib_save_LIBS
41739fi
41740echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41741echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
41742if test $ac_cv_lib_shl_load_dld = yes; then
41743
41744 HAVE_SHL_FUNCS=1
41745 DL_LINK=" -ldld$DL_LINK"
41746
41747fi
41748
41749
41750fi
41751done
41752
41753
41754fi
41755
41756
41757fi
41758done
41759
41760
41761 if test "$HAVE_DL_FUNCS" = 1; then
41762
41763for ac_func in dlerror
41764do
41765as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41766echo "$as_me:$LINENO: checking for $ac_func" >&5
41767echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41768if eval "test \"\${$as_ac_var+set}\" = set"; then
41769 echo $ECHO_N "(cached) $ECHO_C" >&6
41770else
41771 cat >conftest.$ac_ext <<_ACEOF
41772/* confdefs.h. */
41773_ACEOF
41774cat confdefs.h >>conftest.$ac_ext
41775cat >>conftest.$ac_ext <<_ACEOF
41776/* end confdefs.h. */
ac1cb8d3
VS
41777/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41779#define $ac_func innocuous_$ac_func
41780
a848cd7e
SC
41781/* System header to define __stub macros and hopefully few prototypes,
41782 which can conflict with char $ac_func (); below.
41783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41784 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41785
a848cd7e
SC
41786#ifdef __STDC__
41787# include <limits.h>
41788#else
41789# include <assert.h>
41790#endif
ac1cb8d3
VS
41791
41792#undef $ac_func
41793
a848cd7e
SC
41794/* Override any gcc2 internal prototype to avoid an error. */
41795#ifdef __cplusplus
41796extern "C"
41797{
41798#endif
41799/* We use char because int might match the return type of a gcc2
41800 builtin and then its argument prototype would still apply. */
41801char $ac_func ();
41802/* The GNU C library defines this for functions which it implements
41803 to always fail with ENOSYS. Some functions are actually named
41804 something starting with __ and the normal name is an alias. */
41805#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41806choke me
41807#else
41808char (*f) () = $ac_func;
41809#endif
41810#ifdef __cplusplus
41811}
41812#endif
41813
41814int
41815main ()
41816{
41817return f != $ac_func;
41818 ;
41819 return 0;
41820}
41821_ACEOF
41822rm -f conftest.$ac_objext conftest$ac_exeext
41823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41824 (eval $ac_link) 2>conftest.er1
a848cd7e 41825 ac_status=$?
ac1cb8d3
VS
41826 grep -v '^ *+' conftest.er1 >conftest.err
41827 rm -f conftest.er1
41828 cat conftest.err >&5
a848cd7e
SC
41829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41830 (exit $ac_status); } &&
64b75e64 41831 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41833 (eval $ac_try) 2>&5
41834 ac_status=$?
41835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41836 (exit $ac_status); }; } &&
41837 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41839 (eval $ac_try) 2>&5
41840 ac_status=$?
41841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41842 (exit $ac_status); }; }; then
41843 eval "$as_ac_var=yes"
41844else
41845 echo "$as_me: failed program was:" >&5
41846sed 's/^/| /' conftest.$ac_ext >&5
41847
41848eval "$as_ac_var=no"
41849fi
ac1cb8d3
VS
41850rm -f conftest.err conftest.$ac_objext \
41851 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41852fi
41853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41854echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41855if test `eval echo '${'$as_ac_var'}'` = yes; then
41856 cat >>confdefs.h <<_ACEOF
41857#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41858_ACEOF
41859 cat >>confdefs.h <<\_ACEOF
41860#define HAVE_DLERROR 1
41861_ACEOF
41862
41863else
41864
41865 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
41866echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
41867if test "${ac_cv_lib_dl_dlerror+set}" = set; then
41868 echo $ECHO_N "(cached) $ECHO_C" >&6
41869else
41870 ac_check_lib_save_LIBS=$LIBS
41871LIBS="-ldl $LIBS"
41872cat >conftest.$ac_ext <<_ACEOF
41873/* confdefs.h. */
41874_ACEOF
41875cat confdefs.h >>conftest.$ac_ext
41876cat >>conftest.$ac_ext <<_ACEOF
41877/* end confdefs.h. */
41878
41879/* Override any gcc2 internal prototype to avoid an error. */
41880#ifdef __cplusplus
41881extern "C"
41882#endif
41883/* We use char because int might match the return type of a gcc2
41884 builtin and then its argument prototype would still apply. */
41885char dlerror ();
41886int
41887main ()
41888{
41889dlerror ();
41890 ;
41891 return 0;
41892}
41893_ACEOF
41894rm -f conftest.$ac_objext conftest$ac_exeext
41895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41896 (eval $ac_link) 2>conftest.er1
a848cd7e 41897 ac_status=$?
ac1cb8d3
VS
41898 grep -v '^ *+' conftest.er1 >conftest.err
41899 rm -f conftest.er1
41900 cat conftest.err >&5
a848cd7e
SC
41901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41902 (exit $ac_status); } &&
64b75e64 41903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41905 (eval $ac_try) 2>&5
41906 ac_status=$?
41907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41908 (exit $ac_status); }; } &&
41909 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41911 (eval $ac_try) 2>&5
41912 ac_status=$?
41913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41914 (exit $ac_status); }; }; then
41915 ac_cv_lib_dl_dlerror=yes
41916else
41917 echo "$as_me: failed program was:" >&5
41918sed 's/^/| /' conftest.$ac_ext >&5
41919
41920ac_cv_lib_dl_dlerror=no
41921fi
ac1cb8d3
VS
41922rm -f conftest.err conftest.$ac_objext \
41923 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41924LIBS=$ac_check_lib_save_LIBS
41925fi
41926echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41927echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
41928if test $ac_cv_lib_dl_dlerror = yes; then
41929 cat >>confdefs.h <<\_ACEOF
41930#define HAVE_DLERROR 1
41931_ACEOF
41932
41933fi
41934
41935
41936
41937fi
41938done
41939
41940 fi
41941 fi
41942
41943 if test "$HAVE_DL_FUNCS" = 0; then
41944 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 41945 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
41946 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41947echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41948 wxUSE_DYNAMIC_LOADER=no
41949 wxUSE_DYNLIB_CLASS=no
41950 else
41951 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41952echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41953 fi
41954 fi
41955 fi
41956 fi
41957fi
41958
41959if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41960 cat >>confdefs.h <<\_ACEOF
41961#define wxUSE_DYNAMIC_LOADER 1
41962_ACEOF
41963
41964fi
41965if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41966 cat >>confdefs.h <<\_ACEOF
41967#define wxUSE_DYNLIB_CLASS 1
41968_ACEOF
41969
41970fi
41971
41972
41973
41974if test "$wxUSE_PLUGINS" = "yes" ; then
41975 if test "$wxUSE_SHARED" = "no" ; then
41976 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41977echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41978 wxUSE_PLUGINS=no
41979 fi
41980 if test "$wxUSE_MONOLITHIC" = "yes" ; then
41981 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41982echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41983 wxUSE_PLUGINS=no
41984 fi
41985 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41986 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41987echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
41988 wxUSE_PLUGINS=no
41989 fi
41990 if test "$wxUSE_PLUGINS" = "yes" ; then
41991 cat >>confdefs.h <<\_ACEOF
41992#define wxUSE_PLUGINS 1
41993_ACEOF
41994
41995 fi
41996fi
41997
41998
41999if test "$wxUSE_STL" = "yes"; then
42000 cat >>confdefs.h <<\_ACEOF
42001#define wxUSE_STL 1
42002_ACEOF
42003
42004fi
42005
42006if test "$wxUSE_APPLE_IEEE" = "yes"; then
42007 cat >>confdefs.h <<\_ACEOF
42008#define wxUSE_APPLE_IEEE 1
42009_ACEOF
42010
42011fi
42012
42013if test "$wxUSE_TIMER" = "yes"; then
42014 cat >>confdefs.h <<\_ACEOF
42015#define wxUSE_TIMER 1
42016_ACEOF
42017
42018fi
42019
9c112555 42020if test "$USE_UNIX" = "1" ; then
31714590
VZ
42021 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42022echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
d12aef51 42023if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 42024 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 42025else
d12aef51
VZ
42026
42027 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42028/* confdefs.h. */
42029_ACEOF
42030cat confdefs.h >>conftest.$ac_ext
42031cat >>conftest.$ac_ext <<_ACEOF
42032/* end confdefs.h. */
d12aef51 42033
31714590 42034 #include <sys/ioctl.h>
d12aef51
VZ
42035 #include <sys/soundcard.h>
42036
42037int
42038main ()
42039{
42040
31714590 42041 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42042
42043 ;
42044 return 0;
42045}
a848cd7e 42046_ACEOF
d12aef51
VZ
42047rm -f conftest.$ac_objext conftest$ac_exeext
42048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42049 (eval $ac_link) 2>conftest.er1
a848cd7e 42050 ac_status=$?
ac1cb8d3
VS
42051 grep -v '^ *+' conftest.er1 >conftest.err
42052 rm -f conftest.er1
42053 cat conftest.err >&5
a848cd7e
SC
42054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42055 (exit $ac_status); } &&
64b75e64 42056 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42058 (eval $ac_try) 2>&5
42059 ac_status=$?
42060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42061 (exit $ac_status); }; } &&
d12aef51 42062 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42064 (eval $ac_try) 2>&5
42065 ac_status=$?
42066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42067 (exit $ac_status); }; }; then
d12aef51 42068 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42069else
42070 echo "$as_me: failed program was:" >&5
42071sed 's/^/| /' conftest.$ac_ext >&5
42072
a848cd7e 42073
d12aef51
VZ
42074 saveLibs="$LIBS"
42075 LIBS="$saveLibs -lossaudio"
42076 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42077/* confdefs.h. */
42078_ACEOF
42079cat confdefs.h >>conftest.$ac_ext
42080cat >>conftest.$ac_ext <<_ACEOF
42081/* end confdefs.h. */
d12aef51 42082
31714590 42083 #include <sys/ioctl.h>
d12aef51
VZ
42084 #include <sys/soundcard.h>
42085
42086int
42087main ()
42088{
42089
31714590 42090 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42091
42092 ;
42093 return 0;
42094}
a848cd7e 42095_ACEOF
d12aef51
VZ
42096rm -f conftest.$ac_objext conftest$ac_exeext
42097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42098 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
42099 ac_status=$?
42100 grep -v '^ *+' conftest.er1 >conftest.err
42101 rm -f conftest.er1
42102 cat conftest.err >&5
42103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 42104 (exit $ac_status); } &&
64b75e64 42105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
42106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42107 (eval $ac_try) 2>&5
42108 ac_status=$?
42109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42110 (exit $ac_status); }; } &&
42111 { ac_try='test -s conftest$ac_exeext'
42112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42113 (eval $ac_try) 2>&5
42114 ac_status=$?
42115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42116 (exit $ac_status); }; }; then
42117 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42118else
42119 echo "$as_me: failed program was:" >&5
42120sed 's/^/| /' conftest.$ac_ext >&5
42121
a848cd7e 42122
d12aef51
VZ
42123 LIBS="$saveLibs"
42124 ac_cv_header_sys_soundcard=no
42125
42126
a848cd7e 42127fi
d12aef51
VZ
42128rm -f conftest.err conftest.$ac_objext \
42129 conftest$ac_exeext conftest.$ac_ext
42130
a848cd7e
SC
42131
42132fi
d12aef51
VZ
42133rm -f conftest.err conftest.$ac_objext \
42134 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42135
42136fi
d12aef51
VZ
42137echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42138echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 42139
d12aef51
VZ
42140 if test "$ac_cv_header_sys_soundcard" = "yes"; then
42141 cat >>confdefs.h <<\_ACEOF
42142#define HAVE_SYS_SOUNDCARD_H 1
42143_ACEOF
a848cd7e 42144
d12aef51
VZ
42145 else
42146 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
42147 fi
9c112555
MW
42148fi
42149WITH_PLUGIN_SDL=0
42150if test "$wxUSE_SOUND" = "yes"; then
42151 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
42152 if test "$wxUSE_LIBSDL" != "no"; then
42153
42154# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
42155if test "${with_sdl_prefix+set}" = set; then
42156 withval="$with_sdl_prefix"
42157 sdl_prefix="$withval"
42158else
42159 sdl_prefix=""
42160fi;
42161
42162# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
42163if test "${with_sdl_exec_prefix+set}" = set; then
42164 withval="$with_sdl_exec_prefix"
42165 sdl_exec_prefix="$withval"
42166else
42167 sdl_exec_prefix=""
42168fi;
42169# Check whether --enable-sdltest or --disable-sdltest was given.
42170if test "${enable_sdltest+set}" = set; then
42171 enableval="$enable_sdltest"
42172
42173else
42174 enable_sdltest=yes
42175fi;
42176
42177 if test x$sdl_exec_prefix != x ; then
3ecd9f92
MW
42178 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42179 if test x${SDL_CONFIG+set} != xset ; then
42180 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42181 fi
a848cd7e
SC
42182 fi
42183 if test x$sdl_prefix != x ; then
3ecd9f92
MW
42184 sdl_args="$sdl_args --prefix=$sdl_prefix"
42185 if test x${SDL_CONFIG+set} != xset ; then
42186 SDL_CONFIG=$sdl_prefix/bin/sdl-config
42187 fi
a848cd7e
SC
42188 fi
42189
3ecd9f92
MW
42190 if test "x$prefix" != xNONE; then
42191 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42192 fi
a848cd7e
SC
42193 # Extract the first word of "sdl-config", so it can be a program name with args.
42194set dummy sdl-config; ac_word=$2
42195echo "$as_me:$LINENO: checking for $ac_word" >&5
42196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42197if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42198 echo $ECHO_N "(cached) $ECHO_C" >&6
42199else
42200 case $SDL_CONFIG in
42201 [\\/]* | ?:[\\/]*)
42202 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42203 ;;
42204 *)
42205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42206for as_dir in $PATH
42207do
42208 IFS=$as_save_IFS
42209 test -z "$as_dir" && as_dir=.
42210 for ac_exec_ext in '' $ac_executable_extensions; do
42211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42212 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42214 break 2
42215 fi
42216done
42217done
42218
42219 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42220 ;;
42221esac
42222fi
42223SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42224
42225if test -n "$SDL_CONFIG"; then
42226 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42227echo "${ECHO_T}$SDL_CONFIG" >&6
42228else
42229 echo "$as_me:$LINENO: result: no" >&5
42230echo "${ECHO_T}no" >&6
42231fi
42232
42233 min_sdl_version=1.2.0
42234 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42235echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
42236 no_sdl=""
42237 if test "$SDL_CONFIG" = "no" ; then
42238 no_sdl=yes
42239 else
42240 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42241 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42242
42243 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42244 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42245 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42246 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42247 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42248 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42249 if test "x$enable_sdltest" = "xyes" ; then
42250 ac_save_CFLAGS="$CFLAGS"
94acd38e 42251 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
42252 ac_save_LIBS="$LIBS"
42253 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 42254 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
42255 LIBS="$LIBS $SDL_LIBS"
42256 rm -f conf.sdltest
42257 if test "$cross_compiling" = yes; then
42258 echo $ac_n "cross compiling; assumed OK... $ac_c"
42259else
42260 cat >conftest.$ac_ext <<_ACEOF
42261/* confdefs.h. */
42262_ACEOF
42263cat confdefs.h >>conftest.$ac_ext
42264cat >>conftest.$ac_ext <<_ACEOF
42265/* end confdefs.h. */
42266
42267#include <stdio.h>
42268#include <stdlib.h>
42269#include <string.h>
42270#include "SDL.h"
42271
42272char*
42273my_strdup (char *str)
42274{
42275 char *new_str;
42276
42277 if (str)
42278 {
42279 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42280 strcpy (new_str, str);
42281 }
42282 else
42283 new_str = NULL;
42284
42285 return new_str;
42286}
42287
42288int main (int argc, char *argv[])
42289{
42290 int major, minor, micro;
42291 char *tmp_version;
42292
42293 /* This hangs on some systems (?)
42294 system ("touch conf.sdltest");
42295 */
42296 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42297
42298 /* HP/UX 9 (%@#!) writes to sscanf strings */
42299 tmp_version = my_strdup("$min_sdl_version");
42300 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42301 printf("%s, bad version string\n", "$min_sdl_version");
42302 exit(1);
42303 }
42304
42305 if (($sdl_major_version > major) ||
42306 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42307 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42308 {
42309 return 0;
42310 }
42311 else
42312 {
42313 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42314 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42315 printf("*** best to upgrade to the required version.\n");
42316 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42317 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42318 printf("*** config.cache before re-running configure\n");
42319 return 1;
42320 }
42321}
42322
42323
42324_ACEOF
42325rm -f conftest$ac_exeext
42326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42327 (eval $ac_link) 2>&5
42328 ac_status=$?
42329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42332 (eval $ac_try) 2>&5
42333 ac_status=$?
42334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42335 (exit $ac_status); }; }; then
42336 :
42337else
42338 echo "$as_me: program exited with status $ac_status" >&5
42339echo "$as_me: failed program was:" >&5
42340sed 's/^/| /' conftest.$ac_ext >&5
42341
42342( exit $ac_status )
42343no_sdl=yes
42344fi
ac1cb8d3 42345rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42346fi
42347 CFLAGS="$ac_save_CFLAGS"
94acd38e 42348 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
42349 LIBS="$ac_save_LIBS"
42350 fi
42351 fi
42352 if test "x$no_sdl" = x ; then
42353 echo "$as_me:$LINENO: result: yes" >&5
42354echo "${ECHO_T}yes" >&6
42355
42356 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 42357 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
42358 cat >>confdefs.h <<\_ACEOF
42359#define wxUSE_LIBSDL 1
42360_ACEOF
42361
42362
42363 else
42364 echo "$as_me:$LINENO: result: no" >&5
42365echo "${ECHO_T}no" >&6
42366 if test "$SDL_CONFIG" = "no" ; then
42367 echo "*** The sdl-config script installed by SDL could not be found"
42368 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42369 echo "*** your path, or set the SDL_CONFIG environment variable to the"
42370 echo "*** full path to sdl-config."
42371 else
42372 if test -f conf.sdltest ; then
42373 :
42374 else
42375 echo "*** Could not run SDL test program, checking why..."
42376 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 42377 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
42378 LIBS="$LIBS $SDL_LIBS"
42379 cat >conftest.$ac_ext <<_ACEOF
42380/* confdefs.h. */
42381_ACEOF
42382cat confdefs.h >>conftest.$ac_ext
42383cat >>conftest.$ac_ext <<_ACEOF
42384/* end confdefs.h. */
42385
42386#include <stdio.h>
42387#include "SDL.h"
42388
42389int main(int argc, char *argv[])
42390{ return 0; }
42391#undef main
42392#define main K_and_R_C_main
42393
42394int
42395main ()
42396{
42397 return 0;
42398 ;
42399 return 0;
42400}
42401_ACEOF
42402rm -f conftest.$ac_objext conftest$ac_exeext
42403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42404 (eval $ac_link) 2>conftest.er1
a848cd7e 42405 ac_status=$?
ac1cb8d3
VS
42406 grep -v '^ *+' conftest.er1 >conftest.err
42407 rm -f conftest.er1
42408 cat conftest.err >&5
a848cd7e
SC
42409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42410 (exit $ac_status); } &&
64b75e64 42411 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42413 (eval $ac_try) 2>&5
42414 ac_status=$?
42415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42416 (exit $ac_status); }; } &&
42417 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42419 (eval $ac_try) 2>&5
42420 ac_status=$?
42421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42422 (exit $ac_status); }; }; then
42423 echo "*** The test program compiled, but did not run. This usually means"
42424 echo "*** that the run-time linker is not finding SDL or finding the wrong"
42425 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42426 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42427 echo "*** to the installed location Also, make sure you have run ldconfig if that"
42428 echo "*** is required on your system"
42429 echo "***"
42430 echo "*** If you have an old version installed, it is best to remove it, although"
42431 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42432else
42433 echo "$as_me: failed program was:" >&5
42434sed 's/^/| /' conftest.$ac_ext >&5
42435
42436 echo "*** The test program failed to compile or link. See the file config.log for the"
42437 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42438 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42439 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42440fi
ac1cb8d3
VS
42441rm -f conftest.err conftest.$ac_objext \
42442 conftest$ac_exeext conftest.$ac_ext
a848cd7e 42443 CFLAGS="$ac_save_CFLAGS"
94acd38e 42444 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
42445 LIBS="$ac_save_LIBS"
42446 fi
42447 fi
42448 SDL_CFLAGS=""
42449 SDL_LIBS=""
42450 wxUSE_LIBSDL="no"
42451 fi
42452
42453
42454 rm -f conf.sdltest
42455
42456 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42457 WITH_PLUGIN_SDL=1
42458 fi
42459 fi
42460 fi
42461
42462 cat >>confdefs.h <<\_ACEOF
42463#define wxUSE_SOUND 1
42464_ACEOF
42465
42466 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42467fi
42468
d1c38808
VZ
42469if test "$WXGTK20" = 1; then
42470 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42471 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42472
42473
3ecd9f92
MW
42474pkg_failed=no
42475echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42476echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
d1c38808 42477
3ecd9f92
MW
42478if test -n "$PKG_CONFIG"; then
42479 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42480 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42481 else
42482 if test -n "$PKG_CONFIG" && \
42483 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42484 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42485 ac_status=$?
42486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42487 (exit $ac_status); }; then
42488 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 42489else
3ecd9f92
MW
42490 pkg_failed=yes
42491fi
42492 fi
42493else
42494 pkg_failed=untried
d1c38808 42495fi
d1c38808 42496if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42497 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42498 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42499 else
42500 if test -n "$PKG_CONFIG" && \
42501 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42502 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42503 ac_status=$?
42504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42505 (exit $ac_status); }; then
42506 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 42507else
3ecd9f92
MW
42508 pkg_failed=yes
42509fi
42510 fi
42511else
42512 pkg_failed=untried
d1c38808
VZ
42513fi
42514
d1c38808 42515
d1c38808 42516
3ecd9f92 42517if test $pkg_failed = yes; then
d1c38808 42518
3ecd9f92
MW
42519if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42520 _pkg_short_errors_supported=yes
42521else
42522 _pkg_short_errors_supported=no
42523fi
42524 if test $_pkg_short_errors_supported = yes; then
42525 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42526 else
42527 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808 42528 fi
3ecd9f92
MW
42529 # Put the nasty error message in config.log where it belongs
42530 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
d1c38808
VZ
42531
42532
3ecd9f92
MW
42533 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42534echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42535 wxUSE_LIBGNOMEPRINT="no"
d1c38808
VZ
42536
42537
3ecd9f92 42538elif test $pkg_failed = untried; then
d1c38808
VZ
42539
42540 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42541echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42542 wxUSE_LIBGNOMEPRINT="no"
42543
42544
3ecd9f92
MW
42545else
42546 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42547 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42548 echo "$as_me:$LINENO: result: yes" >&5
42549echo "${ECHO_T}yes" >&6
d1c38808 42550
3ecd9f92
MW
42551 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42552 cat >>confdefs.h <<\_ACEOF
42553#define wxUSE_LIBGNOMEPRINT 1
42554_ACEOF
42555
42556
42557fi
d1c38808
VZ
42558 fi
42559 fi
42560fi
42561
2b850ae1
RR
42562if test "$WXGTK20" = 1; then
42563 if test "$wxUSE_MIMETYPE" = "yes" ; then
42564 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42565
42566
3ecd9f92
MW
42567pkg_failed=no
42568echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42569echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
2b850ae1 42570
3ecd9f92
MW
42571if test -n "$PKG_CONFIG"; then
42572 if test -n "$GNOMEVFS_CFLAGS"; then
42573 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42574 else
42575 if test -n "$PKG_CONFIG" && \
42576 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42577 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42578 ac_status=$?
42579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42580 (exit $ac_status); }; then
42581 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 42582else
3ecd9f92
MW
42583 pkg_failed=yes
42584fi
42585 fi
42586else
42587 pkg_failed=untried
2b850ae1 42588fi
2b850ae1 42589if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42590 if test -n "$GNOMEVFS_LIBS"; then
42591 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42592 else
42593 if test -n "$PKG_CONFIG" && \
42594 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42595 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42596 ac_status=$?
42597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42598 (exit $ac_status); }; then
42599 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 42600else
3ecd9f92
MW
42601 pkg_failed=yes
42602fi
42603 fi
42604else
42605 pkg_failed=untried
2b850ae1
RR
42606fi
42607
2b850ae1 42608
2b850ae1 42609
3ecd9f92 42610if test $pkg_failed = yes; then
2b850ae1 42611
3ecd9f92
MW
42612if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42613 _pkg_short_errors_supported=yes
42614else
42615 _pkg_short_errors_supported=no
42616fi
42617 if test $_pkg_short_errors_supported = yes; then
42618 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42619 else
42620 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
2b850ae1 42621 fi
3ecd9f92
MW
42622 # Put the nasty error message in config.log where it belongs
42623 echo "$GNOMEVFS_PKG_ERRORS" >&5
2b850ae1
RR
42624
42625
3ecd9f92
MW
42626 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42627echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42628 wxUSE_LIBGNOMEVFS="no"
2b850ae1
RR
42629
42630
3ecd9f92 42631elif test $pkg_failed = untried; then
2b850ae1
RR
42632
42633 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42634echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42635 wxUSE_LIBGNOMEVFS="no"
42636
42637
3ecd9f92
MW
42638else
42639 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
42640 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
42641 echo "$as_me:$LINENO: result: yes" >&5
42642echo "${ECHO_T}yes" >&6
2b850ae1 42643
3ecd9f92
MW
42644 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
42645 cat >>confdefs.h <<\_ACEOF
42646#define wxUSE_LIBGNOMEVFS 1
42647_ACEOF
42648
42649
42650fi
2b850ae1
RR
42651 fi
42652 fi
42653fi
42654
3565d135
RR
42655if test "$WXGTK20" = 1; then
42656 if test "$wxUSE_LIBHILDON" = "yes" ; then
42657
3ecd9f92
MW
42658pkg_failed=no
42659echo "$as_me:$LINENO: checking for HILDON" >&5
42660echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
3565d135 42661
3ecd9f92
MW
42662if test -n "$PKG_CONFIG"; then
42663 if test -n "$HILDON_CFLAGS"; then
42664 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
42665 else
42666 if test -n "$PKG_CONFIG" && \
42667 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42668 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42669 ac_status=$?
42670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42671 (exit $ac_status); }; then
42672 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 42673else
3ecd9f92
MW
42674 pkg_failed=yes
42675fi
42676 fi
42677else
42678 pkg_failed=untried
3565d135 42679fi
3565d135 42680if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42681 if test -n "$HILDON_LIBS"; then
42682 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
42683 else
42684 if test -n "$PKG_CONFIG" && \
42685 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42686 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42687 ac_status=$?
42688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42689 (exit $ac_status); }; then
42690 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 42691else
3ecd9f92
MW
42692 pkg_failed=yes
42693fi
42694 fi
42695else
42696 pkg_failed=untried
3565d135
RR
42697fi
42698
3565d135 42699
3565d135 42700
3ecd9f92 42701if test $pkg_failed = yes; then
3565d135 42702
3ecd9f92
MW
42703if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42704 _pkg_short_errors_supported=yes
42705else
42706 _pkg_short_errors_supported=no
42707fi
42708 if test $_pkg_short_errors_supported = yes; then
42709 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42710 else
42711 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
3565d135 42712 fi
3ecd9f92
MW
42713 # Put the nasty error message in config.log where it belongs
42714 echo "$HILDON_PKG_ERRORS" >&5
3565d135
RR
42715
42716
3ecd9f92
MW
42717 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42718echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42719 wxUSE_LIBHILDON="no"
3565d135 42720
3565d135 42721
3ecd9f92
MW
42722elif test $pkg_failed = untried; then
42723
42724 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42725echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42726 wxUSE_LIBHILDON="no"
42727
42728
42729else
42730 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
42731 HILDON_LIBS=$pkg_cv_HILDON_LIBS
42732 echo "$as_me:$LINENO: result: yes" >&5
42733echo "${ECHO_T}yes" >&6
3565d135
RR
42734
42735 EXTRALIBS_HILDON="$HILDON_LIBS"
42736 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
42737 cat >>confdefs.h <<\_ACEOF
42738#define wxUSE_LIBHILDON 1
42739_ACEOF
42740
42741
3ecd9f92 42742fi
3565d135
RR
42743 fi
42744fi
d1c38808 42745
a848cd7e
SC
42746if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42747 cat >>confdefs.h <<\_ACEOF
42748#define wxUSE_CMDLINE_PARSER 1
42749_ACEOF
42750
42751fi
42752
42753if test "$wxUSE_STOPWATCH" = "yes"; then
42754 cat >>confdefs.h <<\_ACEOF
42755#define wxUSE_STOPWATCH 1
42756_ACEOF
42757
42758fi
42759
42760if test "$wxUSE_DATETIME" = "yes"; then
42761 cat >>confdefs.h <<\_ACEOF
42762#define wxUSE_DATETIME 1
42763_ACEOF
42764
42765fi
42766
42767if test "$wxUSE_FILE" = "yes"; then
42768 cat >>confdefs.h <<\_ACEOF
42769#define wxUSE_FILE 1
42770_ACEOF
42771
42772fi
42773
42774if test "$wxUSE_FFILE" = "yes"; then
42775 cat >>confdefs.h <<\_ACEOF
42776#define wxUSE_FFILE 1
42777_ACEOF
42778
42779fi
42780
42781if test "$wxUSE_FILESYSTEM" = "yes"; then
42782 cat >>confdefs.h <<\_ACEOF
42783#define wxUSE_FILESYSTEM 1
42784_ACEOF
42785
42786fi
42787
42788if test "$wxUSE_FS_ZIP" = "yes"; then
42789 cat >>confdefs.h <<\_ACEOF
42790#define wxUSE_FS_ZIP 1
42791_ACEOF
42792
42793fi
42794
9e8e867f 42795if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 42796 cat >>confdefs.h <<\_ACEOF
9e8e867f 42797#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
42798_ACEOF
42799
42800fi
42801
42802if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 42803 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
42804 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
42805echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
42806 elif test "$wxUSE_ZLIB" = "no"; then
42807 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
42808echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
42809 else
42810 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42811#define wxUSE_ZIPSTREAM 1
42812_ACEOF
42813
81f90336 42814 fi
a848cd7e
SC
42815fi
42816
a848cd7e 42817if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
42818 if test "$USE_UNIX" != 1; then
42819 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
42820echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
42821 wxUSE_ON_FATAL_EXCEPTION=no
42822 else
42823 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42824#define wxUSE_ON_FATAL_EXCEPTION 1
42825_ACEOF
42826
18228ab4 42827 fi
a848cd7e
SC
42828fi
42829
eaff0f0d
VZ
42830if test "$wxUSE_STACKWALKER" = "yes"; then
42831 cat >>confdefs.h <<\_ACEOF
42832#define wxUSE_STACKWALKER 1
42833_ACEOF
42834
42835fi
42836
36b6448c 42837if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
42838 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
42839 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
42840echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
42841 wxUSE_DEBUGREPORT=no
42842 else
42843 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
42844#define wxUSE_DEBUGREPORT 1
42845_ACEOF
42846
21dfc162
MW
42847 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42848 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
42849 fi
dfe0c803 42850 fi
36b6448c
VZ
42851fi
42852
a848cd7e
SC
42853if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42854 cat >>confdefs.h <<\_ACEOF
42855#define wxUSE_SNGLINST_CHECKER 1
42856_ACEOF
42857
42858fi
42859
42860if test "$wxUSE_BUSYINFO" = "yes"; then
42861 cat >>confdefs.h <<\_ACEOF
42862#define wxUSE_BUSYINFO 1
42863_ACEOF
42864
42865fi
42866
42867if test "$wxUSE_STD_IOSTREAM" = "yes"; then
42868 cat >>confdefs.h <<\_ACEOF
42869#define wxUSE_STD_IOSTREAM 1
42870_ACEOF
42871
42872fi
42873
59746b65
MW
42874if test "$wxUSE_STD_STRING" = "yes"; then
42875 cat >>confdefs.h <<\_ACEOF
42876#define wxUSE_STD_STRING 1
42877_ACEOF
42878
42879fi
42880
07158944
VZ
42881if test "$wxUSE_STDPATHS" = "yes"; then
42882 cat >>confdefs.h <<\_ACEOF
42883#define wxUSE_STDPATHS 1
42884_ACEOF
42885
42886fi
42887
a848cd7e
SC
42888if test "$wxUSE_TEXTBUFFER" = "yes"; then
42889 cat >>confdefs.h <<\_ACEOF
42890#define wxUSE_TEXTBUFFER 1
42891_ACEOF
42892
42893fi
42894
42895if test "$wxUSE_TEXTFILE" = "yes"; then
42896 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
42897 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
42898echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
42899 else
42900 cat >>confdefs.h <<\_ACEOF
42901#define wxUSE_TEXTFILE 1
42902_ACEOF
42903
42904 fi
42905fi
42906
42907if test "$wxUSE_CONFIG" = "yes" ; then
42908 if test "$wxUSE_TEXTFILE" != "yes"; then
42909 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
42910echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
42911 else
42912 cat >>confdefs.h <<\_ACEOF
42913#define wxUSE_CONFIG 1
89be85c2
VS
42914_ACEOF
42915
42916 cat >>confdefs.h <<\_ACEOF
42917#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
42918_ACEOF
42919
42920 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
42921 fi
42922fi
42923
42924if test "$wxUSE_INTL" = "yes" ; then
42925 if test "$wxUSE_FILE" != "yes"; then
42926 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
42927echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
42928 else
42929 cat >>confdefs.h <<\_ACEOF
42930#define wxUSE_INTL 1
42931_ACEOF
42932
42933 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
42934 GUIDIST="$GUIDIST INTL_DIST"
42935 fi
42936fi
42937
42938if test "$wxUSE_LOG" = "yes"; then
42939 cat >>confdefs.h <<\_ACEOF
42940#define wxUSE_LOG 1
42941_ACEOF
42942
42943
42944 if test "$wxUSE_LOGGUI" = "yes"; then
42945 cat >>confdefs.h <<\_ACEOF
42946#define wxUSE_LOGGUI 1
42947_ACEOF
42948
42949 fi
42950
42951 if test "$wxUSE_LOGWINDOW" = "yes"; then
42952 cat >>confdefs.h <<\_ACEOF
42953#define wxUSE_LOGWINDOW 1
42954_ACEOF
42955
42956 fi
42957
42958 if test "$wxUSE_LOGDIALOG" = "yes"; then
42959 cat >>confdefs.h <<\_ACEOF
42960#define wxUSE_LOG_DIALOG 1
42961_ACEOF
42962
42963 fi
0b78747f
MW
42964
42965 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
42966fi
42967
42968if test "$wxUSE_LONGLONG" = "yes"; then
42969 cat >>confdefs.h <<\_ACEOF
42970#define wxUSE_LONGLONG 1
42971_ACEOF
42972
42973fi
42974
42975if test "$wxUSE_GEOMETRY" = "yes"; then
42976 cat >>confdefs.h <<\_ACEOF
42977#define wxUSE_GEOMETRY 1
42978_ACEOF
42979
42980fi
42981
a848cd7e
SC
42982if test "$wxUSE_STREAMS" = "yes" ; then
42983 cat >>confdefs.h <<\_ACEOF
42984#define wxUSE_STREAMS 1
42985_ACEOF
42986
42987fi
42988
8b6682b9
JS
42989if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
42990 cat >>confdefs.h <<\_ACEOF
42991#define wxUSE_PRINTF_POS_PARAMS 1
42992_ACEOF
42993
42994fi
42995
42996
a848cd7e
SC
42997
42998if test "$wxUSE_DATETIME" = "yes"; then
42999
43000for ac_func in strptime
43001do
43002as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43003echo "$as_me:$LINENO: checking for $ac_func" >&5
43004echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43005if eval "test \"\${$as_ac_var+set}\" = set"; then
43006 echo $ECHO_N "(cached) $ECHO_C" >&6
43007else
43008 cat >conftest.$ac_ext <<_ACEOF
43009/* confdefs.h. */
43010_ACEOF
43011cat confdefs.h >>conftest.$ac_ext
43012cat >>conftest.$ac_ext <<_ACEOF
43013/* end confdefs.h. */
ac1cb8d3
VS
43014/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43016#define $ac_func innocuous_$ac_func
43017
a848cd7e
SC
43018/* System header to define __stub macros and hopefully few prototypes,
43019 which can conflict with char $ac_func (); below.
43020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43021 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43022
a848cd7e
SC
43023#ifdef __STDC__
43024# include <limits.h>
43025#else
43026# include <assert.h>
43027#endif
ac1cb8d3
VS
43028
43029#undef $ac_func
43030
a848cd7e
SC
43031/* Override any gcc2 internal prototype to avoid an error. */
43032#ifdef __cplusplus
43033extern "C"
43034{
43035#endif
43036/* We use char because int might match the return type of a gcc2
43037 builtin and then its argument prototype would still apply. */
43038char $ac_func ();
43039/* The GNU C library defines this for functions which it implements
43040 to always fail with ENOSYS. Some functions are actually named
43041 something starting with __ and the normal name is an alias. */
43042#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43043choke me
43044#else
43045char (*f) () = $ac_func;
43046#endif
43047#ifdef __cplusplus
43048}
43049#endif
43050
43051int
43052main ()
43053{
43054return f != $ac_func;
43055 ;
43056 return 0;
43057}
43058_ACEOF
43059rm -f conftest.$ac_objext conftest$ac_exeext
43060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43061 (eval $ac_link) 2>conftest.er1
a848cd7e 43062 ac_status=$?
ac1cb8d3
VS
43063 grep -v '^ *+' conftest.er1 >conftest.err
43064 rm -f conftest.er1
43065 cat conftest.err >&5
a848cd7e
SC
43066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43067 (exit $ac_status); } &&
64b75e64 43068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43070 (eval $ac_try) 2>&5
43071 ac_status=$?
43072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43073 (exit $ac_status); }; } &&
43074 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43076 (eval $ac_try) 2>&5
43077 ac_status=$?
43078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43079 (exit $ac_status); }; }; then
43080 eval "$as_ac_var=yes"
43081else
43082 echo "$as_me: failed program was:" >&5
43083sed 's/^/| /' conftest.$ac_ext >&5
43084
43085eval "$as_ac_var=no"
43086fi
ac1cb8d3
VS
43087rm -f conftest.err conftest.$ac_objext \
43088 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43089fi
43090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43091echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43092if test `eval echo '${'$as_ac_var'}'` = yes; then
43093 cat >>confdefs.h <<_ACEOF
43094#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43095_ACEOF
43096
43097fi
43098done
43099
f536f005
VZ
43100 if test "$ac_cv_func_strptime" = "yes"; then
43101 echo "$as_me:$LINENO: checking for strptime declaration" >&5
43102echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
43103if test "${wx_cv_func_strptime_decl+set}" = set; then
43104 echo $ECHO_N "(cached) $ECHO_C" >&6
43105else
43106
f536f005
VZ
43107 cat >conftest.$ac_ext <<_ACEOF
43108/* confdefs.h. */
43109_ACEOF
43110cat confdefs.h >>conftest.$ac_ext
43111cat >>conftest.$ac_ext <<_ACEOF
43112/* end confdefs.h. */
43113
43114 #include <time.h>
43115
43116int
43117main ()
43118{
43119
43120 struct tm t;
43121 strptime("foo", "bar", &t);
43122
43123 ;
43124 return 0;
43125}
43126_ACEOF
43127rm -f conftest.$ac_objext
43128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43129 (eval $ac_compile) 2>conftest.er1
43130 ac_status=$?
43131 grep -v '^ *+' conftest.er1 >conftest.err
43132 rm -f conftest.er1
43133 cat conftest.err >&5
43134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43135 (exit $ac_status); } &&
64b75e64 43136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
43137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43138 (eval $ac_try) 2>&5
43139 ac_status=$?
43140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43141 (exit $ac_status); }; } &&
43142 { ac_try='test -s conftest.$ac_objext'
43143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43144 (eval $ac_try) 2>&5
43145 ac_status=$?
43146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43147 (exit $ac_status); }; }; then
43148 wx_cv_func_strptime_decl=yes
43149else
43150 echo "$as_me: failed program was:" >&5
43151sed 's/^/| /' conftest.$ac_ext >&5
43152
43153wx_cv_func_strptime_decl=no
43154
43155fi
43156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
43157
43158
43159fi
43160echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43161echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
43162 fi
43163 if test "$wx_cv_func_strptime_decl" = "yes"; then
43164 cat >>confdefs.h <<\_ACEOF
43165#define HAVE_STRPTIME_DECL 1
43166_ACEOF
43167
43168 fi
a848cd7e
SC
43169
43170 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43171echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
43172if test "${wx_cv_var_timezone+set}" = set; then
43173 echo $ECHO_N "(cached) $ECHO_C" >&6
43174else
43175
43176 cat >conftest.$ac_ext <<_ACEOF
43177/* confdefs.h. */
43178_ACEOF
43179cat confdefs.h >>conftest.$ac_ext
43180cat >>conftest.$ac_ext <<_ACEOF
43181/* end confdefs.h. */
43182
43183 #include <time.h>
43184
43185int
43186main ()
43187{
43188
43189 int tz;
43190 tz = timezone;
43191
43192 ;
43193 return 0;
43194}
43195_ACEOF
43196rm -f conftest.$ac_objext
43197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43198 (eval $ac_compile) 2>conftest.er1
a848cd7e 43199 ac_status=$?
ac1cb8d3
VS
43200 grep -v '^ *+' conftest.er1 >conftest.err
43201 rm -f conftest.er1
43202 cat conftest.err >&5
a848cd7e
SC
43203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43204 (exit $ac_status); } &&
64b75e64 43205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43207 (eval $ac_try) 2>&5
43208 ac_status=$?
43209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43210 (exit $ac_status); }; } &&
43211 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43213 (eval $ac_try) 2>&5
43214 ac_status=$?
43215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43216 (exit $ac_status); }; }; then
43217
43218 wx_cv_var_timezone=timezone
43219
43220else
43221 echo "$as_me: failed program was:" >&5
43222sed 's/^/| /' conftest.$ac_ext >&5
43223
43224
43225 cat >conftest.$ac_ext <<_ACEOF
43226/* confdefs.h. */
43227_ACEOF
43228cat confdefs.h >>conftest.$ac_ext
43229cat >>conftest.$ac_ext <<_ACEOF
43230/* end confdefs.h. */
43231
43232 #include <time.h>
43233
43234int
43235main ()
43236{
43237
43238 int tz;
43239 tz = _timezone;
43240
43241 ;
43242 return 0;
43243}
43244_ACEOF
43245rm -f conftest.$ac_objext
43246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43247 (eval $ac_compile) 2>conftest.er1
a848cd7e 43248 ac_status=$?
ac1cb8d3
VS
43249 grep -v '^ *+' conftest.er1 >conftest.err
43250 rm -f conftest.er1
43251 cat conftest.err >&5
a848cd7e
SC
43252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43253 (exit $ac_status); } &&
64b75e64 43254 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43256 (eval $ac_try) 2>&5
43257 ac_status=$?
43258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43259 (exit $ac_status); }; } &&
43260 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43262 (eval $ac_try) 2>&5
43263 ac_status=$?
43264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43265 (exit $ac_status); }; }; then
43266
43267 wx_cv_var_timezone=_timezone
43268
43269else
43270 echo "$as_me: failed program was:" >&5
43271sed 's/^/| /' conftest.$ac_ext >&5
43272
43273
43274 cat >conftest.$ac_ext <<_ACEOF
43275/* confdefs.h. */
43276_ACEOF
43277cat confdefs.h >>conftest.$ac_ext
43278cat >>conftest.$ac_ext <<_ACEOF
43279/* end confdefs.h. */
43280
43281 #include <time.h>
43282
43283int
43284main ()
43285{
43286
43287 int tz;
43288 tz = __timezone;
43289
43290 ;
43291 return 0;
43292}
43293_ACEOF
43294rm -f conftest.$ac_objext
43295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43296 (eval $ac_compile) 2>conftest.er1
a848cd7e 43297 ac_status=$?
ac1cb8d3
VS
43298 grep -v '^ *+' conftest.er1 >conftest.err
43299 rm -f conftest.er1
43300 cat conftest.err >&5
a848cd7e
SC
43301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43302 (exit $ac_status); } &&
64b75e64 43303 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43305 (eval $ac_try) 2>&5
43306 ac_status=$?
43307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43308 (exit $ac_status); }; } &&
43309 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43311 (eval $ac_try) 2>&5
43312 ac_status=$?
43313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43314 (exit $ac_status); }; }; then
43315
43316 wx_cv_var_timezone=__timezone
43317
43318else
43319 echo "$as_me: failed program was:" >&5
43320sed 's/^/| /' conftest.$ac_ext >&5
43321
43322
43323 if test "$USE_DOS" = 0 ; then
43324 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
43325echo "$as_me: WARNING: no timezone variable" >&2;}
43326 fi
43327
43328
43329fi
ac1cb8d3 43330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43331
43332
43333fi
ac1cb8d3 43334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43335
43336
43337fi
ac1cb8d3 43338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43339
43340
43341fi
43342echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
43343echo "${ECHO_T}$wx_cv_var_timezone" >&6
43344
43345 if test "x$wx_cv_var_timezone" != x ; then
43346 cat >>confdefs.h <<_ACEOF
43347#define WX_TIMEZONE $wx_cv_var_timezone
43348_ACEOF
43349
43350 fi
43351
43352
43353for ac_func in localtime
43354do
43355as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43356echo "$as_me:$LINENO: checking for $ac_func" >&5
43357echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43358if eval "test \"\${$as_ac_var+set}\" = set"; then
43359 echo $ECHO_N "(cached) $ECHO_C" >&6
43360else
43361 cat >conftest.$ac_ext <<_ACEOF
43362/* confdefs.h. */
43363_ACEOF
43364cat confdefs.h >>conftest.$ac_ext
43365cat >>conftest.$ac_ext <<_ACEOF
43366/* end confdefs.h. */
ac1cb8d3
VS
43367/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43369#define $ac_func innocuous_$ac_func
43370
a848cd7e
SC
43371/* System header to define __stub macros and hopefully few prototypes,
43372 which can conflict with char $ac_func (); below.
43373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43374 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43375
a848cd7e
SC
43376#ifdef __STDC__
43377# include <limits.h>
43378#else
43379# include <assert.h>
43380#endif
ac1cb8d3
VS
43381
43382#undef $ac_func
43383
a848cd7e
SC
43384/* Override any gcc2 internal prototype to avoid an error. */
43385#ifdef __cplusplus
43386extern "C"
43387{
43388#endif
43389/* We use char because int might match the return type of a gcc2
43390 builtin and then its argument prototype would still apply. */
43391char $ac_func ();
43392/* The GNU C library defines this for functions which it implements
43393 to always fail with ENOSYS. Some functions are actually named
43394 something starting with __ and the normal name is an alias. */
43395#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43396choke me
43397#else
43398char (*f) () = $ac_func;
43399#endif
43400#ifdef __cplusplus
43401}
43402#endif
43403
43404int
43405main ()
43406{
43407return f != $ac_func;
43408 ;
43409 return 0;
43410}
43411_ACEOF
43412rm -f conftest.$ac_objext conftest$ac_exeext
43413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43414 (eval $ac_link) 2>conftest.er1
a848cd7e 43415 ac_status=$?
ac1cb8d3
VS
43416 grep -v '^ *+' conftest.er1 >conftest.err
43417 rm -f conftest.er1
43418 cat conftest.err >&5
a848cd7e
SC
43419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43420 (exit $ac_status); } &&
64b75e64 43421 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43423 (eval $ac_try) 2>&5
43424 ac_status=$?
43425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43426 (exit $ac_status); }; } &&
43427 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43429 (eval $ac_try) 2>&5
43430 ac_status=$?
43431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43432 (exit $ac_status); }; }; then
43433 eval "$as_ac_var=yes"
43434else
43435 echo "$as_me: failed program was:" >&5
43436sed 's/^/| /' conftest.$ac_ext >&5
43437
43438eval "$as_ac_var=no"
43439fi
ac1cb8d3
VS
43440rm -f conftest.err conftest.$ac_objext \
43441 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43442fi
43443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43444echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43445if test `eval echo '${'$as_ac_var'}'` = yes; then
43446 cat >>confdefs.h <<_ACEOF
43447#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43448_ACEOF
43449
43450fi
43451done
43452
43453
43454 if test "$ac_cv_func_localtime" = "yes"; then
43455 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
43456echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
43457if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
43458 echo $ECHO_N "(cached) $ECHO_C" >&6
43459else
43460
43461 cat >conftest.$ac_ext <<_ACEOF
43462/* confdefs.h. */
43463_ACEOF
43464cat confdefs.h >>conftest.$ac_ext
43465cat >>conftest.$ac_ext <<_ACEOF
43466/* end confdefs.h. */
43467
43468 #include <time.h>
43469
43470int
43471main ()
43472{
43473
43474 struct tm tm;
43475 tm.tm_gmtoff++;
43476
43477 ;
43478 return 0;
43479}
43480_ACEOF
43481rm -f conftest.$ac_objext
43482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43483 (eval $ac_compile) 2>conftest.er1
a848cd7e 43484 ac_status=$?
ac1cb8d3
VS
43485 grep -v '^ *+' conftest.er1 >conftest.err
43486 rm -f conftest.er1
43487 cat conftest.err >&5
a848cd7e
SC
43488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43489 (exit $ac_status); } &&
64b75e64 43490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43492 (eval $ac_try) 2>&5
43493 ac_status=$?
43494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43495 (exit $ac_status); }; } &&
43496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43498 (eval $ac_try) 2>&5
43499 ac_status=$?
43500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43501 (exit $ac_status); }; }; then
43502
43503 wx_cv_struct_tm_has_gmtoff=yes
43504
43505else
43506 echo "$as_me: failed program was:" >&5
43507sed 's/^/| /' conftest.$ac_ext >&5
43508
43509wx_cv_struct_tm_has_gmtoff=no
43510
43511fi
ac1cb8d3 43512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43513
43514fi
43515echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
43516echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
43517 fi
43518
43519 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
43520 cat >>confdefs.h <<\_ACEOF
43521#define WX_GMTOFF_IN_TM 1
43522_ACEOF
43523
43524 fi
43525
43526
43527
43528for ac_func in gettimeofday ftime
43529do
43530as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43531echo "$as_me:$LINENO: checking for $ac_func" >&5
43532echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43533if eval "test \"\${$as_ac_var+set}\" = set"; then
43534 echo $ECHO_N "(cached) $ECHO_C" >&6
43535else
43536 cat >conftest.$ac_ext <<_ACEOF
43537/* confdefs.h. */
43538_ACEOF
43539cat confdefs.h >>conftest.$ac_ext
43540cat >>conftest.$ac_ext <<_ACEOF
43541/* end confdefs.h. */
ac1cb8d3
VS
43542/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43544#define $ac_func innocuous_$ac_func
43545
a848cd7e
SC
43546/* System header to define __stub macros and hopefully few prototypes,
43547 which can conflict with char $ac_func (); below.
43548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43549 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43550
a848cd7e
SC
43551#ifdef __STDC__
43552# include <limits.h>
43553#else
43554# include <assert.h>
43555#endif
ac1cb8d3
VS
43556
43557#undef $ac_func
43558
a848cd7e
SC
43559/* Override any gcc2 internal prototype to avoid an error. */
43560#ifdef __cplusplus
43561extern "C"
43562{
43563#endif
43564/* We use char because int might match the return type of a gcc2
43565 builtin and then its argument prototype would still apply. */
43566char $ac_func ();
43567/* The GNU C library defines this for functions which it implements
43568 to always fail with ENOSYS. Some functions are actually named
43569 something starting with __ and the normal name is an alias. */
43570#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43571choke me
43572#else
43573char (*f) () = $ac_func;
43574#endif
43575#ifdef __cplusplus
43576}
43577#endif
43578
43579int
43580main ()
43581{
43582return f != $ac_func;
43583 ;
43584 return 0;
43585}
43586_ACEOF
43587rm -f conftest.$ac_objext conftest$ac_exeext
43588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43589 (eval $ac_link) 2>conftest.er1
a848cd7e 43590 ac_status=$?
ac1cb8d3
VS
43591 grep -v '^ *+' conftest.er1 >conftest.err
43592 rm -f conftest.er1
43593 cat conftest.err >&5
a848cd7e
SC
43594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43595 (exit $ac_status); } &&
64b75e64 43596 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43598 (eval $ac_try) 2>&5
43599 ac_status=$?
43600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43601 (exit $ac_status); }; } &&
43602 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43604 (eval $ac_try) 2>&5
43605 ac_status=$?
43606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43607 (exit $ac_status); }; }; then
43608 eval "$as_ac_var=yes"
43609else
43610 echo "$as_me: failed program was:" >&5
43611sed 's/^/| /' conftest.$ac_ext >&5
43612
43613eval "$as_ac_var=no"
43614fi
ac1cb8d3
VS
43615rm -f conftest.err conftest.$ac_objext \
43616 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43617fi
43618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43619echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43620if test `eval echo '${'$as_ac_var'}'` = yes; then
43621 cat >>confdefs.h <<_ACEOF
43622#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43623_ACEOF
43624 break
43625fi
43626done
43627
43628
43629 if test "$ac_cv_func_gettimeofday" = "yes"; then
43630 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43631echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
43632if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43633 echo $ECHO_N "(cached) $ECHO_C" >&6
43634else
43635
5d7b7554 43636 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
43637/* confdefs.h. */
43638_ACEOF
43639cat confdefs.h >>conftest.$ac_ext
43640cat >>conftest.$ac_ext <<_ACEOF
43641/* end confdefs.h. */
43642
43643 #include <sys/time.h>
43644 #include <unistd.h>
43645
43646int
43647main ()
43648{
43649
43650 struct timeval tv;
43651 gettimeofday(&tv, NULL);
43652
43653 ;
43654 return 0;
43655}
43656_ACEOF
43657rm -f conftest.$ac_objext
43658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43659 (eval $ac_compile) 2>conftest.er1
a848cd7e 43660 ac_status=$?
ac1cb8d3
VS
43661 grep -v '^ *+' conftest.er1 >conftest.err
43662 rm -f conftest.er1
43663 cat conftest.err >&5
a848cd7e
SC
43664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43665 (exit $ac_status); } &&
64b75e64 43666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43668 (eval $ac_try) 2>&5
43669 ac_status=$?
43670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43671 (exit $ac_status); }; } &&
43672 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43674 (eval $ac_try) 2>&5
43675 ac_status=$?
43676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43677 (exit $ac_status); }; }; then
43678 wx_cv_func_gettimeofday_has_2_args=yes
43679else
43680 echo "$as_me: failed program was:" >&5
43681sed 's/^/| /' conftest.$ac_ext >&5
43682
43683cat >conftest.$ac_ext <<_ACEOF
43684/* confdefs.h. */
43685_ACEOF
43686cat confdefs.h >>conftest.$ac_ext
43687cat >>conftest.$ac_ext <<_ACEOF
43688/* end confdefs.h. */
43689
43690 #include <sys/time.h>
43691 #include <unistd.h>
43692
43693int
43694main ()
43695{
43696
43697 struct timeval tv;
43698 gettimeofday(&tv);
43699
43700 ;
43701 return 0;
43702}
43703_ACEOF
43704rm -f conftest.$ac_objext
43705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43706 (eval $ac_compile) 2>conftest.er1
a848cd7e 43707 ac_status=$?
ac1cb8d3
VS
43708 grep -v '^ *+' conftest.er1 >conftest.err
43709 rm -f conftest.er1
43710 cat conftest.err >&5
a848cd7e
SC
43711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43712 (exit $ac_status); } &&
64b75e64 43713 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43715 (eval $ac_try) 2>&5
43716 ac_status=$?
43717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43718 (exit $ac_status); }; } &&
43719 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43721 (eval $ac_try) 2>&5
43722 ac_status=$?
43723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43724 (exit $ac_status); }; }; then
43725 wx_cv_func_gettimeofday_has_2_args=no
43726else
43727 echo "$as_me: failed program was:" >&5
43728sed 's/^/| /' conftest.$ac_ext >&5
43729
43730
43731 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43732echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43733 wx_cv_func_gettimeofday_has_2_args=unknown
43734
43735
43736fi
ac1cb8d3 43737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43738
43739fi
ac1cb8d3 43740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43741
43742fi
43743echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43744echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
43745
43746 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43747 cat >>confdefs.h <<\_ACEOF
43748#define WX_GETTIMEOFDAY_NO_TZ 1
43749_ACEOF
43750
43751 fi
43752 fi
43753
43754 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
43755fi
43756
43757
43758if test "$wxUSE_SOCKETS" = "yes"; then
43759 if test "$wxUSE_MGL" = "1"; then
43760 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
43761echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
43762 wxUSE_SOCKETS="no"
43763 fi
43764fi
43765
43766if test "$wxUSE_SOCKETS" = "yes"; then
43767 if test "$TOOLKIT" != "MSW"; then
43768 echo "$as_me:$LINENO: checking for socket" >&5
43769echo $ECHO_N "checking for socket... $ECHO_C" >&6
43770if test "${ac_cv_func_socket+set}" = set; then
43771 echo $ECHO_N "(cached) $ECHO_C" >&6
43772else
43773 cat >conftest.$ac_ext <<_ACEOF
43774/* confdefs.h. */
43775_ACEOF
43776cat confdefs.h >>conftest.$ac_ext
43777cat >>conftest.$ac_ext <<_ACEOF
43778/* end confdefs.h. */
ac1cb8d3
VS
43779/* Define socket to an innocuous variant, in case <limits.h> declares socket.
43780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43781#define socket innocuous_socket
43782
a848cd7e
SC
43783/* System header to define __stub macros and hopefully few prototypes,
43784 which can conflict with char socket (); below.
43785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43786 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43787
a848cd7e
SC
43788#ifdef __STDC__
43789# include <limits.h>
43790#else
43791# include <assert.h>
43792#endif
ac1cb8d3
VS
43793
43794#undef socket
43795
a848cd7e
SC
43796/* Override any gcc2 internal prototype to avoid an error. */
43797#ifdef __cplusplus
43798extern "C"
43799{
43800#endif
43801/* We use char because int might match the return type of a gcc2
43802 builtin and then its argument prototype would still apply. */
43803char socket ();
43804/* The GNU C library defines this for functions which it implements
43805 to always fail with ENOSYS. Some functions are actually named
43806 something starting with __ and the normal name is an alias. */
43807#if defined (__stub_socket) || defined (__stub___socket)
43808choke me
43809#else
43810char (*f) () = socket;
43811#endif
43812#ifdef __cplusplus
43813}
43814#endif
43815
43816int
43817main ()
43818{
43819return f != socket;
43820 ;
43821 return 0;
43822}
43823_ACEOF
43824rm -f conftest.$ac_objext conftest$ac_exeext
43825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43826 (eval $ac_link) 2>conftest.er1
a848cd7e 43827 ac_status=$?
ac1cb8d3
VS
43828 grep -v '^ *+' conftest.er1 >conftest.err
43829 rm -f conftest.er1
43830 cat conftest.err >&5
a848cd7e
SC
43831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43832 (exit $ac_status); } &&
64b75e64 43833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43835 (eval $ac_try) 2>&5
43836 ac_status=$?
43837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43838 (exit $ac_status); }; } &&
43839 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43841 (eval $ac_try) 2>&5
43842 ac_status=$?
43843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43844 (exit $ac_status); }; }; then
43845 ac_cv_func_socket=yes
43846else
43847 echo "$as_me: failed program was:" >&5
43848sed 's/^/| /' conftest.$ac_ext >&5
43849
43850ac_cv_func_socket=no
43851fi
ac1cb8d3
VS
43852rm -f conftest.err conftest.$ac_objext \
43853 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43854fi
43855echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
43856echo "${ECHO_T}$ac_cv_func_socket" >&6
43857if test $ac_cv_func_socket = yes; then
43858 :
43859else
43860
43861 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
43862echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
43863if test "${ac_cv_lib_socket_socket+set}" = set; then
43864 echo $ECHO_N "(cached) $ECHO_C" >&6
43865else
43866 ac_check_lib_save_LIBS=$LIBS
43867LIBS="-lsocket $LIBS"
43868cat >conftest.$ac_ext <<_ACEOF
43869/* confdefs.h. */
43870_ACEOF
43871cat confdefs.h >>conftest.$ac_ext
43872cat >>conftest.$ac_ext <<_ACEOF
43873/* end confdefs.h. */
43874
43875/* Override any gcc2 internal prototype to avoid an error. */
43876#ifdef __cplusplus
43877extern "C"
43878#endif
43879/* We use char because int might match the return type of a gcc2
43880 builtin and then its argument prototype would still apply. */
43881char socket ();
43882int
43883main ()
43884{
43885socket ();
43886 ;
43887 return 0;
43888}
43889_ACEOF
43890rm -f conftest.$ac_objext conftest$ac_exeext
43891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43892 (eval $ac_link) 2>conftest.er1
a848cd7e 43893 ac_status=$?
ac1cb8d3
VS
43894 grep -v '^ *+' conftest.er1 >conftest.err
43895 rm -f conftest.er1
43896 cat conftest.err >&5
a848cd7e
SC
43897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43898 (exit $ac_status); } &&
64b75e64 43899 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43901 (eval $ac_try) 2>&5
43902 ac_status=$?
43903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43904 (exit $ac_status); }; } &&
43905 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43907 (eval $ac_try) 2>&5
43908 ac_status=$?
43909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43910 (exit $ac_status); }; }; then
43911 ac_cv_lib_socket_socket=yes
43912else
43913 echo "$as_me: failed program was:" >&5
43914sed 's/^/| /' conftest.$ac_ext >&5
43915
43916ac_cv_lib_socket_socket=no
43917fi
ac1cb8d3
VS
43918rm -f conftest.err conftest.$ac_objext \
43919 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43920LIBS=$ac_check_lib_save_LIBS
43921fi
43922echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
43923echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
43924if test $ac_cv_lib_socket_socket = yes; then
43925 if test "$INET_LINK" != " -lsocket"; then
43926 INET_LINK="$INET_LINK -lsocket"
43927 fi
43928else
43929
43930 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
43931echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
43932 wxUSE_SOCKETS=no
43933
43934
43935fi
43936
43937
43938
43939fi
43940
43941 fi
43942fi
43943
43944if test "$wxUSE_SOCKETS" = "yes" ; then
43945 if test "$TOOLKIT" != "MSW"; then
5d7b7554 43946 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
43947echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
43948if test "${wx_cv_type_getsockname3+set}" = set; then
43949 echo $ECHO_N "(cached) $ECHO_C" >&6
43950else
43951
43952 cat >conftest.$ac_ext <<_ACEOF
43953/* confdefs.h. */
43954_ACEOF
43955cat confdefs.h >>conftest.$ac_ext
43956cat >>conftest.$ac_ext <<_ACEOF
43957/* end confdefs.h. */
43958
43959 #include <sys/types.h>
43960 #include <sys/socket.h>
43961
43962int
43963main ()
43964{
43965
43966 socklen_t len;
43967 getsockname(0, 0, &len);
43968
43969 ;
43970 return 0;
43971}
43972_ACEOF
43973rm -f conftest.$ac_objext
43974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43975 (eval $ac_compile) 2>conftest.er1
a848cd7e 43976 ac_status=$?
ac1cb8d3
VS
43977 grep -v '^ *+' conftest.er1 >conftest.err
43978 rm -f conftest.er1
43979 cat conftest.err >&5
a848cd7e
SC
43980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43981 (exit $ac_status); } &&
64b75e64 43982 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43984 (eval $ac_try) 2>&5
43985 ac_status=$?
43986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43987 (exit $ac_status); }; } &&
43988 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43990 (eval $ac_try) 2>&5
43991 ac_status=$?
43992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43993 (exit $ac_status); }; }; then
43994 wx_cv_type_getsockname3=socklen_t
43995else
43996 echo "$as_me: failed program was:" >&5
43997sed 's/^/| /' conftest.$ac_ext >&5
43998
43999
6459a506 44000 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 44001 if test "$GCC" = yes ; then
c92ad099 44002 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
44003 fi
44004
44005 cat >conftest.$ac_ext <<_ACEOF
44006/* confdefs.h. */
44007_ACEOF
44008cat confdefs.h >>conftest.$ac_ext
44009cat >>conftest.$ac_ext <<_ACEOF
44010/* end confdefs.h. */
44011
44012 #include <sys/types.h>
44013 #include <sys/socket.h>
44014
44015int
44016main ()
44017{
44018
44019 size_t len;
44020 getsockname(0, 0, &len);
44021
44022 ;
44023 return 0;
44024}
44025_ACEOF
44026rm -f conftest.$ac_objext
44027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44028 (eval $ac_compile) 2>conftest.er1
a848cd7e 44029 ac_status=$?
ac1cb8d3
VS
44030 grep -v '^ *+' conftest.er1 >conftest.err
44031 rm -f conftest.er1
44032 cat conftest.err >&5
a848cd7e
SC
44033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44034 (exit $ac_status); } &&
64b75e64 44035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44037 (eval $ac_try) 2>&5
44038 ac_status=$?
44039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44040 (exit $ac_status); }; } &&
44041 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44043 (eval $ac_try) 2>&5
44044 ac_status=$?
44045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44046 (exit $ac_status); }; }; then
44047 wx_cv_type_getsockname3=size_t
44048else
44049 echo "$as_me: failed program was:" >&5
44050sed 's/^/| /' conftest.$ac_ext >&5
44051
44052cat >conftest.$ac_ext <<_ACEOF
44053/* confdefs.h. */
44054_ACEOF
44055cat confdefs.h >>conftest.$ac_ext
44056cat >>conftest.$ac_ext <<_ACEOF
44057/* end confdefs.h. */
44058
44059 #include <sys/types.h>
44060 #include <sys/socket.h>
44061
44062int
44063main ()
44064{
44065
44066 int len;
44067 getsockname(0, 0, &len);
44068
44069 ;
44070 return 0;
44071}
44072_ACEOF
44073rm -f conftest.$ac_objext
44074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44075 (eval $ac_compile) 2>conftest.er1
a848cd7e 44076 ac_status=$?
ac1cb8d3
VS
44077 grep -v '^ *+' conftest.er1 >conftest.err
44078 rm -f conftest.er1
44079 cat conftest.err >&5
a848cd7e
SC
44080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44081 (exit $ac_status); } &&
64b75e64 44082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44084 (eval $ac_try) 2>&5
44085 ac_status=$?
44086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44087 (exit $ac_status); }; } &&
44088 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44090 (eval $ac_try) 2>&5
44091 ac_status=$?
44092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44093 (exit $ac_status); }; }; then
44094 wx_cv_type_getsockname3=int
44095else
44096 echo "$as_me: failed program was:" >&5
44097sed 's/^/| /' conftest.$ac_ext >&5
44098
44099wx_cv_type_getsockname3=unknown
44100
44101fi
ac1cb8d3 44102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44103
44104fi
ac1cb8d3 44105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 44106
6459a506 44107 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
44108
44109
44110fi
ac1cb8d3 44111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44112
44113fi
44114echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44115echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
44116
44117 if test "$wx_cv_type_getsockname3" = "unknown"; then
44118 wxUSE_SOCKETS=no
44119 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44120echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44121 else
44122 cat >>confdefs.h <<_ACEOF
9e03e02d 44123#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
44124_ACEOF
44125
44126 fi
44127 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44128echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
44129if test "${wx_cv_type_getsockopt5+set}" = set; then
44130 echo $ECHO_N "(cached) $ECHO_C" >&6
44131else
44132
44133 cat >conftest.$ac_ext <<_ACEOF
44134/* confdefs.h. */
44135_ACEOF
44136cat confdefs.h >>conftest.$ac_ext
44137cat >>conftest.$ac_ext <<_ACEOF
44138/* end confdefs.h. */
44139
44140 #include <sys/types.h>
44141 #include <sys/socket.h>
44142
44143int
44144main ()
44145{
44146
44147 socklen_t len;
44148 getsockopt(0, 0, 0, 0, &len);
44149
44150 ;
44151 return 0;
44152}
44153_ACEOF
44154rm -f conftest.$ac_objext
44155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44156 (eval $ac_compile) 2>conftest.er1
44157 ac_status=$?
44158 grep -v '^ *+' conftest.er1 >conftest.err
44159 rm -f conftest.er1
44160 cat conftest.err >&5
44161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44162 (exit $ac_status); } &&
64b75e64 44163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44165 (eval $ac_try) 2>&5
44166 ac_status=$?
44167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44168 (exit $ac_status); }; } &&
44169 { ac_try='test -s conftest.$ac_objext'
44170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44171 (eval $ac_try) 2>&5
44172 ac_status=$?
44173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44174 (exit $ac_status); }; }; then
44175 wx_cv_type_getsockopt5=socklen_t
44176else
44177 echo "$as_me: failed program was:" >&5
44178sed 's/^/| /' conftest.$ac_ext >&5
44179
44180
6459a506 44181 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 44182 if test "$GCC" = yes ; then
c92ad099 44183 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
44184 fi
44185
44186 cat >conftest.$ac_ext <<_ACEOF
44187/* confdefs.h. */
44188_ACEOF
44189cat confdefs.h >>conftest.$ac_ext
44190cat >>conftest.$ac_ext <<_ACEOF
44191/* end confdefs.h. */
44192
44193 #include <sys/types.h>
44194 #include <sys/socket.h>
44195
44196int
44197main ()
44198{
44199
44200 size_t len;
44201 getsockopt(0, 0, 0, 0, &len);
44202
44203 ;
44204 return 0;
44205}
44206_ACEOF
44207rm -f conftest.$ac_objext
44208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44209 (eval $ac_compile) 2>conftest.er1
44210 ac_status=$?
44211 grep -v '^ *+' conftest.er1 >conftest.err
44212 rm -f conftest.er1
44213 cat conftest.err >&5
44214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44215 (exit $ac_status); } &&
64b75e64 44216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44218 (eval $ac_try) 2>&5
44219 ac_status=$?
44220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44221 (exit $ac_status); }; } &&
44222 { ac_try='test -s conftest.$ac_objext'
44223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44224 (eval $ac_try) 2>&5
44225 ac_status=$?
44226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44227 (exit $ac_status); }; }; then
44228 wx_cv_type_getsockopt5=size_t
44229else
44230 echo "$as_me: failed program was:" >&5
44231sed 's/^/| /' conftest.$ac_ext >&5
44232
44233cat >conftest.$ac_ext <<_ACEOF
44234/* confdefs.h. */
44235_ACEOF
44236cat confdefs.h >>conftest.$ac_ext
44237cat >>conftest.$ac_ext <<_ACEOF
44238/* end confdefs.h. */
44239
44240 #include <sys/types.h>
44241 #include <sys/socket.h>
44242
44243int
44244main ()
44245{
44246
44247 int len;
44248 getsockopt(0, 0, 0, 0, &len);
44249
44250 ;
44251 return 0;
44252}
44253_ACEOF
44254rm -f conftest.$ac_objext
44255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44256 (eval $ac_compile) 2>conftest.er1
44257 ac_status=$?
44258 grep -v '^ *+' conftest.er1 >conftest.err
44259 rm -f conftest.er1
44260 cat conftest.err >&5
44261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44262 (exit $ac_status); } &&
64b75e64 44263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44265 (eval $ac_try) 2>&5
44266 ac_status=$?
44267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44268 (exit $ac_status); }; } &&
44269 { ac_try='test -s conftest.$ac_objext'
44270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44271 (eval $ac_try) 2>&5
44272 ac_status=$?
44273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44274 (exit $ac_status); }; }; then
44275 wx_cv_type_getsockopt5=int
44276else
44277 echo "$as_me: failed program was:" >&5
44278sed 's/^/| /' conftest.$ac_ext >&5
44279
44280wx_cv_type_getsockopt5=unknown
44281
44282fi
44283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44284
44285fi
44286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44287
6459a506 44288 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
44289
44290
44291fi
44292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44293
44294fi
44295echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44296echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
44297
44298 if test "$wx_cv_type_getsockopt5" = "unknown"; then
44299 wxUSE_SOCKETS=no
44300 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44301echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44302 else
44303 cat >>confdefs.h <<_ACEOF
44304#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
44305_ACEOF
44306
44307 fi
44308 fi
44309fi
44310
44311if test "$wxUSE_SOCKETS" = "yes" ; then
44312 cat >>confdefs.h <<\_ACEOF
44313#define wxUSE_SOCKETS 1
44314_ACEOF
44315
44316 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44317fi
44318
44319if test "$wxUSE_PROTOCOL" = "yes"; then
44320 if test "$wxUSE_SOCKETS" != "yes"; then
44321 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44322echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44323 wxUSE_PROTOCOL=no
44324 fi
44325fi
44326
44327if test "$wxUSE_PROTOCOL" = "yes"; then
44328 cat >>confdefs.h <<\_ACEOF
44329#define wxUSE_PROTOCOL 1
44330_ACEOF
44331
44332
44333 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44334 cat >>confdefs.h <<\_ACEOF
44335#define wxUSE_PROTOCOL_HTTP 1
44336_ACEOF
44337
44338 fi
44339 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44340 cat >>confdefs.h <<\_ACEOF
44341#define wxUSE_PROTOCOL_FTP 1
44342_ACEOF
44343
44344 fi
44345 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44346 cat >>confdefs.h <<\_ACEOF
44347#define wxUSE_PROTOCOL_FILE 1
44348_ACEOF
44349
44350 fi
44351else
44352 if test "$wxUSE_FS_INET" = "yes"; then
44353 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44354echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44355 wxUSE_FS_INET="no"
44356 fi
44357fi
44358
44359if test "$wxUSE_URL" = "yes"; then
44360 if test "$wxUSE_PROTOCOL" != "yes"; then
44361 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44362echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44363 wxUSE_URL=no
44364 fi
44365 if test "$wxUSE_URL" = "yes"; then
44366 cat >>confdefs.h <<\_ACEOF
44367#define wxUSE_URL 1
44368_ACEOF
44369
44370 fi
44371fi
44372
ca5c6ac3
VZ
44373if test "$wxUSE_VARIANT" = "yes"; then
44374 cat >>confdefs.h <<\_ACEOF
44375#define wxUSE_VARIANT 1
44376_ACEOF
44377
44378fi
44379
a848cd7e
SC
44380if test "$wxUSE_FS_INET" = "yes"; then
44381 cat >>confdefs.h <<\_ACEOF
44382#define wxUSE_FS_INET 1
44383_ACEOF
44384
44385fi
44386
44387
ee45c548
MW
44388if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44389 wxUSE_JOYSTICK=no
44390
44391 if test "$TOOLKIT" = "MSW"; then
44392 wxUSE_JOYSTICK=yes
44393
44394 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
44395 if test "$USE_DARWIN" = 1; then
44396 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44397echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
44398 cat >conftest.$ac_ext <<_ACEOF
44399/* confdefs.h. */
44400_ACEOF
44401cat confdefs.h >>conftest.$ac_ext
44402cat >>conftest.$ac_ext <<_ACEOF
44403/* end confdefs.h. */
44404 #include <IOKit/hid/IOHIDLib.h>
44405int
44406main ()
44407{
44408 IOHIDQueueInterface *qi = NULL;
44409 IOHIDCallbackFunction cb = NULL;
44410 qi->setEventCallout(NULL, cb, NULL, NULL);
44411 ;
44412 return 0;
44413}
44414_ACEOF
44415rm -f conftest.$ac_objext
44416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44417 (eval $ac_compile) 2>conftest.er1
44418 ac_status=$?
44419 grep -v '^ *+' conftest.er1 >conftest.err
44420 rm -f conftest.er1
44421 cat conftest.err >&5
44422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44423 (exit $ac_status); } &&
64b75e64 44424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
44425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44426 (eval $ac_try) 2>&5
44427 ac_status=$?
44428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44429 (exit $ac_status); }; } &&
44430 { ac_try='test -s conftest.$ac_objext'
44431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44432 (eval $ac_try) 2>&5
44433 ac_status=$?
44434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44435 (exit $ac_status); }; }; then
44436 wxUSE_JOYSTICK=yes
a848cd7e 44437
ee45c548
MW
44438else
44439 echo "$as_me: failed program was:" >&5
44440sed 's/^/| /' conftest.$ac_ext >&5
44441
44442fi
44443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
44444 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44445echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
44446 fi
44447
44448 else
a848cd7e
SC
44449
44450for ac_header in linux/joystick.h
44451do
44452as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44453if eval "test \"\${$as_ac_Header+set}\" = set"; then
44454 echo "$as_me:$LINENO: checking for $ac_header" >&5
44455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44456if eval "test \"\${$as_ac_Header+set}\" = set"; then
44457 echo $ECHO_N "(cached) $ECHO_C" >&6
44458fi
44459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44460echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44461else
44462 # Is the header compilable?
44463echo "$as_me:$LINENO: checking $ac_header usability" >&5
44464echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44465cat >conftest.$ac_ext <<_ACEOF
44466/* confdefs.h. */
44467_ACEOF
44468cat confdefs.h >>conftest.$ac_ext
44469cat >>conftest.$ac_ext <<_ACEOF
44470/* end confdefs.h. */
44471$ac_includes_default
44472#include <$ac_header>
44473_ACEOF
44474rm -f conftest.$ac_objext
44475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44476 (eval $ac_compile) 2>conftest.er1
a848cd7e 44477 ac_status=$?
ac1cb8d3
VS
44478 grep -v '^ *+' conftest.er1 >conftest.err
44479 rm -f conftest.er1
44480 cat conftest.err >&5
a848cd7e
SC
44481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44482 (exit $ac_status); } &&
64b75e64 44483 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44485 (eval $ac_try) 2>&5
44486 ac_status=$?
44487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44488 (exit $ac_status); }; } &&
44489 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44491 (eval $ac_try) 2>&5
44492 ac_status=$?
44493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44494 (exit $ac_status); }; }; then
44495 ac_header_compiler=yes
44496else
44497 echo "$as_me: failed program was:" >&5
44498sed 's/^/| /' conftest.$ac_ext >&5
44499
44500ac_header_compiler=no
44501fi
ac1cb8d3 44502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44503echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44504echo "${ECHO_T}$ac_header_compiler" >&6
44505
44506# Is the header present?
44507echo "$as_me:$LINENO: checking $ac_header presence" >&5
44508echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44509cat >conftest.$ac_ext <<_ACEOF
44510/* confdefs.h. */
44511_ACEOF
44512cat confdefs.h >>conftest.$ac_ext
44513cat >>conftest.$ac_ext <<_ACEOF
44514/* end confdefs.h. */
44515#include <$ac_header>
44516_ACEOF
44517if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44519 ac_status=$?
44520 grep -v '^ *+' conftest.er1 >conftest.err
44521 rm -f conftest.er1
44522 cat conftest.err >&5
44523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44524 (exit $ac_status); } >/dev/null; then
44525 if test -s conftest.err; then
5d7b7554
VZ
44526 ac_cpp_err=$ac_cxx_preproc_warn_flag
44527 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
44528 else
44529 ac_cpp_err=
44530 fi
44531else
44532 ac_cpp_err=yes
44533fi
44534if test -z "$ac_cpp_err"; then
44535 ac_header_preproc=yes
44536else
44537 echo "$as_me: failed program was:" >&5
44538sed 's/^/| /' conftest.$ac_ext >&5
44539
44540 ac_header_preproc=no
44541fi
44542rm -f conftest.err conftest.$ac_ext
44543echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44544echo "${ECHO_T}$ac_header_preproc" >&6
44545
44546# So? What about this header?
5d7b7554 44547case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 44548 yes:no: )
a848cd7e
SC
44549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44550echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
44551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44552echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44553 ac_header_preproc=yes
a848cd7e 44554 ;;
ac1cb8d3 44555 no:yes:* )
a848cd7e
SC
44556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44557echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
44558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44559echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44561echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44563echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
44564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44565echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
44566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44567echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
44568 (
44569 cat <<\_ASBOX
ac1cb8d3
VS
44570## ----------------------------------------- ##
44571## Report this to wx-dev@lists.wxwidgets.org ##
44572## ----------------------------------------- ##
a848cd7e
SC
44573_ASBOX
44574 ) |
44575 sed "s/^/$as_me: WARNING: /" >&2
44576 ;;
44577esac
44578echo "$as_me:$LINENO: checking for $ac_header" >&5
44579echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44580if eval "test \"\${$as_ac_Header+set}\" = set"; then
44581 echo $ECHO_N "(cached) $ECHO_C" >&6
44582else
ac1cb8d3 44583 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
44584fi
44585echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44586echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44587
44588fi
44589if test `eval echo '${'$as_ac_Header'}'` = yes; then
44590 cat >>confdefs.h <<_ACEOF
44591#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44592_ACEOF
ee45c548 44593 wxUSE_JOYSTICK=yes
a848cd7e
SC
44594fi
44595
44596done
44597
ee45c548 44598 fi
4cb1d3da 44599
ee45c548
MW
44600 if test "$wxUSE_JOYSTICK" = "yes"; then
44601 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44602#define wxUSE_JOYSTICK 1
44603_ACEOF
44604
ee45c548
MW
44605 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
44606 else
44607 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
44608echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
44609 fi
44610fi
44611
44612
44613
44614if test "$wxUSE_FONTMAP" = "yes" ; then
44615 cat >>confdefs.h <<\_ACEOF
44616#define wxUSE_FONTMAP 1
44617_ACEOF
44618
44619fi
44620
44621if test "$wxUSE_UNICODE" = "yes" ; then
44622 cat >>confdefs.h <<\_ACEOF
44623#define wxUSE_UNICODE 1
44624_ACEOF
44625
44626
44627 if test "$USE_WIN32" != 1; then
44628 wxUSE_UNICODE_MSLU=no
44629 fi
44630
44631 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
44632 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
44633echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
44634if test "${ac_cv_lib_unicows_main+set}" = set; then
44635 echo $ECHO_N "(cached) $ECHO_C" >&6
44636else
44637 ac_check_lib_save_LIBS=$LIBS
44638LIBS="-lunicows $LIBS"
44639cat >conftest.$ac_ext <<_ACEOF
44640/* confdefs.h. */
44641_ACEOF
44642cat confdefs.h >>conftest.$ac_ext
44643cat >>conftest.$ac_ext <<_ACEOF
44644/* end confdefs.h. */
44645
44646
44647int
44648main ()
44649{
44650main ();
44651 ;
44652 return 0;
44653}
44654_ACEOF
44655rm -f conftest.$ac_objext conftest$ac_exeext
44656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44657 (eval $ac_link) 2>conftest.er1
a848cd7e 44658 ac_status=$?
ac1cb8d3
VS
44659 grep -v '^ *+' conftest.er1 >conftest.err
44660 rm -f conftest.er1
44661 cat conftest.err >&5
a848cd7e
SC
44662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44663 (exit $ac_status); } &&
64b75e64 44664 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44666 (eval $ac_try) 2>&5
44667 ac_status=$?
44668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44669 (exit $ac_status); }; } &&
44670 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44672 (eval $ac_try) 2>&5
44673 ac_status=$?
44674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44675 (exit $ac_status); }; }; then
44676 ac_cv_lib_unicows_main=yes
44677else
44678 echo "$as_me: failed program was:" >&5
44679sed 's/^/| /' conftest.$ac_ext >&5
44680
44681ac_cv_lib_unicows_main=no
44682fi
ac1cb8d3
VS
44683rm -f conftest.err conftest.$ac_objext \
44684 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44685LIBS=$ac_check_lib_save_LIBS
44686fi
44687echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
44688echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
44689if test $ac_cv_lib_unicows_main = yes; then
44690
44691 cat >>confdefs.h <<\_ACEOF
44692#define wxUSE_UNICODE_MSLU 1
44693_ACEOF
44694
44695
44696else
44697
44698 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44699 Applications will only run on Windows NT/2000/XP!" >&5
44700echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44701 Applications will only run on Windows NT/2000/XP!" >&2;}
44702 wxUSE_UNICODE_MSLU=no
44703
44704fi
44705
44706 fi
44707fi
44708
44709if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
44710 cat >>confdefs.h <<\_ACEOF
44711#define wxUSE_EXPERIMENTAL_PRINTF 1
44712_ACEOF
44713
44714fi
44715
44716
44717if test "$wxUSE_POSTSCRIPT" = "yes" ; then
44718 cat >>confdefs.h <<\_ACEOF
44719#define wxUSE_POSTSCRIPT 1
44720_ACEOF
44721
44722fi
44723
44724cat >>confdefs.h <<\_ACEOF
44725#define wxUSE_AFM_FOR_POSTSCRIPT 1
44726_ACEOF
44727
44728
44729cat >>confdefs.h <<\_ACEOF
44730#define wxUSE_NORMALIZED_PS_FONTS 1
44731_ACEOF
44732
44733
44734
44735if test "$wxUSE_CONSTRAINTS" = "yes"; then
44736 cat >>confdefs.h <<\_ACEOF
44737#define wxUSE_CONSTRAINTS 1
44738_ACEOF
44739
44740 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
44741fi
44742
8a7b1113
VZ
44743if test "$wxUSE_MDI" = "yes"; then
44744 cat >>confdefs.h <<\_ACEOF
44745#define wxUSE_MDI 1
44746_ACEOF
44747
44748
44749 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44750 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44751#define wxUSE_MDI_ARCHITECTURE 1
44752_ACEOF
44753
8a7b1113
VZ
44754 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
44755 fi
a848cd7e
SC
44756fi
44757
44758if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
44759 cat >>confdefs.h <<\_ACEOF
44760#define wxUSE_DOC_VIEW_ARCHITECTURE 1
44761_ACEOF
44762
44763 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
44764 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44765 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
44766 fi
44767fi
44768
44769if test "$wxUSE_HELP" = "yes"; then
44770 cat >>confdefs.h <<\_ACEOF
44771#define wxUSE_HELP 1
44772_ACEOF
44773
44774 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
44775
44776 if test "$wxUSE_MSW" = 1; then
44777 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
44778 cat >>confdefs.h <<\_ACEOF
44779#define wxUSE_MS_HTML_HELP 1
44780_ACEOF
44781
44782 fi
44783 fi
44784
44785 if test "$wxUSE_WXHTML_HELP" = "yes"; then
44786 if test "$wxUSE_HTML" = "yes"; then
44787 cat >>confdefs.h <<\_ACEOF
44788#define wxUSE_WXHTML_HELP 1
44789_ACEOF
44790
44791 else
44792 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
44793echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
44794 wxUSE_WXHTML_HELP=no
44795 fi
44796 fi
44797fi
44798
44799if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44800 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44801 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
44802echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
44803 else
44804 cat >>confdefs.h <<\_ACEOF
44805#define wxUSE_PRINTING_ARCHITECTURE 1
44806_ACEOF
44807
44808 fi
44809 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
44810fi
44811
44812if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
44813 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
44814echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
44815 { (exit 1); exit 1; }; }
44816fi
44817
44818
efdf6afe
VZ
44819if test "$wxUSE_METAFILE" = "yes"; then
44820 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
44821 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
44822echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
44823 wxUSE_METAFILE=no
44824 fi
44825fi
44826
44827
a848cd7e
SC
44828if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
44829 -o "$wxUSE_CLIPBOARD" = "yes" \
44830 -o "$wxUSE_OLE" = "yes" \
44831 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
44832
44833for ac_header in ole2.h
44834do
44835as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44836if eval "test \"\${$as_ac_Header+set}\" = set"; then
44837 echo "$as_me:$LINENO: checking for $ac_header" >&5
44838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44839if eval "test \"\${$as_ac_Header+set}\" = set"; then
44840 echo $ECHO_N "(cached) $ECHO_C" >&6
44841fi
44842echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44843echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44844else
44845 # Is the header compilable?
44846echo "$as_me:$LINENO: checking $ac_header usability" >&5
44847echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44848cat >conftest.$ac_ext <<_ACEOF
44849/* confdefs.h. */
44850_ACEOF
44851cat confdefs.h >>conftest.$ac_ext
44852cat >>conftest.$ac_ext <<_ACEOF
44853/* end confdefs.h. */
44854$ac_includes_default
44855#include <$ac_header>
44856_ACEOF
44857rm -f conftest.$ac_objext
44858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44859 (eval $ac_compile) 2>conftest.er1
a848cd7e 44860 ac_status=$?
ac1cb8d3
VS
44861 grep -v '^ *+' conftest.er1 >conftest.err
44862 rm -f conftest.er1
44863 cat conftest.err >&5
a848cd7e
SC
44864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44865 (exit $ac_status); } &&
64b75e64 44866 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44868 (eval $ac_try) 2>&5
44869 ac_status=$?
44870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44871 (exit $ac_status); }; } &&
44872 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44874 (eval $ac_try) 2>&5
44875 ac_status=$?
44876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44877 (exit $ac_status); }; }; then
44878 ac_header_compiler=yes
44879else
44880 echo "$as_me: failed program was:" >&5
44881sed 's/^/| /' conftest.$ac_ext >&5
44882
44883ac_header_compiler=no
44884fi
ac1cb8d3 44885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44886echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44887echo "${ECHO_T}$ac_header_compiler" >&6
44888
44889# Is the header present?
44890echo "$as_me:$LINENO: checking $ac_header presence" >&5
44891echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44892cat >conftest.$ac_ext <<_ACEOF
44893/* confdefs.h. */
44894_ACEOF
44895cat confdefs.h >>conftest.$ac_ext
44896cat >>conftest.$ac_ext <<_ACEOF
44897/* end confdefs.h. */
44898#include <$ac_header>
44899_ACEOF
44900if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44902 ac_status=$?
44903 grep -v '^ *+' conftest.er1 >conftest.err
44904 rm -f conftest.er1
44905 cat conftest.err >&5
44906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44907 (exit $ac_status); } >/dev/null; then
44908 if test -s conftest.err; then
5d7b7554
VZ
44909 ac_cpp_err=$ac_cxx_preproc_warn_flag
44910 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
44911 else
44912 ac_cpp_err=
44913 fi
44914else
44915 ac_cpp_err=yes
44916fi
44917if test -z "$ac_cpp_err"; then
44918 ac_header_preproc=yes
44919else
44920 echo "$as_me: failed program was:" >&5
44921sed 's/^/| /' conftest.$ac_ext >&5
44922
44923 ac_header_preproc=no
44924fi
44925rm -f conftest.err conftest.$ac_ext
44926echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44927echo "${ECHO_T}$ac_header_preproc" >&6
44928
44929# So? What about this header?
5d7b7554 44930case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 44931 yes:no: )
a848cd7e
SC
44932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44933echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
44934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44935echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44936 ac_header_preproc=yes
a848cd7e 44937 ;;
ac1cb8d3 44938 no:yes:* )
a848cd7e
SC
44939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44940echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
44941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44942echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44944echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44946echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
44947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44948echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
44949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44950echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
44951 (
44952 cat <<\_ASBOX
ac1cb8d3
VS
44953## ----------------------------------------- ##
44954## Report this to wx-dev@lists.wxwidgets.org ##
44955## ----------------------------------------- ##
a848cd7e
SC
44956_ASBOX
44957 ) |
44958 sed "s/^/$as_me: WARNING: /" >&2
44959 ;;
44960esac
44961echo "$as_me:$LINENO: checking for $ac_header" >&5
44962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44963if eval "test \"\${$as_ac_Header+set}\" = set"; then
44964 echo $ECHO_N "(cached) $ECHO_C" >&6
44965else
ac1cb8d3 44966 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
44967fi
44968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44969echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44970
44971fi
44972if test `eval echo '${'$as_ac_Header'}'` = yes; then
44973 cat >>confdefs.h <<_ACEOF
44974#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44975_ACEOF
44976
44977fi
44978
44979done
44980
44981
44982 if test "$ac_cv_header_ole2_h" = "yes" ; then
44983 if test "$GCC" = yes ; then
a848cd7e
SC
44984 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
44985echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
44986 cat >conftest.$ac_ext <<_ACEOF
44987/* confdefs.h. */
44988_ACEOF
44989cat confdefs.h >>conftest.$ac_ext
44990cat >>conftest.$ac_ext <<_ACEOF
44991/* end confdefs.h. */
44992#include <windows.h>
44993 #include <ole2.h>
44994int
44995main ()
44996{
44997
44998 ;
44999 return 0;
45000}
45001_ACEOF
45002rm -f conftest.$ac_objext
45003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45004 (eval $ac_compile) 2>conftest.er1
a848cd7e 45005 ac_status=$?
ac1cb8d3
VS
45006 grep -v '^ *+' conftest.er1 >conftest.err
45007 rm -f conftest.er1
45008 cat conftest.err >&5
a848cd7e
SC
45009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45010 (exit $ac_status); } &&
64b75e64 45011 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45013 (eval $ac_try) 2>&5
45014 ac_status=$?
45015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45016 (exit $ac_status); }; } &&
45017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45019 (eval $ac_try) 2>&5
45020 ac_status=$?
45021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45022 (exit $ac_status); }; }; then
45023 echo "$as_me:$LINENO: result: no" >&5
45024echo "${ECHO_T}no" >&6
45025else
45026 echo "$as_me: failed program was:" >&5
45027sed 's/^/| /' conftest.$ac_ext >&5
45028
45029echo "$as_me:$LINENO: result: yes" >&5
45030echo "${ECHO_T}yes" >&6
5ff751d6 45031 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 45032fi
ac1cb8d3 45033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45034 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45035 if test "$wxUSE_OLE" = "yes" ; then
45036 cat >>confdefs.h <<\_ACEOF
45037#define wxUSE_OLE 1
f43426c1
RD
45038_ACEOF
45039
45040 cat >>confdefs.h <<\_ACEOF
45041#define wxUSE_OLE_AUTOMATION 1
45042_ACEOF
45043
45044 cat >>confdefs.h <<\_ACEOF
45045#define wxUSE_OLE_ACTIVEX 1
a848cd7e
SC
45046_ACEOF
45047
0b78747f 45048 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
45049 fi
45050 fi
45051
45052 if test "$wxUSE_DATAOBJ" = "yes" ; then
45053 cat >>confdefs.h <<\_ACEOF
45054#define wxUSE_DATAOBJ 1
45055_ACEOF
45056
45057 fi
45058 else
45059 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45060echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45061
45062 wxUSE_CLIPBOARD=no
45063 wxUSE_DRAG_AND_DROP=no
45064 wxUSE_DATAOBJ=no
45065 wxUSE_OLE=no
45066 fi
45067
45068 if test "$wxUSE_METAFILE" = "yes"; then
45069 cat >>confdefs.h <<\_ACEOF
45070#define wxUSE_METAFILE 1
45071_ACEOF
45072
45073
45074 cat >>confdefs.h <<\_ACEOF
45075#define wxUSE_ENH_METAFILE 1
45076_ACEOF
45077
45078 fi
45079fi
45080
45081if test "$wxUSE_IPC" = "yes"; then
0b78747f 45082 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
45083 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45084echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 45085 wxUSE_IPC=no
a848cd7e
SC
45086 fi
45087
0b78747f
MW
45088 if test "$wxUSE_IPC" = "yes"; then
45089 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45090#define wxUSE_IPC 1
45091_ACEOF
45092
0b78747f
MW
45093 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45094 fi
a848cd7e
SC
45095fi
45096
eb730a0c 45097if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
45098 if test "$wxUSE_MGL" = 1; then
45099 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
45100echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
45101 wxUSE_DATAOBJ=no
45102 else
45103 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
45104#define wxUSE_DATAOBJ 1
45105_ACEOF
45106
2113bc77 45107 fi
eb730a0c
JS
45108else
45109 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45110echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45111 wxUSE_CLIPBOARD=no
45112 wxUSE_DRAG_AND_DROP=no
45113fi
45114
a848cd7e
SC
45115if test "$wxUSE_CLIPBOARD" = "yes"; then
45116 if test "$wxUSE_MGL" = 1; then
45117 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
45118echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
45119 wxUSE_CLIPBOARD=no
45120 fi
45121
45122 if test "$wxUSE_CLIPBOARD" = "yes"; then
45123 cat >>confdefs.h <<\_ACEOF
45124#define wxUSE_CLIPBOARD 1
45125_ACEOF
45126
a848cd7e
SC
45127 fi
45128fi
45129
45130if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45131 if test "$wxUSE_GTK" = 1; then
45132 if test "$WXGTK12" != 1; then
45133 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45134echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45135 wxUSE_DRAG_AND_DROP=no
45136 fi
45137 fi
45138
45139 if test "$wxUSE_MOTIF" = 1; then
45140 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
45141echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
45142 wxUSE_DRAG_AND_DROP=no
45143 fi
45144
45145 if test "$wxUSE_X11" = 1; then
45146 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
45147echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
45148 wxUSE_DRAG_AND_DROP=no
45149 fi
45150
45151 if test "$wxUSE_MGL" = 1; then
45152 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
45153echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
45154 wxUSE_DRAG_AND_DROP=no
45155 fi
45156
45157 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45158 cat >>confdefs.h <<\_ACEOF
45159#define wxUSE_DRAG_AND_DROP 1
45160_ACEOF
45161
45162 fi
45163
45164fi
45165
45166if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45167 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45168fi
45169
45170if test "$wxUSE_SPLINES" = "yes" ; then
45171 cat >>confdefs.h <<\_ACEOF
45172#define wxUSE_SPLINES 1
45173_ACEOF
45174
45175fi
45176
fbe2ca43
SN
45177if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45178 cat >>confdefs.h <<\_ACEOF
45179#define wxUSE_MOUSEWHEEL 1
45180_ACEOF
45181
45182fi
45183
a848cd7e
SC
45184
45185USES_CONTROLS=0
45186if test "$wxUSE_CONTROLS" = "yes"; then
45187 USES_CONTROLS=1
45188fi
45189
45190if test "$wxUSE_ACCEL" = "yes"; then
45191 cat >>confdefs.h <<\_ACEOF
45192#define wxUSE_ACCEL 1
45193_ACEOF
45194
45195 USES_CONTROLS=1
45196fi
45197
7067783d 45198if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
3ea50042
VZ
45199 cat >>confdefs.h <<\_ACEOF
45200#define wxUSE_ANIMATIONCTRL 1
45201_ACEOF
45202
45203 USES_CONTROLS=1
45204 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45205fi
45206
a848cd7e
SC
45207if test "$wxUSE_BUTTON" = "yes"; then
45208 cat >>confdefs.h <<\_ACEOF
45209#define wxUSE_BUTTON 1
45210_ACEOF
45211
45212 USES_CONTROLS=1
45213fi
45214
45215if test "$wxUSE_BMPBUTTON" = "yes"; then
45216 cat >>confdefs.h <<\_ACEOF
45217#define wxUSE_BMPBUTTON 1
45218_ACEOF
45219
45220 USES_CONTROLS=1
45221fi
45222
45223if test "$wxUSE_CALCTRL" = "yes"; then
45224 cat >>confdefs.h <<\_ACEOF
45225#define wxUSE_CALENDARCTRL 1
45226_ACEOF
45227
45228 USES_CONTROLS=1
45229 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45230fi
45231
45232if test "$wxUSE_CARET" = "yes"; then
45233 cat >>confdefs.h <<\_ACEOF
45234#define wxUSE_CARET 1
45235_ACEOF
45236
45237 USES_CONTROLS=1
45238 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45239fi
45240
45241if test "$wxUSE_COMBOBOX" = "yes"; then
45242 cat >>confdefs.h <<\_ACEOF
45243#define wxUSE_COMBOBOX 1
45244_ACEOF
45245
45246 USES_CONTROLS=1
45247fi
45248
a57d600f 45249if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 45250 cat >>confdefs.h <<\_ACEOF
a57d600f 45251#define wxUSE_COMBOCTRL 1
642bcba9
VZ
45252_ACEOF
45253
45254 USES_CONTROLS=1
45255fi
45256
a848cd7e
SC
45257if test "$wxUSE_CHOICE" = "yes"; then
45258 cat >>confdefs.h <<\_ACEOF
45259#define wxUSE_CHOICE 1
45260_ACEOF
45261
45262 USES_CONTROLS=1
45263fi
45264
92bbdbcd
WS
45265if test "$wxUSE_CHOICEBOOK" = "yes"; then
45266 cat >>confdefs.h <<\_ACEOF
45267#define wxUSE_CHOICEBOOK 1
45268_ACEOF
45269
45270 USES_CONTROLS=1
45271fi
45272
a848cd7e
SC
45273if test "$wxUSE_CHECKBOX" = "yes"; then
45274 cat >>confdefs.h <<\_ACEOF
45275#define wxUSE_CHECKBOX 1
45276_ACEOF
45277
45278 USES_CONTROLS=1
45279fi
45280
45281if test "$wxUSE_CHECKLST" = "yes"; then
45282 cat >>confdefs.h <<\_ACEOF
45283#define wxUSE_CHECKLISTBOX 1
45284_ACEOF
45285
45286 USES_CONTROLS=1
45287 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
45288fi
45289
e9263684
VZ
45290if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45291 cat >>confdefs.h <<\_ACEOF
45292#define wxUSE_COLOURPICKERCTRL 1
45293_ACEOF
45294
45295 USES_CONTROLS=1
45296fi
45297
da98e9be
VZ
45298if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45299 cat >>confdefs.h <<\_ACEOF
45300#define wxUSE_DATEPICKCTRL 1
45301_ACEOF
45302
45303 USES_CONTROLS=1
45304fi
45305
e9263684
VZ
45306if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45307 cat >>confdefs.h <<\_ACEOF
45308#define wxUSE_DIRPICKERCTRL 1
45309_ACEOF
45310
45311 USES_CONTROLS=1
45312fi
45313
45314if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45315 cat >>confdefs.h <<\_ACEOF
45316#define wxUSE_FILEPICKERCTRL 1
45317_ACEOF
45318
45319 USES_CONTROLS=1
45320fi
45321
45322if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45323 cat >>confdefs.h <<\_ACEOF
45324#define wxUSE_FONTPICKERCTRL 1
45325_ACEOF
45326
45327 USES_CONTROLS=1
45328fi
45329
a848cd7e
SC
45330if test "$wxUSE_DISPLAY" = "yes"; then
45331 cat >>confdefs.h <<\_ACEOF
45332#define wxUSE_DISPLAY 1
45333_ACEOF
45334
0b78747f 45335 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
45336fi
45337
45338if test "$wxUSE_GAUGE" = "yes"; then
45339 cat >>confdefs.h <<\_ACEOF
45340#define wxUSE_GAUGE 1
45341_ACEOF
45342
45343 USES_CONTROLS=1
45344fi
45345
45346if test "$wxUSE_GRID" = "yes"; then
45347 cat >>confdefs.h <<\_ACEOF
45348#define wxUSE_GRID 1
45349_ACEOF
45350
45351 USES_CONTROLS=1
45352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45353fi
45354
6954625c
VZ
45355if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45356 cat >>confdefs.h <<\_ACEOF
45357#define wxUSE_HYPERLINKCTRL 1
45358_ACEOF
45359
45360 USES_CONTROLS=1
45361fi
45362
95a46303
RR
45363if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45364 cat >>confdefs.h <<\_ACEOF
45365#define wxUSE_BITMAPCOMBOBOX 1
45366_ACEOF
45367
45368 USES_CONTROLS=1
45369fi
45370
20e34ecc
RR
45371if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45372 cat >>confdefs.h <<\_ACEOF
45373#define wxUSE_DATAVIEWCTRL 1
45374_ACEOF
45375
45376 USES_CONTROLS=1
45377 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45378fi
45379
a848cd7e
SC
45380if test "$wxUSE_IMAGLIST" = "yes"; then
45381 cat >>confdefs.h <<\_ACEOF
45382#define wxUSE_IMAGLIST 1
45383_ACEOF
45384
45385fi
45386
45387if test "$wxUSE_LISTBOOK" = "yes"; then
45388 cat >>confdefs.h <<\_ACEOF
45389#define wxUSE_LISTBOOK 1
45390_ACEOF
45391
45392 USES_CONTROLS=1
45393fi
45394
45395if test "$wxUSE_LISTBOX" = "yes"; then
45396 cat >>confdefs.h <<\_ACEOF
45397#define wxUSE_LISTBOX 1
45398_ACEOF
45399
45400 USES_CONTROLS=1
0b78747f 45401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
45402fi
45403
45404if test "$wxUSE_LISTCTRL" = "yes"; then
45405 if test "$wxUSE_IMAGLIST" = "yes"; then
45406 cat >>confdefs.h <<\_ACEOF
45407#define wxUSE_LISTCTRL 1
45408_ACEOF
45409
45410 USES_CONTROLS=1
45411 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45412 else
45413 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45414echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45415 fi
45416fi
45417
45418if test "$wxUSE_NOTEBOOK" = "yes"; then
45419 cat >>confdefs.h <<\_ACEOF
45420#define wxUSE_NOTEBOOK 1
45421_ACEOF
45422
45423 USES_CONTROLS=1
45424 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45425fi
45426
a57d600f 45427if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 45428 cat >>confdefs.h <<\_ACEOF
a57d600f 45429#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
45430_ACEOF
45431
45432 USES_CONTROLS=1
45433 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45434fi
45435
a848cd7e
SC
45436
45437if test "$wxUSE_RADIOBOX" = "yes"; then
45438 cat >>confdefs.h <<\_ACEOF
45439#define wxUSE_RADIOBOX 1
45440_ACEOF
45441
45442 USES_CONTROLS=1
45443fi
45444
45445if test "$wxUSE_RADIOBTN" = "yes"; then
45446 cat >>confdefs.h <<\_ACEOF
45447#define wxUSE_RADIOBTN 1
45448_ACEOF
45449
45450 USES_CONTROLS=1
45451fi
45452
45453if test "$wxUSE_SASH" = "yes"; then
45454 cat >>confdefs.h <<\_ACEOF
45455#define wxUSE_SASH 1
45456_ACEOF
45457
45458 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45459fi
45460
45461if test "$wxUSE_SCROLLBAR" = "yes"; then
45462 cat >>confdefs.h <<\_ACEOF
45463#define wxUSE_SCROLLBAR 1
45464_ACEOF
45465
45466 USES_CONTROLS=1
45467 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
45468fi
45469
45470if test "$wxUSE_SLIDER" = "yes"; then
45471 cat >>confdefs.h <<\_ACEOF
45472#define wxUSE_SLIDER 1
45473_ACEOF
45474
45475 USES_CONTROLS=1
45476fi
45477
45478if test "$wxUSE_SPINBTN" = "yes"; then
45479 cat >>confdefs.h <<\_ACEOF
45480#define wxUSE_SPINBTN 1
45481_ACEOF
45482
45483 USES_CONTROLS=1
45484fi
45485
45486if test "$wxUSE_SPINCTRL" = "yes"; then
45487 cat >>confdefs.h <<\_ACEOF
45488#define wxUSE_SPINCTRL 1
45489_ACEOF
45490
45491 USES_CONTROLS=1
45492fi
45493
45494if test "$wxUSE_SPLITTER" = "yes"; then
45495 cat >>confdefs.h <<\_ACEOF
45496#define wxUSE_SPLITTER 1
45497_ACEOF
45498
45499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45500fi
45501
45502if test "$wxUSE_STATBMP" = "yes"; then
45503 cat >>confdefs.h <<\_ACEOF
45504#define wxUSE_STATBMP 1
45505_ACEOF
45506
45507 USES_CONTROLS=1
45508fi
45509
45510if test "$wxUSE_STATBOX" = "yes"; then
45511 cat >>confdefs.h <<\_ACEOF
45512#define wxUSE_STATBOX 1
45513_ACEOF
45514
45515 USES_CONTROLS=1
45516fi
45517
45518if test "$wxUSE_STATTEXT" = "yes"; then
45519 cat >>confdefs.h <<\_ACEOF
45520#define wxUSE_STATTEXT 1
45521_ACEOF
45522
45523 USES_CONTROLS=1
45524fi
45525
45526if test "$wxUSE_STATLINE" = "yes"; then
45527 cat >>confdefs.h <<\_ACEOF
45528#define wxUSE_STATLINE 1
45529_ACEOF
45530
45531 USES_CONTROLS=1
45532fi
45533
45534if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
45535 cat >>confdefs.h <<\_ACEOF
45536#define wxUSE_NATIVE_STATUSBAR 1
45537_ACEOF
45538
a848cd7e
SC
45539 cat >>confdefs.h <<\_ACEOF
45540#define wxUSE_STATUSBAR 1
45541_ACEOF
45542
45543 USES_CONTROLS=1
45544
45545 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45546fi
45547
f10e38c4 45548if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
45549 cat >>confdefs.h <<\_ACEOF
45550#define wxUSE_TAB_DIALOG 1
45551_ACEOF
45552
a848cd7e
SC
45553fi
45554
45555if test "$wxUSE_TEXTCTRL" = "yes"; then
45556 cat >>confdefs.h <<\_ACEOF
45557#define wxUSE_TEXTCTRL 1
45558_ACEOF
45559
45560 USES_CONTROLS=1
45561 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45562fi
45563
45564if test "$wxUSE_TOGGLEBTN" = "yes"; then
45565 if test "$wxUSE_COCOA" = 1 ; then
45566 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45567echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45568 wxUSE_TOGGLEBTN=no
45569 fi
a848cd7e
SC
45570
45571 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45572 cat >>confdefs.h <<\_ACEOF
45573#define wxUSE_TOGGLEBTN 1
45574_ACEOF
45575
45576 USES_CONTROLS=1
45577 fi
45578fi
45579
a848cd7e
SC
45580if test "$wxUSE_TOOLBAR" = "yes"; then
45581 cat >>confdefs.h <<\_ACEOF
45582#define wxUSE_TOOLBAR 1
45583_ACEOF
45584
45585 USES_CONTROLS=1
45586
452b6243
VS
45587 if test "$wxUSE_UNIVERSAL" = "yes"; then
45588 wxUSE_TOOLBAR_NATIVE="no"
45589 else
45590 wxUSE_TOOLBAR_NATIVE="yes"
a848cd7e
SC
45591 cat >>confdefs.h <<\_ACEOF
45592#define wxUSE_TOOLBAR_NATIVE 1
45593_ACEOF
45594
a848cd7e
SC
45595 fi
45596
45597 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
45598fi
45599
45600if test "$wxUSE_TOOLTIPS" = "yes"; then
45601 if test "$wxUSE_MOTIF" = 1; then
45602 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
45603echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
45604 else
45605 if test "$wxUSE_UNIVERSAL" = "yes"; then
45606 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
45607echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
45608 else
45609 cat >>confdefs.h <<\_ACEOF
45610#define wxUSE_TOOLTIPS 1
45611_ACEOF
45612
45613 fi
45614 fi
45615fi
45616
0093c2fc
VZ
45617if test "$wxUSE_TREEBOOK" = "yes"; then
45618 cat >>confdefs.h <<\_ACEOF
45619#define wxUSE_TREEBOOK 1
45620_ACEOF
45621
45622 USES_CONTROLS=1
45623fi
45624
5ec3bc43
JS
45625if test "$wxUSE_TOOLBOOK" = "yes"; then
45626 cat >>confdefs.h <<\_ACEOF
45627#define wxUSE_TOOLBOOK 1
45628_ACEOF
45629
45630 USES_CONTROLS=1
45631fi
45632
a848cd7e
SC
45633if test "$wxUSE_TREECTRL" = "yes"; then
45634 if test "$wxUSE_IMAGLIST" = "yes"; then
45635 cat >>confdefs.h <<\_ACEOF
45636#define wxUSE_TREECTRL 1
45637_ACEOF
45638
45639 USES_CONTROLS=1
45640 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
45641 else
45642 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
45643echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
45644 fi
45645fi
45646
45647if test "$wxUSE_POPUPWIN" = "yes"; then
45648 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45649 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
45650echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
45651 else
45652 if test "$wxUSE_PM" = 1; then
45653 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
45654echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
45655 else
45656 cat >>confdefs.h <<\_ACEOF
45657#define wxUSE_POPUPWIN 1
45658_ACEOF
45659
0b78747f 45660 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
45661
45662 USES_CONTROLS=1
45663 fi
45664 fi
45665fi
45666
0dcd06dd 45667if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
45668 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45669 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
45670echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
45671 else
45672 cat >>confdefs.h <<\_ACEOF
45673#define wxUSE_DIALUP_MANAGER 1
45674_ACEOF
45675
45676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
45677 fi
45678fi
45679
a848cd7e
SC
45680if test "$wxUSE_TIPWINDOW" = "yes"; then
45681 if test "$wxUSE_PM" = 1; then
45682 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
45683echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
45684 else
45685 cat >>confdefs.h <<\_ACEOF
45686#define wxUSE_TIPWINDOW 1
45687_ACEOF
45688
45689 fi
45690fi
45691
45692if test "$USES_CONTROLS" = 1; then
45693 cat >>confdefs.h <<\_ACEOF
45694#define wxUSE_CONTROLS 1
45695_ACEOF
45696
45697fi
45698
45699
45700if test "$wxUSE_ACCESSIBILITY" = "yes"; then
45701 cat >>confdefs.h <<\_ACEOF
45702#define wxUSE_ACCESSIBILITY 1
45703_ACEOF
45704
45705 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
45706fi
45707
38b4a946
VZ
45708if test "$wxUSE_DC_CACHEING" = "yes"; then
45709 cat >>confdefs.h <<\_ACEOF
45710#define wxUSE_DC_CACHEING 1
45711_ACEOF
45712
45713fi
45714
a848cd7e
SC
45715if test "$wxUSE_DRAGIMAGE" = "yes"; then
45716 cat >>confdefs.h <<\_ACEOF
45717#define wxUSE_DRAGIMAGE 1
45718_ACEOF
45719
45720 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
45721fi
45722
45723if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
45724 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45725 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
45726echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
45727 else
45728 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45729#define wxUSE_EXCEPTIONS 1
45730_ACEOF
45731
07bea8f0
VS
45732 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
45733 fi
a848cd7e
SC
45734fi
45735
45736USE_HTML=0
45737if test "$wxUSE_HTML" = "yes"; then
45738 cat >>confdefs.h <<\_ACEOF
45739#define wxUSE_HTML 1
45740_ACEOF
45741
45742 USE_HTML=1
45743 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
45744 if test "$wxUSE_MAC" = 1; then
45745 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
45746 fi
a848cd7e 45747fi
646b6ec1 45748if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 45749 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 45750 old_CPPFLAGS="$CPPFLAGS"
c92ad099 45751 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
45752 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
45753echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
45754if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
45755 echo $ECHO_N "(cached) $ECHO_C" >&6
45756else
45757 cat >conftest.$ac_ext <<_ACEOF
45758/* confdefs.h. */
45759_ACEOF
45760cat confdefs.h >>conftest.$ac_ext
45761cat >>conftest.$ac_ext <<_ACEOF
45762/* end confdefs.h. */
45763#include <Carbon/Carbon.h>
45764
45765#include <WebKit/HIWebView.h>
45766_ACEOF
45767rm -f conftest.$ac_objext
45768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45769 (eval $ac_compile) 2>conftest.er1
45770 ac_status=$?
45771 grep -v '^ *+' conftest.er1 >conftest.err
45772 rm -f conftest.er1
45773 cat conftest.err >&5
45774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45775 (exit $ac_status); } &&
64b75e64 45776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
45777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45778 (eval $ac_try) 2>&5
45779 ac_status=$?
45780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45781 (exit $ac_status); }; } &&
45782 { ac_try='test -s conftest.$ac_objext'
45783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45784 (eval $ac_try) 2>&5
45785 ac_status=$?
45786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45787 (exit $ac_status); }; }; then
45788 ac_cv_header_WebKit_HIWebView_h=yes
45789else
45790 echo "$as_me: failed program was:" >&5
45791sed 's/^/| /' conftest.$ac_ext >&5
45792
45793ac_cv_header_WebKit_HIWebView_h=no
45794fi
45795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45796fi
45797echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
45798echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
45799if test $ac_cv_header_WebKit_HIWebView_h = yes; then
45800
45801 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
45802#define wxUSE_WEBKIT 1
45803_ACEOF
45804
07bea8f0
VS
45805 WEBKIT_LINK="-framework WebKit"
45806
45807else
45808
45809 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
45810echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
45811 wxUSE_WEBKIT=no
45812
646b6ec1
VS
45813fi
45814
07bea8f0
VS
45815
45816 CPPFLAGS="$old_CPPFLAGS"
45817 elif test "$wxUSE_COCOA" = 1; then
45818 cat >>confdefs.h <<\_ACEOF
45819#define wxUSE_WEBKIT 1
45820_ACEOF
45821
45822 else
45823 wxUSE_WEBKIT=no
45824 fi
45825fi
45826
9a8f0513
VS
45827USE_XRC=0
45828if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
45829 if test "$wxUSE_XML" != "yes"; then
45830 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
45831echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
45832 wxUSE_XRC=no
45833 else
45834 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
45835#define wxUSE_XRC 1
45836_ACEOF
45837
d2ebf0b7
VS
45838 USE_XRC=1
45839 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
45840 fi
9a8f0513 45841fi
07bea8f0 45842
3f60522a
JS
45843USE_AUI=0
45844if test "$wxUSE_AUI" = "yes"; then
45845 cat >>confdefs.h <<\_ACEOF
45846#define wxUSE_AUI 1
45847_ACEOF
45848
45849 USE_AUI=1
45850 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
45851fi
45852
a848cd7e
SC
45853if test "$wxUSE_MENUS" = "yes"; then
45854 cat >>confdefs.h <<\_ACEOF
45855#define wxUSE_MENUS 1
45856_ACEOF
45857
45858 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
45859fi
45860
45861if test "$wxUSE_METAFILE" = "yes"; then
45862 cat >>confdefs.h <<\_ACEOF
45863#define wxUSE_METAFILE 1
45864_ACEOF
45865
45866fi
45867
45868if test "$wxUSE_MIMETYPE" = "yes"; then
45869 cat >>confdefs.h <<\_ACEOF
45870#define wxUSE_MIMETYPE 1
45871_ACEOF
45872
45873fi
45874
45875if test "$wxUSE_MINIFRAME" = "yes"; then
45876 cat >>confdefs.h <<\_ACEOF
45877#define wxUSE_MINIFRAME 1
45878_ACEOF
45879
45880 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
45881fi
45882
45883if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
45884 cat >>confdefs.h <<\_ACEOF
45885#define wxUSE_SYSTEM_OPTIONS 1
45886_ACEOF
45887
45888 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 45889 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
45890 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
45891 fi
45892fi
45893
45894
45895if test "$wxUSE_VALIDATORS" = "yes"; then
45896 cat >>confdefs.h <<\_ACEOF
45897#define wxUSE_VALIDATORS 1
45898_ACEOF
45899
45900 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
45901fi
45902
45903if test "$wxUSE_PALETTE" = "yes" ; then
45904 cat >>confdefs.h <<\_ACEOF
45905#define wxUSE_PALETTE 1
45906_ACEOF
45907
45908fi
45909
45910if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
45911 LIBS=" -lunicows $LIBS"
45912fi
45913
91dea314
MW
45914USE_RICHTEXT=0
45915if test "$wxUSE_RICHTEXT" = "yes"; then
45916 cat >>confdefs.h <<\_ACEOF
45917#define wxUSE_RICHTEXT 1
45918_ACEOF
45919
45920 USE_RICHTEXT=1
45921 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
45922fi
45923
a848cd7e
SC
45924
45925if test "$wxUSE_IMAGE" = "yes" ; then
45926 cat >>confdefs.h <<\_ACEOF
45927#define wxUSE_IMAGE 1
45928_ACEOF
45929
45930
45931 if test "$wxUSE_GIF" = "yes" ; then
45932 cat >>confdefs.h <<\_ACEOF
45933#define wxUSE_GIF 1
45934_ACEOF
45935
45936 fi
45937
45938 if test "$wxUSE_PCX" = "yes" ; then
45939 cat >>confdefs.h <<\_ACEOF
45940#define wxUSE_PCX 1
45941_ACEOF
45942
45943 fi
45944
45945 if test "$wxUSE_IFF" = "yes" ; then
45946 cat >>confdefs.h <<\_ACEOF
45947#define wxUSE_IFF 1
45948_ACEOF
45949
45950 fi
45951
45952 if test "$wxUSE_PNM" = "yes" ; then
45953 cat >>confdefs.h <<\_ACEOF
45954#define wxUSE_PNM 1
45955_ACEOF
45956
45957 fi
45958
45959 if test "$wxUSE_XPM" = "yes" ; then
45960 cat >>confdefs.h <<\_ACEOF
45961#define wxUSE_XPM 1
45962_ACEOF
45963
45964 fi
45965
45966 if test "$wxUSE_ICO_CUR" = "yes" ; then
45967 cat >>confdefs.h <<\_ACEOF
45968#define wxUSE_ICO_CUR 1
45969_ACEOF
45970
45971 fi
45972fi
45973
45974
319c5ed4
VZ
45975if test "$wxUSE_ABOUTDLG" = "yes"; then
45976 cat >>confdefs.h <<\_ACEOF
45977#define wxUSE_ABOUTDLG 1
45978_ACEOF
45979
45980fi
45981
a848cd7e
SC
45982if test "$wxUSE_CHOICEDLG" = "yes"; then
45983 cat >>confdefs.h <<\_ACEOF
45984#define wxUSE_CHOICEDLG 1
45985_ACEOF
45986
45987fi
45988
45989if test "$wxUSE_COLOURDLG" = "yes"; then
45990 cat >>confdefs.h <<\_ACEOF
45991#define wxUSE_COLOURDLG 1
45992_ACEOF
45993
45994fi
45995
45996if test "$wxUSE_FILEDLG" = "yes"; then
45997 cat >>confdefs.h <<\_ACEOF
45998#define wxUSE_FILEDLG 1
45999_ACEOF
46000
46001fi
46002
46003if test "$wxUSE_FINDREPLDLG" = "yes"; then
46004 cat >>confdefs.h <<\_ACEOF
46005#define wxUSE_FINDREPLDLG 1
46006_ACEOF
46007
46008fi
46009
46010if test "$wxUSE_FONTDLG" = "yes"; then
46011 cat >>confdefs.h <<\_ACEOF
46012#define wxUSE_FONTDLG 1
46013_ACEOF
46014
46015fi
46016
46017if test "$wxUSE_DIRDLG" = "yes"; then
46018 if test "$wxUSE_TREECTRL" != "yes"; then
46019 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46020echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46021 else
46022 cat >>confdefs.h <<\_ACEOF
46023#define wxUSE_DIRDLG 1
46024_ACEOF
46025
46026 fi
46027fi
46028
46029if test "$wxUSE_MSGDLG" = "yes"; then
46030 cat >>confdefs.h <<\_ACEOF
46031#define wxUSE_MSGDLG 1
46032_ACEOF
46033
46034fi
46035
46036if test "$wxUSE_NUMBERDLG" = "yes"; then
46037 cat >>confdefs.h <<\_ACEOF
46038#define wxUSE_NUMBERDLG 1
46039_ACEOF
46040
46041fi
46042
46043if test "$wxUSE_PROGRESSDLG" = "yes"; then
46044 if test "$wxUSE_CONSTRAINTS" != "yes"; then
46045 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
46046echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
46047 else
46048 cat >>confdefs.h <<\_ACEOF
46049#define wxUSE_PROGRESSDLG 1
46050_ACEOF
46051
46052 fi
46053fi
46054
46055if test "$wxUSE_SPLASH" = "yes"; then
46056 cat >>confdefs.h <<\_ACEOF
46057#define wxUSE_SPLASH 1
46058_ACEOF
46059
2057db16 46060 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
46061fi
46062
46063if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46064 if test "$wxUSE_CONSTRAINTS" != "yes"; then
46065 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
46066echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
46067 else
46068 cat >>confdefs.h <<\_ACEOF
46069#define wxUSE_STARTUP_TIPS 1
46070_ACEOF
46071
46072 fi
46073fi
46074
46075if test "$wxUSE_TEXTDLG" = "yes"; then
46076 cat >>confdefs.h <<\_ACEOF
46077#define wxUSE_TEXTDLG 1
46078_ACEOF
46079
46080fi
46081
46082if test "$wxUSE_WIZARDDLG" = "yes"; then
46083 cat >>confdefs.h <<\_ACEOF
46084#define wxUSE_WIZARDDLG 1
46085_ACEOF
46086
46087 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46088fi
46089
46090
64b75e64
RD
46091if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
46092 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
46093 cat >>confdefs.h <<\_ACEOF
46094#define wxUSE_GRAPHICS_CONTEXT 1
46095_ACEOF
46096
46097 elif test "$wxUSE_GTK" != 1; then
46098 cat >>confdefs.h <<\_ACEOF
46099#define wxUSE_GRAPHICS_CONTEXT 1
46100_ACEOF
46101
46102 else
46103
46104pkg_failed=no
46105echo "$as_me:$LINENO: checking for CAIRO" >&5
46106echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6
46107
46108if test -n "$PKG_CONFIG"; then
46109 if test -n "$CAIRO_CFLAGS"; then
46110 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
46111 else
46112 if test -n "$PKG_CONFIG" && \
46113 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46114 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46115 ac_status=$?
46116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46117 (exit $ac_status); }; then
46118 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
46119else
46120 pkg_failed=yes
46121fi
46122 fi
46123else
46124 pkg_failed=untried
46125fi
46126if test -n "$PKG_CONFIG"; then
46127 if test -n "$CAIRO_LIBS"; then
46128 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
46129 else
46130 if test -n "$PKG_CONFIG" && \
46131 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46132 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46133 ac_status=$?
46134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46135 (exit $ac_status); }; then
46136 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
46137else
46138 pkg_failed=yes
46139fi
46140 fi
46141else
46142 pkg_failed=untried
46143fi
46144
46145
46146
46147if test $pkg_failed = yes; then
46148
46149if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46150 _pkg_short_errors_supported=yes
46151else
46152 _pkg_short_errors_supported=no
46153fi
46154 if test $_pkg_short_errors_supported = yes; then
46155 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46156 else
46157 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46158 fi
46159 # Put the nasty error message in config.log where it belongs
46160 echo "$CAIRO_PKG_ERRORS" >&5
46161
46162
46163 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46164echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46165
46166
46167elif test $pkg_failed = untried; then
46168
46169 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46170echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46171
46172
46173else
46174 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
46175 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
46176 echo "$as_me:$LINENO: result: yes" >&5
46177echo "${ECHO_T}yes" >&6
46178
46179 cat >>confdefs.h <<\_ACEOF
46180#define wxUSE_GRAPHICS_CONTEXT 1
46181_ACEOF
46182
46183
46184fi
46185 fi
46186fi
46187
46188
f10e38c4
VZ
46189USE_MEDIA=0
46190
ce756cb0 46191if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
46192 USE_MEDIA=1
46193
ce756cb0 46194 if test "$wxUSE_GTK" = 1; then
c9a66001 46195 wxUSE_GSTREAMER="no"
ce756cb0 46196
f10e38c4
VZ
46197 GST_VERSION_MAJOR=0
46198 GST_VERSION_MINOR=10
2f6c5bb5 46199 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
46200
46201 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 46202
3ecd9f92
MW
46203pkg_failed=no
46204echo "$as_me:$LINENO: checking for GST" >&5
46205echo $ECHO_N "checking for GST... $ECHO_C" >&6
ce756cb0 46206
3ecd9f92
MW
46207if test -n "$PKG_CONFIG"; then
46208 if test -n "$GST_CFLAGS"; then
46209 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46210 else
46211 if test -n "$PKG_CONFIG" && \
46212 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46213 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46214 ac_status=$?
46215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46216 (exit $ac_status); }; then
46217 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 46218else
3ecd9f92
MW
46219 pkg_failed=yes
46220fi
46221 fi
46222else
46223 pkg_failed=untried
dae87f93 46224fi
dae87f93 46225if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
46226 if test -n "$GST_LIBS"; then
46227 pkg_cv_GST_LIBS="$GST_LIBS"
46228 else
46229 if test -n "$PKG_CONFIG" && \
46230 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46231 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46232 ac_status=$?
46233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46234 (exit $ac_status); }; then
46235 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 46236else
3ecd9f92
MW
46237 pkg_failed=yes
46238fi
46239 fi
46240else
46241 pkg_failed=untried
dae87f93
RN
46242fi
46243
dae87f93 46244
2f6c5bb5 46245
3ecd9f92 46246if test $pkg_failed = yes; then
ce756cb0 46247
3ecd9f92
MW
46248if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46249 _pkg_short_errors_supported=yes
46250else
46251 _pkg_short_errors_supported=no
46252fi
46253 if test $_pkg_short_errors_supported = yes; then
46254 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46255 else
46256 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
dae87f93 46257 fi
3ecd9f92
MW
46258 # Put the nasty error message in config.log where it belongs
46259 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
46260
46261
3ecd9f92
MW
46262 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46263echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46264 GST_VERSION_MINOR=8
dae87f93 46265
ce756cb0 46266
3ecd9f92 46267elif test $pkg_failed = untried; then
dae87f93 46268
2f6c5bb5
VZ
46269 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46270echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 46271 GST_VERSION_MINOR=8
dae87f93 46272
2f6c5bb5 46273
3ecd9f92
MW
46274else
46275 GST_CFLAGS=$pkg_cv_GST_CFLAGS
46276 GST_LIBS=$pkg_cv_GST_LIBS
46277 echo "$as_me:$LINENO: result: yes" >&5
46278echo "${ECHO_T}yes" >&6
46279
46280 wxUSE_GSTREAMER="yes"
46281 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
dae87f93 46282
3ecd9f92 46283fi
2f6c5bb5
VZ
46284 else
46285 GST_VERSION_MINOR=8
f10e38c4 46286 fi
dae87f93 46287
2f6c5bb5
VZ
46288 if test $GST_VERSION_MINOR = "8"; then
46289 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 46290
3ecd9f92
MW
46291pkg_failed=no
46292echo "$as_me:$LINENO: checking for GST" >&5
46293echo $ECHO_N "checking for GST... $ECHO_C" >&6
dae87f93 46294
3ecd9f92
MW
46295if test -n "$PKG_CONFIG"; then
46296 if test -n "$GST_CFLAGS"; then
46297 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46298 else
46299 if test -n "$PKG_CONFIG" && \
46300 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46301 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46302 ac_status=$?
46303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46304 (exit $ac_status); }; then
46305 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 46306else
3ecd9f92
MW
46307 pkg_failed=yes
46308fi
46309 fi
46310else
46311 pkg_failed=untried
dae87f93 46312fi
f10e38c4 46313if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
46314 if test -n "$GST_LIBS"; then
46315 pkg_cv_GST_LIBS="$GST_LIBS"
46316 else
46317 if test -n "$PKG_CONFIG" && \
46318 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46319 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46320 ac_status=$?
46321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46322 (exit $ac_status); }; then
46323 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 46324else
3ecd9f92
MW
46325 pkg_failed=yes
46326fi
46327 fi
46328else
46329 pkg_failed=untried
dae87f93
RN
46330fi
46331
ce756cb0 46332
2f6c5bb5 46333
3ecd9f92 46334if test $pkg_failed = yes; then
dae87f93 46335
3ecd9f92
MW
46336if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46337 _pkg_short_errors_supported=yes
46338else
46339 _pkg_short_errors_supported=no
46340fi
46341 if test $_pkg_short_errors_supported = yes; then
46342 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46343 else
46344 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 46345 fi
3ecd9f92
MW
46346 # Put the nasty error message in config.log where it belongs
46347 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
46348
46349
3ecd9f92
MW
46350 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46351echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 46352
3ecd9f92 46353elif test $pkg_failed = untried; then
ce756cb0 46354
2f6c5bb5
VZ
46355 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46356echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 46357
3ecd9f92
MW
46358else
46359 GST_CFLAGS=$pkg_cv_GST_CFLAGS
46360 GST_LIBS=$pkg_cv_GST_LIBS
46361 echo "$as_me:$LINENO: result: yes" >&5
46362echo "${ECHO_T}yes" >&6
46363 wxUSE_GSTREAMER="yes"
46364fi
dae87f93 46365 fi
ce756cb0 46366
f10e38c4 46367
dae87f93 46368 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
46369 case "${host}" in
46370 *-*-solaris2* )
46371 if "$GCC" = yes; then
46372 GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
46373 GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
46374 fi
46375 esac
46376
46377 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46378 LIBS="$GST_LIBS $LIBS"
46379
dae87f93 46380 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
46381#define wxUSE_GSTREAMER 1
46382_ACEOF
46383
2f6c5bb5
VZ
46384 else
46385 USE_MEDIA=0
ce756cb0
RN
46386 fi
46387 fi
2f6c5bb5
VZ
46388
46389 if test $USE_MEDIA = 1; then
46390 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46391 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
46392#define wxUSE_MEDIACTRL 1
46393_ACEOF
46394
2f6c5bb5 46395 fi
ce756cb0
RN
46396fi
46397
46398
a848cd7e
SC
46399if test "$cross_compiling" = "yes"; then
46400 OSINFO="\"$host\""
46401else
46402 OSINFO=`uname -s -r -m`
46403 OSINFO="\"$OSINFO\""
46404fi
46405
46406cat >>confdefs.h <<_ACEOF
46407#define WXWIN_OS_DESCRIPTION $OSINFO
46408_ACEOF
46409
46410
46411
46412if test "x$prefix" != "xNONE"; then
46413 wxPREFIX=$prefix
46414else
46415 wxPREFIX=$ac_default_prefix
46416fi
46417
46418cat >>confdefs.h <<_ACEOF
46419#define wxINSTALL_PREFIX "$wxPREFIX"
46420_ACEOF
46421
46422
a848cd7e
SC
46423
46424
46425CORE_BASE_LIBS="net base"
46426CORE_GUI_LIBS="adv core"
46427
46428if test "$wxUSE_XML" = "yes" ; then
46429 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
46430fi
46431if test "$wxUSE_ODBC" != "no" ; then
46432 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
46433 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
46434fi
46435if test "$wxUSE_HTML" = "yes" ; then
46436 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
46437fi
61639efb
VZ
46438if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46439 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
46440fi
9a8f0513
VS
46441if test "$wxUSE_XRC" = "yes" ; then
46442 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
46443fi
3f60522a
JS
46444if test "$wxUSE_AUI" = "yes" ; then
46445 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
46446fi
a848cd7e
SC
46447
46448if test "$wxUSE_GUI" != "yes"; then
46449 CORE_GUI_LIBS=""
46450fi
46451
46452
46453
46454
46455
5d7b7554
VZ
46456ac_ext=c
46457ac_cpp='$CPP $CPPFLAGS'
46458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46460ac_compiler_gnu=$ac_cv_c_compiler_gnu
46461
a848cd7e
SC
46462
46463
a848cd7e 46464if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 46465 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
46466 if test "$USE_DARWIN" = 1; then
46467 LDFLAGS="$LDFLAGS -framework QuickTime"
46468 else
46469 LDFLAGS="$LDFLAGS -lQuickTimeLib"
46470 fi
07bea8f0 46471 fi
5dcf30a0 46472 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
46473 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
46474 else
46475 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 46476 fi
a848cd7e
SC
46477fi
46478if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 46479 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
46480 if test "$wxUSE_MEDIACTRL" = "yes"; then
46481 LDFLAGS="$LDFLAGS -framework QuickTime"
46482 fi
a848cd7e 46483fi
19b27e78
MW
46484if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
46485 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
46486fi
a848cd7e 46487
a848cd7e
SC
46488LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
46489
a848cd7e
SC
46490if test "$wxUSE_GUI" = "yes"; then
46491
46492
8bce5cda
MW
46493 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
46494 dynamic erase event exec font image minimal mobile \
46495 mobile/wxedit mobile/styles propsize render \
9e39d889 46496 rotate shaped vscroll widgets"
a848cd7e
SC
46497
46498 if test "$wxUSE_MONOLITHIC" != "yes"; then
46499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
46500 fi
0b78747f 46501 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
46502 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
46503 if test "$wxUSE_UNIVERSAL" != "yes"; then
46504 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
46505 fi
46506 fi
46507 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
46508 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 46509 fi
a848cd7e
SC
46510else
46511 SAMPLES_SUBDIRS="console"
46512fi
46513
46514
48f625bc 46515if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
46516 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
46517elif test "$GCC" = yes ; then
46518 CWARNINGS="-Wall -Wundef"
46519fi
46520
48f625bc 46521if test "x$INTELCXX" = "xyes" ; then
7f47faf4 46522 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
46523elif test "$GXX" = yes ; then
46524 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 46525fi
a848cd7e 46526
a848cd7e 46527
5ff751d6
VZ
46528WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
46529WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
46530
46531
c92ad099 46532CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 46533 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
46534 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
46535 $CPPFLAGS `
5ff751d6 46536
8aeeb05c 46537C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 46538CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 46539CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
46540
46541WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
46542
a848cd7e 46543
95986553
DE
46544if test "x$MWCC" = "xyes"; then
46545
46546 CC="$CC -cwd source -I-"
46547 CXX="$CXX -cwd source -I-"
46548fi
46549
a848cd7e 46550
0c3c69fc 46551LIBS=`echo $LIBS`
a848cd7e
SC
46552EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
46553EXTRALIBS_XML="$EXPAT_LINK"
46554EXTRALIBS_HTML="$MSPACK_LINK"
46555EXTRALIBS_ODBC="$ODBC_LINK"
46556if test "$wxUSE_GUI" = "yes"; then
2b850ae1 46557 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
46558fi
46559if test "$wxUSE_OPENGL" = "yes"; then
46560 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
46561fi
46562
8aeeb05c 46563LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 46564
5ff751d6 46565WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
46566
46567if test "$wxUSE_REGEX" = "builtin" ; then
74802184 46568 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
46569fi
46570if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 46571 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
46572fi
46573if test "$wxUSE_ODBC" = "builtin" ; then
74802184 46574 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
46575fi
46576if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 46577 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
46578fi
46579if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 46580 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
46581fi
46582if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 46583 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
46584fi
46585if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 46586 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
46587fi
46588
46589for i in $wxconfig_3rdparty ; do
5ff751d6 46590 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
46591done
46592
46593
46594if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
46595 WXUNIV=1
4353a8df
VZ
46596
46597 case "$wxUNIV_THEMES" in
46598 ''|all)
46599 cat >>confdefs.h <<\_ACEOF
46600#define wxUSE_ALL_THEMES 1
46601_ACEOF
46602
46603 ;;
46604
46605 *)
46606 for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
46607 cat >>confdefs.h <<_ACEOF
46608#define wxUSE_THEME_$t 1
46609_ACEOF
46610
46611 done
46612 esac
a848cd7e
SC
46613else
46614 WXUNIV=0
46615fi
46616
46617
46618
46619
46620
46621
46622
46623
46624
46625if test $wxUSE_MONOLITHIC = "yes" ; then
46626 MONOLITHIC=1
46627else
46628 MONOLITHIC=0
46629fi
46630
46631if test $wxUSE_PLUGINS = "yes" ; then
46632 USE_PLUGINS=1
46633else
46634 USE_PLUGINS=0
46635fi
46636
46637if test $wxUSE_ODBC != "no" ; then
46638 USE_ODBC=1
46639else
46640 USE_ODBC=0
46641fi
46642
16358932
VZ
46643if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46644 USE_QA=1
46645else
46646 USE_QA=0
46647fi
46648
a848cd7e
SC
46649if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
46650 OFFICIAL_BUILD=1
46651else
46652 OFFICIAL_BUILD=0
46653fi
46654
46655
46656
46657
46658
46659
46660
46661
46662
46663
46664
46665
46666
46667
46668
46669
46670
46671
46672
ceec2216 46673
d1c38808 46674
3565d135 46675
2b850ae1 46676
a848cd7e
SC
46677
46678
46679TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
46680
46681
46682
46683
46684
46685
46686
46687
4d4ff94c
VZ
46688case "$TOOLKIT" in
46689 GTK)
c2e9ada4 46690 TOOLKIT_DESC="GTK+"
4d4ff94c 46691 if test "$WXGTK20" = 1; then
c2e9ada4
VZ
46692 TOOLKIT_DESC="$TOOLKIT_DESC 2"
46693 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
46694 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
46695 fi
46696 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
46697 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
46698 fi
46699 if test "$wxUSE_LIBHILDON" = "yes"; then
46700 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
46701 fi
46702
46703 if test "$TOOLKIT_EXTRA" != ""; then
46704 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
46705 fi
4d4ff94c 46706 fi
9a8f0513 46707 ;;
4d4ff94c 46708
c2e9ada4
VZ
46709 ?*)
46710 TOOLKIT_DESC=$TOOLKIT_LOWERCASE
46711 ;;
46712
4d4ff94c 46713 *)
c2e9ada4 46714 TOOLKIT_DESC="base only"
9a8f0513 46715 ;;
4d4ff94c 46716esac
a848cd7e 46717
fb00f58d
JS
46718if test "$wxUSE_WINE" = "yes"; then
46719 BAKEFILE_FORCE_PLATFORM=win32
46720fi
46721
7afc46ab 46722if test "$wxUSE_MAC" = 1 ; then
95768535
MW
46723 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
46724 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
46725 OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
46726 else
46727 OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
46728 fi
46729 OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
46730 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
46731 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
46732 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
7afc46ab
KO
46733 bk_use_pch=no
46734 fi
46735 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
46736 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
7afc46ab
KO
46737fi
46738
9a8f0513 46739
1e9e8aba
DE
46740
46741
a848cd7e 46742 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
46743 if test "x${host}" = "x" ; then
46744 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
46745echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
46746 { (exit 1); exit 1; }; }
46747 fi
46748
a848cd7e
SC
46749 BAKEFILE_HOST="${host}"
46750 fi
46751
46752 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
46753
46754 if test -n "$ac_tool_prefix"; then
46755 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
46756set dummy ${ac_tool_prefix}ranlib; ac_word=$2
46757echo "$as_me:$LINENO: checking for $ac_word" >&5
46758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46759if test "${ac_cv_prog_RANLIB+set}" = set; then
46760 echo $ECHO_N "(cached) $ECHO_C" >&6
46761else
46762 if test -n "$RANLIB"; then
46763 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
46764else
46765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46766for as_dir in $PATH
46767do
46768 IFS=$as_save_IFS
46769 test -z "$as_dir" && as_dir=.
46770 for ac_exec_ext in '' $ac_executable_extensions; do
46771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46772 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
46773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46774 break 2
46775 fi
46776done
46777done
46778
46779fi
46780fi
46781RANLIB=$ac_cv_prog_RANLIB
46782if test -n "$RANLIB"; then
46783 echo "$as_me:$LINENO: result: $RANLIB" >&5
46784echo "${ECHO_T}$RANLIB" >&6
46785else
46786 echo "$as_me:$LINENO: result: no" >&5
46787echo "${ECHO_T}no" >&6
46788fi
46789
46790fi
46791if test -z "$ac_cv_prog_RANLIB"; then
46792 ac_ct_RANLIB=$RANLIB
46793 # Extract the first word of "ranlib", so it can be a program name with args.
46794set dummy ranlib; ac_word=$2
46795echo "$as_me:$LINENO: checking for $ac_word" >&5
46796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46797if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
46798 echo $ECHO_N "(cached) $ECHO_C" >&6
46799else
46800 if test -n "$ac_ct_RANLIB"; then
46801 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
46802else
46803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46804for as_dir in $PATH
46805do
46806 IFS=$as_save_IFS
46807 test -z "$as_dir" && as_dir=.
46808 for ac_exec_ext in '' $ac_executable_extensions; do
46809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46810 ac_cv_prog_ac_ct_RANLIB="ranlib"
46811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46812 break 2
46813 fi
46814done
46815done
46816
46817 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
46818fi
46819fi
46820ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
46821if test -n "$ac_ct_RANLIB"; then
46822 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
46823echo "${ECHO_T}$ac_ct_RANLIB" >&6
46824else
46825 echo "$as_me:$LINENO: result: no" >&5
46826echo "${ECHO_T}no" >&6
46827fi
46828
46829 RANLIB=$ac_ct_RANLIB
46830else
46831 RANLIB="$ac_cv_prog_RANLIB"
46832fi
46833
46834 # Find a good install program. We prefer a C program (faster),
46835# so one script is as good as another. But avoid the broken or
46836# incompatible versions:
46837# SysV /etc/install, /usr/sbin/install
46838# SunOS /usr/etc/install
46839# IRIX /sbin/install
46840# AIX /bin/install
46841# AmigaOS /C/install, which installs bootblocks on floppy discs
46842# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
46843# AFS /usr/afsws/bin/install, which mishandles nonexistent args
46844# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 46845# OS/2's system install, which has a completely different semantic
a848cd7e
SC
46846# ./install, which can be erroneously created by make from ./install.sh.
46847echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
46848echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
46849if test -z "$INSTALL"; then
46850if test "${ac_cv_path_install+set}" = set; then
46851 echo $ECHO_N "(cached) $ECHO_C" >&6
46852else
46853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46854for as_dir in $PATH
46855do
46856 IFS=$as_save_IFS
46857 test -z "$as_dir" && as_dir=.
46858 # Account for people who put trailing slashes in PATH elements.
46859case $as_dir/ in
46860 ./ | .// | /cC/* | \
46861 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 46862 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
46863 /usr/ucb/* ) ;;
46864 *)
46865 # OSF1 and SCO ODT 3.0 have their own names for install.
46866 # Don't use installbsd from OSF since it installs stuff as root
46867 # by default.
46868 for ac_prog in ginstall scoinst install; do
46869 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
46870 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
46871 if test $ac_prog = install &&
46872 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46873 # AIX install. It has an incompatible calling convention.
46874 :
46875 elif test $ac_prog = install &&
46876 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46877 # program-specific install script used by HP pwplus--don't use.
46878 :
46879 else
46880 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
46881 break 3
46882 fi
46883 fi
a848cd7e
SC
46884 done
46885 done
46886 ;;
46887esac
46888done
46889
46890
46891fi
46892 if test "${ac_cv_path_install+set}" = set; then
46893 INSTALL=$ac_cv_path_install
46894 else
46895 # As a last resort, use the slow shell script. We don't cache a
46896 # path for INSTALL within a source directory, because that will
46897 # break other packages using the cache if that directory is
46898 # removed, or if the path is relative.
46899 INSTALL=$ac_install_sh
46900 fi
46901fi
46902echo "$as_me:$LINENO: result: $INSTALL" >&5
46903echo "${ECHO_T}$INSTALL" >&6
46904
46905# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
46906# It thinks the first close brace ends the variable substitution.
46907test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
46908
46909test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
46910
46911test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
46912
46913 echo "$as_me:$LINENO: checking whether ln -s works" >&5
46914echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
46915LN_S=$as_ln_s
46916if test "$LN_S" = "ln -s"; then
46917 echo "$as_me:$LINENO: result: yes" >&5
46918echo "${ECHO_T}yes" >&6
46919else
46920 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
46921echo "${ECHO_T}no, using $LN_S" >&6
46922fi
46923
46924
46925 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46926echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 46927set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
46928if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46929 echo $ECHO_N "(cached) $ECHO_C" >&6
46930else
46931 cat >conftest.make <<\_ACEOF
46932all:
46933 @echo 'ac_maketemp="$(MAKE)"'
46934_ACEOF
46935# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46936eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46937if test -n "$ac_maketemp"; then
46938 eval ac_cv_prog_make_${ac_make}_set=yes
46939else
46940 eval ac_cv_prog_make_${ac_make}_set=no
46941fi
46942rm -f conftest.make
46943fi
46944if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46945 echo "$as_me:$LINENO: result: yes" >&5
46946echo "${ECHO_T}yes" >&6
46947 SET_MAKE=
46948else
46949 echo "$as_me:$LINENO: result: no" >&5
46950echo "${ECHO_T}no" >&6
46951 SET_MAKE="MAKE=${MAKE-make}"
46952fi
46953
46954
46955
46956 if test -n "$ac_tool_prefix"; then
46957 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
46958set dummy ${ac_tool_prefix}ar; ac_word=$2
46959echo "$as_me:$LINENO: checking for $ac_word" >&5
46960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46961if test "${ac_cv_prog_AR+set}" = set; then
46962 echo $ECHO_N "(cached) $ECHO_C" >&6
46963else
46964 if test -n "$AR"; then
46965 ac_cv_prog_AR="$AR" # Let the user override the test.
46966else
46967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46968for as_dir in $PATH
46969do
46970 IFS=$as_save_IFS
46971 test -z "$as_dir" && as_dir=.
46972 for ac_exec_ext in '' $ac_executable_extensions; do
46973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46974 ac_cv_prog_AR="${ac_tool_prefix}ar"
46975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46976 break 2
46977 fi
46978done
46979done
46980
46981fi
46982fi
46983AR=$ac_cv_prog_AR
46984if test -n "$AR"; then
46985 echo "$as_me:$LINENO: result: $AR" >&5
46986echo "${ECHO_T}$AR" >&6
46987else
46988 echo "$as_me:$LINENO: result: no" >&5
46989echo "${ECHO_T}no" >&6
46990fi
46991
46992fi
46993if test -z "$ac_cv_prog_AR"; then
46994 ac_ct_AR=$AR
46995 # Extract the first word of "ar", so it can be a program name with args.
46996set dummy ar; ac_word=$2
46997echo "$as_me:$LINENO: checking for $ac_word" >&5
46998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46999if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47000 echo $ECHO_N "(cached) $ECHO_C" >&6
47001else
47002 if test -n "$ac_ct_AR"; then
47003 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47004else
47005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47006for as_dir in $PATH
47007do
47008 IFS=$as_save_IFS
47009 test -z "$as_dir" && as_dir=.
47010 for ac_exec_ext in '' $ac_executable_extensions; do
47011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47012 ac_cv_prog_ac_ct_AR="ar"
47013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47014 break 2
47015 fi
47016done
47017done
47018
47019 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
47020fi
47021fi
47022ac_ct_AR=$ac_cv_prog_ac_ct_AR
47023if test -n "$ac_ct_AR"; then
47024 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47025echo "${ECHO_T}$ac_ct_AR" >&6
47026else
47027 echo "$as_me:$LINENO: result: no" >&5
47028echo "${ECHO_T}no" >&6
47029fi
47030
47031 AR=$ac_ct_AR
47032else
47033 AR="$ac_cv_prog_AR"
47034fi
47035
47036 if test -n "$ac_tool_prefix"; then
47037 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47038set dummy ${ac_tool_prefix}strip; ac_word=$2
47039echo "$as_me:$LINENO: checking for $ac_word" >&5
47040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47041if test "${ac_cv_prog_STRIP+set}" = set; then
47042 echo $ECHO_N "(cached) $ECHO_C" >&6
47043else
47044 if test -n "$STRIP"; then
47045 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47046else
47047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47048for as_dir in $PATH
47049do
47050 IFS=$as_save_IFS
47051 test -z "$as_dir" && as_dir=.
47052 for ac_exec_ext in '' $ac_executable_extensions; do
47053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47054 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47056 break 2
47057 fi
47058done
47059done
47060
47061fi
47062fi
47063STRIP=$ac_cv_prog_STRIP
47064if test -n "$STRIP"; then
47065 echo "$as_me:$LINENO: result: $STRIP" >&5
47066echo "${ECHO_T}$STRIP" >&6
47067else
47068 echo "$as_me:$LINENO: result: no" >&5
47069echo "${ECHO_T}no" >&6
47070fi
47071
47072fi
47073if test -z "$ac_cv_prog_STRIP"; then
47074 ac_ct_STRIP=$STRIP
47075 # Extract the first word of "strip", so it can be a program name with args.
47076set dummy strip; ac_word=$2
47077echo "$as_me:$LINENO: checking for $ac_word" >&5
47078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47079if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47080 echo $ECHO_N "(cached) $ECHO_C" >&6
47081else
47082 if test -n "$ac_ct_STRIP"; then
47083 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47084else
47085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47086for as_dir in $PATH
47087do
47088 IFS=$as_save_IFS
47089 test -z "$as_dir" && as_dir=.
47090 for ac_exec_ext in '' $ac_executable_extensions; do
47091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47092 ac_cv_prog_ac_ct_STRIP="strip"
47093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47094 break 2
47095 fi
47096done
47097done
47098
47099 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
47100fi
47101fi
47102ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47103if test -n "$ac_ct_STRIP"; then
47104 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47105echo "${ECHO_T}$ac_ct_STRIP" >&6
47106else
47107 echo "$as_me:$LINENO: result: no" >&5
47108echo "${ECHO_T}no" >&6
47109fi
47110
47111 STRIP=$ac_ct_STRIP
47112else
47113 STRIP="$ac_cv_prog_STRIP"
47114fi
47115
47116 if test -n "$ac_tool_prefix"; then
47117 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47118set dummy ${ac_tool_prefix}nm; ac_word=$2
47119echo "$as_me:$LINENO: checking for $ac_word" >&5
47120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47121if test "${ac_cv_prog_NM+set}" = set; then
47122 echo $ECHO_N "(cached) $ECHO_C" >&6
47123else
47124 if test -n "$NM"; then
47125 ac_cv_prog_NM="$NM" # Let the user override the test.
47126else
47127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47128for as_dir in $PATH
47129do
47130 IFS=$as_save_IFS
47131 test -z "$as_dir" && as_dir=.
47132 for ac_exec_ext in '' $ac_executable_extensions; do
47133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47134 ac_cv_prog_NM="${ac_tool_prefix}nm"
47135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47136 break 2
47137 fi
47138done
47139done
47140
47141fi
47142fi
47143NM=$ac_cv_prog_NM
47144if test -n "$NM"; then
47145 echo "$as_me:$LINENO: result: $NM" >&5
47146echo "${ECHO_T}$NM" >&6
47147else
47148 echo "$as_me:$LINENO: result: no" >&5
47149echo "${ECHO_T}no" >&6
47150fi
47151
47152fi
47153if test -z "$ac_cv_prog_NM"; then
47154 ac_ct_NM=$NM
47155 # Extract the first word of "nm", so it can be a program name with args.
47156set dummy nm; ac_word=$2
47157echo "$as_me:$LINENO: checking for $ac_word" >&5
47158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47159if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47160 echo $ECHO_N "(cached) $ECHO_C" >&6
47161else
47162 if test -n "$ac_ct_NM"; then
47163 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47164else
47165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47166for as_dir in $PATH
47167do
47168 IFS=$as_save_IFS
47169 test -z "$as_dir" && as_dir=.
47170 for ac_exec_ext in '' $ac_executable_extensions; do
47171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47172 ac_cv_prog_ac_ct_NM="nm"
47173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47174 break 2
47175 fi
47176done
47177done
47178
47179 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
47180fi
47181fi
47182ac_ct_NM=$ac_cv_prog_ac_ct_NM
47183if test -n "$ac_ct_NM"; then
47184 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47185echo "${ECHO_T}$ac_ct_NM" >&6
47186else
47187 echo "$as_me:$LINENO: result: no" >&5
47188echo "${ECHO_T}no" >&6
47189fi
47190
47191 NM=$ac_ct_NM
47192else
47193 NM="$ac_cv_prog_NM"
47194fi
47195
47196
47197 case ${BAKEFILE_HOST} in
47198 *-hp-hpux* )
1e9e8aba 47199 INSTALL_DIR="mkdir -p"
a848cd7e
SC
47200 ;;
47201 *) INSTALL_DIR="$INSTALL -d"
47202 ;;
47203 esac
47204
47205
47206 LDFLAGS_GUI=
47207 case ${BAKEFILE_HOST} in
47208 *-*-cygwin* | *-*-mingw32* )
47209 LDFLAGS_GUI="-mwindows"
47210 esac
47211
47212
47213 fi
47214
47215 echo "$as_me:$LINENO: checking if make is GNU make" >&5
47216echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
47217if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47218 echo $ECHO_N "(cached) $ECHO_C" >&6
47219else
47220
47221 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47222 egrep -s GNU > /dev/null); then
47223 bakefile_cv_prog_makeisgnu="yes"
47224 else
47225 bakefile_cv_prog_makeisgnu="no"
47226 fi
47227
47228fi
47229echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47230echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
47231
47232 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47233 IF_GNU_MAKE=""
47234 else
47235 IF_GNU_MAKE="#"
47236 fi
47237
47238
47239
47240 PLATFORM_UNIX=0
47241 PLATFORM_WIN32=0
47242 PLATFORM_MSDOS=0
47243 PLATFORM_MAC=0
1e9e8aba 47244 PLATFORM_MACOS=0
a848cd7e
SC
47245 PLATFORM_MACOSX=0
47246 PLATFORM_OS2=0
1e9e8aba 47247 PLATFORM_BEOS=0
a848cd7e
SC
47248
47249 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
47250 case "${BAKEFILE_HOST}" in
810b94f0 47251 *-*-mingw32* )
a848cd7e
SC
47252 PLATFORM_WIN32=1
47253 ;;
47254 *-pc-msdosdjgpp )
47255 PLATFORM_MSDOS=1
47256 ;;
47257 *-pc-os2_emx | *-pc-os2-emx )
47258 PLATFORM_OS2=1
47259 ;;
47bd5406 47260 *-*-darwin* )
a848cd7e
SC
47261 PLATFORM_MAC=1
47262 PLATFORM_MACOSX=1
47263 ;;
1e9e8aba
DE
47264 *-*-beos* )
47265 PLATFORM_BEOS=1
47266 ;;
47267 powerpc-apple-macos* )
47268 PLATFORM_MAC=1
47269 PLATFORM_MACOS=1
47270 ;;
a848cd7e
SC
47271 * )
47272 PLATFORM_UNIX=1
47273 ;;
47274 esac
47275 else
47276 case "$BAKEFILE_FORCE_PLATFORM" in
47277 win32 )
47278 PLATFORM_WIN32=1
47279 ;;
47280 msdos )
47281 PLATFORM_MSDOS=1
47282 ;;
47283 os2 )
47284 PLATFORM_OS2=1
47285 ;;
47286 darwin )
47287 PLATFORM_MAC=1
47288 PLATFORM_MACOSX=1
47289 ;;
47290 unix )
47291 PLATFORM_UNIX=1
47292 ;;
1e9e8aba
DE
47293 beos )
47294 PLATFORM_BEOS=1
47295 ;;
a848cd7e
SC
47296 * )
47297 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
47298echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
47299 { (exit 1); exit 1; }; }
47300 ;;
47301 esac
47302 fi
47303
47304
47305
47306
47307
47308
47309
47310
47311
1e9e8aba
DE
47312
47313
a848cd7e
SC
47314 # Check whether --enable-omf or --disable-omf was given.
47315if test "${enable_omf+set}" = set; then
47316 enableval="$enable_omf"
47317 bk_os2_use_omf="$enableval"
47318fi;
47319
47320 case "${BAKEFILE_HOST}" in
47321 *-*-darwin* )
47bd5406
VZ
47322 if test "x$GCC" = "xyes"; then
47323 CFLAGS="$CFLAGS -fno-common"
47324 CXXFLAGS="$CXXFLAGS -fno-common"
47325 fi
47326 if test "x$XLCC" = "xyes"; then
47327 CFLAGS="$CFLAGS -qnocommon"
47328 CXXFLAGS="$CXXFLAGS -qnocommon"
47329 fi
a848cd7e
SC
47330 ;;
47331
47332 *-pc-os2_emx | *-pc-os2-emx )
47333 if test "x$bk_os2_use_omf" = "xyes" ; then
47334 AR=emxomfar
47335 RANLIB=:
47336 LDFLAGS="-Zomf $LDFLAGS"
47337 CFLAGS="-Zomf $CFLAGS"
47338 CXXFLAGS="-Zomf $CXXFLAGS"
47339 OS2_LIBEXT="lib"
47340 else
47341 OS2_LIBEXT="a"
47342 fi
47343 ;;
1e9e8aba
DE
47344
47345 i*86-*-beos* )
47346 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
47347 ;;
a848cd7e
SC
47348 esac
47349
47350
47351 SO_SUFFIX="so"
47352 SO_SUFFIX_MODULE="so"
47353 EXEEXT=""
47354 LIBPREFIX="lib"
47355 LIBEXT=".a"
47356 DLLPREFIX="lib"
47357 DLLPREFIX_MODULE=""
47358 DLLIMP_SUFFIX=""
810b94f0 47359 dlldir="$libdir"
a848cd7e
SC
47360
47361 case "${BAKEFILE_HOST}" in
47362 *-hp-hpux* )
47363 SO_SUFFIX="sl"
47364 SO_SUFFIX_MODULE="sl"
47365 ;;
47366 *-*-aix* )
47367 SO_SUFFIX="a"
47368 SO_SUFFIX_MODULE="a"
47369 ;;
810b94f0
MW
47370 *-*-cygwin* )
47371 SO_SUFFIX="dll"
47372 SO_SUFFIX_MODULE="dll"
47373 DLLIMP_SUFFIX="dll.a"
47374 EXEEXT=".exe"
47375 DLLPREFIX="cyg"
47376 dlldir="$bindir"
47377 ;;
47378 *-*-mingw32* )
a848cd7e
SC
47379 SO_SUFFIX="dll"
47380 SO_SUFFIX_MODULE="dll"
47381 DLLIMP_SUFFIX="dll.a"
47382 EXEEXT=".exe"
47383 DLLPREFIX=""
810b94f0 47384 dlldir="$bindir"
a848cd7e
SC
47385 ;;
47386 *-pc-msdosdjgpp )
47387 EXEEXT=".exe"
47388 DLLPREFIX=""
810b94f0 47389 dlldir="$bindir"
a848cd7e
SC
47390 ;;
47391 *-pc-os2_emx | *-pc-os2-emx )
47392 SO_SUFFIX="dll"
47393 SO_SUFFIX_MODULE="dll"
47394 DLLIMP_SUFFIX=$OS2_LIBEXT
47395 EXEEXT=".exe"
47396 DLLPREFIX=""
47397 LIBPREFIX=""
47398 LIBEXT=".$OS2_LIBEXT"
810b94f0 47399 dlldir="$bindir"
a848cd7e 47400 ;;
47bd5406 47401 *-*-darwin* )
a848cd7e
SC
47402 SO_SUFFIX="dylib"
47403 SO_SUFFIX_MODULE="bundle"
47404 ;;
47405 esac
47406
47407 if test "x$DLLIMP_SUFFIX" = "x" ; then
47408 DLLIMP_SUFFIX="$SO_SUFFIX"
47409 fi
47410
47411
47412
47413
47414
47415
47416
47417
47418
47419
47420
810b94f0 47421
1e9e8aba
DE
47422 PIC_FLAG=""
47423 if test "x$GCC" = "xyes"; then
a848cd7e
SC
47424 PIC_FLAG="-fPIC"
47425 fi
47426
1e9e8aba
DE
47427 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
47428 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 47429 WINDOWS_IMPLIB=0
1e9e8aba 47430
a848cd7e
SC
47431 case "${BAKEFILE_HOST}" in
47432 *-hp-hpux* )
1e9e8aba 47433 if test "x$GCC" != "xyes"; then
a848cd7e
SC
47434 LDFLAGS="$LDFLAGS -L/usr/lib"
47435
47436 SHARED_LD_CC="${CC} -b -o"
47437 SHARED_LD_CXX="${CXX} -b -o"
47438 PIC_FLAG="+Z"
47439 fi
47440 ;;
47441
47442 *-*-linux* )
47443 if test "x$GCC" != "xyes"; then
47444 echo "$as_me:$LINENO: checking for Intel compiler" >&5
47445echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
47446if test "${bakefile_cv_prog_icc+set}" = set; then
47447 echo $ECHO_N "(cached) $ECHO_C" >&6
47448else
47449
47450 cat >conftest.$ac_ext <<_ACEOF
47451/* confdefs.h. */
47452_ACEOF
47453cat confdefs.h >>conftest.$ac_ext
47454cat >>conftest.$ac_ext <<_ACEOF
47455/* end confdefs.h. */
47456
47457int
47458main ()
47459{
47460
47461 #ifndef __INTEL_COMPILER
e5efa97e 47462 This is not ICC
a848cd7e
SC
47463 #endif
47464
47465 ;
47466 return 0;
47467}
47468_ACEOF
47469rm -f conftest.$ac_objext
47470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47471 (eval $ac_compile) 2>conftest.er1
a848cd7e 47472 ac_status=$?
ac1cb8d3
VS
47473 grep -v '^ *+' conftest.er1 >conftest.err
47474 rm -f conftest.er1
47475 cat conftest.err >&5
a848cd7e
SC
47476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47477 (exit $ac_status); } &&
64b75e64 47478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
47479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47480 (eval $ac_try) 2>&5
47481 ac_status=$?
47482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47483 (exit $ac_status); }; } &&
47484 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47486 (eval $ac_try) 2>&5
47487 ac_status=$?
47488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47489 (exit $ac_status); }; }; then
47490 bakefile_cv_prog_icc=yes
47491else
47492 echo "$as_me: failed program was:" >&5
47493sed 's/^/| /' conftest.$ac_ext >&5
47494
47495bakefile_cv_prog_icc=no
47496
47497fi
ac1cb8d3 47498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
47499
47500fi
47501echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
47502echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
47503 if test "$bakefile_cv_prog_icc" = "yes"; then
47504 PIC_FLAG="-KPIC"
47505 fi
47506 fi
47507 ;;
47508
47509 *-*-solaris2* )
47510 if test "x$GCC" != xyes ; then
47511 SHARED_LD_CC="${CC} -G -o"
47512 SHARED_LD_CXX="${CXX} -G -o"
47513 PIC_FLAG="-KPIC"
47514 fi
47515 ;;
47516
47517 *-*-darwin* )
47518
473276a9
VS
47519D='$'
47520cat <<EOF >shared-ld-sh
a848cd7e
SC
47521#!/bin/sh
47522#-----------------------------------------------------------------------------
47523#-- Name: distrib/mac/shared-ld-sh
47524#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
47525#-- Author: Gilles Depeyrot
47526#-- Copyright: (c) 2002 Gilles Depeyrot
47527#-- Licence: any use permitted
47528#-----------------------------------------------------------------------------
47529
47530verbose=0
47531args=""
47532objects=""
47533linking_flag="-dynamiclib"
810b94f0 47534ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 47535
473276a9
VS
47536while test ${D}# -gt 0; do
47537 case ${D}1 in
a848cd7e
SC
47538
47539 -v)
47540 verbose=1
47541 ;;
47542
47543 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
47544 # collect these options and values
473276a9 47545 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
47546 shift
47547 ;;
47548
810b94f0
MW
47549 -s|-Wl,*)
47550 # collect these load args
47551 ldargs="${D}{ldargs} ${D}1"
2113bc77 47552 ;;
810b94f0
MW
47553
47554 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 47555 # collect these options
473276a9 47556 args="${D}{args} ${D}1"
a848cd7e
SC
47557 ;;
47558
47559 -dynamiclib|-bundle)
473276a9 47560 linking_flag="${D}1"
a848cd7e
SC
47561 ;;
47562
47563 -*)
473276a9 47564 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
47565 exit 1
47566 ;;
47567
47568 *.o | *.a | *.dylib)
47569 # collect object files
473276a9 47570 objects="${D}{objects} ${D}1"
a848cd7e
SC
47571 ;;
47572
47573 *)
473276a9 47574 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
47575 exit 1
47576 ;;
47577
47578 esac
47579 shift
47580done
47581
810b94f0
MW
47582status=0
47583
a848cd7e
SC
47584#
47585# Link one module containing all the others
47586#
473276a9 47587if test ${D}{verbose} = 1; then
810b94f0 47588 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 47589fi
810b94f0 47590c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 47591status=${D}?
a848cd7e
SC
47592
47593#
810b94f0
MW
47594# Link the shared library from the single module created, but only if the
47595# previous command didn't fail:
a848cd7e 47596#
810b94f0
MW
47597if test ${D}{status} = 0; then
47598 if test ${D}{verbose} = 1; then
47599 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
47600 fi
47601 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
47602 status=${D}?
a848cd7e
SC
47603fi
47604
47605#
47606# Remove intermediate module
47607#
473276a9 47608rm -f master.${D}${D}.o
a848cd7e 47609
810b94f0 47610exit ${D}status
a848cd7e 47611EOF
473276a9 47612
583d6b4b
VZ
47613 chmod +x shared-ld-sh
47614
47615 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
47616 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
47617
47618
47619 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
47620echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
47621if test "${bakefile_cv_gcc31+set}" = set; then
47622 echo $ECHO_N "(cached) $ECHO_C" >&6
47623else
47624
47625 cat >conftest.$ac_ext <<_ACEOF
47626/* confdefs.h. */
47627_ACEOF
47628cat confdefs.h >>conftest.$ac_ext
47629cat >>conftest.$ac_ext <<_ACEOF
47630/* end confdefs.h. */
47631
47632int
47633main ()
47634{
47635
47636 #if (__GNUC__ < 3) || \
47637 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 47638 This is old gcc
583d6b4b 47639 #endif
a848cd7e 47640
583d6b4b
VZ
47641 ;
47642 return 0;
47643}
47644_ACEOF
47645rm -f conftest.$ac_objext
47646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47647 (eval $ac_compile) 2>conftest.er1
47648 ac_status=$?
47649 grep -v '^ *+' conftest.er1 >conftest.err
47650 rm -f conftest.er1
47651 cat conftest.err >&5
47652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47653 (exit $ac_status); } &&
64b75e64 47654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
47655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47656 (eval $ac_try) 2>&5
47657 ac_status=$?
47658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47659 (exit $ac_status); }; } &&
47660 { ac_try='test -s conftest.$ac_objext'
47661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47662 (eval $ac_try) 2>&5
47663 ac_status=$?
47664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47665 (exit $ac_status); }; }; then
47666
47667 bakefile_cv_gcc31=yes
47668
47669else
47670 echo "$as_me: failed program was:" >&5
47671sed 's/^/| /' conftest.$ac_ext >&5
47672
47673
47674 bakefile_cv_gcc31=no
47675
47676
47677fi
47678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47679
47680fi
47681echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
47682echo "${ECHO_T}$bakefile_cv_gcc31" >&6
47683 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 47684 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 47685 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
47686 else
47687 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 47688 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
47689 fi
47690
47bd5406
VZ
47691 if test "x$GCC" == "xyes"; then
47692 PIC_FLAG="-dynamic -fPIC"
47693 fi
47694 if test "x$XLCC" = "xyes"; then
47695 PIC_FLAG="-dynamic -DPIC"
47696 fi
a848cd7e
SC
47697 ;;
47698
47699 *-*-aix* )
f6b50c59 47700 if test "x$GCC" = "xyes"; then
583d6b4b 47701 PIC_FLAG=""
f6b50c59 47702
583d6b4b
VZ
47703 case "${BAKEFILE_HOST}" in
47704 *-*-aix5* )
47705 LD_EXPFULL="-Wl,-bexpfull"
47706 ;;
47707 esac
f6b50c59 47708
583d6b4b
VZ
47709 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
47710 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
47711 else
47712 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
47713set dummy makeC++SharedLib; ac_word=$2
47714echo "$as_me:$LINENO: checking for $ac_word" >&5
47715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47716if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
47717 echo $ECHO_N "(cached) $ECHO_C" >&6
47718else
47719 if test -n "$AIX_CXX_LD"; then
47720 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
47721else
47722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47723for as_dir in $PATH
47724do
47725 IFS=$as_save_IFS
47726 test -z "$as_dir" && as_dir=.
47727 for ac_exec_ext in '' $ac_executable_extensions; do
47728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47729 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
47730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47731 break 2
47732 fi
47733done
47734done
47735
47736 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
47737fi
47738fi
47739AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
47740if test -n "$AIX_CXX_LD"; then
47741 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
47742echo "${ECHO_T}$AIX_CXX_LD" >&6
47743else
47744 echo "$as_me:$LINENO: result: no" >&5
47745echo "${ECHO_T}no" >&6
47746fi
47747
f6b50c59 47748 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
47749 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
47750 fi
47751 ;;
47752
47753 *-*-beos* )
1e9e8aba
DE
47754 SHARED_LD_CC="${LD} -nostart -o"
47755 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
47756 ;;
47757
47758 *-*-irix* )
47759 if test "x$GCC" != "xyes"; then
47760 PIC_FLAG="-KPIC"
47761 fi
47762 ;;
47763
47764 *-*-cygwin* | *-*-mingw32* )
47765 PIC_FLAG=""
1e9e8aba
DE
47766 SHARED_LD_CC="\$(CC) -shared -o"
47767 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 47768 WINDOWS_IMPLIB=1
a848cd7e
SC
47769 ;;
47770
47771 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
47772 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47773 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 47774 PIC_FLAG=""
473276a9
VS
47775
47776D='$'
47777cat <<EOF >dllar.sh
47778#!/bin/sh
47779#
47780# dllar - a tool to build both a .dll and an .a file
47781# from a set of object (.o) files for EMX/OS2.
47782#
47783# Written by Andrew Zabolotny, bit@freya.etu.ru
47784# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
47785#
47786# This script will accept a set of files on the command line.
47787# All the public symbols from the .o files will be exported into
47788# a .DEF file, then linker will be run (through gcc) against them to
47789# build a shared library consisting of all given .o files. All libraries
47790# (.a) will be first decompressed into component .o files then act as
47791# described above. You can optionally give a description (-d "description")
47792# which will be put into .DLL. To see the list of accepted options (as well
47793# as command-line format) simply run this program without options. The .DLL
47794# is built to be imported by name (there is no guarantee that new versions
47795# of the library you build will have same ordinals for same symbols).
47796#
47797# dllar is free software; you can redistribute it and/or modify
47798# it under the terms of the GNU General Public License as published by
47799# the Free Software Foundation; either version 2, or (at your option)
47800# any later version.
47801#
47802# dllar is distributed in the hope that it will be useful,
47803# but WITHOUT ANY WARRANTY; without even the implied warranty of
47804# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47805# GNU General Public License for more details.
47806#
47807# You should have received a copy of the GNU General Public License
47808# along with dllar; see the file COPYING. If not, write to the Free
47809# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
47810# 02111-1307, USA.
47811
47812# To successfuly run this program you will need:
47813# - Current drive should have LFN support (HPFS, ext2, network, etc)
47814# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
47815# - gcc
47816# (used to build the .dll)
47817# - emxexp
47818# (used to create .def file from .o files)
47819# - emximp
47820# (used to create .a file from .def file)
47821# - GNU text utilites (cat, sort, uniq)
47822# used to process emxexp output
47823# - GNU file utilities (mv, rm)
47824# - GNU sed
47825# - lxlite (optional, see flag below)
47826# (used for general .dll cleanup)
47827#
47828
47829flag_USE_LXLITE=1;
47830
47831#
47832# helper functions
47833# basnam, variant of basename, which does _not_ remove the path, _iff_
47834# second argument (suffix to remove) is given
47835basnam(){
47836 case ${D}# in
47837 1)
1e9e8aba 47838 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
47839 ;;
47840 2)
47841 echo ${D}1 | sed 's/'${D}2'${D}//'
47842 ;;
47843 *)
47844 echo "error in basnam ${D}*"
47845 exit 8
47846 ;;
47847 esac
47848}
47849
47850# Cleanup temporary files and output
47851CleanUp() {
47852 cd ${D}curDir
47853 for i in ${D}inputFiles ; do
47854 case ${D}i in
47855 *!)
47856 rm -rf \`basnam ${D}i !\`
47857 ;;
47858 *)
47859 ;;
47860 esac
47861 done
47862
47863 # Kill result in case of failure as there is just to many stupid make/nmake
47864 # things out there which doesn't do this.
1e9e8aba 47865 if [ ${D}# -eq 0 ]; then
473276a9
VS
47866 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
47867 fi
47868}
47869
47870# Print usage and exit script with rc=1.
47871PrintHelp() {
b1d22ded
DE
47872 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
47873 echo ' [-name-mangler-script script.sh]'
47874 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
47875 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
47876 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 47877 echo ' [*.o] [*.a]'
473276a9
VS
47878 echo '*> "output_file" should have no extension.'
47879 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
47880 echo ' The import library name is derived from this and is set to "name".a,'
47881 echo ' unless overridden by -import'
47882 echo '*> "importlib_name" should have no extension.'
47883 echo ' If it has the .o, or .a extension, it is automatically removed.'
47884 echo ' This name is used as the import library name and may be longer and'
47885 echo ' more descriptive than the DLL name which has to follow the old '
47886 echo ' 8.3 convention of FAT.'
b1d22ded
DE
47887 echo '*> "script.sh may be given to override the output_file name by a'
47888 echo ' different name. It is mainly useful if the regular make process'
47889 echo ' of some package does not take into account OS/2 restriction of'
47890 echo ' DLL name lengths. It takes the importlib name as input and is'
47891 echo ' supposed to procude a shorter name as output. The script should'
47892 echo ' expect to get importlib_name without extension and should produce'
47893 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
47894 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
47895 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
47896 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
47897 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
47898 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
47899 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
47900 echo ' If the last character of a symbol is "*", all symbols beginning'
47901 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 47902 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 47903 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 47904 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 47905 echo ' C runtime DLLs.'
b1d22ded 47906 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
47907 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
47908 echo ' unchanged to GCC at the end of command line.'
47909 echo '*> If you create a DLL from a library and you do not specify -o,'
47910 echo ' the basename for DLL and import library will be set to library name,'
47911 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
47912 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
47913 echo ' library will be renamed into gcc_s.a.'
47914 echo '--------'
47915 echo 'Example:'
47916 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
47917 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
47918 CleanUp
47919 exit 1
47920}
47921
47922# Execute a command.
47923# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
47924# @Uses Whatever CleanUp() uses.
47925doCommand() {
47926 echo "${D}*"
47927 eval ${D}*
47928 rcCmd=${D}?
47929
1e9e8aba 47930 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
47931 echo "command failed, exit code="${D}rcCmd
47932 CleanUp
47933 exit ${D}rcCmd
47934 fi
47935}
47936
47937# main routine
47938# setup globals
47939cmdLine=${D}*
47940outFile=""
47941outimpFile=""
47942inputFiles=""
b1d22ded 47943renameScript=""
473276a9
VS
47944description=""
47945CC=gcc.exe
47946CFLAGS="-s -Zcrtdll"
47947EXTRA_CFLAGS=""
47948EXPORT_BY_ORDINALS=0
47949exclude_symbols=""
47950library_flags=""
47951curDir=\`pwd\`
47952curDirS=curDir
47953case ${D}curDirS in
47954*/)
47955 ;;
47956*)
47957 curDirS=${D}{curDirS}"/"
47958 ;;
47959esac
47960# Parse commandline
47961libsToLink=0
b1d22ded 47962omfLinking=0
1e9e8aba 47963while [ ${D}1 ]; do
473276a9
VS
47964 case ${D}1 in
47965 -ord*)
47966 EXPORT_BY_ORDINALS=1;
47967 ;;
47968 -o*)
47969 shift
47970 outFile=${D}1
47971 ;;
47972 -i*)
47973 shift
47974 outimpFile=${D}1
47975 ;;
b1d22ded
DE
47976 -name-mangler-script)
47977 shift
47978 renameScript=${D}1
47979 ;;
473276a9
VS
47980 -d*)
47981 shift
47982 description=${D}1
47983 ;;
47984 -f*)
47985 shift
47986 CFLAGS=${D}1
47987 ;;
47988 -c*)
47989 shift
47990 CC=${D}1
47991 ;;
47992 -h*)
47993 PrintHelp
47994 ;;
47995 -ex*)
47996 shift
47997 exclude_symbols=${D}{exclude_symbols}${D}1" "
47998 ;;
47999 -libf*)
48000 shift
48001 library_flags=${D}{library_flags}${D}1" "
48002 ;;
48003 -nocrt*)
48004 CFLAGS="-s"
48005 ;;
48006 -nolxl*)
48007 flag_USE_LXLITE=0
48008 ;;
48009 -* | /*)
48010 case ${D}1 in
48011 -L* | -l*)
48012 libsToLink=1
48013 ;;
b1d22ded
DE
48014 -Zomf)
48015 omfLinking=1
48016 ;;
473276a9
VS
48017 *)
48018 ;;
48019 esac
48020 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48021 ;;
b1d22ded
DE
48022 *.dll)
48023 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48024 if [ ${D}omfLinking -eq 1 ]; then
48025 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48026 else
48027 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48028 fi
48029 ;;
473276a9
VS
48030 *)
48031 found=0;
1e9e8aba 48032 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
48033 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48034 else
48035 for file in ${D}1 ; do
1e9e8aba 48036 if [ -f ${D}file ]; then
473276a9
VS
48037 inputFiles="${D}{inputFiles} ${D}file"
48038 found=1
48039 fi
48040 done
1e9e8aba 48041 if [ ${D}found -eq 0 ]; then
473276a9
VS
48042 echo "ERROR: No file(s) found: "${D}1
48043 exit 8
48044 fi
48045 fi
48046 ;;
48047 esac
48048 shift
48049done # iterate cmdline words
48050
48051#
1e9e8aba 48052if [ -z "${D}inputFiles" ]; then
473276a9
VS
48053 echo "dllar: no input files"
48054 PrintHelp
48055fi
48056
48057# Now extract all .o files from .a files
48058newInputFiles=""
48059for file in ${D}inputFiles ; do
48060 case ${D}file in
48061 *.a | *.lib)
48062 case ${D}file in
48063 *.a)
48064 suffix=".a"
48065 AR="ar"
48066 ;;
48067 *.lib)
48068 suffix=".lib"
48069 AR="emxomfar"
48070 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48071 ;;
48072 *)
48073 ;;
48074 esac
48075 dirname=\`basnam ${D}file ${D}suffix\`"_%"
48076 mkdir ${D}dirname
1e9e8aba 48077 if [ ${D}? -ne 0 ]; then
473276a9
VS
48078 echo "Failed to create subdirectory ./${D}dirname"
48079 CleanUp
48080 exit 8;
48081 fi
48082 # Append '!' to indicate archive
48083 newInputFiles="${D}newInputFiles ${D}{dirname}!"
48084 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48085 cd ${D}curDir
48086 found=0;
48087 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 48088 if [ -f ${D}subfile ]; then
473276a9 48089 found=1
1e9e8aba 48090 if [ -s ${D}subfile ]; then
473276a9
VS
48091 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48092 newInputFiles="${D}newInputFiles ${D}subfile"
48093 fi
48094 fi
48095 done
1e9e8aba
DE
48096 if [ ${D}found -eq 0 ]; then
48097 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
48098 fi
48099 ;;
48100 *)
48101 newInputFiles="${D}{newInputFiles} ${D}file"
48102 ;;
48103 esac
48104done
48105inputFiles="${D}newInputFiles"
48106
48107# Output filename(s).
48108do_backup=0;
1e9e8aba 48109if [ -z ${D}outFile ]; then
473276a9
VS
48110 do_backup=1;
48111 set outFile ${D}inputFiles; outFile=${D}2
48112fi
48113
48114# If it is an archive, remove the '!' and the '_%' suffixes
48115case ${D}outFile in
48116*_%!)
48117 outFile=\`basnam ${D}outFile _%!\`
48118 ;;
48119*)
48120 ;;
48121esac
48122case ${D}outFile in
48123*.dll)
48124 outFile=\`basnam ${D}outFile .dll\`
48125 ;;
48126*.DLL)
48127 outFile=\`basnam ${D}outFile .DLL\`
48128 ;;
48129*.o)
48130 outFile=\`basnam ${D}outFile .o\`
48131 ;;
48132*.obj)
48133 outFile=\`basnam ${D}outFile .obj\`
48134 ;;
48135*.a)
48136 outFile=\`basnam ${D}outFile .a\`
48137 ;;
48138*.lib)
48139 outFile=\`basnam ${D}outFile .lib\`
48140 ;;
48141*)
48142 ;;
48143esac
48144case ${D}outimpFile in
48145*.a)
48146 outimpFile=\`basnam ${D}outimpFile .a\`
48147 ;;
48148*.lib)
48149 outimpFile=\`basnam ${D}outimpFile .lib\`
48150 ;;
48151*)
48152 ;;
48153esac
1e9e8aba 48154if [ -z ${D}outimpFile ]; then
473276a9
VS
48155 outimpFile=${D}outFile
48156fi
48157defFile="${D}{outFile}.def"
48158arcFile="${D}{outimpFile}.a"
48159arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
48160
48161#create ${D}dllFile as something matching 8.3 restrictions,
48162if [ -z ${D}renameScript ] ; then
48163 dllFile="${D}outFile"
48164else
48165 dllFile=\`${D}renameScript ${D}outimpFile\`
48166fi
473276a9 48167
1e9e8aba
DE
48168if [ ${D}do_backup -ne 0 ] ; then
48169 if [ -f ${D}arcFile ] ; then
473276a9
VS
48170 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48171 fi
1e9e8aba 48172 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
48173 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48174 fi
48175fi
48176
48177# Extract public symbols from all the object files.
48178tmpdefFile=${D}{defFile}_%
48179rm -f ${D}tmpdefFile
48180for file in ${D}inputFiles ; do
48181 case ${D}file in
48182 *!)
48183 ;;
48184 *)
48185 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48186 ;;
48187 esac
48188done
48189
48190# Create the def file.
48191rm -f ${D}defFile
48192echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
48193dllFile="${D}{dllFile}.dll"
48194if [ ! -z ${D}description ]; then
1e9e8aba 48195 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
48196fi
48197echo "EXPORTS" >> ${D}defFile
48198
48199doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48200grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48201
48202# Checks if the export is ok or not.
48203for word in ${D}exclude_symbols; do
48204 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48205 mv ${D}{tmpdefFile}% ${D}tmpdefFile
48206done
48207
48208
1e9e8aba
DE
48209if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48210 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
48211 sed '
48212 N
48213 : loop
1e9e8aba 48214 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
48215 t loop
48216 ' > ${D}{tmpdefFile}%
48217 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48218else
48219 rm -f ${D}{tmpdefFile}%
48220fi
48221cat ${D}tmpdefFile >> ${D}defFile
48222rm -f ${D}tmpdefFile
48223
48224# Do linking, create implib, and apply lxlite.
48225gccCmdl="";
48226for file in ${D}inputFiles ; do
48227 case ${D}file in
48228 *!)
48229 ;;
48230 *)
48231 gccCmdl="${D}gccCmdl ${D}file"
48232 ;;
48233 esac
48234done
48235doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48236touch "${D}{outFile}.dll"
48237
48238doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 48239if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 48240 add_flags="";
1e9e8aba 48241 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
48242 add_flags="-ynd"
48243 fi
48244 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48245fi
48246doCommand "emxomf -s -l ${D}arcFile"
48247
48248# Successful exit.
48249CleanUp 1
48250exit 0
48251EOF
48252
48253 chmod +x dllar.sh
a848cd7e
SC
48254 ;;
48255
1e9e8aba 48256 powerpc-apple-macos* | \
0ad5d837 48257 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
48258 *-*-sunos4* | \
48259 *-*-osf* | \
48260 *-*-dgux5* | \
47a7e797
MW
48261 *-*-sysv5* | \
48262 *-pc-msdosdjgpp )
a848cd7e
SC
48263 ;;
48264
48265 *)
3ecd9f92 48266 esac
a848cd7e 48267
2057db16
VS
48268 if test "x$PIC_FLAG" != "x" ; then
48269 PIC_FLAG="$PIC_FLAG -DPIC"
48270 fi
48271
a848cd7e
SC
48272 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48273 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48274 fi
48275 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48276 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48277 fi
48278
48279
48280
48281
48282
48283
48284
48285
810b94f0 48286
a848cd7e
SC
48287 USE_SOVERSION=0
48288 USE_SOVERLINUX=0
48289 USE_SOVERSOLARIS=0
810b94f0 48290 USE_SOVERCYGWIN=0
a848cd7e
SC
48291 USE_SOSYMLINKS=0
48292 USE_MACVERSION=0
48293 SONAME_FLAG=
48294
48295 case "${BAKEFILE_HOST}" in
0ad5d837 48296 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
48297 SONAME_FLAG="-Wl,-soname,"
48298 USE_SOVERSION=1
48299 USE_SOVERLINUX=1
48300 USE_SOSYMLINKS=1
48301 ;;
48302
a848cd7e
SC
48303 *-*-solaris2* )
48304 SONAME_FLAG="-h "
48305 USE_SOVERSION=1
48306 USE_SOVERSOLARIS=1
48307 USE_SOSYMLINKS=1
48308 ;;
48309
48310 *-*-darwin* )
48311 USE_MACVERSION=1
48312 USE_SOVERSION=1
48313 USE_SOSYMLINKS=1
48314 ;;
810b94f0
MW
48315
48316 *-*-cygwin* )
48317 USE_SOVERSION=1
48318 USE_SOVERCYGWIN=1
48319 ;;
a848cd7e
SC
48320 esac
48321
48322
48323
48324
48325
48326
48327
48328
48329
810b94f0 48330
f10e38c4
VZ
48331 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
48332if test "${enable_dependency_tracking+set}" = set; then
48333 enableval="$enable_dependency_tracking"
48334 bk_use_trackdeps="$enableval"
48335fi;
48336
a848cd7e
SC
48337 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
48338echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 48339
f10e38c4
VZ
48340 if test "x$bk_use_trackdeps" = "xno" ; then
48341 DEPS_TRACKING=0
48342 echo "$as_me:$LINENO: result: disabled" >&5
48343echo "${ECHO_T}disabled" >&6
48344 else
48345 DEPS_TRACKING=1
48346
48347 if test "x$GCC" = "xyes"; then
48348 DEPSMODE=gcc
48349 case "${BAKEFILE_HOST}" in
48350 *-*-darwin* )
48351 DEPSFLAG="-no-cpp-precomp -MMD"
48352 ;;
48353 * )
48354 DEPSFLAG="-MMD"
48355 ;;
48356 esac
48357 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 48358echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
48359 elif test "x$MWCC" = "xyes"; then
48360 DEPSMODE=mwcc
48361 DEPSFLAG="-MM"
48362 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 48363echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
48364 elif test "x$SUNCC" = "xyes"; then
48365 DEPSMODE=unixcc
48366 DEPSFLAG="-xM1"
48367 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 48368echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
48369 elif test "x$SGICC" = "xyes"; then
48370 DEPSMODE=unixcc
48371 DEPSFLAG="-M"
48372 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 48373echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
48374 elif test "x$HPCC" = "xyes"; then
48375 DEPSMODE=unixcc
48376 DEPSFLAG="+make"
48377 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 48378echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
48379 elif test "x$COMPAQCC" = "xyes"; then
48380 DEPSMODE=gcc
48381 DEPSFLAG="-MD"
48382 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 48383echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
48384 else
48385 DEPS_TRACKING=0
48386 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 48387echo "${ECHO_T}none" >&6
f10e38c4 48388 fi
a848cd7e 48389
f10e38c4 48390 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
48391
48392D='$'
48393cat <<EOF >bk-deps
a848cd7e
SC
48394#!/bin/sh
48395
48396# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48397# script. It is used to track C/C++ files dependencies in portable way.
48398#
48399# Permission is given to use this file in any way.
48400
473276a9 48401DEPSMODE=${DEPSMODE}
a848cd7e 48402DEPSDIR=.deps
0ad5d837 48403DEPSFLAG="${DEPSFLAG}"
a848cd7e 48404
473276a9 48405mkdir -p ${D}DEPSDIR
a848cd7e 48406
473276a9 48407if test ${D}DEPSMODE = gcc ; then
0ad5d837 48408 ${D}* ${D}{DEPSFLAG}
473276a9
VS
48409 status=${D}?
48410 if test ${D}{status} != 0 ; then
48411 exit ${D}{status}
a848cd7e
SC
48412 fi
48413 # move created file to the location we want it in:
473276a9
VS
48414 while test ${D}# -gt 0; do
48415 case "${D}1" in
a848cd7e
SC
48416 -o )
48417 shift
473276a9 48418 objfile=${D}1
a848cd7e
SC
48419 ;;
48420 -* )
48421 ;;
48422 * )
473276a9 48423 srcfile=${D}1
a848cd7e
SC
48424 ;;
48425 esac
48426 shift
48427 done
1e9e8aba
DE
48428 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
48429 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
48430 if test -f ${D}depfile ; then
48431 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48432 rm -f ${D}depfile
a848cd7e 48433 else
a1aa0349 48434 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 48435 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
48436 if test ! -f ${D}depfile ; then
48437 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
48438 depfile="${D}objfile.d"
48439 fi
473276a9
VS
48440 if test -f ${D}depfile ; then
48441 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48442 rm -f ${D}depfile
a848cd7e
SC
48443 fi
48444 fi
48445 exit 0
81f90336 48446elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 48447 ${D}* || exit ${D}?
81f90336
MW
48448 # Run mwcc again with -MM and redirect into the dep file we want
48449 # NOTE: We can't use shift here because we need ${D}* to be valid
48450 prevarg=
48451 for arg in ${D}* ; do
48452 if test "${D}prevarg" = "-o"; then
48453 objfile=${D}arg
48454 else
48455 case "${D}arg" in
48456 -* )
48457 ;;
48458 * )
48459 srcfile=${D}arg
48460 ;;
48461 esac
48462 fi
48463 prevarg="${D}arg"
48464 done
0ad5d837 48465 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 48466 exit 0
0ad5d837 48467elif test ${D}DEPSMODE = unixcc; then
f6b50c59 48468 ${D}* || exit ${D}?
a9e5b1f0
MW
48469 # Run compiler again with deps flag and redirect into the dep file.
48470 # It doesn't work if the '-o FILE' option is used, but without it the
48471 # dependency file will contain the wrong name for the object. So it is
48472 # removed from the command line, and the dep file is fixed with sed.
48473 cmd=""
48474 while test ${D}# -gt 0; do
48475 case "${D}1" in
48476 -o )
48477 shift
48478 objfile=${D}1
48479 ;;
48480 * )
48481 eval arg${D}#=\\${D}1
48482 cmd="${D}cmd \\${D}arg${D}#"
48483 ;;
48484 esac
48485 shift
48486 done
0ad5d837 48487 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 48488 exit 0
a848cd7e 48489else
473276a9
VS
48490 ${D}*
48491 exit ${D}?
a848cd7e
SC
48492fi
48493EOF
473276a9 48494
f10e38c4
VZ
48495 chmod +x bk-deps
48496 fi
a848cd7e
SC
48497 fi
48498
48499
48500
48501
a848cd7e
SC
48502 case ${BAKEFILE_HOST} in
48503 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
48504 if test -n "$ac_tool_prefix"; then
48505 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
48506set dummy ${ac_tool_prefix}windres; ac_word=$2
48507echo "$as_me:$LINENO: checking for $ac_word" >&5
48508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48509if test "${ac_cv_prog_WINDRES+set}" = set; then
48510 echo $ECHO_N "(cached) $ECHO_C" >&6
48511else
48512 if test -n "$WINDRES"; then
48513 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
48514else
48515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48516for as_dir in $PATH
48517do
48518 IFS=$as_save_IFS
48519 test -z "$as_dir" && as_dir=.
48520 for ac_exec_ext in '' $ac_executable_extensions; do
48521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48522 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
48523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48524 break 2
48525 fi
48526done
48527done
48528
48529fi
48530fi
48531WINDRES=$ac_cv_prog_WINDRES
48532if test -n "$WINDRES"; then
48533 echo "$as_me:$LINENO: result: $WINDRES" >&5
48534echo "${ECHO_T}$WINDRES" >&6
48535else
48536 echo "$as_me:$LINENO: result: no" >&5
48537echo "${ECHO_T}no" >&6
48538fi
48539
48540fi
48541if test -z "$ac_cv_prog_WINDRES"; then
48542 ac_ct_WINDRES=$WINDRES
48543 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
48544set dummy windres; ac_word=$2
48545echo "$as_me:$LINENO: checking for $ac_word" >&5
48546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 48547if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
48548 echo $ECHO_N "(cached) $ECHO_C" >&6
48549else
8ced02f6
DE
48550 if test -n "$ac_ct_WINDRES"; then
48551 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
48552else
48553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48554for as_dir in $PATH
48555do
48556 IFS=$as_save_IFS
48557 test -z "$as_dir" && as_dir=.
48558 for ac_exec_ext in '' $ac_executable_extensions; do
48559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 48560 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
48561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48562 break 2
48563 fi
48564done
48565done
48566
a848cd7e
SC
48567fi
48568fi
8ced02f6
DE
48569ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
48570if test -n "$ac_ct_WINDRES"; then
48571 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
48572echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
48573else
48574 echo "$as_me:$LINENO: result: no" >&5
48575echo "${ECHO_T}no" >&6
48576fi
48577
8ced02f6
DE
48578 WINDRES=$ac_ct_WINDRES
48579else
48580 WINDRES="$ac_cv_prog_WINDRES"
48581fi
48582
a848cd7e
SC
48583 ;;
48584
1e9e8aba 48585 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
48586 # Extract the first word of "Rez", so it can be a program name with args.
48587set dummy Rez; ac_word=$2
48588echo "$as_me:$LINENO: checking for $ac_word" >&5
48589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 48590if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
48591 echo $ECHO_N "(cached) $ECHO_C" >&6
48592else
8ced02f6
DE
48593 if test -n "$REZ"; then
48594 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
48595else
48596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48597for as_dir in $PATH
48598do
48599 IFS=$as_save_IFS
48600 test -z "$as_dir" && as_dir=.
48601 for ac_exec_ext in '' $ac_executable_extensions; do
48602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 48603 ac_cv_prog_REZ="Rez"
a848cd7e
SC
48604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48605 break 2
48606 fi
48607done
48608done
48609
8ced02f6 48610 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
48611fi
48612fi
8ced02f6
DE
48613REZ=$ac_cv_prog_REZ
48614if test -n "$REZ"; then
48615 echo "$as_me:$LINENO: result: $REZ" >&5
48616echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
48617else
48618 echo "$as_me:$LINENO: result: no" >&5
48619echo "${ECHO_T}no" >&6
48620fi
48621
48622 # Extract the first word of "SetFile", so it can be a program name with args.
48623set dummy SetFile; ac_word=$2
48624echo "$as_me:$LINENO: checking for $ac_word" >&5
48625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48626if test "${ac_cv_prog_SETFILE+set}" = set; then
48627 echo $ECHO_N "(cached) $ECHO_C" >&6
48628else
48629 if test -n "$SETFILE"; then
48630 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
48631else
48632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48633for as_dir in $PATH
48634do
48635 IFS=$as_save_IFS
48636 test -z "$as_dir" && as_dir=.
48637 for ac_exec_ext in '' $ac_executable_extensions; do
48638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48639 ac_cv_prog_SETFILE="SetFile"
48640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48641 break 2
48642 fi
48643done
48644done
48645
48646 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
48647fi
48648fi
48649SETFILE=$ac_cv_prog_SETFILE
48650if test -n "$SETFILE"; then
48651 echo "$as_me:$LINENO: result: $SETFILE" >&5
48652echo "${ECHO_T}$SETFILE" >&6
48653else
48654 echo "$as_me:$LINENO: result: no" >&5
48655echo "${ECHO_T}no" >&6
48656fi
48657
48658 ;;
48659 esac
48660
48661
48662
48663
48664
8ced02f6 48665
f10e38c4 48666 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 48667
dcc1b6ad 48668
f10e38c4 48669BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 48670
646b6ec1 48671
74b84332 48672
a848cd7e
SC
48673 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
48674if test "${enable_precomp_headers+set}" = set; then
48675 enableval="$enable_precomp_headers"
48676 bk_use_pch="$enableval"
48677fi;
48678
48679 GCC_PCH=0
f10e38c4
VZ
48680 ICC_PCH=0
48681 USE_PCH=0
a848cd7e 48682
5c60e845
MW
48683 case ${BAKEFILE_HOST} in
48684 *-*-cygwin* )
48685 bk_use_pch="no"
48686 ;;
48687 esac
48688
a848cd7e
SC
48689 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
48690 if test "x$GCC" = "xyes"; then
48691 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
48692echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
48693 cat >conftest.$ac_ext <<_ACEOF
48694/* confdefs.h. */
48695_ACEOF
48696cat confdefs.h >>conftest.$ac_ext
48697cat >>conftest.$ac_ext <<_ACEOF
48698/* end confdefs.h. */
48699
48700int
48701main ()
48702{
48703
48704 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 48705 There is no PCH support
a848cd7e
SC
48706 #endif
48707 #if (__GNUC__ < 3)
e5efa97e 48708 There is no PCH support
a848cd7e
SC
48709 #endif
48710 #if (__GNUC__ == 3) && \
48711 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
48712 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
48713 ( defined(__INTEL_COMPILER) )
e5efa97e 48714 There is no PCH support
a848cd7e
SC
48715 #endif
48716
48717 ;
48718 return 0;
48719}
48720_ACEOF
48721rm -f conftest.$ac_objext
48722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 48723 (eval $ac_compile) 2>conftest.er1
a848cd7e 48724 ac_status=$?
ac1cb8d3
VS
48725 grep -v '^ *+' conftest.er1 >conftest.err
48726 rm -f conftest.er1
48727 cat conftest.err >&5
a848cd7e
SC
48728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48729 (exit $ac_status); } &&
64b75e64 48730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
48731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48732 (eval $ac_try) 2>&5
48733 ac_status=$?
48734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48735 (exit $ac_status); }; } &&
48736 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
48737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48738 (eval $ac_try) 2>&5
48739 ac_status=$?
48740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48741 (exit $ac_status); }; }; then
48742
48743 echo "$as_me:$LINENO: result: yes" >&5
48744echo "${ECHO_T}yes" >&6
a848cd7e
SC
48745 GCC_PCH=1
48746
48747else
48748 echo "$as_me: failed program was:" >&5
48749sed 's/^/| /' conftest.$ac_ext >&5
48750
48751
f10e38c4
VZ
48752 cat >conftest.$ac_ext <<_ACEOF
48753/* confdefs.h. */
48754_ACEOF
48755cat confdefs.h >>conftest.$ac_ext
48756cat >>conftest.$ac_ext <<_ACEOF
48757/* end confdefs.h. */
48758
48759int
48760main ()
48761{
48762
48763 #if !defined(__INTEL_COMPILER) || \
48764 (__INTEL_COMPILER < 800)
e5efa97e 48765 There is no PCH support
f10e38c4
VZ
48766 #endif
48767
48768 ;
48769 return 0;
48770}
48771_ACEOF
48772rm -f conftest.$ac_objext
48773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48774 (eval $ac_compile) 2>conftest.er1
48775 ac_status=$?
48776 grep -v '^ *+' conftest.er1 >conftest.err
48777 rm -f conftest.er1
48778 cat conftest.err >&5
48779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48780 (exit $ac_status); } &&
64b75e64 48781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
48782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48783 (eval $ac_try) 2>&5
48784 ac_status=$?
48785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48786 (exit $ac_status); }; } &&
48787 { ac_try='test -s conftest.$ac_objext'
48788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48789 (eval $ac_try) 2>&5
48790 ac_status=$?
48791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48792 (exit $ac_status); }; }; then
48793
48794 echo "$as_me:$LINENO: result: yes" >&5
48795echo "${ECHO_T}yes" >&6
48796 ICC_PCH=1
48797
48798else
48799 echo "$as_me: failed program was:" >&5
48800sed 's/^/| /' conftest.$ac_ext >&5
48801
48802
48803 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
48804echo "${ECHO_T}no" >&6
48805
48806fi
ac1cb8d3 48807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
48808
48809fi
48810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48811 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
48812 USE_PCH=1
1e9e8aba
DE
48813
48814D='$'
48815cat <<EOF >bk-make-pch
a848cd7e
SC
48816#!/bin/sh
48817
48818# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48819# script. It is used to generated precompiled headers.
48820#
48821# Permission is given to use this file in any way.
48822
1e9e8aba
DE
48823outfile="${D}{1}"
48824header="${D}{2}"
a848cd7e
SC
48825shift
48826shift
48827
f10e38c4
VZ
48828compiler=""
48829headerfile=""
48830
1e9e8aba 48831while test ${D}{#} -gt 0; do
f10e38c4 48832 add_to_cmdline=1
1e9e8aba 48833 case "${D}{1}" in
a848cd7e 48834 -I* )
1e9e8aba
DE
48835 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
48836 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
48837 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
48838 fi
48839 ;;
f10e38c4
VZ
48840 -use-pch|-use_pch )
48841 shift
48842 add_to_cmdline=0
48843 ;;
a848cd7e 48844 esac
f10e38c4
VZ
48845 if test ${D}add_to_cmdline = 1 ; then
48846 compiler="${D}{compiler} ${D}{1}"
48847 fi
a848cd7e
SC
48848 shift
48849done
48850
1e9e8aba 48851if test "x${D}{headerfile}" = "x" ; then
f10e38c4 48852 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 48853else
1e9e8aba
DE
48854 if test -f ${D}{outfile} ; then
48855 rm -f ${D}{outfile}
a848cd7e 48856 else
1e9e8aba 48857 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 48858 fi
1e9e8aba 48859 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 48860 mkdir -p .deps
f10e38c4
VZ
48861 if test "x${GCC_PCH}" = "x1" ; then
48862 # can do this because gcc is >= 3.4:
48863 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
48864 elif test "x${ICC_PCH}" = "x1" ; then
48865 filename=pch_gen-${D}${D}
48866 file=${D}{filename}.c
48867 dfile=${D}{filename}.d
48868 cat > ${D}file <<EOT
48869#include "${D}header"
48870EOT
48871 # using -MF icc complains about differing command lines in creation/use
48872 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
48873 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
48874 rm -f ${D}file ${D}dfile ${D}{filename}.o
48875 fi
1e9e8aba 48876 exit ${D}{?}
a848cd7e
SC
48877fi
48878EOF
1e9e8aba 48879
a848cd7e
SC
48880 chmod +x bk-make-pch
48881 fi
48882 fi
48883 fi
48884
48885
48886
f10e38c4 48887
a848cd7e
SC
48888 COND_BUILD_DEBUG="#"
48889 if test "x$BUILD" = "xdebug" ; then
48890 COND_BUILD_DEBUG=""
48891 fi
48892
48893 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
48894 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
48895 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
48896 fi
48897
48898 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
48899 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
48900 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
48901 fi
48902
48903 COND_BUILD_DEBUG_UNICODE_0="#"
48904 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
48905 COND_BUILD_DEBUG_UNICODE_0=""
48906 fi
48907
48908 COND_BUILD_DEBUG_UNICODE_1="#"
48909 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
48910 COND_BUILD_DEBUG_UNICODE_1=""
48911 fi
48912
48913 COND_BUILD_RELEASE="#"
48914 if test "x$BUILD" = "xrelease" ; then
48915 COND_BUILD_RELEASE=""
48916 fi
48917
48918 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
48919 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
48920 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
48921 fi
48922
48923 COND_BUILD_RELEASE_UNICODE_0="#"
48924 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
48925 COND_BUILD_RELEASE_UNICODE_0=""
48926 fi
48927
48928 COND_BUILD_RELEASE_UNICODE_1="#"
48929 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
48930 COND_BUILD_RELEASE_UNICODE_1=""
48931 fi
48932
48933 COND_DEBUG_FLAG_1="#"
48934 if test "x$DEBUG_FLAG" = "x1" ; then
48935 COND_DEBUG_FLAG_1=""
48936 fi
48937
48938 COND_DEBUG_INFO_0="#"
48939 if test "x$DEBUG_INFO" = "x0" ; then
48940 COND_DEBUG_INFO_0=""
48941 fi
48942
48943 COND_DEBUG_INFO_1="#"
48944 if test "x$DEBUG_INFO" = "x1" ; then
48945 COND_DEBUG_INFO_1=""
48946 fi
48947
48948 COND_DEPS_TRACKING_0="#"
48949 if test "x$DEPS_TRACKING" = "x0" ; then
48950 COND_DEPS_TRACKING_0=""
48951 fi
48952
48953 COND_DEPS_TRACKING_1="#"
48954 if test "x$DEPS_TRACKING" = "x1" ; then
48955 COND_DEPS_TRACKING_1=""
48956 fi
48957
48958 COND_GCC_PCH_1="#"
48959 if test "x$GCC_PCH" = "x1" ; then
48960 COND_GCC_PCH_1=""
48961 fi
48962
f10e38c4
VZ
48963 COND_ICC_PCH_1="#"
48964 if test "x$ICC_PCH" = "x1" ; then
48965 COND_ICC_PCH_1=""
48966 fi
48967
a848cd7e
SC
48968 COND_MONOLITHIC_0="#"
48969 if test "x$MONOLITHIC" = "x0" ; then
48970 COND_MONOLITHIC_0=""
48971 fi
48972
48973 COND_MONOLITHIC_0_SHARED_0="#"
48974 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
48975 COND_MONOLITHIC_0_SHARED_0=""
48976 fi
48977
3f60522a
JS
48978 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
48979 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
48980 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
48981 fi
48982
a848cd7e
SC
48983 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
48984 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
48985 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
48986 fi
48987
90970d69
DE
48988 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
48989 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48990 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
48991 fi
48992
f10e38c4
VZ
48993 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
48994 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48995 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
48996 fi
48997
a848cd7e
SC
48998 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
48999 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49000 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
49001 fi
49002
6671c68b
VZ
49003 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49004 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49005 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49006 fi
49007
a848cd7e
SC
49008 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
49009 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
49010 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
49011 fi
49012
8b6682b9
JS
49013 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49014 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49015 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49016 fi
49017
ceec2216
RL
49018 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49019 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49020 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49021 fi
49022
a848cd7e
SC
49023 COND_MONOLITHIC_0_SHARED_1="#"
49024 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49025 COND_MONOLITHIC_0_SHARED_1=""
49026 fi
49027
3f60522a
JS
49028 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49029 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49030 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49031 fi
49032
a848cd7e
SC
49033 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49034 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49035 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49036 fi
49037
90970d69
DE
49038 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49039 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49040 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49041 fi
49042
f10e38c4
VZ
49043 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49044 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49045 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49046 fi
49047
a848cd7e
SC
49048 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
49049 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49050 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
49051 fi
49052
6671c68b
VZ
49053 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49054 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49055 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49056 fi
49057
a848cd7e
SC
49058 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
49059 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
49060 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
49061 fi
49062
8b6682b9
JS
49063 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49064 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49065 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49066 fi
49067
ceec2216
RL
49068 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49069 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49070 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49071 fi
49072
e5efa97e
VZ
49073 COND_MONOLITHIC_0_USE_MEDIA_1="#"
49074 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
49075 COND_MONOLITHIC_0_USE_MEDIA_1=""
49076 fi
49077
a848cd7e
SC
49078 COND_MONOLITHIC_0_USE_ODBC_1="#"
49079 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
49080 COND_MONOLITHIC_0_USE_ODBC_1=""
49081 fi
49082
49083 COND_MONOLITHIC_1="#"
49084 if test "x$MONOLITHIC" = "x1" ; then
49085 COND_MONOLITHIC_1=""
49086 fi
49087
49088 COND_MONOLITHIC_1_SHARED_0="#"
49089 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
49090 COND_MONOLITHIC_1_SHARED_0=""
49091 fi
49092
49093 COND_MONOLITHIC_1_SHARED_1="#"
49094 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
49095 COND_MONOLITHIC_1_SHARED_1=""
49096 fi
49097
49098 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
49099 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
49100 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49101 fi
49102
49103 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49104 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49105 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49106 fi
49107
eb730a0c
JS
49108 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49109 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49110 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49111 fi
49112
a848cd7e
SC
49113 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49114 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49115 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49116 fi
49117
49118 COND_PLATFORM_MACOSX_1="#"
49119 if test "x$PLATFORM_MACOSX" = "x1" ; then
49120 COND_PLATFORM_MACOSX_1=""
49121 fi
49122
a30f955f
VS
49123 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
49124 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
49125 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
49126 fi
49127
a848cd7e
SC
49128 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
49129 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
49130 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
49131 fi
49132
49133 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
49134 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
49135 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
49136 fi
49137
49138 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
49139 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
49140 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
49141 fi
49142
fc480dc1
DE
49143 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
49144 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49145 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
49146 fi
49147
1e9e8aba
DE
49148 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49149 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49150 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49151 fi
49152
ebee3cd0
VS
49153 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
49154 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
49155 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
49156 fi
49157
49158 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
49159 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
49160 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
49161 fi
49162
a848cd7e
SC
49163 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49164 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49165 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49166 fi
49167
49168 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49169 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49170 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49171 fi
49172
b48a2016
DE
49173 COND_PLATFORM_MACOS_1="#"
49174 if test "x$PLATFORM_MACOS" = "x1" ; then
49175 COND_PLATFORM_MACOS_1=""
49176 fi
49177
083508af
MW
49178 COND_PLATFORM_MAC_1="#"
49179 if test "x$PLATFORM_MAC" = "x1" ; then
49180 COND_PLATFORM_MAC_1=""
49181 fi
49182
e5efa97e
VZ
49183 COND_PLATFORM_MSDOS_0="#"
49184 if test "x$PLATFORM_MSDOS" = "x0" ; then
49185 COND_PLATFORM_MSDOS_0=""
49186 fi
49187
83d8eb47
MW
49188 COND_PLATFORM_MSDOS_1="#"
49189 if test "x$PLATFORM_MSDOS" = "x1" ; then
49190 COND_PLATFORM_MSDOS_1=""
49191 fi
49192
a848cd7e
SC
49193 COND_PLATFORM_OS2_1="#"
49194 if test "x$PLATFORM_OS2" = "x1" ; then
49195 COND_PLATFORM_OS2_1=""
49196 fi
49197
49198 COND_PLATFORM_UNIX_0="#"
49199 if test "x$PLATFORM_UNIX" = "x0" ; then
49200 COND_PLATFORM_UNIX_0=""
49201 fi
49202
49203 COND_PLATFORM_UNIX_1="#"
49204 if test "x$PLATFORM_UNIX" = "x1" ; then
49205 COND_PLATFORM_UNIX_1=""
49206 fi
49207
49208 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49209 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49210 COND_PLATFORM_UNIX_1_USE_GUI_1=""
49211 fi
49212
49213 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49214 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49215 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49216 fi
49217
49218 COND_PLATFORM_WIN32_0="#"
49219 if test "x$PLATFORM_WIN32" = "x0" ; then
49220 COND_PLATFORM_WIN32_0=""
49221 fi
49222
49223 COND_PLATFORM_WIN32_1="#"
49224 if test "x$PLATFORM_WIN32" = "x1" ; then
49225 COND_PLATFORM_WIN32_1=""
49226 fi
49227
49228 COND_SHARED_0="#"
49229 if test "x$SHARED" = "x0" ; then
49230 COND_SHARED_0=""
49231 fi
49232
083508af
MW
49233 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
49234 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
49235 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
49236 fi
49237
49238 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
49239 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49240 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
49241 fi
49242
49243 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
49244 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
49245 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
49246 fi
49247
a848cd7e
SC
49248 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
49249 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49250 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
49251 fi
49252
49253 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49254 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49255 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49256 fi
49257
49258 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49259 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49260 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49261 fi
49262
49263 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49264 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49265 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49266 fi
49267
083508af
MW
49268 COND_SHARED_0_USE_XRC_1="#"
49269 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49270 COND_SHARED_0_USE_XRC_1=""
49271 fi
49272
a848cd7e
SC
49273 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
49274 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
49275 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
49276 fi
49277
49278 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
49279 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
49280 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
49281 fi
49282
49283 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
49284 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
49285 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
49286 fi
49287
49288 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
49289 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
49290 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
49291 fi
49292
49293 COND_SHARED_1="#"
49294 if test "x$SHARED" = "x1" ; then
49295 COND_SHARED_1=""
49296 fi
49297
49298 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
49299 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49300 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
49301 fi
49302
083508af
MW
49303 COND_SHARED_1_USE_XRC_1="#"
49304 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49305 COND_SHARED_1_USE_XRC_1=""
49306 fi
49307
a30f955f
VS
49308 COND_TOOLKIT_="#"
49309 if test "x$TOOLKIT" = "x" ; then
49310 COND_TOOLKIT_=""
49311 fi
49312
a848cd7e
SC
49313 COND_TOOLKIT_COCOA="#"
49314 if test "x$TOOLKIT" = "xCOCOA" ; then
49315 COND_TOOLKIT_COCOA=""
49316 fi
49317
a49baeab
DE
49318 COND_TOOLKIT_COCOA_USE_GUI_1="#"
49319 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
49320 COND_TOOLKIT_COCOA_USE_GUI_1=""
49321 fi
49322
a848cd7e
SC
49323 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
49324 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49325 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
49326 fi
49327
b3c86150
VS
49328 COND_TOOLKIT_DFB="#"
49329 if test "x$TOOLKIT" = "xDFB" ; then
49330 COND_TOOLKIT_DFB=""
49331 fi
49332
49333 COND_TOOLKIT_DFB_USE_GUI_1="#"
49334 if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
49335 COND_TOOLKIT_DFB_USE_GUI_1=""
49336 fi
49337
a848cd7e
SC
49338 COND_TOOLKIT_GTK="#"
49339 if test "x$TOOLKIT" = "xGTK" ; then
49340 COND_TOOLKIT_GTK=""
49341 fi
49342
d044deea
MW
49343 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
49344 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
49345 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
49346 fi
49347
49348 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
49349 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
49350 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
49351 fi
49352
49353 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
49354 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
49355 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
49356 fi
49357
49358 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
49359 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49360 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
49361 fi
49362
49363 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
49364 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
49365 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
49366 fi
49367
49368 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
49369 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49370 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
49371 fi
49372
a848cd7e
SC
49373 COND_TOOLKIT_GTK_USE_GUI_1="#"
49374 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
49375 COND_TOOLKIT_GTK_USE_GUI_1=""
49376 fi
49377
a848cd7e
SC
49378 COND_TOOLKIT_MAC="#"
49379 if test "x$TOOLKIT" = "xMAC" ; then
49380 COND_TOOLKIT_MAC=""
49381 fi
49382
49383 COND_TOOLKIT_MAC_USE_GUI_1="#"
49384 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49385 COND_TOOLKIT_MAC_USE_GUI_1=""
49386 fi
49387
49388 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49389 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49390 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49391 fi
49392
49393 COND_TOOLKIT_MGL="#"
49394 if test "x$TOOLKIT" = "xMGL" ; then
49395 COND_TOOLKIT_MGL=""
49396 fi
49397
49398 COND_TOOLKIT_MGL_USE_GUI_1="#"
49399 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49400 COND_TOOLKIT_MGL_USE_GUI_1=""
49401 fi
49402
49403 COND_TOOLKIT_MOTIF="#"
49404 if test "x$TOOLKIT" = "xMOTIF" ; then
49405 COND_TOOLKIT_MOTIF=""
49406 fi
49407
49408 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
49409 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
49410 COND_TOOLKIT_MOTIF_USE_GUI_1=""
49411 fi
49412
49413 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
49414 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49415 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
49416 fi
49417
49418 COND_TOOLKIT_MSW="#"
49419 if test "x$TOOLKIT" = "xMSW" ; then
49420 COND_TOOLKIT_MSW=""
49421 fi
49422
49423 COND_TOOLKIT_MSW_USE_GUI_1="#"
49424 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
49425 COND_TOOLKIT_MSW_USE_GUI_1=""
49426 fi
49427
49428 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
49429 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49430 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
49431 fi
49432
0ee4059d
DE
49433 COND_TOOLKIT_MSW_WXUNIV_0="#"
49434 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49435 COND_TOOLKIT_MSW_WXUNIV_0=""
49436 fi
49437
a848cd7e
SC
49438 COND_TOOLKIT_PM="#"
49439 if test "x$TOOLKIT" = "xPM" ; then
49440 COND_TOOLKIT_PM=""
49441 fi
49442
49443 COND_TOOLKIT_PM_USE_GUI_1="#"
49444 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
49445 COND_TOOLKIT_PM_USE_GUI_1=""
49446 fi
49447
49448 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
49449 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49450 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
49451 fi
49452
3fd9c298
DE
49453 COND_TOOLKIT_WINCE="#"
49454 if test "x$TOOLKIT" = "xWINCE" ; then
49455 COND_TOOLKIT_WINCE=""
49456 fi
49457
49458 COND_TOOLKIT_WINCE_USE_GUI_1="#"
49459 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
49460 COND_TOOLKIT_WINCE_USE_GUI_1=""
49461 fi
49462
49463 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
49464 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49465 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
49466 fi
49467
0ee4059d
DE
49468 COND_TOOLKIT_WINCE_WXUNIV_0="#"
49469 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
49470 COND_TOOLKIT_WINCE_WXUNIV_0=""
49471 fi
49472
a848cd7e
SC
49473 COND_TOOLKIT_X11="#"
49474 if test "x$TOOLKIT" = "xX11" ; then
49475 COND_TOOLKIT_X11=""
49476 fi
49477
49478 COND_TOOLKIT_X11_USE_GUI_1="#"
49479 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
49480 COND_TOOLKIT_X11_USE_GUI_1=""
49481 fi
49482
49483 COND_UNICODE_1="#"
49484 if test "x$UNICODE" = "x1" ; then
49485 COND_UNICODE_1=""
49486 fi
49487
49488 COND_USE_EXCEPTIONS_0="#"
49489 if test "x$USE_EXCEPTIONS" = "x0" ; then
49490 COND_USE_EXCEPTIONS_0=""
49491 fi
49492
49493 COND_USE_EXCEPTIONS_1="#"
49494 if test "x$USE_EXCEPTIONS" = "x1" ; then
49495 COND_USE_EXCEPTIONS_1=""
49496 fi
49497
49498 COND_USE_GUI_0="#"
49499 if test "x$USE_GUI" = "x0" ; then
49500 COND_USE_GUI_0=""
49501 fi
49502
49503 COND_USE_GUI_1="#"
49504 if test "x$USE_GUI" = "x1" ; then
49505 COND_USE_GUI_1=""
49506 fi
49507
49508 COND_USE_GUI_1_WXUNIV_0="#"
49509 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49510 COND_USE_GUI_1_WXUNIV_0=""
49511 fi
49512
49513 COND_USE_GUI_1_WXUNIV_1="#"
49514 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
49515 COND_USE_GUI_1_WXUNIV_1=""
49516 fi
49517
49518 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49519 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49520 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49521 fi
49522
49523 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49524 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49525 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49526 fi
49527
49528 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49529 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49530 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49531 fi
49532
083508af
MW
49533 COND_USE_ODBC_1="#"
49534 if test "x$USE_ODBC" = "x1" ; then
49535 COND_USE_ODBC_1=""
49536 fi
49537
49538 COND_USE_OPENGL_1="#"
49539 if test "x$USE_OPENGL" = "x1" ; then
49540 COND_USE_OPENGL_1=""
49541 fi
49542
f10e38c4
VZ
49543 COND_USE_PCH_1="#"
49544 if test "x$USE_PCH" = "x1" ; then
49545 COND_USE_PCH_1=""
49546 fi
49547
a848cd7e
SC
49548 COND_USE_PLUGINS_0="#"
49549 if test "x$USE_PLUGINS" = "x0" ; then
49550 COND_USE_PLUGINS_0=""
49551 fi
49552
0b78747f
MW
49553 COND_USE_RTTI_0="#"
49554 if test "x$USE_RTTI" = "x0" ; then
49555 COND_USE_RTTI_0=""
49556 fi
49557
49558 COND_USE_RTTI_1="#"
49559 if test "x$USE_RTTI" = "x1" ; then
49560 COND_USE_RTTI_1=""
49561 fi
49562
a848cd7e
SC
49563 COND_USE_SOSYMLINKS_1="#"
49564 if test "x$USE_SOSYMLINKS" = "x1" ; then
49565 COND_USE_SOSYMLINKS_1=""
49566 fi
49567
eb730a0c
JS
49568 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
49569 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49570 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
49571 fi
49572
a848cd7e
SC
49573 COND_USE_SOVERLINUX_1="#"
49574 if test "x$USE_SOVERLINUX" = "x1" ; then
49575 COND_USE_SOVERLINUX_1=""
49576 fi
49577
49578 COND_USE_SOVERSION_0="#"
49579 if test "x$USE_SOVERSION" = "x0" ; then
49580 COND_USE_SOVERSION_0=""
49581 fi
49582
49583 COND_USE_SOVERSOLARIS_1="#"
49584 if test "x$USE_SOVERSOLARIS" = "x1" ; then
49585 COND_USE_SOVERSOLARIS_1=""
49586 fi
49587
0b78747f
MW
49588 COND_USE_THREADS_0="#"
49589 if test "x$USE_THREADS" = "x0" ; then
49590 COND_USE_THREADS_0=""
49591 fi
49592
49593 COND_USE_THREADS_1="#"
49594 if test "x$USE_THREADS" = "x1" ; then
49595 COND_USE_THREADS_1=""
49596 fi
49597
a13a7f89
RL
49598 COND_USE_XRC_1="#"
49599 if test "x$USE_XRC" = "x1" ; then
49600 COND_USE_XRC_1=""
49601 fi
49602
eb730a0c
JS
49603 COND_WINDOWS_IMPLIB_1="#"
49604 if test "x$WINDOWS_IMPLIB" = "x1" ; then
49605 COND_WINDOWS_IMPLIB_1=""
49606 fi
49607
a848cd7e
SC
49608 COND_WITH_PLUGIN_SDL_1="#"
49609 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
49610 COND_WITH_PLUGIN_SDL_1=""
49611 fi
49612
1e6eb025
VZ
49613 COND_WXUNIV_0="#"
49614 if test "x$WXUNIV" = "x0" ; then
49615 COND_WXUNIV_0=""
49616 fi
49617
a848cd7e
SC
49618 COND_WXUNIV_1="#"
49619 if test "x$WXUNIV" = "x1" ; then
49620 COND_WXUNIV_1=""
49621 fi
49622
49623 COND_WXUSE_EXPAT_BUILTIN="#"
49624 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
49625 COND_WXUSE_EXPAT_BUILTIN=""
49626 fi
49627
49628 COND_WXUSE_LIBJPEG_BUILTIN="#"
49629 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49630 COND_WXUSE_LIBJPEG_BUILTIN=""
49631 fi
49632
49633 COND_WXUSE_LIBPNG_BUILTIN="#"
49634 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49635 COND_WXUSE_LIBPNG_BUILTIN=""
49636 fi
49637
49638 COND_WXUSE_LIBTIFF_BUILTIN="#"
49639 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49640 COND_WXUSE_LIBTIFF_BUILTIN=""
49641 fi
49642
49643 COND_WXUSE_ODBC_BUILTIN="#"
49644 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
49645 COND_WXUSE_ODBC_BUILTIN=""
49646 fi
49647
49648 COND_WXUSE_REGEX_BUILTIN="#"
49649 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
49650 COND_WXUSE_REGEX_BUILTIN=""
49651 fi
49652
49653 COND_WXUSE_ZLIB_BUILTIN="#"
49654 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
49655 COND_WXUSE_ZLIB_BUILTIN=""
49656 fi
49657
49658
49659
810b94f0
MW
49660 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
49661 { { 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
49662echo "$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;}
49663 { (exit 1); exit 1; }; }
49664 fi
49665
2057db16
VS
49666 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
49667 { { 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
49668echo "$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;}
49669 { (exit 1); exit 1; }; }
49670 fi
49671
a848cd7e 49672
7afc46ab
KO
49673
49674if test "$wxUSE_MAC" = 1 ; then
95768535 49675 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
49676 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
49677 mv temp bk-deps
49678 chmod +x bk-deps
49679 fi
49680fi
49681
ceec2216
RL
49682if test "$wxUSE_SHARED" = "yes"; then
49683
49684 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
49685 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
49686
5b674b9d
DE
49687 case "${host}" in
49688 *-pc-os2_emx | *-pc-os2-emx )
49689 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49690 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49691 cp -p ${srcdir}/src/os2/dllnames.sh .
49692 cp -p ${srcdir}/src/os2/dllar.sh .
49693 ;;
49694 esac
ceec2216
RL
49695else
49696
49697 EXE_LINKER="$CXX -o"
49698
49699fi
69120ee4
VZ
49700if test "$wxUSE_OMF" = "yes"; then
49701 case "${host}" in
49702 *-pc-os2_emx | *-pc-os2-emx )
49703 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
49704 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49705 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49706 ;;
49707 esac
49708fi
a848cd7e 49709
c08ebc62 49710if test $GCC_PCH = 1 ; then
254e8e29 49711 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 49712fi
a848cd7e 49713
5ff751d6 49714WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
49715
49716SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
49717
49718
49719
49720
49721
49722
49723
49724
49725
49726
49727
49728
49729
49730
49731
49732
49733
49734
49735
49736
49737
49738
49739
49740
49741
49742
49743
49744
49745
49746
49747
49748
49749
49750
49751
49752
49753
49754
49755
49756
49757
49758
a848cd7e
SC
49759
49760
49761
49762
49763
49764
49765
49766
49767
49768
49769
49770
a848cd7e
SC
49771
49772
ddd14b14 49773
370d2fd7 49774
8ced02f6 49775
a848cd7e
SC
49776
49777
49778echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49779echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 49780set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
49781if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
49782 echo $ECHO_N "(cached) $ECHO_C" >&6
49783else
49784 cat >conftest.make <<\_ACEOF
49785all:
49786 @echo 'ac_maketemp="$(MAKE)"'
49787_ACEOF
49788# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49789eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
49790if test -n "$ac_maketemp"; then
49791 eval ac_cv_prog_make_${ac_make}_set=yes
49792else
49793 eval ac_cv_prog_make_${ac_make}_set=no
49794fi
49795rm -f conftest.make
49796fi
49797if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
49798 echo "$as_me:$LINENO: result: yes" >&5
49799echo "${ECHO_T}yes" >&6
49800 SET_MAKE=
49801else
49802 echo "$as_me:$LINENO: result: no" >&5
49803echo "${ECHO_T}no" >&6
49804 SET_MAKE="MAKE=${MAKE-make}"
49805fi
49806
49807
a848cd7e 49808
ceec2216
RL
49809 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
49810
a848cd7e 49811
5c60e845
MW
49812if test "$USE_WIN32" = 1; then
49813 ac_config_commands="$ac_config_commands
49814 rcdefs.h
49815 "
49816
49817fi
49818
ceec2216 49819 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 49820
a848cd7e 49821
ceec2216 49822 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 49823
ceec2216
RL
49824
49825 ac_config_files="$ac_config_files version-script Makefile"
49826
49827
5c60e845 49828 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
49829
49830
9103d280 49831
1c14217d 49832if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
49833if test "$wxUSE_GUI" = "yes"; then
49834 SUBDIRS="samples demos utils contrib"
49835else SUBDIRS="samples utils"
49836fi
49837
49838
49839
49840# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
49841if test "${with_cppunit_prefix+set}" = set; then
49842 withval="$with_cppunit_prefix"
49843 cppunit_config_prefix="$withval"
49844else
49845 cppunit_config_prefix=""
49846fi;
49847
49848# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
49849if test "${with_cppunit_exec_prefix+set}" = set; then
49850 withval="$with_cppunit_exec_prefix"
49851 cppunit_config_exec_prefix="$withval"
49852else
49853 cppunit_config_exec_prefix=""
49854fi;
49855
49856 if test x$cppunit_config_exec_prefix != x ; then
49857 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
49858 if test x${CPPUNIT_CONFIG+set} != xset ; then
49859 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
49860 fi
49861 fi
49862 if test x$cppunit_config_prefix != x ; then
49863 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
49864 if test x${CPPUNIT_CONFIG+set} != xset ; then
49865 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
49866 fi
49867 fi
49868
49869 # Extract the first word of "cppunit-config", so it can be a program name with args.
49870set dummy cppunit-config; ac_word=$2
49871echo "$as_me:$LINENO: checking for $ac_word" >&5
49872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49873if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
49874 echo $ECHO_N "(cached) $ECHO_C" >&6
49875else
49876 case $CPPUNIT_CONFIG in
49877 [\\/]* | ?:[\\/]*)
49878 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
49879 ;;
49880 *)
49881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49882for as_dir in $PATH
49883do
49884 IFS=$as_save_IFS
49885 test -z "$as_dir" && as_dir=.
49886 for ac_exec_ext in '' $ac_executable_extensions; do
49887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49888 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49890 break 2
49891 fi
49892done
49893done
49894
49895 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
49896 ;;
49897esac
49898fi
49899CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
49900
49901if test -n "$CPPUNIT_CONFIG"; then
49902 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
49903echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
49904else
49905 echo "$as_me:$LINENO: result: no" >&5
49906echo "${ECHO_T}no" >&6
49907fi
49908
49909 cppunit_version_min=1.8.0
49910
49911 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
49912echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
49913 no_cppunit=""
49914 if test "$CPPUNIT_CONFIG" = "no" ; then
3ecd9f92
MW
49915 echo "$as_me:$LINENO: result: no" >&5
49916echo "${ECHO_T}no" >&6
a848cd7e
SC
49917 no_cppunit=yes
49918 else
49919 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
49920 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
49921 cppunit_version=`$CPPUNIT_CONFIG --version`
49922
49923 cppunit_major_version=`echo $cppunit_version | \
49924 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49925 cppunit_minor_version=`echo $cppunit_version | \
49926 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49927 cppunit_micro_version=`echo $cppunit_version | \
49928 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49929
49930 cppunit_major_min=`echo $cppunit_version_min | \
49931 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49932 cppunit_minor_min=`echo $cppunit_version_min | \
49933 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49934 cppunit_micro_min=`echo $cppunit_version_min | \
49935 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49936
49937 cppunit_version_proper=`expr \
49938 $cppunit_major_version \> $cppunit_major_min \| \
49939 $cppunit_major_version \= $cppunit_major_min \& \
49940 $cppunit_minor_version \> $cppunit_minor_min \| \
49941 $cppunit_major_version \= $cppunit_major_min \& \
49942 $cppunit_minor_version \= $cppunit_minor_min \& \
49943 $cppunit_micro_version \>= $cppunit_micro_min `
49944
49945 if test "$cppunit_version_proper" = "1" ; then
49946 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
49947echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
49948 else
49949 echo "$as_me:$LINENO: result: no" >&5
49950echo "${ECHO_T}no" >&6
49951 no_cppunit=yes
49952 fi
49953 fi
49954
49955 if test "x$no_cppunit" = x ; then
c2218763 49956 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
49957 else
49958 CPPUNIT_CFLAGS=""
49959 CPPUNIT_LIBS=""
c2218763 49960 :
a848cd7e
SC
49961 fi
49962
49963
49964
49965
49966
49967for subdir in `echo $SUBDIRS`; do
49968 if test -d ${srcdir}/${subdir} ; then
49969 if test "$wxUSE_GUI" = "yes"; then
49970 if test ${subdir} = "samples"; then
49971 makefiles="samples/Makefile.in $makefiles"
49972 for sample in `echo $SAMPLES_SUBDIRS`; do
49973 if test -d $srcdir/samples/$sample; then
49974 makefiles="samples/$sample/Makefile.in $makefiles"
49975 fi
49976 done
9c112555
MW
49977 else
49978 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
49979 eval "disabled=\$$disabled_var"
49980 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
49981 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
49982 fi
49983 else if test ${subdir} = "samples"; then
49984 makefiles="samples/Makefile.in samples/console/Makefile.in"
49985 elif test ${subdir} = "utils"; then
6537ccf8
VS
49986 makefiles=""
49987 for util in HelpGen tex2rtf ; do
49988 if test -d $srcdir/utils/$util ; then
49989 makefiles="utils/$util/Makefile.in \
49990 utils/$util/src/Makefile.in \
49991 $makefiles"
49992 fi
49993 done
a848cd7e
SC
49994 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
49995 fi
49996 fi
49997
49998 for mkin in $makefiles ; do
49999 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
50000 ac_config_files="$ac_config_files $mk"
50001
50002 done
50003 fi
50004done
1c14217d 50005fi
a848cd7e
SC
50006cat >confcache <<\_ACEOF
50007# This file is a shell script that caches the results of configure
50008# tests run on this system so they can be shared between configure
50009# scripts and configure runs, see configure's option --config-cache.
50010# It is not useful on other systems. If it contains results you don't
50011# want to keep, you may remove or edit it.
50012#
50013# config.status only pays attention to the cache file if you give it
50014# the --recheck option to rerun configure.
50015#
50016# `ac_cv_env_foo' variables (set or unset) will be overridden when
50017# loading this file, other *unset* `ac_cv_foo' will be assigned the
50018# following values.
50019
50020_ACEOF
50021
50022# The following way of writing the cache mishandles newlines in values,
50023# but we know of no workaround that is simple, portable, and efficient.
50024# So, don't put newlines in cache variables' values.
50025# Ultrix sh set writes to stderr and can't be redirected directly,
50026# and sets the high bit in the cache file unless we assign to the vars.
50027{
50028 (set) 2>&1 |
50029 case `(ac_space=' '; set | grep ac_space) 2>&1` in
50030 *ac_space=\ *)
50031 # `set' does not quote correctly, so add quotes (double-quote
50032 # substitution turns \\\\ into \\, and sed turns \\ into \).
50033 sed -n \
ac1cb8d3
VS
50034 "s/'/'\\\\''/g;
50035 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
50036 ;;
50037 *)
50038 # `set' quotes correctly as required by POSIX, so do not add quotes.
50039 sed -n \
ac1cb8d3 50040 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
50041 ;;
50042 esac;
50043} |
50044 sed '
50045 t clear
50046 : clear
50047 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50048 t end
50049 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50050 : end' >>confcache
50051if diff $cache_file confcache >/dev/null 2>&1; then :; else
50052 if test -w $cache_file; then
50053 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
50054 cat confcache >$cache_file
50055 else
50056 echo "not updating unwritable cache $cache_file"
50057 fi
50058fi
50059rm -f confcache
50060
50061test "x$prefix" = xNONE && prefix=$ac_default_prefix
50062# Let make expand exec_prefix.
50063test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50064
50065# VPATH may cause trouble with some makes, so we remove $(srcdir),
50066# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
50067# trailing colons and then remove the whole line if VPATH becomes empty
50068# (actually we leave an empty line to preserve line numbers).
50069if test "x$srcdir" = x.; then
ac1cb8d3 50070 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
50071s/:*\$(srcdir):*/:/;
50072s/:*\${srcdir}:*/:/;
50073s/:*@srcdir@:*/:/;
ac1cb8d3 50074s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 50075s/:*$//;
ac1cb8d3 50076s/^[^=]*=[ ]*$//;
a848cd7e
SC
50077}'
50078fi
50079
50080DEFS=-DHAVE_CONFIG_H
50081
50082ac_libobjs=
50083ac_ltlibobjs=
50084for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50085 # 1. Remove the extension, and $U if already installed.
50086 ac_i=`echo "$ac_i" |
ac1cb8d3 50087 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
50088 # 2. Add them.
50089 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
50090 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
50091done
50092LIBOBJS=$ac_libobjs
50093
50094LTLIBOBJS=$ac_ltlibobjs
50095
50096
50097
50098: ${CONFIG_STATUS=./config.status}
50099ac_clean_files_save=$ac_clean_files
50100ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50101{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50102echo "$as_me: creating $CONFIG_STATUS" >&6;}
50103cat >$CONFIG_STATUS <<_ACEOF
50104#! $SHELL
50105# Generated by $as_me.
50106# Run this file to recreate the current configuration.
50107# Compiler output produced by configure, useful for debugging
50108# configure, is in config.log if it exists.
50109
50110debug=false
50111ac_cs_recheck=false
50112ac_cs_silent=false
50113SHELL=\${CONFIG_SHELL-$SHELL}
50114_ACEOF
50115
50116cat >>$CONFIG_STATUS <<\_ACEOF
50117## --------------------- ##
50118## M4sh Initialization. ##
50119## --------------------- ##
50120
50121# Be Bourne compatible
50122if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50123 emulate sh
50124 NULLCMD=:
50125 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50126 # is contrary to our usage. Disable this feature.
50127 alias -g '${1+"$@"}'='"$@"'
50128elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
50129 set -o posix
50130fi
ac1cb8d3 50131DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
50132
50133# Support unset when possible.
ac1cb8d3 50134if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
50135 as_unset=unset
50136else
50137 as_unset=false
50138fi
50139
50140
50141# Work around bugs in pre-3.0 UWIN ksh.
50142$as_unset ENV MAIL MAILPATH
50143PS1='$ '
50144PS2='> '
50145PS4='+ '
50146
50147# NLS nuisances.
50148for as_var in \
50149 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50150 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50151 LC_TELEPHONE LC_TIME
50152do
ac1cb8d3 50153 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
50154 eval $as_var=C; export $as_var
50155 else
50156 $as_unset $as_var
50157 fi
50158done
50159
50160# Required to use basename.
50161if expr a : '\(a\)' >/dev/null 2>&1; then
50162 as_expr=expr
50163else
50164 as_expr=false
50165fi
50166
50167if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
50168 as_basename=basename
50169else
50170 as_basename=false
50171fi
50172
50173
50174# Name of the executable.
50175as_me=`$as_basename "$0" ||
50176$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50177 X"$0" : 'X\(//\)$' \| \
50178 X"$0" : 'X\(/\)$' \| \
50179 . : '\(.\)' 2>/dev/null ||
50180echo X/"$0" |
50181 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
50182 /^X\/\(\/\/\)$/{ s//\1/; q; }
50183 /^X\/\(\/\).*/{ s//\1/; q; }
50184 s/.*/./; q'`
50185
50186
50187# PATH needs CR, and LINENO needs CR and PATH.
50188# Avoid depending upon Character Ranges.
50189as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50190as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50191as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50192as_cr_digits='0123456789'
50193as_cr_alnum=$as_cr_Letters$as_cr_digits
50194
50195# The user is always right.
50196if test "${PATH_SEPARATOR+set}" != set; then
50197 echo "#! /bin/sh" >conf$$.sh
50198 echo "exit 0" >>conf$$.sh
50199 chmod +x conf$$.sh
50200 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50201 PATH_SEPARATOR=';'
50202 else
50203 PATH_SEPARATOR=:
50204 fi
50205 rm -f conf$$.sh
50206fi
50207
50208
50209 as_lineno_1=$LINENO
50210 as_lineno_2=$LINENO
50211 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50212 test "x$as_lineno_1" != "x$as_lineno_2" &&
50213 test "x$as_lineno_3" = "x$as_lineno_2" || {
50214 # Find who we are. Look in the path if we contain no path at all
50215 # relative or not.
50216 case $0 in
50217 *[\\/]* ) as_myself=$0 ;;
50218 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50219for as_dir in $PATH
50220do
50221 IFS=$as_save_IFS
50222 test -z "$as_dir" && as_dir=.
50223 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50224done
50225
50226 ;;
50227 esac
50228 # We did not find ourselves, most probably we were run as `sh COMMAND'
50229 # in which case we are not to be found in the path.
50230 if test "x$as_myself" = x; then
50231 as_myself=$0
50232 fi
50233 if test ! -f "$as_myself"; then
50234 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
50235echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
50236 { (exit 1); exit 1; }; }
50237 fi
50238 case $CONFIG_SHELL in
50239 '')
50240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
50242do
50243 IFS=$as_save_IFS
50244 test -z "$as_dir" && as_dir=.
50245 for as_base in sh bash ksh sh5; do
50246 case $as_dir in
50247 /*)
50248 if ("$as_dir/$as_base" -c '
50249 as_lineno_1=$LINENO
50250 as_lineno_2=$LINENO
50251 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50252 test "x$as_lineno_1" != "x$as_lineno_2" &&
50253 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
50254 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
50255 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
50256 CONFIG_SHELL=$as_dir/$as_base
50257 export CONFIG_SHELL
50258 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
50259 fi;;
50260 esac
50261 done
50262done
50263;;
50264 esac
50265
50266 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50267 # uniformly replaced by the line number. The first 'sed' inserts a
50268 # line-number line before each line; the second 'sed' does the real
50269 # work. The second script uses 'N' to pair each line-number line
50270 # with the numbered line, and appends trailing '-' during
50271 # substitution so that $LINENO is not a special case at line end.
50272 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50273 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
50274 sed '=' <$as_myself |
50275 sed '
50276 N
50277 s,$,-,
50278 : loop
50279 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
50280 t loop
50281 s,-$,,
50282 s,^['$as_cr_digits']*\n,,
50283 ' >$as_me.lineno &&
50284 chmod +x $as_me.lineno ||
50285 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
50286echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
50287 { (exit 1); exit 1; }; }
50288
50289 # Don't try to exec as it changes $[0], causing all sort of problems
50290 # (the dirname of $[0] is not the place where we might find the
50291 # original and so on. Autoconf is especially sensible to this).
50292 . ./$as_me.lineno
50293 # Exit status is that of the last command.
50294 exit
50295}
50296
50297
50298case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
50299 *c*,-n*) ECHO_N= ECHO_C='
50300' ECHO_T=' ' ;;
50301 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
50302 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
50303esac
50304
50305if expr a : '\(a\)' >/dev/null 2>&1; then
50306 as_expr=expr
50307else
50308 as_expr=false
50309fi
50310
50311rm -f conf$$ conf$$.exe conf$$.file
50312echo >conf$$.file
50313if ln -s conf$$.file conf$$ 2>/dev/null; then
50314 # We could just check for DJGPP; but this test a) works b) is more generic
50315 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
50316 if test -f conf$$.exe; then
50317 # Don't use ln at all; we don't have any links
50318 as_ln_s='cp -p'
50319 else
50320 as_ln_s='ln -s'
50321 fi
50322elif ln conf$$.file conf$$ 2>/dev/null; then
50323 as_ln_s=ln
50324else
50325 as_ln_s='cp -p'
50326fi
50327rm -f conf$$ conf$$.exe conf$$.file
50328
50329if mkdir -p . 2>/dev/null; then
50330 as_mkdir_p=:
50331else
ac1cb8d3 50332 test -d ./-p && rmdir ./-p
a848cd7e
SC
50333 as_mkdir_p=false
50334fi
50335
50336as_executable_p="test -f"
50337
50338# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 50339as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
50340
50341# Sed expression to map a string onto a valid variable name.
ac1cb8d3 50342as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
50343
50344
50345# IFS
50346# We need space, tab and new line, in precisely that order.
50347as_nl='
50348'
50349IFS=" $as_nl"
50350
50351# CDPATH.
50352$as_unset CDPATH
50353
50354exec 6>&1
50355
50356# Open the log real soon, to keep \$[0] and so on meaningful, and to
50357# report actual input values of CONFIG_FILES etc. instead of their
50358# values after options handling. Logging --version etc. is OK.
50359exec 5>>config.log
50360{
50361 echo
50362 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50363## Running $as_me. ##
50364_ASBOX
50365} >&5
50366cat >&5 <<_CSEOF
50367
f1e3914f 50368This file was extended by wxWidgets $as_me 2.7.1, which was
ac1cb8d3 50369generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
50370
50371 CONFIG_FILES = $CONFIG_FILES
50372 CONFIG_HEADERS = $CONFIG_HEADERS
50373 CONFIG_LINKS = $CONFIG_LINKS
50374 CONFIG_COMMANDS = $CONFIG_COMMANDS
50375 $ $0 $@
50376
50377_CSEOF
50378echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
50379echo >&5
50380_ACEOF
50381
50382# Files that config.status was made for.
50383if test -n "$ac_config_files"; then
50384 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
50385fi
50386
50387if test -n "$ac_config_headers"; then
50388 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
50389fi
50390
50391if test -n "$ac_config_links"; then
50392 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
50393fi
50394
50395if test -n "$ac_config_commands"; then
50396 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
50397fi
50398
50399cat >>$CONFIG_STATUS <<\_ACEOF
50400
50401ac_cs_usage="\
50402\`$as_me' instantiates files from templates according to the
50403current configuration.
50404
50405Usage: $0 [OPTIONS] [FILE]...
50406
50407 -h, --help print this help, then exit
50408 -V, --version print version number, then exit
50409 -q, --quiet do not print progress messages
50410 -d, --debug don't remove temporary files
50411 --recheck update $as_me by reconfiguring in the same conditions
50412 --file=FILE[:TEMPLATE]
ac1cb8d3 50413 instantiate the configuration file FILE
a848cd7e 50414 --header=FILE[:TEMPLATE]
ac1cb8d3 50415 instantiate the configuration header FILE
a848cd7e
SC
50416
50417Configuration files:
50418$config_files
50419
50420Configuration headers:
50421$config_headers
50422
50423Configuration commands:
50424$config_commands
50425
50426Report bugs to <bug-autoconf@gnu.org>."
50427_ACEOF
50428
50429cat >>$CONFIG_STATUS <<_ACEOF
50430ac_cs_version="\\
f1e3914f 50431wxWidgets config.status 2.7.1
ac1cb8d3 50432configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
50433 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
50434
ac1cb8d3 50435Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
50436This config.status script is free software; the Free Software Foundation
50437gives unlimited permission to copy, distribute and modify it."
50438srcdir=$srcdir
50439INSTALL="$INSTALL"
50440_ACEOF
50441
50442cat >>$CONFIG_STATUS <<\_ACEOF
50443# If no file are specified by the user, then we need to provide default
50444# value. By we need to know if files were specified by the user.
50445ac_need_defaults=:
50446while test $# != 0
50447do
50448 case $1 in
50449 --*=*)
50450 ac_option=`expr "x$1" : 'x\([^=]*\)='`
50451 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
50452 ac_shift=:
50453 ;;
50454 -*)
50455 ac_option=$1
50456 ac_optarg=$2
50457 ac_shift=shift
50458 ;;
50459 *) # This is not an option, so the user has probably given explicit
50460 # arguments.
50461 ac_option=$1
50462 ac_need_defaults=false;;
50463 esac
50464
50465 case $ac_option in
50466 # Handling of the options.
50467_ACEOF
50468cat >>$CONFIG_STATUS <<\_ACEOF
50469 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50470 ac_cs_recheck=: ;;
50471 --version | --vers* | -V )
50472 echo "$ac_cs_version"; exit 0 ;;
50473 --he | --h)
50474 # Conflict between --help and --header
50475 { { echo "$as_me:$LINENO: error: ambiguous option: $1
50476Try \`$0 --help' for more information." >&5
50477echo "$as_me: error: ambiguous option: $1
50478Try \`$0 --help' for more information." >&2;}
50479 { (exit 1); exit 1; }; };;
50480 --help | --hel | -h )
50481 echo "$ac_cs_usage"; exit 0 ;;
50482 --debug | --d* | -d )
50483 debug=: ;;
50484 --file | --fil | --fi | --f )
50485 $ac_shift
50486 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
50487 ac_need_defaults=false;;
50488 --header | --heade | --head | --hea )
50489 $ac_shift
50490 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
50491 ac_need_defaults=false;;
50492 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50493 | -silent | --silent | --silen | --sile | --sil | --si | --s)
50494 ac_cs_silent=: ;;
50495
50496 # This is an error.
50497 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
50498Try \`$0 --help' for more information." >&5
50499echo "$as_me: error: unrecognized option: $1
50500Try \`$0 --help' for more information." >&2;}
50501 { (exit 1); exit 1; }; } ;;
50502
50503 *) ac_config_targets="$ac_config_targets $1" ;;
50504
50505 esac
50506 shift
50507done
50508
50509ac_configure_extra_args=
50510
50511if $ac_cs_silent; then
50512 exec 6>/dev/null
50513 ac_configure_extra_args="$ac_configure_extra_args --silent"
50514fi
50515
50516_ACEOF
50517cat >>$CONFIG_STATUS <<_ACEOF
50518if \$ac_cs_recheck; then
50519 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
50520 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50521fi
50522
50523_ACEOF
50524
50525cat >>$CONFIG_STATUS <<_ACEOF
50526#
50527# INIT-COMMANDS section.
50528#
50529
5c60e845
MW
50530
50531 CPP="$CPP"
50532 infile="$srcdir/include/wx/msw/genrcdefs.h"
50533 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
50534
50535
ceec2216
RL
50536 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50537 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50538 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50539 LN_S="${LN_S}"
a848cd7e
SC
50540
50541
50542_ACEOF
50543
50544
50545
50546cat >>$CONFIG_STATUS <<\_ACEOF
50547for ac_config_target in $ac_config_targets
50548do
50549 case "$ac_config_target" in
50550 # Handling of arguments.
ceec2216
RL
50551 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
50552 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
50553 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
50554 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
50555 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 50556 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
50557 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
50558 "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
50559 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50560echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50561 { (exit 1); exit 1; }; };;
50562 esac
50563done
50564
50565# If the user did not use the arguments to specify the items to instantiate,
50566# then the envvar interface is used. Set only those that are not.
50567# We use the long form for the default assignment because of an extremely
50568# bizarre bug on SunOS 4.1.3.
50569if $ac_need_defaults; then
50570 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50571 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50572 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
50573fi
50574
50575# Have a temporary directory for convenience. Make it in the build tree
50576# simply because there is no reason to put it here, and in addition,
50577# creating and moving files from /tmp can sometimes cause problems.
50578# Create a temporary directory, and hook for its removal unless debugging.
50579$debug ||
50580{
50581 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
50582 trap '{ (exit 1); exit 1; }' 1 2 13 15
50583}
50584
50585# Create a (secure) tmp directory for tmp files.
50586
50587{
50588 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
50589 test -n "$tmp" && test -d "$tmp"
50590} ||
50591{
50592 tmp=./confstat$$-$RANDOM
50593 (umask 077 && mkdir $tmp)
50594} ||
50595{
50596 echo "$me: cannot create a temporary directory in ." >&2
50597 { (exit 1); exit 1; }
50598}
50599
50600_ACEOF
50601
50602cat >>$CONFIG_STATUS <<_ACEOF
50603
50604#
50605# CONFIG_FILES section.
50606#
50607
50608# No need to generate the scripts if there are no CONFIG_FILES.
50609# This happens for instance when ./config.status config.h
50610if test -n "\$CONFIG_FILES"; then
50611 # Protect against being on the right side of a sed subst in config.status.
50612 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
50613 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
50614s,@SHELL@,$SHELL,;t t
50615s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
50616s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
50617s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
50618s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
50619s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
50620s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
50621s,@exec_prefix@,$exec_prefix,;t t
50622s,@prefix@,$prefix,;t t
50623s,@program_transform_name@,$program_transform_name,;t t
50624s,@bindir@,$bindir,;t t
50625s,@sbindir@,$sbindir,;t t
50626s,@libexecdir@,$libexecdir,;t t
50627s,@datadir@,$datadir,;t t
50628s,@sysconfdir@,$sysconfdir,;t t
50629s,@sharedstatedir@,$sharedstatedir,;t t
50630s,@localstatedir@,$localstatedir,;t t
50631s,@libdir@,$libdir,;t t
50632s,@includedir@,$includedir,;t t
50633s,@oldincludedir@,$oldincludedir,;t t
50634s,@infodir@,$infodir,;t t
50635s,@mandir@,$mandir,;t t
50636s,@build_alias@,$build_alias,;t t
50637s,@host_alias@,$host_alias,;t t
50638s,@target_alias@,$target_alias,;t t
50639s,@DEFS@,$DEFS,;t t
50640s,@ECHO_C@,$ECHO_C,;t t
50641s,@ECHO_N@,$ECHO_N,;t t
50642s,@ECHO_T@,$ECHO_T,;t t
50643s,@LIBS@,$LIBS,;t t
50644s,@build@,$build,;t t
50645s,@build_cpu@,$build_cpu,;t t
50646s,@build_vendor@,$build_vendor,;t t
50647s,@build_os@,$build_os,;t t
50648s,@host@,$host,;t t
50649s,@host_cpu@,$host_cpu,;t t
50650s,@host_vendor@,$host_vendor,;t t
50651s,@host_os@,$host_os,;t t
50652s,@target@,$target,;t t
50653s,@target_cpu@,$target_cpu,;t t
50654s,@target_vendor@,$target_vendor,;t t
50655s,@target_os@,$target_os,;t t
50656s,@CC@,$CC,;t t
50657s,@CFLAGS@,$CFLAGS,;t t
50658s,@LDFLAGS@,$LDFLAGS,;t t
50659s,@CPPFLAGS@,$CPPFLAGS,;t t
50660s,@ac_ct_CC@,$ac_ct_CC,;t t
50661s,@EXEEXT@,$EXEEXT,;t t
50662s,@OBJEXT@,$OBJEXT,;t t
50663s,@CPP@,$CPP,;t t
50664s,@EGREP@,$EGREP,;t t
50665s,@CXX@,$CXX,;t t
50666s,@CXXFLAGS@,$CXXFLAGS,;t t
50667s,@ac_ct_CXX@,$ac_ct_CXX,;t t
50668s,@RANLIB@,$RANLIB,;t t
50669s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
50670s,@AR@,$AR,;t t
8c80d384 50671s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
50672s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
50673s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
50674s,@INSTALL_DATA@,$INSTALL_DATA,;t t
50675s,@STRIP@,$STRIP,;t t
8c80d384 50676s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
50677s,@WINDRES@,$WINDRES,;t t
50678s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
50679s,@DLLTOOL@,$DLLTOOL,;t t
50680s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
50681s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
50682s,@LN_S@,$LN_S,;t t
50683s,@CXXCPP@,$CXXCPP,;t t
50684s,@subdirs@,$subdirs,;t t
50685s,@PKG_CONFIG@,$PKG_CONFIG,;t t
50686s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
50687s,@GTK_LIBS@,$GTK_LIBS,;t t
50688s,@GTK_CONFIG@,$GTK_CONFIG,;t t
b3c86150
VS
50689s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
50690s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
50691s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
a848cd7e
SC
50692s,@X_CFLAGS@,$X_CFLAGS,;t t
50693s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
50694s,@X_LIBS@,$X_LIBS,;t t
50695s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
50696s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
50697s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
50698s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
50699s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
50700s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
50701s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 50702s,@REZ@,$REZ,;t t
a848cd7e
SC
50703s,@DEREZ@,$DEREZ,;t t
50704s,@SETFILE@,$SETFILE,;t t
50705s,@LIBICONV@,$LIBICONV,;t t
50706s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
50707s,@SDL_CONFIG@,$SDL_CONFIG,;t t
50708s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
50709s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
50710s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
50711s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
50712s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
50713s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
50714s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
50715s,@HILDON_LIBS@,$HILDON_LIBS,;t t
64b75e64
RD
50716s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
50717s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
f10e38c4
VZ
50718s,@GST_CFLAGS@,$GST_CFLAGS,;t t
50719s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
50720s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
50721s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
50722s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
50723s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
50724s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
50725s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
50726s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
50727s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
50728s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
50729s,@VENDOR@,$VENDOR,;t t
50730s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
50731s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
50732s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
50733s,@WXUNIV@,$WXUNIV,;t t
50734s,@MONOLITHIC@,$MONOLITHIC,;t t
50735s,@USE_PLUGINS@,$USE_PLUGINS,;t t
50736s,@EXTRALIBS@,$EXTRALIBS,;t t
50737s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
50738s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
50739s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
50740s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
50741s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
50742s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
50743s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 50744s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 50745s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 50746s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
50747s,@UNICODE@,$UNICODE,;t t
50748s,@BUILD@,$BUILD,;t t
50749s,@DEBUG_INFO@,$DEBUG_INFO,;t t
50750s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
50751s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
50752s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
50753s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
50754s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
50755s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
50756s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
50757s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
50758s,@SET_MAKE@,$SET_MAKE,;t t
50759s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
50760s,@NM@,$NM,;t t
50761s,@ac_ct_NM@,$ac_ct_NM,;t t
50762s,@INSTALL_DIR@,$INSTALL_DIR,;t t
50763s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
50764s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
50765s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
50766s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
50767s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 50768s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
50769s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
50770s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 50771s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
50772s,@SO_SUFFIX@,$SO_SUFFIX,;t t
50773s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
50774s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
50775s,@LIBPREFIX@,$LIBPREFIX,;t t
50776s,@LIBEXT@,$LIBEXT,;t t
50777s,@DLLPREFIX@,$DLLPREFIX,;t t
50778s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 50779s,@dlldir@,$dlldir,;t t
a848cd7e
SC
50780s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
50781s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
50782s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
50783s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
50784s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
50785s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 50786s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
50787s,@USE_SOVERSION@,$USE_SOVERSION,;t t
50788s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
50789s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 50790s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
50791s,@USE_MACVERSION@,$USE_MACVERSION,;t t
50792s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
50793s,@SONAME_FLAG@,$SONAME_FLAG,;t t
50794s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
50795s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 50796s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
50797s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
50798s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
50799s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
50800s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
50801s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
50802s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
50803s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
50804s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
50805s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
50806s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
50807s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
50808s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
50809s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
50810s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
50811s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 50812s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
50813s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
50814s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 50815s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 50816s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 50817s,@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 50818s,@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 50819s,@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 50820s,@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 50821s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8b6682b9 50822s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
ceec2216 50823s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 50824s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 50825s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 50826s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 50827s,@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 50828s,@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 50829s,@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 50830s,@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 50831s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
8b6682b9 50832s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
ceec2216 50833s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 50834s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
50835s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
50836s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
50837s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
50838s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
50839s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
50840s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 50841s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
50842s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
50843s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 50844s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
50845s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
50846s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
50847s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 50848s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 50849s,@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
50850s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
50851s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
50852s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
50853s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 50854s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 50855s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 50856s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 50857s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
50858s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
50859s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
50860s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
50861s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
50862s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
50863s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
50864s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
50865s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
50866s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
50867s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
50868s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
50869s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
50870s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50871s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50872s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 50873s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
50874s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
50875s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
50876s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
50877s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
50878s,@COND_SHARED_1@,$COND_SHARED_1,;t t
50879s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 50880s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 50881s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 50882s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 50883s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e 50884s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
b3c86150
VS
50885s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
50886s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
a848cd7e 50887s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
50888s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
50889s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
50890s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
50891s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
50892s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
50893s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 50894s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
50895s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
50896s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
50897s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
50898s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
50899s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
50900s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
50901s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
50902s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
50903s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
50904s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
50905s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 50906s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
50907s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
50908s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
50909s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
50910s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
50911s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
50912s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 50913s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
50914s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
50915s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
50916s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
50917s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
50918s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
50919s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
50920s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
50921s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
50922s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
50923s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50924s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50925s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
50926s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
50927s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 50928s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 50929s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
50930s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
50931s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 50932s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 50933s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
50934s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
50935s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
50936s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
50937s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
50938s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 50939s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 50940s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 50941s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 50942s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
50943s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
50944s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
50945s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
50946s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
50947s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
50948s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
50949s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
50950s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 50951s,@SHARED@,$SHARED,;t t
a848cd7e
SC
50952s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
50953s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
50954s,@USE_GUI@,$USE_GUI,;t t
50955s,@AFMINSTALL@,$AFMINSTALL,;t t
50956s,@WIN32INSTALL@,$WIN32INSTALL,;t t
50957s,@TOOLKIT@,$TOOLKIT,;t t
50958s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 50959s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 50960s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 50961s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
50962s,@WIDGET_SET@,$WIDGET_SET,;t t
50963s,@WX_RELEASE@,$WX_RELEASE,;t t
50964s,@WX_VERSION@,$WX_VERSION,;t t
50965s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
50966s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
50967s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
50968s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
50969s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
50970s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
50971s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
50972s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
50973s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 50974s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 50975s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 50976s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
50977s,@DISTDIR@,$DISTDIR,;t t
50978s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
50979s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
50980s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
50981s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
50982s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 50983s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
50984s,@RESFLAGS@,$RESFLAGS,;t t
50985s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
50986s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
50987s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
50988s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 50989s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 50990s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 50991s,@GCC@,$GCC,;t t
a848cd7e
SC
50992s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
50993s,@LIBOBJS@,$LIBOBJS,;t t
50994s,@LTLIBOBJS@,$LTLIBOBJS,;t t
50995CEOF
50996
50997_ACEOF
50998
50999 cat >>$CONFIG_STATUS <<\_ACEOF
51000 # Split the substitutions into bite-sized pieces for seds with
51001 # small command number limits, like on Digital OSF/1 and HP-UX.
51002 ac_max_sed_lines=48
51003 ac_sed_frag=1 # Number of current file.
51004 ac_beg=1 # First line for current file.
51005 ac_end=$ac_max_sed_lines # Line after last line for current file.
51006 ac_more_lines=:
51007 ac_sed_cmds=
51008 while $ac_more_lines; do
51009 if test $ac_beg -gt 1; then
51010 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51011 else
51012 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51013 fi
51014 if test ! -s $tmp/subs.frag; then
51015 ac_more_lines=false
51016 else
51017 # The purpose of the label and of the branching condition is to
51018 # speed up the sed processing (if there are no `@' at all, there
51019 # is no need to browse any of the substitutions).
51020 # These are the two extra sed commands mentioned above.
51021 (echo ':t
51022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
51023 if test -z "$ac_sed_cmds"; then
ac1cb8d3 51024 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 51025 else
ac1cb8d3 51026 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
51027 fi
51028 ac_sed_frag=`expr $ac_sed_frag + 1`
51029 ac_beg=$ac_end
51030 ac_end=`expr $ac_end + $ac_max_sed_lines`
51031 fi
51032 done
51033 if test -z "$ac_sed_cmds"; then
51034 ac_sed_cmds=cat
51035 fi
51036fi # test -n "$CONFIG_FILES"
51037
51038_ACEOF
51039cat >>$CONFIG_STATUS <<\_ACEOF
51040for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
51041 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51042 case $ac_file in
51043 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
51044 cat >$tmp/stdin
51045 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51046 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 51047 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 51048 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
51049 * ) ac_file_in=$ac_file.in ;;
51050 esac
51051
51052 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
51053 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51054$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51055 X"$ac_file" : 'X\(//\)[^/]' \| \
51056 X"$ac_file" : 'X\(//\)$' \| \
51057 X"$ac_file" : 'X\(/\)' \| \
51058 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51059echo X"$ac_file" |
51060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51062 /^X\(\/\/\)$/{ s//\1/; q; }
51063 /^X\(\/\).*/{ s//\1/; q; }
51064 s/.*/./; q'`
51065 { if $as_mkdir_p; then
51066 mkdir -p "$ac_dir"
51067 else
51068 as_dir="$ac_dir"
51069 as_dirs=
51070 while test ! -d "$as_dir"; do
51071 as_dirs="$as_dir $as_dirs"
51072 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51073$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51074 X"$as_dir" : 'X\(//\)[^/]' \| \
51075 X"$as_dir" : 'X\(//\)$' \| \
51076 X"$as_dir" : 'X\(/\)' \| \
51077 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51078echo X"$as_dir" |
51079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51081 /^X\(\/\/\)$/{ s//\1/; q; }
51082 /^X\(\/\).*/{ s//\1/; q; }
51083 s/.*/./; q'`
51084 done
51085 test ! -n "$as_dirs" || mkdir $as_dirs
51086 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51087echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51088 { (exit 1); exit 1; }; }; }
51089
51090 ac_builddir=.
51091
51092if test "$ac_dir" != .; then
51093 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51094 # A "../" for each directory in $ac_dir_suffix.
51095 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51096else
51097 ac_dir_suffix= ac_top_builddir=
51098fi
51099
51100case $srcdir in
51101 .) # No --srcdir option. We are building in place.
51102 ac_srcdir=.
51103 if test -z "$ac_top_builddir"; then
51104 ac_top_srcdir=.
51105 else
51106 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51107 fi ;;
51108 [\\/]* | ?:[\\/]* ) # Absolute path.
51109 ac_srcdir=$srcdir$ac_dir_suffix;
51110 ac_top_srcdir=$srcdir ;;
51111 *) # Relative path.
51112 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51113 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51114esac
ac1cb8d3
VS
51115
51116# Do not use `cd foo && pwd` to compute absolute paths, because
51117# the directories may not exist.
51118case `pwd` in
51119.) ac_abs_builddir="$ac_dir";;
51120*)
51121 case "$ac_dir" in
51122 .) ac_abs_builddir=`pwd`;;
51123 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51124 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51125 esac;;
51126esac
51127case $ac_abs_builddir in
51128.) ac_abs_top_builddir=${ac_top_builddir}.;;
51129*)
51130 case ${ac_top_builddir}. in
51131 .) ac_abs_top_builddir=$ac_abs_builddir;;
51132 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51133 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51134 esac;;
51135esac
51136case $ac_abs_builddir in
51137.) ac_abs_srcdir=$ac_srcdir;;
51138*)
51139 case $ac_srcdir in
51140 .) ac_abs_srcdir=$ac_abs_builddir;;
51141 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51142 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51143 esac;;
51144esac
51145case $ac_abs_builddir in
51146.) ac_abs_top_srcdir=$ac_top_srcdir;;
51147*)
51148 case $ac_top_srcdir in
51149 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51150 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51151 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51152 esac;;
51153esac
a848cd7e
SC
51154
51155
51156 case $INSTALL in
51157 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51158 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
51159 esac
51160
a848cd7e
SC
51161 # Let's still pretend it is `configure' which instantiates (i.e., don't
51162 # use $as_me), people would be surprised to read:
51163 # /* config.h. Generated by config.status. */
51164 if test x"$ac_file" = x-; then
51165 configure_input=
51166 else
51167 configure_input="$ac_file. "
51168 fi
51169 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 51170 sed 's,.*/,,'` by configure."
a848cd7e
SC
51171
51172 # First look for the input files in the build tree, otherwise in the
51173 # src tree.
51174 ac_file_inputs=`IFS=:
51175 for f in $ac_file_in; do
51176 case $f in
51177 -) echo $tmp/stdin ;;
51178 [\\/$]*)
ac1cb8d3
VS
51179 # Absolute (can't be DOS-style, as IFS=:)
51180 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51181echo "$as_me: error: cannot find input file: $f" >&2;}
51182 { (exit 1); exit 1; }; }
ac1cb8d3 51183 echo "$f";;
a848cd7e 51184 *) # Relative
ac1cb8d3
VS
51185 if test -f "$f"; then
51186 # Build tree
51187 echo "$f"
51188 elif test -f "$srcdir/$f"; then
51189 # Source tree
51190 echo "$srcdir/$f"
51191 else
51192 # /dev/null tree
51193 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51194echo "$as_me: error: cannot find input file: $f" >&2;}
51195 { (exit 1); exit 1; }; }
ac1cb8d3 51196 fi;;
a848cd7e
SC
51197 esac
51198 done` || { (exit 1); exit 1; }
64b75e64
RD
51199
51200 if test x"$ac_file" != x-; then
51201 { echo "$as_me:$LINENO: creating $ac_file" >&5
51202echo "$as_me: creating $ac_file" >&6;}
51203 rm -f "$ac_file"
51204 fi
a848cd7e
SC
51205_ACEOF
51206cat >>$CONFIG_STATUS <<_ACEOF
51207 sed "$ac_vpsub
51208$extrasub
51209_ACEOF
51210cat >>$CONFIG_STATUS <<\_ACEOF
51211:t
51212/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51213s,@configure_input@,$configure_input,;t t
51214s,@srcdir@,$ac_srcdir,;t t
51215s,@abs_srcdir@,$ac_abs_srcdir,;t t
51216s,@top_srcdir@,$ac_top_srcdir,;t t
51217s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
51218s,@builddir@,$ac_builddir,;t t
51219s,@abs_builddir@,$ac_abs_builddir,;t t
51220s,@top_builddir@,$ac_top_builddir,;t t
51221s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
51222s,@INSTALL@,$ac_INSTALL,;t t
51223" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
51224 rm -f $tmp/stdin
51225 if test x"$ac_file" != x-; then
51226 mv $tmp/out $ac_file
51227 else
51228 cat $tmp/out
51229 rm -f $tmp/out
51230 fi
51231
ceec2216
RL
51232 # Run the commands associated with the file.
51233 case $ac_file in
51234 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
51235 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
51236 esac
a848cd7e
SC
51237done
51238_ACEOF
51239cat >>$CONFIG_STATUS <<\_ACEOF
51240
51241#
51242# CONFIG_HEADER section.
51243#
51244
51245# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
51246# NAME is the cpp macro being defined and VALUE is the value it is being given.
51247#
51248# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
51249ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
51250ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
51251ac_dC=' '
51252ac_dD=',;t'
51253# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 51254ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
51255ac_uB='$,\1#\2define\3'
51256ac_uC=' '
51257ac_uD=',;t'
51258
51259for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
51260 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51261 case $ac_file in
51262 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
51263 cat >$tmp/stdin
51264 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51265 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 51266 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 51267 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
51268 * ) ac_file_in=$ac_file.in ;;
51269 esac
51270
51271 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
51272echo "$as_me: creating $ac_file" >&6;}
51273
51274 # First look for the input files in the build tree, otherwise in the
51275 # src tree.
51276 ac_file_inputs=`IFS=:
51277 for f in $ac_file_in; do
51278 case $f in
51279 -) echo $tmp/stdin ;;
51280 [\\/$]*)
ac1cb8d3
VS
51281 # Absolute (can't be DOS-style, as IFS=:)
51282 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51283echo "$as_me: error: cannot find input file: $f" >&2;}
51284 { (exit 1); exit 1; }; }
ac1cb8d3
VS
51285 # Do quote $f, to prevent DOS paths from being IFS'd.
51286 echo "$f";;
a848cd7e 51287 *) # Relative
ac1cb8d3
VS
51288 if test -f "$f"; then
51289 # Build tree
51290 echo "$f"
51291 elif test -f "$srcdir/$f"; then
51292 # Source tree
51293 echo "$srcdir/$f"
51294 else
51295 # /dev/null tree
51296 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51297echo "$as_me: error: cannot find input file: $f" >&2;}
51298 { (exit 1); exit 1; }; }
ac1cb8d3 51299 fi;;
a848cd7e
SC
51300 esac
51301 done` || { (exit 1); exit 1; }
51302 # Remove the trailing spaces.
ac1cb8d3 51303 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
51304
51305_ACEOF
51306
51307# Transform confdefs.h into two sed scripts, `conftest.defines' and
51308# `conftest.undefs', that substitutes the proper values into
51309# config.h.in to produce config.h. The first handles `#define'
51310# templates, and the second `#undef' templates.
51311# And first: Protect against being on the right side of a sed subst in
51312# config.status. Protect against being in an unquoted here document
51313# in config.status.
51314rm -f conftest.defines conftest.undefs
51315# Using a here document instead of a string reduces the quoting nightmare.
51316# Putting comments in sed scripts is not portable.
51317#
51318# `end' is used to avoid that the second main sed command (meant for
51319# 0-ary CPP macros) applies to n-ary macro definitions.
51320# See the Autoconf documentation for `clear'.
51321cat >confdef2sed.sed <<\_ACEOF
51322s/[\\&,]/\\&/g
51323s,[\\$`],\\&,g
51324t clear
51325: clear
ac1cb8d3 51326s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 51327t end
ac1cb8d3 51328s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
51329: end
51330_ACEOF
51331# If some macros were called several times there might be several times
51332# the same #defines, which is useless. Nevertheless, we may not want to
51333# sort them, since we want the *last* AC-DEFINE to be honored.
51334uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
51335sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
51336rm -f confdef2sed.sed
51337
51338# This sed command replaces #undef with comments. This is necessary, for
51339# example, in the case of _POSIX_SOURCE, which is predefined and required
51340# on some systems where configure will not decide to define it.
51341cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 51342s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
51343_ACEOF
51344
51345# Break up conftest.defines because some shells have a limit on the size
51346# of here documents, and old seds have small limits too (100 cmds).
51347echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 51348echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
51349echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
51350echo ' :' >>$CONFIG_STATUS
51351rm -f conftest.tail
51352while grep . conftest.defines >/dev/null
51353do
51354 # Write a limited-size here document to $tmp/defines.sed.
51355 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
51356 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 51357 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
51358 # Work around the forget-to-reset-the-flag bug.
51359 echo 't clr' >>$CONFIG_STATUS
51360 echo ': clr' >>$CONFIG_STATUS
51361 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
51362 echo 'CEOF
51363 sed -f $tmp/defines.sed $tmp/in >$tmp/out
51364 rm -f $tmp/in
51365 mv $tmp/out $tmp/in
51366' >>$CONFIG_STATUS
51367 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
51368 rm -f conftest.defines
51369 mv conftest.tail conftest.defines
51370done
51371rm -f conftest.defines
51372echo ' fi # grep' >>$CONFIG_STATUS
51373echo >>$CONFIG_STATUS
51374
51375# Break up conftest.undefs because some shells have a limit on the size
51376# of here documents, and old seds have small limits too (100 cmds).
51377echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
51378rm -f conftest.tail
51379while grep . conftest.undefs >/dev/null
51380do
51381 # Write a limited-size here document to $tmp/undefs.sed.
51382 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
51383 # Speed up: don't consider the non `#undef'
ac1cb8d3 51384 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
51385 # Work around the forget-to-reset-the-flag bug.
51386 echo 't clr' >>$CONFIG_STATUS
51387 echo ': clr' >>$CONFIG_STATUS
51388 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
51389 echo 'CEOF
51390 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
51391 rm -f $tmp/in
51392 mv $tmp/out $tmp/in
51393' >>$CONFIG_STATUS
51394 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
51395 rm -f conftest.undefs
51396 mv conftest.tail conftest.undefs
51397done
51398rm -f conftest.undefs
51399
51400cat >>$CONFIG_STATUS <<\_ACEOF
51401 # Let's still pretend it is `configure' which instantiates (i.e., don't
51402 # use $as_me), people would be surprised to read:
51403 # /* config.h. Generated by config.status. */
51404 if test x"$ac_file" = x-; then
51405 echo "/* Generated by configure. */" >$tmp/config.h
51406 else
51407 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
51408 fi
51409 cat $tmp/in >>$tmp/config.h
51410 rm -f $tmp/in
51411 if test x"$ac_file" != x-; then
51412 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
51413 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
51414echo "$as_me: $ac_file is unchanged" >&6;}
51415 else
51416 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51417$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51418 X"$ac_file" : 'X\(//\)[^/]' \| \
51419 X"$ac_file" : 'X\(//\)$' \| \
51420 X"$ac_file" : 'X\(/\)' \| \
51421 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51422echo X"$ac_file" |
51423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51424 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51425 /^X\(\/\/\)$/{ s//\1/; q; }
51426 /^X\(\/\).*/{ s//\1/; q; }
51427 s/.*/./; q'`
51428 { if $as_mkdir_p; then
51429 mkdir -p "$ac_dir"
51430 else
51431 as_dir="$ac_dir"
51432 as_dirs=
51433 while test ! -d "$as_dir"; do
51434 as_dirs="$as_dir $as_dirs"
51435 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51436$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51437 X"$as_dir" : 'X\(//\)[^/]' \| \
51438 X"$as_dir" : 'X\(//\)$' \| \
51439 X"$as_dir" : 'X\(/\)' \| \
51440 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51441echo X"$as_dir" |
51442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51443 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51444 /^X\(\/\/\)$/{ s//\1/; q; }
51445 /^X\(\/\).*/{ s//\1/; q; }
51446 s/.*/./; q'`
51447 done
51448 test ! -n "$as_dirs" || mkdir $as_dirs
51449 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51450echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51451 { (exit 1); exit 1; }; }; }
51452
51453 rm -f $ac_file
51454 mv $tmp/config.h $ac_file
51455 fi
51456 else
51457 cat $tmp/config.h
51458 rm -f $tmp/config.h
51459 fi
51460done
51461_ACEOF
51462cat >>$CONFIG_STATUS <<\_ACEOF
51463
51464#
51465# CONFIG_COMMANDS section.
51466#
51467for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
51468 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
51469 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
51470 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
51471$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51472 X"$ac_dest" : 'X\(//\)[^/]' \| \
51473 X"$ac_dest" : 'X\(//\)$' \| \
51474 X"$ac_dest" : 'X\(/\)' \| \
51475 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51476echo X"$ac_dest" |
51477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51478 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51479 /^X\(\/\/\)$/{ s//\1/; q; }
51480 /^X\(\/\).*/{ s//\1/; q; }
51481 s/.*/./; q'`
ac1cb8d3
VS
51482 { if $as_mkdir_p; then
51483 mkdir -p "$ac_dir"
51484 else
51485 as_dir="$ac_dir"
51486 as_dirs=
51487 while test ! -d "$as_dir"; do
51488 as_dirs="$as_dir $as_dirs"
51489 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51490$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51491 X"$as_dir" : 'X\(//\)[^/]' \| \
51492 X"$as_dir" : 'X\(//\)$' \| \
51493 X"$as_dir" : 'X\(/\)' \| \
51494 . : '\(.\)' 2>/dev/null ||
51495echo X"$as_dir" |
51496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51498 /^X\(\/\/\)$/{ s//\1/; q; }
51499 /^X\(\/\).*/{ s//\1/; q; }
51500 s/.*/./; q'`
51501 done
51502 test ! -n "$as_dirs" || mkdir $as_dirs
51503 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51504echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51505 { (exit 1); exit 1; }; }; }
51506
a848cd7e
SC
51507 ac_builddir=.
51508
51509if test "$ac_dir" != .; then
51510 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51511 # A "../" for each directory in $ac_dir_suffix.
51512 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51513else
51514 ac_dir_suffix= ac_top_builddir=
51515fi
51516
51517case $srcdir in
51518 .) # No --srcdir option. We are building in place.
51519 ac_srcdir=.
51520 if test -z "$ac_top_builddir"; then
51521 ac_top_srcdir=.
51522 else
51523 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51524 fi ;;
51525 [\\/]* | ?:[\\/]* ) # Absolute path.
51526 ac_srcdir=$srcdir$ac_dir_suffix;
51527 ac_top_srcdir=$srcdir ;;
51528 *) # Relative path.
51529 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51530 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51531esac
ac1cb8d3
VS
51532
51533# Do not use `cd foo && pwd` to compute absolute paths, because
51534# the directories may not exist.
51535case `pwd` in
51536.) ac_abs_builddir="$ac_dir";;
51537*)
51538 case "$ac_dir" in
51539 .) ac_abs_builddir=`pwd`;;
51540 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51541 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51542 esac;;
51543esac
51544case $ac_abs_builddir in
51545.) ac_abs_top_builddir=${ac_top_builddir}.;;
51546*)
51547 case ${ac_top_builddir}. in
51548 .) ac_abs_top_builddir=$ac_abs_builddir;;
51549 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51550 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51551 esac;;
51552esac
51553case $ac_abs_builddir in
51554.) ac_abs_srcdir=$ac_srcdir;;
51555*)
51556 case $ac_srcdir in
51557 .) ac_abs_srcdir=$ac_abs_builddir;;
51558 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51559 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51560 esac;;
51561esac
51562case $ac_abs_builddir in
51563.) ac_abs_top_srcdir=$ac_top_srcdir;;
51564*)
51565 case $ac_top_srcdir in
51566 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51567 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51568 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51569 esac;;
51570esac
a848cd7e
SC
51571
51572
51573 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
51574echo "$as_me: executing $ac_dest commands" >&6;}
51575 case $ac_dest in
5c60e845
MW
51576 rcdefs.h )
51577 mkdir -p $outdir &&
51578 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
51579 ;;
ceec2216
RL
51580 wx-config ) rm -f wx-config
51581 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
51582 ;;
a848cd7e
SC
51583 esac
51584done
51585_ACEOF
51586
51587cat >>$CONFIG_STATUS <<\_ACEOF
51588
51589{ (exit 0); exit 0; }
51590_ACEOF
51591chmod +x $CONFIG_STATUS
51592ac_clean_files=$ac_clean_files_save
51593
51594
51595# configure is writing to config.log, and then calls config.status.
51596# config.status does its own redirection, appending to config.log.
51597# Unfortunately, on DOS this fails, as config.log is still kept open
51598# by configure, so config.status won't be able to write to it; its
51599# output is simply discarded. So we exec the FD to /dev/null,
51600# effectively closing config.log, so it can be properly (re)opened and
51601# appended to by config.status. When coming back to configure, we
51602# need to make the FD available again.
51603if test "$no_create" != yes; then
51604 ac_cs_success=:
51605 ac_config_status_args=
51606 test "$silent" = yes &&
51607 ac_config_status_args="$ac_config_status_args --quiet"
51608 exec 5>/dev/null
51609 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51610 exec 5>>config.log
51611 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51612 # would make configure fail if this is the last instruction.
51613 $ac_cs_success || { (exit 1); exit 1; }
51614fi
51615
51616#
51617# CONFIG_SUBDIRS section.
51618#
51619if test "$no_recursion" != yes; then
51620
51621 # Remove --cache-file and --srcdir arguments so they do not pile up.
51622 ac_sub_configure_args=
51623 ac_prev=
51624 for ac_arg in $ac_configure_args; do
51625 if test -n "$ac_prev"; then
51626 ac_prev=
51627 continue
51628 fi
51629 case $ac_arg in
51630 -cache-file | --cache-file | --cache-fil | --cache-fi \
51631 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
51632 ac_prev=cache_file ;;
51633 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
51634 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
51635 | --c=*)
51636 ;;
51637 --config-cache | -C)
51638 ;;
51639 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
51640 ac_prev=srcdir ;;
51641 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
51642 ;;
51643 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
51644 ac_prev=prefix ;;
51645 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
51646 ;;
51647 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
51648 esac
51649 done
51650
51651 # Always prepend --prefix to ensure using the same prefix
51652 # in subdir configurations.
51653 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
51654
51655 ac_popdir=`pwd`
51656 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
51657
51658 # Do not complain, so a configure script can configure whichever
51659 # parts of a large source tree are present.
51660 test -d $srcdir/$ac_dir || continue
51661
51662 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
51663echo "$as_me: configuring in $ac_dir" >&6;}
51664 { if $as_mkdir_p; then
51665 mkdir -p "$ac_dir"
51666 else
51667 as_dir="$ac_dir"
51668 as_dirs=
51669 while test ! -d "$as_dir"; do
51670 as_dirs="$as_dir $as_dirs"
51671 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51672$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51673 X"$as_dir" : 'X\(//\)[^/]' \| \
51674 X"$as_dir" : 'X\(//\)$' \| \
51675 X"$as_dir" : 'X\(/\)' \| \
51676 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51677echo X"$as_dir" |
51678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51680 /^X\(\/\/\)$/{ s//\1/; q; }
51681 /^X\(\/\).*/{ s//\1/; q; }
51682 s/.*/./; q'`
51683 done
51684 test ! -n "$as_dirs" || mkdir $as_dirs
51685 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51686echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51687 { (exit 1); exit 1; }; }; }
51688
51689 ac_builddir=.
51690
51691if test "$ac_dir" != .; then
51692 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51693 # A "../" for each directory in $ac_dir_suffix.
51694 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51695else
51696 ac_dir_suffix= ac_top_builddir=
51697fi
51698
51699case $srcdir in
51700 .) # No --srcdir option. We are building in place.
51701 ac_srcdir=.
51702 if test -z "$ac_top_builddir"; then
51703 ac_top_srcdir=.
51704 else
51705 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51706 fi ;;
51707 [\\/]* | ?:[\\/]* ) # Absolute path.
51708 ac_srcdir=$srcdir$ac_dir_suffix;
51709 ac_top_srcdir=$srcdir ;;
51710 *) # Relative path.
51711 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51712 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51713esac
ac1cb8d3
VS
51714
51715# Do not use `cd foo && pwd` to compute absolute paths, because
51716# the directories may not exist.
51717case `pwd` in
51718.) ac_abs_builddir="$ac_dir";;
51719*)
51720 case "$ac_dir" in
51721 .) ac_abs_builddir=`pwd`;;
51722 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51723 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51724 esac;;
51725esac
51726case $ac_abs_builddir in
51727.) ac_abs_top_builddir=${ac_top_builddir}.;;
51728*)
51729 case ${ac_top_builddir}. in
51730 .) ac_abs_top_builddir=$ac_abs_builddir;;
51731 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51732 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51733 esac;;
51734esac
51735case $ac_abs_builddir in
51736.) ac_abs_srcdir=$ac_srcdir;;
51737*)
51738 case $ac_srcdir in
51739 .) ac_abs_srcdir=$ac_abs_builddir;;
51740 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51741 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51742 esac;;
51743esac
51744case $ac_abs_builddir in
51745.) ac_abs_top_srcdir=$ac_top_srcdir;;
51746*)
51747 case $ac_top_srcdir in
51748 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51749 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51750 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51751 esac;;
51752esac
a848cd7e
SC
51753
51754
51755 cd $ac_dir
51756
51757 # Check for guested configure; otherwise get Cygnus style configure.
51758 if test -f $ac_srcdir/configure.gnu; then
51759 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
51760 elif test -f $ac_srcdir/configure; then
51761 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
51762 elif test -f $ac_srcdir/configure.in; then
51763 ac_sub_configure=$ac_configure
51764 else
51765 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
51766echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
51767 ac_sub_configure=
51768 fi
51769
51770 # The recursion is here.
51771 if test -n "$ac_sub_configure"; then
51772 # Make the cache file name correct relative to the subdirectory.
51773 case $cache_file in
51774 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
51775 *) # Relative path.
ac1cb8d3 51776 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
51777 esac
51778
51779 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
51780echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
51781 # The eval makes quoting arguments work.
51782 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
51783 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
51784 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
51785echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
51786 { (exit 1); exit 1; }; }
51787 fi
51788
64b75e64 51789 cd "$ac_popdir"
a848cd7e
SC
51790 done
51791fi
51792
51793
51794echo
77ffb593 51795echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 51796echo ""
c2e9ada4 51797echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
77ffb593 51798echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 51799
77ffb593
JS
51800echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
51801echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
51802echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 51803
77ffb593 51804echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
51805echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
51806echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 51807
77ffb593 51808echo " Which libraries should wxWidgets use?"
a848cd7e
SC
51809echo " jpeg ${wxUSE_LIBJPEG-none}"
51810echo " png ${wxUSE_LIBPNG-none}"
51811echo " regex ${wxUSE_REGEX}"
51812echo " tiff ${wxUSE_LIBTIFF-none}"
51813if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
51814echo " xpm ${wxUSE_LIBXPM-none}"
51815fi
51816echo " zlib ${wxUSE_ZLIB}"
51817echo " odbc ${wxUSE_ODBC}"
51818echo " expat ${wxUSE_EXPAT}"
51819echo " libmspack ${wxUSE_LIBMSPACK}"
51820echo " sdl ${wxUSE_LIBSDL}"
51821
51822echo ""
51823