]> git.saurik.com Git - wxWidgets.git/blame - configure
Add the new showOnIdle code to various other
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
dd8df4fc 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
dd8df4fc
VZ
273PACKAGE_VERSION='2.7.0'
274PACKAGE_STRING='wxWidgets 2.7.0'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
3ecd9f92 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS ac_pt_PKG_CONFIG PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH ICC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
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
793ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
794ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
795ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
796ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
797ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
798ac_env_PANGOX_LIBS_value=$PANGOX_LIBS
799ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
800ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS
801ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
802ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
803ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
804ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
805ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
806ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
807ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
808ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
809ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
810ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
811ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
812ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
813ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
814ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
815ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
816ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
817ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
818ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
819ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
820ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
821ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
822ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
823ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
824ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
825ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
826ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
827ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
828ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
829ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
830ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
831ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
832ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
833ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
834ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
835ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
836ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
837ac_env_HILDON_LIBS_set=${HILDON_LIBS+set}
838ac_env_HILDON_LIBS_value=$HILDON_LIBS
839ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set}
840ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS
841ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
842ac_env_GST_CFLAGS_value=$GST_CFLAGS
843ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
844ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
845ac_env_GST_LIBS_set=${GST_LIBS+set}
846ac_env_GST_LIBS_value=$GST_LIBS
847ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
848ac_cv_env_GST_LIBS_value=$GST_LIBS
a848cd7e
SC
849
850#
851# Report the --help message.
852#
853if test "$ac_init_help" = "long"; then
854 # Omit some internal or obsolete options to make the list less imposing.
855 # This message is too long to be a string in the A/UX 3.1 sh.
856 cat <<_ACEOF
dd8df4fc 857\`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
a848cd7e
SC
858
859Usage: $0 [OPTION]... [VAR=VALUE]...
860
861To assign environment variables (e.g., CC, CFLAGS...), specify them as
862VAR=VALUE. See below for descriptions of some of the useful variables.
863
864Defaults for the options are specified in brackets.
865
866Configuration:
867 -h, --help display this help and exit
868 --help=short display options specific to this package
869 --help=recursive display the short help of all the included packages
870 -V, --version display version information and exit
871 -q, --quiet, --silent do not print \`checking...' messages
872 --cache-file=FILE cache test results in FILE [disabled]
873 -C, --config-cache alias for \`--cache-file=config.cache'
874 -n, --no-create do not create output files
875 --srcdir=DIR find the sources in DIR [configure dir or \`..']
876
877_ACEOF
878
879 cat <<_ACEOF
880Installation directories:
881 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 882 [$ac_default_prefix]
a848cd7e 883 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 884 [PREFIX]
a848cd7e
SC
885
886By default, \`make install' will install all the files in
887\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
888an installation prefix other than \`$ac_default_prefix' using \`--prefix',
889for instance \`--prefix=\$HOME'.
890
891For better control, use the options below.
892
893Fine tuning of the installation directories:
894 --bindir=DIR user executables [EPREFIX/bin]
895 --sbindir=DIR system admin executables [EPREFIX/sbin]
896 --libexecdir=DIR program executables [EPREFIX/libexec]
897 --datadir=DIR read-only architecture-independent data [PREFIX/share]
898 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
899 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
900 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
901 --libdir=DIR object code libraries [EPREFIX/lib]
902 --includedir=DIR C header files [PREFIX/include]
903 --oldincludedir=DIR C header files for non-gcc [/usr/include]
904 --infodir=DIR info documentation [PREFIX/info]
905 --mandir=DIR man documentation [PREFIX/man]
906_ACEOF
907
908 cat <<\_ACEOF
909
910X features:
911 --x-includes=DIR X include files are in DIR
912 --x-libraries=DIR X library files are in DIR
913
914System types:
915 --build=BUILD configure for building on BUILD [guessed]
916 --host=HOST cross-compile to build programs to run on HOST [BUILD]
917 --target=TARGET configure for building compilers for TARGET [HOST]
918_ACEOF
919fi
920
921if test -n "$ac_init_help"; then
922 case $ac_init_help in
dd8df4fc 923 short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
a848cd7e
SC
924 esac
925 cat <<\_ACEOF
926
927Optional Features:
928 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
929 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
930 --enable-gui use GUI classes
77ffb593
JS
931 --enable-monolithic build wxWidgets as single library
932 --enable-plugins build parts of wxWidgets as loadable components
933 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 934 --enable-nanox use NanoX
f34ca037 935 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
936 --enable-gpe use GNOME PDA Environment features if possible
937 --enable-shared create shared library code
938 --enable-optimise create optimised code
939 --enable-debug same as debug_flag and debug_info
940 --enable-stl use STL for containers
941 --enable-omf use OMF object format
942 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
943 --enable-debug_info create code with debugging information
944 --enable-debug_gdb create code with extra GDB debugging information
945 --enable-debug_cntxt use wxDebugContext
946 --enable-mem_tracing create code with memory tracing
947 --enable-profile create code with profiling information
948 --enable-no_rtti create code without RTTI information
949 --enable-no_exceptions create code without C++ exceptions handling
950 --enable-permissive compile code disregarding strict ANSI
951 --enable-no_deps create code without dependency information
95768535 952 --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
953 --enable-compat24 enable wxWidgets 2.4 compatibility
954 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 955 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
956 --enable-intl use internationalization system
957 --enable-config use wxConfig (and derived) classes
958 --enable-protocols use wxProtocol and derived classes
959 --enable-ftp use wxFTP (requires wxProtocol
960 --enable-http use wxHTTP (requires wxProtocol
961 --enable-fileproto use wxFileProto class (requires wxProtocol
962 --enable-sockets use socket/network classes
963 --enable-ole use OLE classes (Win32 only)
964 --enable-dataobj use data object classes
965 --enable-ipc use interprocess communication (wxSocket etc.)
966 --enable-apple_ieee use the Apple IEEE codec
81f90336 967 --enable-arcstream use wxArchive streams
eaff0f0d 968 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 969 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
970 --enable-cmdline use wxCmdLineParser class
971 --enable-datetime use wxDateTime class
36b6448c 972 --enable-debugreport use wxDebugReport class
a848cd7e
SC
973 --enable-dialupman use dialup network classes
974 --enable-dynlib use wxLibrary class for DLL loading
975 --enable-dynamicloader use (new) wxDynamicLibrary class
976 --enable-exceptions build exception-safe library
977 --enable-ffile use wxFFile class
978 --enable-file use wxFile class
979 --enable-filesystem use virtual file systems classes
980 --enable-fontmap use font encodings conversion classes
981 --enable-fs_inet use virtual HTTP/FTP filesystems
982 --enable-fs_zip use virtual ZIP filesystems
983 --enable-geometry use geometry class
984 --enable-log use logging system
985 --enable-longlong use wxLongLong class
986 --enable-mimetype use wxMimeTypesManager
987 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
988 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 989 --enable-std_iostreams use standard C++ stream classes
59746b65 990 --enable-std_string use standard C++ string classes
07158944 991 --enable-stdpaths use wxStandardPaths class
a848cd7e 992 --enable-stopwatch use wxStopWatch class
07158944 993 --enable-streams use wxStream etc classes
a848cd7e
SC
994 --enable-sysoptions use wxSystemOptions
995 --enable-textbuf use wxTextBuffer class
996 --enable-textfile use wxTextFile class
997 --enable-timer use wxTimer class
998 --enable-unicode compile wxString with Unicode support
999 --enable-sound use wxSound class
3b57de8b 1000 --enable-mediactrl use wxMediaCtrl class
f10e38c4 1001 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
8b6682b9 1002 --enable-printfposparam use wxVsnprintf() which supports positional parameters
81f90336 1003 --enable-zipstream use wxZip streams
a848cd7e
SC
1004 --enable-url use wxURL class
1005 --enable-protocol use wxProtocol class
1006 --enable-protocol-http HTTP support in wxProtocol
1007 --enable-protocol-ftp FTP support in wxProtocol
1008 --enable-protocol-file FILE support in wxProtocol
1009 --enable-threads use threads
1010 --enable-docview use document view architecture
1011 --enable-help use help subsystem
1012 --enable-mshtmlhelp use MS HTML Help (win32)
1013 --enable-html use wxHTML sub-library
1014 --enable-htmlhelp use wxHTML-based help
9a8f0513 1015 --enable-xrc use XRC resources sub-library
3f60522a 1016 --enable-aui use AUI docking library
a848cd7e
SC
1017 --enable-constraints use layout-constraints system
1018 --enable-printarch use printing architecture
1019 --enable-mdi use multiple document interface architecture
8a7b1113 1020 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
1021 --enable-loggui use standard GUI logger
1022 --enable-logwin use wxLogWindow
1023 --enable-logdialog use wxLogDialog
646b6ec1 1024 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 1025 --enable-richtext use wxRichTextCtrl
a848cd7e
SC
1026 --enable-postscript use wxPostscriptDC device context (default for gtk+)
1027 --enable-prologio not available; see contrib
1028 --enable-resources not available; see contrib
1029 --enable-clipboard use wxClipboard class
1030 --enable-dnd use Drag'n'Drop classes
1031 --enable-metafile use win32 metafiles
1032 --enable-controls use all usual controls
1033 --enable-accel use accelerators
1034 --enable-button use wxButton class
1035 --enable-bmpbutton use wxBitmapButton class
1036 --enable-calendar use wxCalendarCtrl class
1037 --enable-caret use wxCaret class
1038 --enable-checkbox use wxCheckBox class
1039 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
1040 --enable-choice use wxChoice class
92bbdbcd 1041 --enable-choicebook use wxChoicebook class
e9263684 1042 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 1043 --enable-combobox use wxComboBox class
a57d600f 1044 --enable-comboctrl use wxComboCtrl class
da98e9be 1045 --enable-datepick use wxDatePickerCtrl class
e9263684 1046 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 1047 --enable-display use wxDisplay class
e9263684
VZ
1048 --enable-filepicker use wxFilePickerCtrl class
1049 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
1050 --enable-gauge use wxGauge class
1051 --enable-grid use wxGrid class
20e34ecc 1052 --enable-dataviewctrl, use wxDataViewCtrl class
6954625c 1053 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
1054 --enable-imaglist use wxImageList class
1055 --enable-listbook use wxListbook class
1056 --enable-listbox use wxListBox class
1057 --enable-listctrl use wxListCtrl class
1058 --enable-notebook use wxNotebook class
a57d600f 1059 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
1060 --enable-radiobox use wxRadioBox class
1061 --enable-radiobtn use wxRadioButton class
1062 --enable-sash use wxSashWindow class
1063 --enable-scrollbar use wxScrollBar class and scrollable windows
1064 --enable-slider use wxSlider class
1065 --enable-spinbtn use wxSpinButton class
1066 --enable-spinctrl use wxSpinCtrl class
1067 --enable-splitter use wxSplitterWindow class
1068 --enable-statbmp use wxStaticBitmap class
1069 --enable-statbox use wxStaticBox class
1070 --enable-statline use wxStaticLine class
1071 --enable-stattext use wxStaticText class
1072 --enable-statusbar use wxStatusBar class
1073 --enable-tabdialog use wxTabControl class
1074 --enable-textctrl use wxTextCtrl class
1075 --enable-togglebtn use wxToggleButton class
1076 --enable-toolbar use wxToolBar class
1077 --enable-tbarnative use native wxToolBar class
1078 --enable-tbarsmpl use wxToolBarSimple class
0093c2fc 1079 --enable-treebook use wxTreebook class
5ec3bc43 1080 --enable-toolbook use wxToolbook class
a848cd7e
SC
1081 --enable-treectrl use wxTreeCtrl class
1082 --enable-tipwindow use wxTipWindow class
1083 --enable-popupwin use wxPopUpWindow class
1084 --enable-commondlg use all common dialogs
1085 --enable-choicedlg use wxChoiceDialog
1086 --enable-coldlg use wxColourDialog
1087 --enable-filedlg use wxFileDialog
1088 --enable-finddlg use wxFindReplaceDialog
1089 --enable-fontdlg use wxFontDialog
1090 --enable-dirdlg use wxDirDialog
1091 --enable-msgdlg use wxMessageDialog
1092 --enable-numberdlg use wxNumberEntryDialog
1093 --enable-splash use wxSplashScreen
1094 --enable-textdlg use wxTextDialog
1095 --enable-tipdlg use startup tips
1096 --enable-progressdlg use wxProgressDialog
1097 --enable-wizarddlg use wxWizard
1098 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1099 --enable-miniframe use wxMiniFrame class
1100 --enable-tooltips use wxToolTip class
1101 --enable-splines use spline drawing code
fbe2ca43 1102 --enable-mousewheel use mousewheel
a848cd7e
SC
1103 --enable-validators use wxValidator and derived classes
1104 --enable-busyinfo use wxBusyInfo
4cb1d3da 1105 --enable-joystick use wxJoystick
38b4a946 1106 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1107 --enable-dragimage use wxDragImage
1108 --enable-accessibility enable accessibility support
38b4a946 1109 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1110 --enable-palette use wxPalette class
1111 --enable-image use wxImage class
1112 --enable-gif use gif images (GIF file format)
1113 --enable-pcx use pcx images (PCX file format)
1114 --enable-iff use iff images (IFF file format)
1115 --enable-pnm use pnm images (PNM file format)
1116 --enable-xpm use xpm images (XPM file format)
1117 --enable-icocur use Windows ICO and CUR formats
77ffb593 1118 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1119 --enable-vendor=VENDOR vendor name (win32 DLL only)
1120 --disable-largefile omit support for large files
1121 --disable-gtktest do not try to compile and run a test GTK+ program
1122 --disable-gtktest Do not try to compile and run a test GTK program
1123 --disable-sdltest Do not try to compile and run a test SDL program
1124 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1125 --disable-dependency-tracking
1126 don't use dependency tracking even if the compiler
1127 can
ebee3cd0
VS
1128 --disable-precomp-headers
1129 don't use precompiled headers even if compiler can
a848cd7e
SC
1130
1131Optional Packages:
1132 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1133 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1134 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1135 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1136 --with-motif use Motif/Lesstif
1137 --with-mac use Mac OS X
1138 --with-cocoa use Cocoa
1139 --with-wine use Wine
1140 --with-msw use MS-Windows
1141 --with-pm use OS/2 Presentation Manager
1142 --with-mgl use SciTech MGL
1143 --with-microwin use MicroWindows
1144 --with-x11 use X11
1145 --with-libpng use libpng (PNG image format)
1146 --with-libjpeg use libjpeg (JPEG file format)
1147 --with-libtiff use libtiff (TIFF file format)
1148 --with-libxpm use libxpm (XPM file format)
1149 --with-libmspack use libmspack (CHM help files loading)
1150 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1151 --with-gnomeprint use GNOME print for printing under GNOME
1152 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1153 --with-hildon use Hildon framework for Nokia 770
a848cd7e
SC
1154 --with-opengl use OpenGL (or Mesa)
1155 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1156 --with-regex enable support for wxRegEx class
1157 --with-zlib use zlib for LZW compression
1158 --with-odbc use the IODBC and wxODBC classes
1159 --with-expat enable XML support using expat parser
ceec2216 1160 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1161 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1162 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1163 --with-x use the X Window System
1164 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1165 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1166 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1167 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1168 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1169
1170Some influential environment variables:
dcc1b6ad
VS
1171 CC C compiler command
1172 CFLAGS C compiler flags
1173 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1174 nonstandard directory <lib dir>
1175 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1176 headers in a nonstandard directory <include dir>
1177 CPP C preprocessor
1178 CXX C++ compiler command
1179 CXXFLAGS C++ compiler flags
1180 CXXCPP C++ preprocessor
3ecd9f92
MW
1181 PKG_CONFIG path to pkg-config utility
1182 PANGOX_CFLAGS
1183 C compiler flags for PANGOX, overriding pkg-config
1184 PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1185 PANGOFT2_CFLAGS
1186 C compiler flags for PANGOFT2, overriding pkg-config
1187 PANGOFT2_LIBS
1188 linker flags for PANGOFT2, overriding pkg-config
1189 PANGOXFT_CFLAGS
1190 C compiler flags for PANGOXFT, overriding pkg-config
1191 PANGOXFT_LIBS
1192 linker flags for PANGOXFT, overriding pkg-config
1193 LIBGNOMEPRINTUI_CFLAGS
1194 C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1195 LIBGNOMEPRINTUI_LIBS
1196 linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1197 GNOMEVFS_CFLAGS
1198 C compiler flags for GNOMEVFS, overriding pkg-config
1199 GNOMEVFS_LIBS
1200 linker flags for GNOMEVFS, overriding pkg-config
1201 HILDON_CFLAGS
1202 C compiler flags for HILDON, overriding pkg-config
1203 HILDON_LIBS linker flags for HILDON, overriding pkg-config
1204 GST_CFLAGS C compiler flags for GST, overriding pkg-config
1205 GST_LIBS linker flags for GST, overriding pkg-config
a848cd7e
SC
1206
1207Use these variables to override the choices made by `configure' or to help
1208it to find libraries and programs with nonstandard names/locations.
1209
77ffb593 1210Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1211_ACEOF
1212fi
1213
1214if test "$ac_init_help" = "recursive"; then
1215 # If there are subdirs, report their specific --help.
1216 ac_popdir=`pwd`
1217 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1218 test -d $ac_dir || continue
1219 ac_builddir=.
1220
1221if test "$ac_dir" != .; then
1222 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1223 # A "../" for each directory in $ac_dir_suffix.
1224 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1225else
1226 ac_dir_suffix= ac_top_builddir=
1227fi
1228
1229case $srcdir in
1230 .) # No --srcdir option. We are building in place.
1231 ac_srcdir=.
1232 if test -z "$ac_top_builddir"; then
1233 ac_top_srcdir=.
1234 else
1235 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1236 fi ;;
1237 [\\/]* | ?:[\\/]* ) # Absolute path.
1238 ac_srcdir=$srcdir$ac_dir_suffix;
1239 ac_top_srcdir=$srcdir ;;
1240 *) # Relative path.
1241 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1242 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1243esac
ac1cb8d3
VS
1244
1245# Do not use `cd foo && pwd` to compute absolute paths, because
1246# the directories may not exist.
1247case `pwd` in
1248.) ac_abs_builddir="$ac_dir";;
1249*)
1250 case "$ac_dir" in
1251 .) ac_abs_builddir=`pwd`;;
1252 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1253 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1254 esac;;
1255esac
1256case $ac_abs_builddir in
1257.) ac_abs_top_builddir=${ac_top_builddir}.;;
1258*)
1259 case ${ac_top_builddir}. in
1260 .) ac_abs_top_builddir=$ac_abs_builddir;;
1261 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1262 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1263 esac;;
1264esac
1265case $ac_abs_builddir in
1266.) ac_abs_srcdir=$ac_srcdir;;
1267*)
1268 case $ac_srcdir in
1269 .) ac_abs_srcdir=$ac_abs_builddir;;
1270 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1271 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1272 esac;;
1273esac
1274case $ac_abs_builddir in
1275.) ac_abs_top_srcdir=$ac_top_srcdir;;
1276*)
1277 case $ac_top_srcdir in
1278 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1279 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1280 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1281 esac;;
1282esac
a848cd7e
SC
1283
1284 cd $ac_dir
1285 # Check for guested configure; otherwise get Cygnus style configure.
1286 if test -f $ac_srcdir/configure.gnu; then
1287 echo
1288 $SHELL $ac_srcdir/configure.gnu --help=recursive
1289 elif test -f $ac_srcdir/configure; then
1290 echo
1291 $SHELL $ac_srcdir/configure --help=recursive
1292 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1293 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1294 echo
1295 $ac_configure --help
1296 else
1297 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1298 fi
c9a66001 1299 cd "$ac_popdir"
a848cd7e
SC
1300 done
1301fi
1302
1303test -n "$ac_init_help" && exit 0
1304if $ac_init_version; then
1305 cat <<\_ACEOF
dd8df4fc 1306wxWidgets configure 2.7.0
ac1cb8d3 1307generated by GNU Autoconf 2.59
a848cd7e 1308
ac1cb8d3 1309Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1310This configure script is free software; the Free Software Foundation
1311gives unlimited permission to copy, distribute and modify it.
1312_ACEOF
1313 exit 0
1314fi
1315exec 5>config.log
1316cat >&5 <<_ACEOF
1317This file contains any messages produced by compilers while
1318running configure, to aid debugging if configure makes a mistake.
1319
dd8df4fc 1320It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1321generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1322
1323 $ $0 $@
1324
1325_ACEOF
1326{
1327cat <<_ASUNAME
1328## --------- ##
1329## Platform. ##
1330## --------- ##
1331
1332hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1333uname -m = `(uname -m) 2>/dev/null || echo unknown`
1334uname -r = `(uname -r) 2>/dev/null || echo unknown`
1335uname -s = `(uname -s) 2>/dev/null || echo unknown`
1336uname -v = `(uname -v) 2>/dev/null || echo unknown`
1337
1338/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1339/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1340
1341/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1342/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1343/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1344hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1345/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1346/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1347/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1348
1349_ASUNAME
1350
1351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1352for as_dir in $PATH
1353do
1354 IFS=$as_save_IFS
1355 test -z "$as_dir" && as_dir=.
1356 echo "PATH: $as_dir"
1357done
1358
1359} >&5
1360
1361cat >&5 <<_ACEOF
1362
1363
1364## ----------- ##
1365## Core tests. ##
1366## ----------- ##
1367
1368_ACEOF
1369
1370
1371# Keep a trace of the command line.
1372# Strip out --no-create and --no-recursion so they do not pile up.
1373# Strip out --silent because we don't want to record it for future runs.
1374# Also quote any args containing shell meta-characters.
1375# Make two passes to allow for proper duplicate-argument suppression.
1376ac_configure_args=
1377ac_configure_args0=
1378ac_configure_args1=
1379ac_sep=
1380ac_must_keep_next=false
1381for ac_pass in 1 2
1382do
1383 for ac_arg
1384 do
1385 case $ac_arg in
1386 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1388 | -silent | --silent | --silen | --sile | --sil)
1389 continue ;;
1390 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1391 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1392 esac
1393 case $ac_pass in
1394 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1395 2)
1396 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1397 if test $ac_must_keep_next = true; then
ac1cb8d3 1398 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1399 else
ac1cb8d3
VS
1400 case $ac_arg in
1401 *=* | --config-cache | -C | -disable-* | --disable-* \
1402 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1403 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1404 | -with-* | --with-* | -without-* | --without-* | --x)
1405 case "$ac_configure_args0 " in
1406 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1407 esac
1408 ;;
1409 -* ) ac_must_keep_next=true ;;
1410 esac
a848cd7e
SC
1411 fi
1412 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1413 # Get rid of the leading space.
1414 ac_sep=" "
1415 ;;
1416 esac
1417 done
1418done
1419$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1420$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1421
1422# When interrupted or exit'd, cleanup temporary files, and complete
1423# config.log. We remove comments because anyway the quotes in there
1424# would cause problems or look ugly.
1425# WARNING: Be sure not to use single quotes in there, as some shells,
1426# such as our DU 5.0 friend, will then `close' the trap.
1427trap 'exit_status=$?
1428 # Save into config.log some information that might help in debugging.
1429 {
1430 echo
1431
1432 cat <<\_ASBOX
1433## ---------------- ##
1434## Cache variables. ##
1435## ---------------- ##
1436_ASBOX
1437 echo
1438 # The following way of writing the cache mishandles newlines in values,
1439{
1440 (set) 2>&1 |
1441 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1442 *ac_space=\ *)
1443 sed -n \
ac1cb8d3
VS
1444 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1445 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1446 ;;
1447 *)
1448 sed -n \
ac1cb8d3 1449 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1450 ;;
1451 esac;
1452}
1453 echo
1454
1455 cat <<\_ASBOX
1456## ----------------- ##
1457## Output variables. ##
1458## ----------------- ##
1459_ASBOX
1460 echo
1461 for ac_var in $ac_subst_vars
1462 do
1463 eval ac_val=$`echo $ac_var`
1464 echo "$ac_var='"'"'$ac_val'"'"'"
1465 done | sort
1466 echo
1467
1468 if test -n "$ac_subst_files"; then
1469 cat <<\_ASBOX
1470## ------------- ##
1471## Output files. ##
1472## ------------- ##
1473_ASBOX
1474 echo
1475 for ac_var in $ac_subst_files
1476 do
1477 eval ac_val=$`echo $ac_var`
ac1cb8d3 1478 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1479 done | sort
1480 echo
1481 fi
1482
1483 if test -s confdefs.h; then
1484 cat <<\_ASBOX
1485## ----------- ##
1486## confdefs.h. ##
1487## ----------- ##
1488_ASBOX
1489 echo
1490 sed "/^$/d" confdefs.h | sort
1491 echo
1492 fi
1493 test "$ac_signal" != 0 &&
1494 echo "$as_me: caught signal $ac_signal"
1495 echo "$as_me: exit $exit_status"
1496 } >&5
ac1cb8d3 1497 rm -f core *.core &&
a848cd7e
SC
1498 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1499 exit $exit_status
1500 ' 0
1501for ac_signal in 1 2 13 15; do
1502 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1503done
1504ac_signal=0
1505
1506# confdefs.h avoids OS command line length limits that DEFS can exceed.
1507rm -rf conftest* confdefs.h
1508# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1509echo >confdefs.h
1510
1511# Predefined preprocessor variables.
1512
1513cat >>confdefs.h <<_ACEOF
1514#define PACKAGE_NAME "$PACKAGE_NAME"
1515_ACEOF
1516
1517
1518cat >>confdefs.h <<_ACEOF
1519#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1520_ACEOF
1521
1522
1523cat >>confdefs.h <<_ACEOF
1524#define PACKAGE_VERSION "$PACKAGE_VERSION"
1525_ACEOF
1526
1527
1528cat >>confdefs.h <<_ACEOF
1529#define PACKAGE_STRING "$PACKAGE_STRING"
1530_ACEOF
1531
1532
1533cat >>confdefs.h <<_ACEOF
1534#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1535_ACEOF
1536
1537
1538# Let the site file select an alternate cache file if it wants to.
1539# Prefer explicitly selected file to automatically selected ones.
1540if test -z "$CONFIG_SITE"; then
1541 if test "x$prefix" != xNONE; then
1542 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1543 else
1544 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1545 fi
1546fi
1547for ac_site_file in $CONFIG_SITE; do
1548 if test -r "$ac_site_file"; then
1549 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1550echo "$as_me: loading site script $ac_site_file" >&6;}
1551 sed 's/^/| /' "$ac_site_file" >&5
1552 . "$ac_site_file"
1553 fi
1554done
1555
1556if test -r "$cache_file"; then
1557 # Some versions of bash will fail to source /dev/null (special
1558 # files actually), so we avoid doing that.
1559 if test -f "$cache_file"; then
1560 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1561echo "$as_me: loading cache $cache_file" >&6;}
1562 case $cache_file in
1563 [\\/]* | ?:[\\/]* ) . $cache_file;;
1564 *) . ./$cache_file;;
1565 esac
1566 fi
1567else
1568 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1569echo "$as_me: creating cache $cache_file" >&6;}
1570 >$cache_file
1571fi
1572
1573# Check that the precious variables saved in the cache have kept the same
1574# value.
1575ac_cache_corrupted=false
1576for ac_var in `(set) 2>&1 |
ac1cb8d3 1577 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1578 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1579 eval ac_new_set=\$ac_env_${ac_var}_set
1580 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1581 eval ac_new_val="\$ac_env_${ac_var}_value"
1582 case $ac_old_set,$ac_new_set in
1583 set,)
1584 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1585echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1586 ac_cache_corrupted=: ;;
1587 ,set)
1588 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1589echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1590 ac_cache_corrupted=: ;;
1591 ,);;
1592 *)
1593 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1594 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1595echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1596 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1597echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1598 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1599echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1600 ac_cache_corrupted=:
a848cd7e
SC
1601 fi;;
1602 esac
1603 # Pass precious variables to config.status.
1604 if test "$ac_new_set" = set; then
1605 case $ac_new_val in
1606 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1607 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1608 *) ac_arg=$ac_var=$ac_new_val ;;
1609 esac
1610 case " $ac_configure_args " in
1611 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1612 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1613 esac
1614 fi
1615done
1616if $ac_cache_corrupted; then
1617 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1618echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1619 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1620echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1621 { (exit 1); exit 1; }; }
1622fi
1623
1624ac_ext=c
1625ac_cpp='$CPP $CPPFLAGS'
1626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1628ac_compiler_gnu=$ac_cv_c_compiler_gnu
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659ac_aux_dir=
1660for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1661 if test -f $ac_dir/install-sh; then
1662 ac_aux_dir=$ac_dir
1663 ac_install_sh="$ac_aux_dir/install-sh -c"
1664 break
1665 elif test -f $ac_dir/install.sh; then
1666 ac_aux_dir=$ac_dir
1667 ac_install_sh="$ac_aux_dir/install.sh -c"
1668 break
1669 elif test -f $ac_dir/shtool; then
1670 ac_aux_dir=$ac_dir
1671 ac_install_sh="$ac_aux_dir/shtool install -c"
1672 break
1673 fi
1674done
1675if test -z "$ac_aux_dir"; then
1676 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1677echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1678 { (exit 1); exit 1; }; }
1679fi
1680ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1681ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1682ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1683
1684# Make sure we can run config.sub.
1685$ac_config_sub sun4 >/dev/null 2>&1 ||
1686 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1687echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1688 { (exit 1); exit 1; }; }
1689
1690echo "$as_me:$LINENO: checking build system type" >&5
1691echo $ECHO_N "checking build system type... $ECHO_C" >&6
1692if test "${ac_cv_build+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1694else
1695 ac_cv_build_alias=$build_alias
1696test -z "$ac_cv_build_alias" &&
1697 ac_cv_build_alias=`$ac_config_guess`
1698test -z "$ac_cv_build_alias" &&
1699 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1700echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1701 { (exit 1); exit 1; }; }
1702ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1703 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1704echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1705 { (exit 1); exit 1; }; }
1706
1707fi
1708echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1709echo "${ECHO_T}$ac_cv_build" >&6
1710build=$ac_cv_build
1711build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1712build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1713build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1714
1715
1716echo "$as_me:$LINENO: checking host system type" >&5
1717echo $ECHO_N "checking host system type... $ECHO_C" >&6
1718if test "${ac_cv_host+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1720else
1721 ac_cv_host_alias=$host_alias
1722test -z "$ac_cv_host_alias" &&
1723 ac_cv_host_alias=$ac_cv_build_alias
1724ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1725 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1726echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1727 { (exit 1); exit 1; }; }
1728
1729fi
1730echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1731echo "${ECHO_T}$ac_cv_host" >&6
1732host=$ac_cv_host
1733host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1734host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1735host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1736
1737
1738echo "$as_me:$LINENO: checking target system type" >&5
1739echo $ECHO_N "checking target system type... $ECHO_C" >&6
1740if test "${ac_cv_target+set}" = set; then
1741 echo $ECHO_N "(cached) $ECHO_C" >&6
1742else
1743 ac_cv_target_alias=$target_alias
1744test "x$ac_cv_target_alias" = "x" &&
1745 ac_cv_target_alias=$ac_cv_host_alias
1746ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1747 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1748echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1749 { (exit 1); exit 1; }; }
1750
1751fi
1752echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1753echo "${ECHO_T}$ac_cv_target" >&6
1754target=$ac_cv_target
1755target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1756target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1757target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1758
1759
1760# The aliases save the names the user supplied, while $host etc.
1761# will get canonicalized.
1762test -n "$target_alias" &&
1763 test "$program_prefix$program_suffix$program_transform_name" = \
1764 NONENONEs,x,x, &&
1765 program_prefix=${target_alias}-
1766
1767
1768
ceec2216 1769wx_major_version_number=2
dd8df4fc
VZ
1770wx_minor_version_number=7
1771wx_release_number=0
1772wx_subrelease_number=0
a848cd7e 1773
ceec2216
RL
1774WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1775WX_VERSION=$WX_RELEASE.$wx_release_number
1776WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1777
ceec2216 1778WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1779
a848cd7e
SC
1780
1781
1782
1783USE_UNIX=1
1784USE_OS2=0
1785USE_WIN32=0
1786USE_DOS=0
1787USE_BEOS=0
1788USE_MAC=0
1789
1790USE_AIX=
1791USE_BSD= USE_DARWIN= USE_FREEBSD=
1792USE_GNU= USE_HPUX=
1793USE_LINUX=
1794USE_NETBSD=
1795USE_OPENBSD=
1796USE_OSF= USE_SGI=
1797USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1798USE_ULTRIX=
1799USE_UNIXWARE=
1800
1801USE_ALPHA=
1802
1803NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1804
1805ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1806
1807DEFAULT_wxUSE_COCOA=0
1808DEFAULT_wxUSE_GTK=0
1809DEFAULT_wxUSE_MAC=0
1810DEFAULT_wxUSE_MGL=0
1811DEFAULT_wxUSE_MICROWIN=0
1812DEFAULT_wxUSE_MOTIF=0
1813DEFAULT_wxUSE_MSW=0
1814DEFAULT_wxUSE_PM=0
1815DEFAULT_wxUSE_X11=0
1816
1817DEFAULT_DEFAULT_wxUSE_COCOA=0
1818DEFAULT_DEFAULT_wxUSE_GTK=0
1819DEFAULT_DEFAULT_wxUSE_MAC=0
1820DEFAULT_DEFAULT_wxUSE_MGL=0
1821DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1822DEFAULT_DEFAULT_wxUSE_MOTIF=0
1823DEFAULT_DEFAULT_wxUSE_MSW=0
1824DEFAULT_DEFAULT_wxUSE_PM=0
1825DEFAULT_DEFAULT_wxUSE_X11=0
1826
1827PROGRAM_EXT=
1828SO_SUFFIX=so
1829SAMPLES_RPATH_FLAG=
1830SAMPLES_RPATH_POSTLINK=
1831
a03b8b04
RD
1832DEFAULT_STD_FLAG=yes
1833
a848cd7e
SC
1834case "${host}" in
1835 *-hp-hpux* )
1836 USE_HPUX=1
1837 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1838 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1839 SO_SUFFIX=sl
1840 cat >>confdefs.h <<\_ACEOF
1841#define __HPUX__ 1
1842_ACEOF
1843
2eef8513 1844
c92ad099 1845 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1846 ;;
1847 *-*-linux* )
1848 USE_LINUX=1
1849 cat >>confdefs.h <<\_ACEOF
1850#define __LINUX__ 1
1851_ACEOF
1852
1853 TMP=`uname -m`
1854 if test "x$TMP" = "xalpha"; then
1855 USE_ALPHA=1
1856 cat >>confdefs.h <<\_ACEOF
1857#define __ALPHA__ 1
1858_ACEOF
1859
1860 fi
1861 DEFAULT_DEFAULT_wxUSE_GTK=1
1862 ;;
1863 *-*-gnu* | *-*-k*bsd*-gnu )
1864 USE_GNU=1
1865 TMP=`uname -m`
1866 if test "x$TMP" = "xalpha"; then
1867 USE_ALPHA=1
1868 cat >>confdefs.h <<\_ACEOF
1869#define __ALPHA__ 1
1870_ACEOF
1871
1872 fi
1873 DEFAULT_DEFAULT_wxUSE_GTK=1
1874 ;;
1875 *-*-irix5* | *-*-irix6* )
1876 USE_SGI=1
1877 USE_SVR4=1
1878 cat >>confdefs.h <<\_ACEOF
1879#define __SGI__ 1
1880_ACEOF
1881
1882 cat >>confdefs.h <<\_ACEOF
1883#define __SVR4__ 1
1884_ACEOF
1885
1886 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1887 ;;
1888 *-*-solaris2* )
1889 USE_SUN=1
1890 USE_SOLARIS=1
1891 USE_SVR4=1
1892 cat >>confdefs.h <<\_ACEOF
1893#define __SUN__ 1
1894_ACEOF
1895
1896 cat >>confdefs.h <<\_ACEOF
1897#define __SOLARIS__ 1
1898_ACEOF
1899
1900 cat >>confdefs.h <<\_ACEOF
1901#define __SVR4__ 1
1902_ACEOF
1903
1904 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1905 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1906 ;;
1907 *-*-sunos4* )
1908 USE_SUN=1
1909 USE_SUNOS=1
1910 USE_BSD=1
1911 cat >>confdefs.h <<\_ACEOF
1912#define __SUN__ 1
1913_ACEOF
1914
1915 cat >>confdefs.h <<\_ACEOF
1916#define __SUNOS__ 1
1917_ACEOF
1918
1919 cat >>confdefs.h <<\_ACEOF
1920#define __BSD__ 1
1921_ACEOF
1922
1923 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1924 ;;
1925 *-*-freebsd*)
1926 USE_BSD=1
1927 USE_FREEBSD=1
1928 cat >>confdefs.h <<\_ACEOF
1929#define __FREEBSD__ 1
1930_ACEOF
1931
1932 cat >>confdefs.h <<\_ACEOF
1933#define __BSD__ 1
1934_ACEOF
1935
1936 DEFAULT_DEFAULT_wxUSE_GTK=1
1937 ;;
c9a66001 1938 *-*-openbsd*|*-*-mirbsd*)
a848cd7e
SC
1939 USE_BSD=1
1940 USE_OPENBSD=1
1941 cat >>confdefs.h <<\_ACEOF
1942#define __OPENBSD__ 1
1943_ACEOF
1944
1945 cat >>confdefs.h <<\_ACEOF
1946#define __BSD__ 1
1947_ACEOF
1948
1949 DEFAULT_DEFAULT_wxUSE_GTK=1
1950 ;;
1951 *-*-netbsd*)
1952 USE_BSD=1
1953 USE_NETBSD=1
1954 cat >>confdefs.h <<\_ACEOF
1955#define __NETBSD__ 1
1956_ACEOF
1957
1958 cat >>confdefs.h <<\_ACEOF
1959#define __BSD__ 1
1960_ACEOF
1961
1962 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1963 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1964
def7c04a 1965 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1966 ;;
1967 *-*-osf* )
1968 USE_ALPHA=1
1969 USE_OSF=1
1970 cat >>confdefs.h <<\_ACEOF
1971#define __ALPHA__ 1
1972_ACEOF
1973
1974 cat >>confdefs.h <<\_ACEOF
1975#define __OSF__ 1
1976_ACEOF
1977
1978 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1979 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1980 ;;
1981 *-*-dgux5* )
1982 USE_ALPHA=1
1983 USE_SVR4=1
1984 cat >>confdefs.h <<\_ACEOF
1985#define __ALPHA__ 1
1986_ACEOF
1987
1988 cat >>confdefs.h <<\_ACEOF
1989#define __SVR4__ 1
1990_ACEOF
1991
1992 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1993 ;;
1994 *-*-sysv5* )
1995 USE_SYSV=1
1996 USE_SVR4=1
1997 cat >>confdefs.h <<\_ACEOF
1998#define __SYSV__ 1
1999_ACEOF
2000
2001 cat >>confdefs.h <<\_ACEOF
2002#define __SVR4__ 1
2003_ACEOF
2004
2005 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2006 ;;
2007 *-*-aix* )
2008 USE_AIX=1
2009 USE_SYSV=1
2010 USE_SVR4=1
2011 SO_SUFFIX=a
2012 cat >>confdefs.h <<\_ACEOF
2013#define __AIX__ 1
2014_ACEOF
2015
2016 cat >>confdefs.h <<\_ACEOF
2017#define __SYSV__ 1
2018_ACEOF
2019
2020 cat >>confdefs.h <<\_ACEOF
2021#define __SVR4__ 1
2022_ACEOF
2023
2024 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2025 ;;
2026
2027 *-*-*UnixWare*)
2028 USE_SYSV=1
2029 USE_SVR4=1
2030 USE_UNIXWARE=1
2031 cat >>confdefs.h <<\_ACEOF
2032#define __UNIXWARE__ 1
2033_ACEOF
2034
2035 ;;
2036
2037 *-*-cygwin* | *-*-mingw32* )
2038 SO_SUFFIX=dll
2039 PROGRAM_EXT=".exe"
a848cd7e 2040 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 2041 DEFAULT_STD_FLAG=no
a848cd7e
SC
2042 ;;
2043
2044 *-pc-msdosdjgpp )
2045 USE_UNIX=0
2046 USE_DOS=1
2047 cat >>confdefs.h <<\_ACEOF
2048#define __DOS__ 1
2049_ACEOF
2050
2051 PROGRAM_EXT=".exe"
2052 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
2053 ;;
2054
2055 *-pc-os2_emx | *-pc-os2-emx )
2056 cat >>confdefs.h <<\_ACEOF
2057#define __EMX__ 1
2058_ACEOF
2059
2060 USE_OS2=1
2061 cat >>confdefs.h <<\_ACEOF
2062#define __OS2__ 1
2063_ACEOF
2064
2065 PROGRAM_EXT=".exe"
2066 DEFAULT_DEFAULT_wxUSE_PM=1
2067 CXX=gcc
2068 LDFLAGS="$LDFLAGS -Zcrtdll"
2069 ac_executable_extensions=".exe"
2070 export ac_executable_extensions
2071 ac_save_IFS="$IFS"
2072 IFS='\\'
2073 ac_TEMP_PATH=
2074 for ac_dir in $PATH; do
2075 IFS=$ac_save_IFS
2076 if test -z "$ac_TEMP_PATH"; then
2077 ac_TEMP_PATH="$ac_dir"
2078 else
2079 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2080 fi
2081 done
2082 export PATH="$ac_TEMP_PATH"
2083 unset ac_TEMP_PATH
a03b8b04 2084 DEFAULT_STD_FLAG=no
a848cd7e
SC
2085 ;;
2086
cfda0ea8 2087 *-*-darwin* )
a848cd7e
SC
2088 USE_BSD=1
2089 USE_DARWIN=1
2090 SO_SUFFIX=dylib
2091 cat >>confdefs.h <<\_ACEOF
2092#define __BSD__ 1
2093_ACEOF
2094
2095 cat >>confdefs.h <<\_ACEOF
2096#define __DARWIN__ 1
a848cd7e
SC
2097_ACEOF
2098
2099 cat >>confdefs.h <<\_ACEOF
2100#define TARGET_CARBON 1
2101_ACEOF
2102
2103 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2104 DEFAULT_STD_FLAG=no
a848cd7e 2105 ;;
1e9e8aba
DE
2106 powerpc-apple-macos* )
2107 USE_UNIX=0
2108 ac_cv_c_bigendian=yes
2109 SO_SUFFIX=shlib
2110 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2111 DEFAULT_STD_FLAG=no
1e9e8aba 2112 ;;
a848cd7e
SC
2113
2114 *-*-beos* )
2115 USE_BEOS=1
2116 cat >>confdefs.h <<\_ACEOF
2117#define __BEOS__ 1
2118_ACEOF
2119
2120 ;;
2121
2122 *)
c9a66001
VZ
2123 { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2124echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2125 { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2126echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
5acfd58d
MW
2127
2128 DEFAULT_DEFAULT_wxUSE_X11=1
2129 DEFAULT_wxUSE_SHARED=no
a848cd7e
SC
2130esac
2131
2132
2133
2134
2135 wx_arg_cache_file="configarg.cache"
2136 echo "loading argument cache $wx_arg_cache_file"
2137 rm -f ${wx_arg_cache_file}.tmp
2138 touch ${wx_arg_cache_file}.tmp
2139 touch ${wx_arg_cache_file}
2140
2141
2142DEBUG_CONFIGURE=0
2143if test $DEBUG_CONFIGURE = 1; then
2144 DEFAULT_wxUSE_UNIVERSAL=no
2145 DEFAULT_wxUSE_STL=no
2146
2147 DEFAULT_wxUSE_NANOX=no
2148
2149 DEFAULT_wxUSE_THREADS=yes
2150
5acfd58d 2151 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2152 DEFAULT_wxUSE_OPTIMISE=no
2153 DEFAULT_wxUSE_PROFILE=no
2154 DEFAULT_wxUSE_NO_DEPS=no
2155 DEFAULT_wxUSE_NO_RTTI=no
2156 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2157 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2158 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2159 DEFAULT_wxUSE_PERMISSIVE=no
2160 DEFAULT_wxUSE_DEBUG_FLAG=yes
2161 DEFAULT_wxUSE_DEBUG_INFO=yes
2162 DEFAULT_wxUSE_DEBUG_GDB=yes
2163 DEFAULT_wxUSE_MEM_TRACING=no
2164 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2165 DEFAULT_wxUSE_DMALLOC=no
2166 DEFAULT_wxUSE_APPLE_IEEE=no
2167
2168 DEFAULT_wxUSE_EXCEPTIONS=no
2169 DEFAULT_wxUSE_LOG=yes
2170 DEFAULT_wxUSE_LOGWINDOW=no
2171 DEFAULT_wxUSE_LOGGUI=no
2172 DEFAULT_wxUSE_LOGDIALOG=no
2173
2174 DEFAULT_wxUSE_GUI=yes
2175 DEFAULT_wxUSE_CONTROLS=no
2176
2177 DEFAULT_wxUSE_REGEX=no
2178 DEFAULT_wxUSE_XML=no
2179 DEFAULT_wxUSE_EXPAT=no
2180 DEFAULT_wxUSE_ZLIB=no
2181 DEFAULT_wxUSE_LIBPNG=no
2182 DEFAULT_wxUSE_LIBJPEG=no
2183 DEFAULT_wxUSE_LIBTIFF=no
2184 DEFAULT_wxUSE_LIBXPM=no
2185 DEFAULT_wxUSE_LIBMSPACK=no
2186 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2187 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2188 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2189 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2190 DEFAULT_wxUSE_ODBC=no
2191 DEFAULT_wxUSE_OPENGL=no
2192
2193 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2194 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2195 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2196 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2197 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2198 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2199 DEFAULT_wxUSE_CMDLINE_PARSER=no
2200 DEFAULT_wxUSE_DATETIME=no
2201 DEFAULT_wxUSE_TIMER=no
2202 DEFAULT_wxUSE_STOPWATCH=no
2203 DEFAULT_wxUSE_FILE=no
2204 DEFAULT_wxUSE_FFILE=no
07158944 2205 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2206 DEFAULT_wxUSE_TEXTBUFFER=no
2207 DEFAULT_wxUSE_TEXTFILE=no
2208 DEFAULT_wxUSE_SOUND=no
3b57de8b 2209 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2210 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2211 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2212 DEFAULT_wxUSE_INTL=no
2213 DEFAULT_wxUSE_CONFIG=no
2214 DEFAULT_wxUSE_FONTMAP=no
2215 DEFAULT_wxUSE_STREAMS=no
2216 DEFAULT_wxUSE_SOCKETS=no
2217 DEFAULT_wxUSE_OLE=no
2218 DEFAULT_wxUSE_DATAOBJ=no
2219 DEFAULT_wxUSE_DIALUP_MANAGER=no
2220 DEFAULT_wxUSE_JOYSTICK=no
2221 DEFAULT_wxUSE_DYNLIB_CLASS=no
2222 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2223 DEFAULT_wxUSE_LONGLONG=no
2224 DEFAULT_wxUSE_GEOMETRY=no
2225
2226 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2227 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2228 DEFAULT_wxUSE_POSTSCRIPT=no
2229
2230 DEFAULT_wxUSE_CLIPBOARD=no
2231 DEFAULT_wxUSE_TOOLTIPS=no
2232 DEFAULT_wxUSE_DRAG_AND_DROP=no
2233 DEFAULT_wxUSE_DRAGIMAGE=no
2234 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2235 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2236
8a7b1113 2237 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2238 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2239 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2240 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2241
2242 DEFAULT_wxUSE_RESOURCES=no
2243 DEFAULT_wxUSE_CONSTRAINTS=no
2244 DEFAULT_wxUSE_IPC=no
2245 DEFAULT_wxUSE_HELP=no
2246 DEFAULT_wxUSE_MS_HTML_HELP=no
2247 DEFAULT_wxUSE_WXHTML_HELP=no
2248 DEFAULT_wxUSE_TREELAYOUT=no
2249 DEFAULT_wxUSE_METAFILE=no
2250 DEFAULT_wxUSE_MIMETYPE=no
2251 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2252 DEFAULT_wxUSE_PROTOCOL=no
2253 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2254 DEFAULT_wxUSE_PROTOCOL_FTP=no
2255 DEFAULT_wxUSE_PROTOCOL_FILE=no
2256 DEFAULT_wxUSE_URL=no
2257
2258 DEFAULT_wxUSE_COMMONDLGS=no
2259 DEFAULT_wxUSE_CHOICEDLG=no
2260 DEFAULT_wxUSE_COLOURDLG=no
2261 DEFAULT_wxUSE_DIRDLG=no
2262 DEFAULT_wxUSE_FILEDLG=no
2263 DEFAULT_wxUSE_FINDREPLDLG=no
2264 DEFAULT_wxUSE_FONTDLG=no
2265 DEFAULT_wxUSE_MSGDLG=no
2266 DEFAULT_wxUSE_NUMBERDLG=no
2267 DEFAULT_wxUSE_TEXTDLG=no
2268 DEFAULT_wxUSE_SPLASH=no
2269 DEFAULT_wxUSE_STARTUP_TIPS=no
2270 DEFAULT_wxUSE_PROGRESSDLG=no
2271 DEFAULT_wxUSE_WIZARDDLG=no
2272
2273 DEFAULT_wxUSE_MENUS=no
2274 DEFAULT_wxUSE_MINIFRAME=no
2275 DEFAULT_wxUSE_HTML=no
91dea314 2276 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2277 DEFAULT_wxUSE_XRC=no
3f60522a 2278 DEFAULT_wxUSE_AUI=no
646b6ec1 2279 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2280 DEFAULT_wxUSE_FILESYSTEM=no
2281 DEFAULT_wxUSE_FS_INET=no
2282 DEFAULT_wxUSE_FS_ZIP=no
2283 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2284 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2285 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2286 DEFAULT_wxUSE_VALIDATORS=no
2287
2288 DEFAULT_wxUSE_ACCEL=no
2289 DEFAULT_wxUSE_BUTTON=no
2290 DEFAULT_wxUSE_BMPBUTTON=no
2291 DEFAULT_wxUSE_CALCTRL=no
2292 DEFAULT_wxUSE_CARET=no
2293 DEFAULT_wxUSE_CHECKBOX=no
2294 DEFAULT_wxUSE_CHECKLST=no
2295 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2296 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684 2297 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2298 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2299 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2300 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2301 DEFAULT_wxUSE_DISPLAY=no
e9263684
VZ
2302 DEFAULT_wxUSE_DIRPICKERCTRL=no
2303 DEFAULT_wxUSE_FILEPICKERCTRL=no
2304 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
2305 DEFAULT_wxUSE_GAUGE=no
2306 DEFAULT_wxUSE_GRID=no
6954625c 2307 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2308 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2309 DEFAULT_wxUSE_IMAGLIST=no
2310 DEFAULT_wxUSE_LISTBOOK=no
2311 DEFAULT_wxUSE_LISTBOX=no
2312 DEFAULT_wxUSE_LISTCTRL=no
2313 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2314 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2315 DEFAULT_wxUSE_RADIOBOX=no
2316 DEFAULT_wxUSE_RADIOBTN=no
2317 DEFAULT_wxUSE_SASH=no
2318 DEFAULT_wxUSE_SCROLLBAR=no
2319 DEFAULT_wxUSE_SLIDER=no
2320 DEFAULT_wxUSE_SPINBTN=no
2321 DEFAULT_wxUSE_SPINCTRL=no
2322 DEFAULT_wxUSE_SPLITTER=no
2323 DEFAULT_wxUSE_STATBMP=no
2324 DEFAULT_wxUSE_STATBOX=no
2325 DEFAULT_wxUSE_STATLINE=no
2326 DEFAULT_wxUSE_STATTEXT=no
2327 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2328 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2329 DEFAULT_wxUSE_TEXTCTRL=no
2330 DEFAULT_wxUSE_TOGGLEBTN=no
2331 DEFAULT_wxUSE_TOOLBAR=no
2332 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2333 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
0093c2fc 2334 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2335 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2336 DEFAULT_wxUSE_TREECTRL=no
2337 DEFAULT_wxUSE_POPUPWIN=no
2338 DEFAULT_wxUSE_TIPWINDOW=no
2339
2340 DEFAULT_wxUSE_UNICODE=no
2341 DEFAULT_wxUSE_UNICODE_MSLU=no
2342 DEFAULT_wxUSE_WCSRTOMBS=no
2343
2344 DEFAULT_wxUSE_PALETTE=no
2345 DEFAULT_wxUSE_IMAGE=no
2346 DEFAULT_wxUSE_GIF=no
2347 DEFAULT_wxUSE_PCX=no
2348 DEFAULT_wxUSE_PNM=no
2349 DEFAULT_wxUSE_IFF=no
2350 DEFAULT_wxUSE_XPM=no
2351 DEFAULT_wxUSE_ICO_CUR=no
2352 DEFAULT_wxUSE_ACCESSIBILITY=no
2353
2354 DEFAULT_wxUSE_MONOLITHIC=no
2355 DEFAULT_wxUSE_PLUGINS=no
2356 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2357else
2358 DEFAULT_wxUSE_UNIVERSAL=no
2359 DEFAULT_wxUSE_STL=no
2360
2361 DEFAULT_wxUSE_NANOX=no
2362
2363 DEFAULT_wxUSE_THREADS=yes
2364
5acfd58d 2365 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2366 DEFAULT_wxUSE_OPTIMISE=yes
2367 DEFAULT_wxUSE_PROFILE=no
2368 DEFAULT_wxUSE_NO_DEPS=no
2369 DEFAULT_wxUSE_NO_RTTI=no
2370 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2371 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2372 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2373 DEFAULT_wxUSE_PERMISSIVE=no
2374 DEFAULT_wxUSE_DEBUG_FLAG=no
2375 DEFAULT_wxUSE_DEBUG_INFO=no
2376 DEFAULT_wxUSE_DEBUG_GDB=no
2377 DEFAULT_wxUSE_MEM_TRACING=no
2378 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2379 DEFAULT_wxUSE_DMALLOC=no
2380 DEFAULT_wxUSE_APPLE_IEEE=yes
2381
2382 DEFAULT_wxUSE_EXCEPTIONS=yes
2383 DEFAULT_wxUSE_LOG=yes
2384 DEFAULT_wxUSE_LOGWINDOW=yes
2385 DEFAULT_wxUSE_LOGGUI=yes
2386 DEFAULT_wxUSE_LOGDIALOG=yes
2387
2388 DEFAULT_wxUSE_GUI=yes
2389
2390 DEFAULT_wxUSE_REGEX=yes
2391 DEFAULT_wxUSE_XML=yes
2392 DEFAULT_wxUSE_EXPAT=yes
2393 DEFAULT_wxUSE_ZLIB=yes
2394 DEFAULT_wxUSE_LIBPNG=yes
2395 DEFAULT_wxUSE_LIBJPEG=yes
2396 DEFAULT_wxUSE_LIBTIFF=yes
2397 DEFAULT_wxUSE_LIBXPM=yes
2398 DEFAULT_wxUSE_LIBMSPACK=yes
2399 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2400 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2401 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2402 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2403 DEFAULT_wxUSE_ODBC=no
52cb607e 2404 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2405
2406 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2407 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2408 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2409 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2410 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2411 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2412 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2413 DEFAULT_wxUSE_DATETIME=yes
2414 DEFAULT_wxUSE_TIMER=yes
2415 DEFAULT_wxUSE_STOPWATCH=yes
2416 DEFAULT_wxUSE_FILE=yes
2417 DEFAULT_wxUSE_FFILE=yes
07158944 2418 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2419 DEFAULT_wxUSE_TEXTBUFFER=yes
2420 DEFAULT_wxUSE_TEXTFILE=yes
2421 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2422 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2423 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2424 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2425 DEFAULT_wxUSE_INTL=yes
2426 DEFAULT_wxUSE_CONFIG=yes
2427 DEFAULT_wxUSE_FONTMAP=yes
2428 DEFAULT_wxUSE_STREAMS=yes
2429 DEFAULT_wxUSE_SOCKETS=yes
2430 DEFAULT_wxUSE_OLE=yes
2431 DEFAULT_wxUSE_DATAOBJ=yes
2432 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2433 DEFAULT_wxUSE_JOYSTICK=yes
2434 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2435 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2436 DEFAULT_wxUSE_LONGLONG=yes
2437 DEFAULT_wxUSE_GEOMETRY=yes
2438
2439 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2440 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2441 DEFAULT_wxUSE_POSTSCRIPT=yes
2442
2443 DEFAULT_wxUSE_CLIPBOARD=yes
2444 DEFAULT_wxUSE_TOOLTIPS=yes
2445 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2446 DEFAULT_wxUSE_DRAGIMAGE=yes
2447 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2448 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2449
8a7b1113 2450 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2451 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2452 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2453 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2454
2455 DEFAULT_wxUSE_RESOURCES=no
2456 DEFAULT_wxUSE_CONSTRAINTS=yes
2457 DEFAULT_wxUSE_IPC=yes
2458 DEFAULT_wxUSE_HELP=yes
2459 DEFAULT_wxUSE_MS_HTML_HELP=yes
2460 DEFAULT_wxUSE_WXHTML_HELP=yes
2461 DEFAULT_wxUSE_TREELAYOUT=yes
2462 DEFAULT_wxUSE_METAFILE=yes
2463 DEFAULT_wxUSE_MIMETYPE=yes
2464 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2465 DEFAULT_wxUSE_PROTOCOL=yes
2466 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2467 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2468 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2469 DEFAULT_wxUSE_URL=yes
2470
2471 DEFAULT_wxUSE_COMMONDLGS=yes
2472 DEFAULT_wxUSE_CHOICEDLG=yes
2473 DEFAULT_wxUSE_COLOURDLG=yes
2474 DEFAULT_wxUSE_DIRDLG=yes
2475 DEFAULT_wxUSE_FILEDLG=yes
2476 DEFAULT_wxUSE_FINDREPLDLG=yes
2477 DEFAULT_wxUSE_FONTDLG=yes
2478 DEFAULT_wxUSE_MSGDLG=yes
2479 DEFAULT_wxUSE_NUMBERDLG=yes
2480 DEFAULT_wxUSE_TEXTDLG=yes
2481 DEFAULT_wxUSE_SPLASH=yes
2482 DEFAULT_wxUSE_STARTUP_TIPS=yes
2483 DEFAULT_wxUSE_PROGRESSDLG=yes
2484 DEFAULT_wxUSE_WIZARDDLG=yes
2485
2486 DEFAULT_wxUSE_MENUS=yes
2487 DEFAULT_wxUSE_MINIFRAME=yes
2488 DEFAULT_wxUSE_HTML=yes
91dea314 2489 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2490 DEFAULT_wxUSE_XRC=yes
3f60522a 2491 DEFAULT_wxUSE_AUI=yes
646b6ec1 2492 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2493 DEFAULT_wxUSE_FILESYSTEM=yes
2494 DEFAULT_wxUSE_FS_INET=yes
2495 DEFAULT_wxUSE_FS_ZIP=yes
2496 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2497 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2498 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2499 DEFAULT_wxUSE_VALIDATORS=yes
2500
2501 DEFAULT_wxUSE_ACCEL=yes
2502 DEFAULT_wxUSE_BUTTON=yes
2503 DEFAULT_wxUSE_BMPBUTTON=yes
2504 DEFAULT_wxUSE_CALCTRL=yes
2505 DEFAULT_wxUSE_CARET=yes
2506 DEFAULT_wxUSE_CHECKBOX=yes
2507 DEFAULT_wxUSE_CHECKLST=yes
2508 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2509 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684 2510 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2511 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2512 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2513 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2514 DEFAULT_wxUSE_DISPLAY=yes
e9263684
VZ
2515 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2516 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2517 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2518 DEFAULT_wxUSE_GAUGE=yes
2519 DEFAULT_wxUSE_GRID=yes
6954625c 2520 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2521 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2522 DEFAULT_wxUSE_IMAGLIST=yes
2523 DEFAULT_wxUSE_LISTBOOK=yes
2524 DEFAULT_wxUSE_LISTBOX=yes
2525 DEFAULT_wxUSE_LISTCTRL=yes
2526 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2527 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2528 DEFAULT_wxUSE_RADIOBOX=yes
2529 DEFAULT_wxUSE_RADIOBTN=yes
2530 DEFAULT_wxUSE_SASH=yes
2531 DEFAULT_wxUSE_SCROLLBAR=yes
2532 DEFAULT_wxUSE_SLIDER=yes
2533 DEFAULT_wxUSE_SPINBTN=yes
2534 DEFAULT_wxUSE_SPINCTRL=yes
2535 DEFAULT_wxUSE_SPLITTER=yes
2536 DEFAULT_wxUSE_STATBMP=yes
2537 DEFAULT_wxUSE_STATBOX=yes
2538 DEFAULT_wxUSE_STATLINE=yes
2539 DEFAULT_wxUSE_STATTEXT=yes
2540 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2541 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2542 DEFAULT_wxUSE_TEXTCTRL=yes
2543 DEFAULT_wxUSE_TOGGLEBTN=yes
2544 DEFAULT_wxUSE_TOOLBAR=yes
2545 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2546 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
0093c2fc 2547 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2548 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2549 DEFAULT_wxUSE_TREECTRL=yes
2550 DEFAULT_wxUSE_POPUPWIN=yes
2551 DEFAULT_wxUSE_TIPWINDOW=yes
2552
78de529b 2553 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2554 DEFAULT_wxUSE_UNICODE_MSLU=yes
2555 DEFAULT_wxUSE_WCSRTOMBS=no
2556
2557 DEFAULT_wxUSE_PALETTE=yes
2558 DEFAULT_wxUSE_IMAGE=yes
2559 DEFAULT_wxUSE_GIF=yes
2560 DEFAULT_wxUSE_PCX=yes
2561 DEFAULT_wxUSE_IFF=no
2562 DEFAULT_wxUSE_PNM=yes
2563 DEFAULT_wxUSE_XPM=yes
2564 DEFAULT_wxUSE_ICO_CUR=yes
2565 DEFAULT_wxUSE_ACCESSIBILITY=no
2566
2567 DEFAULT_wxUSE_MONOLITHIC=no
2568 DEFAULT_wxUSE_PLUGINS=no
2569 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2570
f34ca037 2571 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2572fi
2573
2574
2575
f34ca037 2576
a848cd7e
SC
2577for toolkit in `echo $ALL_TOOLKITS`; do
2578 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2579 if test "x$LINE" != "x" ; then
2580 has_toolkit_in_cache=1
2581 eval "DEFAULT_$LINE"
2582 eval "CACHE_$toolkit=1"
f34ca037
MW
2583
2584 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2585 if test "x$LINE" != "x" ; then
2586 eval "DEFAULT_$LINE"
2587 fi
a848cd7e
SC
2588 fi
2589done
2590
2591
2592
2593 enablestring=
2594 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2595echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2596 no_cache=0
2597 # Check whether --enable-gui or --disable-gui was given.
2598if test "${enable_gui+set}" = set; then
2599 enableval="$enable_gui"
2600
2601 if test "$enableval" = yes; then
2602 ac_cv_use_gui='wxUSE_GUI=yes'
2603 else
2604 ac_cv_use_gui='wxUSE_GUI=no'
2605 fi
2606
2607else
2608
2609 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2610 if test "x$LINE" != x ; then
2611 eval "DEFAULT_$LINE"
2612 else
2613 no_cache=1
2614 fi
2615
2616 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2617
2618fi;
2619
2620 eval "$ac_cv_use_gui"
2621 if test "$no_cache" != 1; then
2622 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2623 fi
2624
2625 if test "$wxUSE_GUI" = yes; then
2626 echo "$as_me:$LINENO: result: yes" >&5
2627echo "${ECHO_T}yes" >&6
2628 else
2629 echo "$as_me:$LINENO: result: no" >&5
2630echo "${ECHO_T}no" >&6
2631 fi
2632
2633
2634 enablestring=
2635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2636echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2637 no_cache=0
2638 # Check whether --enable-monolithic or --disable-monolithic was given.
2639if test "${enable_monolithic+set}" = set; then
2640 enableval="$enable_monolithic"
2641
2642 if test "$enableval" = yes; then
2643 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2644 else
2645 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2646 fi
2647
2648else
2649
2650 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2651 if test "x$LINE" != x ; then
2652 eval "DEFAULT_$LINE"
2653 else
2654 no_cache=1
2655 fi
2656
2657 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2658
2659fi;
2660
2661 eval "$ac_cv_use_monolithic"
2662 if test "$no_cache" != 1; then
2663 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2664 fi
2665
2666 if test "$wxUSE_MONOLITHIC" = yes; then
2667 echo "$as_me:$LINENO: result: yes" >&5
2668echo "${ECHO_T}yes" >&6
2669 else
2670 echo "$as_me:$LINENO: result: no" >&5
2671echo "${ECHO_T}no" >&6
2672 fi
2673
2674
2675 enablestring=
2676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2677echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2678 no_cache=0
2679 # Check whether --enable-plugins or --disable-plugins was given.
2680if test "${enable_plugins+set}" = set; then
2681 enableval="$enable_plugins"
2682
2683 if test "$enableval" = yes; then
2684 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2685 else
2686 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2687 fi
2688
2689else
2690
2691 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2692 if test "x$LINE" != x ; then
2693 eval "DEFAULT_$LINE"
2694 else
2695 no_cache=1
2696 fi
2697
2698 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2699
2700fi;
2701
2702 eval "$ac_cv_use_plugins"
2703 if test "$no_cache" != 1; then
2704 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2705 fi
2706
2707 if test "$wxUSE_PLUGINS" = yes; then
2708 echo "$as_me:$LINENO: result: yes" >&5
2709echo "${ECHO_T}yes" >&6
2710 else
2711 echo "$as_me:$LINENO: result: no" >&5
2712echo "${ECHO_T}no" >&6
2713 fi
2714
2715
1c14217d
VZ
2716 withstring=without
2717 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2718echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2719 no_cache=0
2720
2721# Check whether --with-subdirs or --without-subdirs was given.
2722if test "${with_subdirs+set}" = set; then
2723 withval="$with_subdirs"
2724
2725 if test "$withval" = yes; then
2726 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2727 else
2728 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2729 fi
2730
2731else
2732
2733 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2734 if test "x$LINE" != x ; then
2735 eval "DEFAULT_$LINE"
2736 else
2737 no_cache=1
2738 fi
2739
2740 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2741
2742fi;
2743
2744 eval "$ac_cv_use_subdirs"
2745 if test "$no_cache" != 1; then
2746 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2747 fi
2748
2749 if test "$wxWITH_SUBDIRS" = yes; then
2750 echo "$as_me:$LINENO: result: yes" >&5
2751echo "${ECHO_T}yes" >&6
2752 else
2753 echo "$as_me:$LINENO: result: no" >&5
2754echo "${ECHO_T}no" >&6
2755 fi
2756
2757
a848cd7e
SC
2758if test "$wxUSE_GUI" = "yes"; then
2759
2760
2761 enablestring=
2762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2763echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2764 no_cache=0
2765 # Check whether --enable-universal or --disable-universal was given.
2766if test "${enable_universal+set}" = set; then
2767 enableval="$enable_universal"
2768
2769 if test "$enableval" = yes; then
2770 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2771 else
2772 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2773 fi
2774
2775else
2776
2777 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2778 if test "x$LINE" != x ; then
2779 eval "DEFAULT_$LINE"
2780 else
2781 no_cache=1
2782 fi
2783
2784 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2785
2786fi;
2787
2788 eval "$ac_cv_use_universal"
2789 if test "$no_cache" != 1; then
2790 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2791 fi
2792
2793 if test "$wxUSE_UNIVERSAL" = yes; then
2794 echo "$as_me:$LINENO: result: yes" >&5
2795echo "${ECHO_T}yes" >&6
2796 else
2797 echo "$as_me:$LINENO: result: no" >&5
2798echo "${ECHO_T}no" >&6
2799 fi
2800
2801
2802# Check whether --with-gtk or --without-gtk was given.
2803if test "${with_gtk+set}" = set; then
2804 withval="$with_gtk"
2805 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2806fi;
2807
2808# Check whether --with-motif or --without-motif was given.
2809if test "${with_motif+set}" = set; then
2810 withval="$with_motif"
2811 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2812fi;
2813
2814# Check whether --with-mac or --without-mac was given.
2815if test "${with_mac+set}" = set; then
2816 withval="$with_mac"
c228d3a4 2817 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2818fi;
2819
2820# Check whether --with-cocoa or --without-cocoa was given.
2821if test "${with_cocoa+set}" = set; then
2822 withval="$with_cocoa"
c228d3a4 2823 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2824fi;
2825
2826# Check whether --with-wine or --without-wine was given.
2827if test "${with_wine+set}" = set; then
2828 withval="$with_wine"
2829 wxUSE_WINE="$withval" CACHE_WINE=1
2830fi;
2831
2832# Check whether --with-msw or --without-msw was given.
2833if test "${with_msw+set}" = set; then
2834 withval="$with_msw"
2835 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2836fi;
2837
2838# Check whether --with-pm or --without-pm was given.
2839if test "${with_pm+set}" = set; then
2840 withval="$with_pm"
2841 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2842fi;
2843
2844# Check whether --with-mgl or --without-mgl was given.
2845if test "${with_mgl+set}" = set; then
2846 withval="$with_mgl"
2847 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2848fi;
2849
2850# Check whether --with-microwin or --without-microwin was given.
2851if test "${with_microwin+set}" = set; then
2852 withval="$with_microwin"
2853 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2854fi;
2855
2856# Check whether --with-x11 or --without-x11 was given.
2857if test "${with_x11+set}" = set; then
2858 withval="$with_x11"
2859 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2860fi;
2861
2862 enablestring=
2863 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2864echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2865 no_cache=0
2866 # Check whether --enable-nanox or --disable-nanox was given.
2867if test "${enable_nanox+set}" = set; then
2868 enableval="$enable_nanox"
2869
2870 if test "$enableval" = yes; then
2871 ac_cv_use_nanox='wxUSE_NANOX=yes'
2872 else
2873 ac_cv_use_nanox='wxUSE_NANOX=no'
2874 fi
2875
2876else
2877
2878 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2879 if test "x$LINE" != x ; then
2880 eval "DEFAULT_$LINE"
2881 else
2882 no_cache=1
2883 fi
2884
2885 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2886
2887fi;
2888
2889 eval "$ac_cv_use_nanox"
2890 if test "$no_cache" != 1; then
2891 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2892 fi
2893
2894 if test "$wxUSE_NANOX" = yes; then
2895 echo "$as_me:$LINENO: result: yes" >&5
2896echo "${ECHO_T}yes" >&6
2897 else
2898 echo "$as_me:$LINENO: result: no" >&5
2899echo "${ECHO_T}no" >&6
2900 fi
2901
2902
f34ca037
MW
2903# Check whether --enable-gtk2 or --disable-gtk2 was given.
2904if test "${enable_gtk2+set}" = set; then
2905 enableval="$enable_gtk2"
2906 wxUSE_GTK2="$enableval"
2907fi;
a848cd7e 2908
a848cd7e
SC
2909 enablestring=
2910 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2911echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2912 no_cache=0
2913 # Check whether --enable-gpe or --disable-gpe was given.
2914if test "${enable_gpe+set}" = set; then
2915 enableval="$enable_gpe"
2916
2917 if test "$enableval" = yes; then
2918 ac_cv_use_gpe='wxUSE_GPE=yes'
2919 else
2920 ac_cv_use_gpe='wxUSE_GPE=no'
2921 fi
2922
2923else
2924
2925 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2926 if test "x$LINE" != x ; then
2927 eval "DEFAULT_$LINE"
2928 else
2929 no_cache=1
2930 fi
2931
2932 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2933
2934fi;
2935
2936 eval "$ac_cv_use_gpe"
2937 if test "$no_cache" != 1; then
2938 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2939 fi
2940
2941 if test "$wxUSE_GPE" = yes; then
2942 echo "$as_me:$LINENO: result: yes" >&5
2943echo "${ECHO_T}yes" >&6
2944 else
2945 echo "$as_me:$LINENO: result: no" >&5
2946echo "${ECHO_T}no" >&6
2947 fi
2948
2949
2950
2951 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2952echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2953 no_cache=0
2954
2955# Check whether --with-libpng or --without-libpng was given.
2956if test "${with_libpng+set}" = set; then
2957 withval="$with_libpng"
2958
2959 if test "$withval" = yes; then
2960 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2961 elif test "$withval" = no; then
2962 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2963 elif test "$withval" = sys; then
2964 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2965 elif test "$withval" = builtin; then
2966 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2967 else
2968 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2969echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2970 { (exit 1); exit 1; }; }
2971 fi
2972
2973else
2974
2975 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2976 if test "x$LINE" != x ; then
2977 eval "DEFAULT_$LINE"
2978 else
2979 no_cache=1
2980 fi
2981
2982 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2983
2984fi;
2985
2986 eval "$ac_cv_use_libpng"
2987 if test "$no_cache" != 1; then
2988 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2989 fi
2990
2991 if test "$wxUSE_LIBPNG" = yes; then
2992 echo "$as_me:$LINENO: result: yes" >&5
2993echo "${ECHO_T}yes" >&6
2994 elif test "$wxUSE_LIBPNG" = no; then
2995 echo "$as_me:$LINENO: result: no" >&5
2996echo "${ECHO_T}no" >&6
2997 elif test "$wxUSE_LIBPNG" = sys; then
2998 echo "$as_me:$LINENO: result: system version" >&5
2999echo "${ECHO_T}system version" >&6
3000 elif test "$wxUSE_LIBPNG" = builtin; then
3001 echo "$as_me:$LINENO: result: builtin version" >&5
3002echo "${ECHO_T}builtin version" >&6
3003 else
3004 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3005echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3006 { (exit 1); exit 1; }; }
3007 fi
3008
3009
3010 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3011echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3012 no_cache=0
3013
3014# Check whether --with-libjpeg or --without-libjpeg was given.
3015if test "${with_libjpeg+set}" = set; then
3016 withval="$with_libjpeg"
3017
3018 if test "$withval" = yes; then
3019 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3020 elif test "$withval" = no; then
3021 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3022 elif test "$withval" = sys; then
3023 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3024 elif test "$withval" = builtin; then
3025 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3026 else
3027 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3028echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3029 { (exit 1); exit 1; }; }
3030 fi
3031
3032else
3033
3034 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3035 if test "x$LINE" != x ; then
3036 eval "DEFAULT_$LINE"
3037 else
3038 no_cache=1
3039 fi
3040
3041 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3042
3043fi;
3044
3045 eval "$ac_cv_use_libjpeg"
3046 if test "$no_cache" != 1; then
3047 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3048 fi
3049
3050 if test "$wxUSE_LIBJPEG" = yes; then
3051 echo "$as_me:$LINENO: result: yes" >&5
3052echo "${ECHO_T}yes" >&6
3053 elif test "$wxUSE_LIBJPEG" = no; then
3054 echo "$as_me:$LINENO: result: no" >&5
3055echo "${ECHO_T}no" >&6
3056 elif test "$wxUSE_LIBJPEG" = sys; then
3057 echo "$as_me:$LINENO: result: system version" >&5
3058echo "${ECHO_T}system version" >&6
3059 elif test "$wxUSE_LIBJPEG" = builtin; then
3060 echo "$as_me:$LINENO: result: builtin version" >&5
3061echo "${ECHO_T}builtin version" >&6
3062 else
3063 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3064echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3065 { (exit 1); exit 1; }; }
3066 fi
3067
3068
3069 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3070echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3071 no_cache=0
3072
3073# Check whether --with-libtiff or --without-libtiff was given.
3074if test "${with_libtiff+set}" = set; then
3075 withval="$with_libtiff"
3076
3077 if test "$withval" = yes; then
3078 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3079 elif test "$withval" = no; then
3080 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3081 elif test "$withval" = sys; then
3082 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3083 elif test "$withval" = builtin; then
3084 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3085 else
3086 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3087echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3088 { (exit 1); exit 1; }; }
3089 fi
3090
3091else
3092
3093 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3094 if test "x$LINE" != x ; then
3095 eval "DEFAULT_$LINE"
3096 else
3097 no_cache=1
3098 fi
3099
3100 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3101
3102fi;
3103
3104 eval "$ac_cv_use_libtiff"
3105 if test "$no_cache" != 1; then
3106 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3107 fi
3108
3109 if test "$wxUSE_LIBTIFF" = yes; then
3110 echo "$as_me:$LINENO: result: yes" >&5
3111echo "${ECHO_T}yes" >&6
3112 elif test "$wxUSE_LIBTIFF" = no; then
3113 echo "$as_me:$LINENO: result: no" >&5
3114echo "${ECHO_T}no" >&6
3115 elif test "$wxUSE_LIBTIFF" = sys; then
3116 echo "$as_me:$LINENO: result: system version" >&5
3117echo "${ECHO_T}system version" >&6
3118 elif test "$wxUSE_LIBTIFF" = builtin; then
3119 echo "$as_me:$LINENO: result: builtin version" >&5
3120echo "${ECHO_T}builtin version" >&6
3121 else
3122 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3123echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3124 { (exit 1); exit 1; }; }
3125 fi
3126
3127
3128 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3129echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3130 no_cache=0
3131
3132# Check whether --with-libxpm or --without-libxpm was given.
3133if test "${with_libxpm+set}" = set; then
3134 withval="$with_libxpm"
3135
3136 if test "$withval" = yes; then
3137 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3138 elif test "$withval" = no; then
3139 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3140 elif test "$withval" = sys; then
3141 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3142 elif test "$withval" = builtin; then
3143 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3144 else
3145 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3146echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3147 { (exit 1); exit 1; }; }
3148 fi
3149
3150else
3151
3152 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3153 if test "x$LINE" != x ; then
3154 eval "DEFAULT_$LINE"
3155 else
3156 no_cache=1
3157 fi
3158
3159 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3160
3161fi;
3162
3163 eval "$ac_cv_use_libxpm"
3164 if test "$no_cache" != 1; then
3165 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3166 fi
3167
3168 if test "$wxUSE_LIBXPM" = yes; then
3169 echo "$as_me:$LINENO: result: yes" >&5
3170echo "${ECHO_T}yes" >&6
3171 elif test "$wxUSE_LIBXPM" = no; then
3172 echo "$as_me:$LINENO: result: no" >&5
3173echo "${ECHO_T}no" >&6
3174 elif test "$wxUSE_LIBXPM" = sys; then
3175 echo "$as_me:$LINENO: result: system version" >&5
3176echo "${ECHO_T}system version" >&6
3177 elif test "$wxUSE_LIBXPM" = builtin; then
3178 echo "$as_me:$LINENO: result: builtin version" >&5
3179echo "${ECHO_T}builtin version" >&6
3180 else
3181 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3182echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3183 { (exit 1); exit 1; }; }
3184 fi
3185
3186
1c14217d
VZ
3187 withstring=
3188 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3189echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3190 no_cache=0
3191
3192# Check whether --with-libmspack or --without-libmspack was given.
3193if test "${with_libmspack+set}" = set; then
3194 withval="$with_libmspack"
3195
3196 if test "$withval" = yes; then
3197 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3198 else
3199 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3200 fi
3201
3202else
3203
3204 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3205 if test "x$LINE" != x ; then
3206 eval "DEFAULT_$LINE"
3207 else
3208 no_cache=1
3209 fi
3210
3211 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3212
3213fi;
3214
3215 eval "$ac_cv_use_libmspack"
3216 if test "$no_cache" != 1; then
3217 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3218 fi
3219
3220 if test "$wxUSE_LIBMSPACK" = yes; then
3221 echo "$as_me:$LINENO: result: yes" >&5
3222echo "${ECHO_T}yes" >&6
3223 else
3224 echo "$as_me:$LINENO: result: no" >&5
3225echo "${ECHO_T}no" >&6
3226 fi
3227
3228
1c14217d
VZ
3229 withstring=
3230 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3231echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3232 no_cache=0
3233
3234# Check whether --with-sdl or --without-sdl was given.
3235if test "${with_sdl+set}" = set; then
3236 withval="$with_sdl"
3237
3238 if test "$withval" = yes; then
3239 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3240 else
3241 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3242 fi
3243
3244else
3245
3246 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3247 if test "x$LINE" != x ; then
3248 eval "DEFAULT_$LINE"
3249 else
3250 no_cache=1
3251 fi
3252
3253 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3254
3255fi;
3256
3257 eval "$ac_cv_use_sdl"
3258 if test "$no_cache" != 1; then
3259 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3260 fi
3261
3262 if test "$wxUSE_LIBSDL" = yes; then
3263 echo "$as_me:$LINENO: result: yes" >&5
3264echo "${ECHO_T}yes" >&6
3265 else
3266 echo "$as_me:$LINENO: result: no" >&5
3267echo "${ECHO_T}no" >&6
3268 fi
3269
3270
1c14217d
VZ
3271 withstring=
3272 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3273echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3274 no_cache=0
3275
3276# Check whether --with-gnomeprint or --without-gnomeprint was given.
3277if test "${with_gnomeprint+set}" = set; then
3278 withval="$with_gnomeprint"
3279
3280 if test "$withval" = yes; then
3281 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3282 else
3283 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3284 fi
3285
3286else
3287
3288 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3289 if test "x$LINE" != x ; then
3290 eval "DEFAULT_$LINE"
3291 else
3292 no_cache=1
3293 fi
3294
3295 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3296
3297fi;
3298
3299 eval "$ac_cv_use_gnomeprint"
3300 if test "$no_cache" != 1; then
3301 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3302 fi
3303
3304 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3305 echo "$as_me:$LINENO: result: yes" >&5
3306echo "${ECHO_T}yes" >&6
3307 else
3308 echo "$as_me:$LINENO: result: no" >&5
3309echo "${ECHO_T}no" >&6
3310 fi
3311
3312
2b850ae1
RR
3313 withstring=
3314 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3315echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3316 no_cache=0
3317
3318# Check whether --with-gnomevfs or --without-gnomevfs was given.
3319if test "${with_gnomevfs+set}" = set; then
3320 withval="$with_gnomevfs"
3321
3322 if test "$withval" = yes; then
3323 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3324 else
3325 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3326 fi
3327
3328else
3329
3330 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3331 if test "x$LINE" != x ; then
3332 eval "DEFAULT_$LINE"
3333 else
3334 no_cache=1
3335 fi
3336
3337 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3338
3339fi;
3340
3341 eval "$ac_cv_use_gnomevfs"
3342 if test "$no_cache" != 1; then
3343 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3344 fi
3345
3346 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3347 echo "$as_me:$LINENO: result: yes" >&5
3348echo "${ECHO_T}yes" >&6
3349 else
3350 echo "$as_me:$LINENO: result: no" >&5
3351echo "${ECHO_T}no" >&6
3352 fi
3353
3354
3565d135
RR
3355 withstring=
3356 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3357echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3358 no_cache=0
3359
3360# Check whether --with-hildon or --without-hildon was given.
3361if test "${with_hildon+set}" = set; then
3362 withval="$with_hildon"
3363
3364 if test "$withval" = yes; then
3365 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3366 else
3367 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3368 fi
3369
3370else
3371
3372 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3373 if test "x$LINE" != x ; then
3374 eval "DEFAULT_$LINE"
3375 else
3376 no_cache=1
3377 fi
3378
3379 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3380
3381fi;
3382
3383 eval "$ac_cv_use_hildon"
3384 if test "$no_cache" != 1; then
3385 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3386 fi
3387
3388 if test "$wxUSE_LIBHILDON" = yes; then
3389 echo "$as_me:$LINENO: result: yes" >&5
3390echo "${ECHO_T}yes" >&6
3391 else
3392 echo "$as_me:$LINENO: result: no" >&5
3393echo "${ECHO_T}no" >&6
3394 fi
3395
3396
1c14217d
VZ
3397 withstring=
3398 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3399echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3400 no_cache=0
3401
3402# Check whether --with-opengl or --without-opengl was given.
3403if test "${with_opengl+set}" = set; then
3404 withval="$with_opengl"
3405
3406 if test "$withval" = yes; then
3407 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3408 else
3409 ac_cv_use_opengl='wxUSE_OPENGL=no'
3410 fi
3411
3412else
3413
3414 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3415 if test "x$LINE" != x ; then
3416 eval "DEFAULT_$LINE"
3417 else
3418 no_cache=1
3419 fi
3420
3421 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3422
3423fi;
3424
3425 eval "$ac_cv_use_opengl"
3426 if test "$no_cache" != 1; then
3427 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3428 fi
3429
3430 if test "$wxUSE_OPENGL" = yes; then
3431 echo "$as_me:$LINENO: result: yes" >&5
3432echo "${ECHO_T}yes" >&6
3433 else
3434 echo "$as_me:$LINENO: result: no" >&5
3435echo "${ECHO_T}no" >&6
3436 fi
3437
3438
3439fi
3440
3441
1c14217d
VZ
3442 withstring=
3443 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3444echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3445 no_cache=0
3446
3447# Check whether --with-dmalloc or --without-dmalloc was given.
3448if test "${with_dmalloc+set}" = set; then
3449 withval="$with_dmalloc"
3450
3451 if test "$withval" = yes; then
3452 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3453 else
3454 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3455 fi
3456
3457else
3458
3459 LINE=`grep "wxUSE_DMALLOC" ${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_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3467
3468fi;
3469
3470 eval "$ac_cv_use_dmalloc"
3471 if test "$no_cache" != 1; then
3472 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3473 fi
3474
3475 if test "$wxUSE_DMALLOC" = 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
3484 echo "$as_me:$LINENO: checking for --with-regex" >&5
3485echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3486 no_cache=0
3487
3488# Check whether --with-regex or --without-regex was given.
3489if test "${with_regex+set}" = set; then
3490 withval="$with_regex"
3491
3492 if test "$withval" = yes; then
3493 ac_cv_use_regex='wxUSE_REGEX=yes'
3494 elif test "$withval" = no; then
3495 ac_cv_use_regex='wxUSE_REGEX=no'
3496 elif test "$withval" = sys; then
3497 ac_cv_use_regex='wxUSE_REGEX=sys'
3498 elif test "$withval" = builtin; then
3499 ac_cv_use_regex='wxUSE_REGEX=builtin'
3500 else
3501 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3502echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3503 { (exit 1); exit 1; }; }
3504 fi
3505
3506else
3507
3508 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3509 if test "x$LINE" != x ; then
3510 eval "DEFAULT_$LINE"
3511 else
3512 no_cache=1
3513 fi
3514
3515 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3516
3517fi;
3518
3519 eval "$ac_cv_use_regex"
3520 if test "$no_cache" != 1; then
3521 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3522 fi
3523
3524 if test "$wxUSE_REGEX" = yes; then
3525 echo "$as_me:$LINENO: result: yes" >&5
3526echo "${ECHO_T}yes" >&6
3527 elif test "$wxUSE_REGEX" = no; then
3528 echo "$as_me:$LINENO: result: no" >&5
3529echo "${ECHO_T}no" >&6
3530 elif test "$wxUSE_REGEX" = sys; then
3531 echo "$as_me:$LINENO: result: system version" >&5
3532echo "${ECHO_T}system version" >&6
3533 elif test "$wxUSE_REGEX" = builtin; then
3534 echo "$as_me:$LINENO: result: builtin version" >&5
3535echo "${ECHO_T}builtin version" >&6
3536 else
3537 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3538echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3539 { (exit 1); exit 1; }; }
3540 fi
3541
3542
3543 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3544echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3545 no_cache=0
3546
3547# Check whether --with-zlib or --without-zlib was given.
3548if test "${with_zlib+set}" = set; then
3549 withval="$with_zlib"
3550
3551 if test "$withval" = yes; then
3552 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3553 elif test "$withval" = no; then
3554 ac_cv_use_zlib='wxUSE_ZLIB=no'
3555 elif test "$withval" = sys; then
3556 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3557 elif test "$withval" = builtin; then
3558 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3559 else
3560 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3561echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3562 { (exit 1); exit 1; }; }
3563 fi
3564
3565else
3566
3567 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3568 if test "x$LINE" != x ; then
3569 eval "DEFAULT_$LINE"
3570 else
3571 no_cache=1
3572 fi
3573
3574 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3575
3576fi;
3577
3578 eval "$ac_cv_use_zlib"
3579 if test "$no_cache" != 1; then
3580 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3581 fi
3582
3583 if test "$wxUSE_ZLIB" = yes; then
3584 echo "$as_me:$LINENO: result: yes" >&5
3585echo "${ECHO_T}yes" >&6
3586 elif test "$wxUSE_ZLIB" = no; then
3587 echo "$as_me:$LINENO: result: no" >&5
3588echo "${ECHO_T}no" >&6
3589 elif test "$wxUSE_ZLIB" = sys; then
3590 echo "$as_me:$LINENO: result: system version" >&5
3591echo "${ECHO_T}system version" >&6
3592 elif test "$wxUSE_ZLIB" = builtin; then
3593 echo "$as_me:$LINENO: result: builtin version" >&5
3594echo "${ECHO_T}builtin version" >&6
3595 else
3596 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3597echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3598 { (exit 1); exit 1; }; }
3599 fi
3600
3601
3602 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3603echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3604 no_cache=0
3605
3606# Check whether --with-odbc or --without-odbc was given.
3607if test "${with_odbc+set}" = set; then
3608 withval="$with_odbc"
3609
3610 if test "$withval" = yes; then
3611 ac_cv_use_odbc='wxUSE_ODBC=yes'
3612 elif test "$withval" = no; then
3613 ac_cv_use_odbc='wxUSE_ODBC=no'
3614 elif test "$withval" = sys; then
3615 ac_cv_use_odbc='wxUSE_ODBC=sys'
3616 elif test "$withval" = builtin; then
3617 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3618 else
3619 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3620echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3621 { (exit 1); exit 1; }; }
3622 fi
3623
3624else
3625
3626 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3627 if test "x$LINE" != x ; then
3628 eval "DEFAULT_$LINE"
3629 else
3630 no_cache=1
3631 fi
3632
3633 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3634
3635fi;
3636
3637 eval "$ac_cv_use_odbc"
3638 if test "$no_cache" != 1; then
3639 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3640 fi
3641
3642 if test "$wxUSE_ODBC" = yes; then
3643 echo "$as_me:$LINENO: result: yes" >&5
3644echo "${ECHO_T}yes" >&6
3645 elif test "$wxUSE_ODBC" = no; then
3646 echo "$as_me:$LINENO: result: no" >&5
3647echo "${ECHO_T}no" >&6
3648 elif test "$wxUSE_ODBC" = sys; then
3649 echo "$as_me:$LINENO: result: system version" >&5
3650echo "${ECHO_T}system version" >&6
3651 elif test "$wxUSE_ODBC" = builtin; then
3652 echo "$as_me:$LINENO: result: builtin version" >&5
3653echo "${ECHO_T}builtin version" >&6
3654 else
3655 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3656echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3657 { (exit 1); exit 1; }; }
3658 fi
3659
3660
3661 echo "$as_me:$LINENO: checking for --with-expat" >&5
3662echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3663 no_cache=0
3664
3665# Check whether --with-expat or --without-expat was given.
3666if test "${with_expat+set}" = set; then
3667 withval="$with_expat"
3668
3669 if test "$withval" = yes; then
3670 ac_cv_use_expat='wxUSE_EXPAT=yes'
3671 elif test "$withval" = no; then
3672 ac_cv_use_expat='wxUSE_EXPAT=no'
3673 elif test "$withval" = sys; then
3674 ac_cv_use_expat='wxUSE_EXPAT=sys'
3675 elif test "$withval" = builtin; then
3676 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3677 else
3678 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3679echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3680 { (exit 1); exit 1; }; }
3681 fi
3682
3683else
3684
3685 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3686 if test "x$LINE" != x ; then
3687 eval "DEFAULT_$LINE"
3688 else
3689 no_cache=1
3690 fi
3691
3692 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3693
3694fi;
3695
3696 eval "$ac_cv_use_expat"
3697 if test "$no_cache" != 1; then
3698 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3699 fi
3700
3701 if test "$wxUSE_EXPAT" = yes; then
3702 echo "$as_me:$LINENO: result: yes" >&5
3703echo "${ECHO_T}yes" >&6
3704 elif test "$wxUSE_EXPAT" = no; then
3705 echo "$as_me:$LINENO: result: no" >&5
3706echo "${ECHO_T}no" >&6
3707 elif test "$wxUSE_EXPAT" = sys; then
3708 echo "$as_me:$LINENO: result: system version" >&5
3709echo "${ECHO_T}system version" >&6
3710 elif test "$wxUSE_EXPAT" = builtin; then
3711 echo "$as_me:$LINENO: result: builtin version" >&5
3712echo "${ECHO_T}builtin version" >&6
3713 else
3714 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3715echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3716 { (exit 1); exit 1; }; }
3717 fi
3718
3719
3720
3721
3722 enablestring=
3723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3724echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3725 no_cache=0
3726 # Check whether --enable-shared or --disable-shared was given.
3727if test "${enable_shared+set}" = set; then
3728 enableval="$enable_shared"
3729
3730 if test "$enableval" = yes; then
3731 ac_cv_use_shared='wxUSE_SHARED=yes'
3732 else
3733 ac_cv_use_shared='wxUSE_SHARED=no'
3734 fi
3735
3736else
3737
3738 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3739 if test "x$LINE" != x ; then
3740 eval "DEFAULT_$LINE"
3741 else
3742 no_cache=1
3743 fi
3744
3745 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3746
3747fi;
3748
3749 eval "$ac_cv_use_shared"
3750 if test "$no_cache" != 1; then
3751 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3752 fi
3753
3754 if test "$wxUSE_SHARED" = yes; then
3755 echo "$as_me:$LINENO: result: yes" >&5
3756echo "${ECHO_T}yes" >&6
3757 else
3758 echo "$as_me:$LINENO: result: no" >&5
3759echo "${ECHO_T}no" >&6
3760 fi
3761
3762
3763 enablestring=
3764 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3765echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3766 no_cache=0
3767 # Check whether --enable-optimise or --disable-optimise was given.
3768if test "${enable_optimise+set}" = set; then
3769 enableval="$enable_optimise"
3770
3771 if test "$enableval" = yes; then
3772 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3773 else
3774 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3775 fi
3776
3777else
3778
3779 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3780 if test "x$LINE" != x ; then
3781 eval "DEFAULT_$LINE"
3782 else
3783 no_cache=1
3784 fi
3785
3786 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3787
3788fi;
3789
3790 eval "$ac_cv_use_optimise"
3791 if test "$no_cache" != 1; then
3792 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3793 fi
3794
3795 if test "$wxUSE_OPTIMISE" = yes; then
3796 echo "$as_me:$LINENO: result: yes" >&5
3797echo "${ECHO_T}yes" >&6
3798 else
3799 echo "$as_me:$LINENO: result: no" >&5
3800echo "${ECHO_T}no" >&6
3801 fi
3802
3803
3804 enablestring=
3805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3806echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3807 no_cache=0
3808 # Check whether --enable-debug or --disable-debug was given.
3809if test "${enable_debug+set}" = set; then
3810 enableval="$enable_debug"
3811
3812 if test "$enableval" = yes; then
3813 ac_cv_use_debug='wxUSE_DEBUG=yes'
3814 else
3815 ac_cv_use_debug='wxUSE_DEBUG=no'
3816 fi
3817
3818else
3819
3820 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3821 if test "x$LINE" != x ; then
3822 eval "DEFAULT_$LINE"
3823 else
3824 no_cache=1
3825 fi
3826
3827 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3828
3829fi;
3830
3831 eval "$ac_cv_use_debug"
3832 if test "$no_cache" != 1; then
3833 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3834 fi
3835
3836 if test "$wxUSE_DEBUG" = yes; then
3837 echo "$as_me:$LINENO: result: yes" >&5
3838echo "${ECHO_T}yes" >&6
3839 else
3840 echo "$as_me:$LINENO: result: no" >&5
3841echo "${ECHO_T}no" >&6
3842 fi
3843
3844
3845 enablestring=
3846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3847echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3848 no_cache=0
3849 # Check whether --enable-stl or --disable-stl was given.
3850if test "${enable_stl+set}" = set; then
3851 enableval="$enable_stl"
3852
3853 if test "$enableval" = yes; then
3854 ac_cv_use_stl='wxUSE_STL=yes'
3855 else
3856 ac_cv_use_stl='wxUSE_STL=no'
3857 fi
3858
3859else
3860
3861 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3862 if test "x$LINE" != x ; then
3863 eval "DEFAULT_$LINE"
3864 else
3865 no_cache=1
3866 fi
3867
3868 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3869
3870fi;
3871
3872 eval "$ac_cv_use_stl"
3873 if test "$no_cache" != 1; then
3874 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3875 fi
3876
3877 if test "$wxUSE_STL" = yes; then
3878 echo "$as_me:$LINENO: result: yes" >&5
3879echo "${ECHO_T}yes" >&6
3880 else
3881 echo "$as_me:$LINENO: result: no" >&5
3882echo "${ECHO_T}no" >&6
3883 fi
3884
3885if test "$USE_OS2" = "1"; then
69120ee4 3886 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3887
3888 enablestring=
3889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3890echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3891 no_cache=0
3892 # Check whether --enable-omf or --disable-omf was given.
3893if test "${enable_omf+set}" = set; then
3894 enableval="$enable_omf"
3895
3896 if test "$enableval" = yes; then
3897 ac_cv_use_omf='wxUSE_OMF=yes'
3898 else
3899 ac_cv_use_omf='wxUSE_OMF=no'
3900 fi
3901
3902else
3903
3904 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3905 if test "x$LINE" != x ; then
3906 eval "DEFAULT_$LINE"
3907 else
3908 no_cache=1
3909 fi
3910
3911 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3912
3913fi;
3914
3915 eval "$ac_cv_use_omf"
3916 if test "$no_cache" != 1; then
3917 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3918 fi
3919
3920 if test "$wxUSE_OMF" = yes; then
3921 echo "$as_me:$LINENO: result: yes" >&5
3922echo "${ECHO_T}yes" >&6
3923 else
3924 echo "$as_me:$LINENO: result: no" >&5
3925echo "${ECHO_T}no" >&6
3926 fi
3927
3928fi
3929
3930if test "$wxUSE_DEBUG" = "yes"; then
3931 DEFAULT_wxUSE_DEBUG_FLAG=yes
3932 DEFAULT_wxUSE_DEBUG_INFO=yes
3933 BUILD=debug
3934elif test "$wxUSE_DEBUG" = "no"; then
3935 DEFAULT_wxUSE_DEBUG_FLAG=no
3936 DEFAULT_wxUSE_DEBUG_INFO=no
3937 BUILD=release
3938fi
3939
3940
3941 enablestring=
3942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3943echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3944 no_cache=0
3945 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3946if test "${enable_debug_flag+set}" = set; then
3947 enableval="$enable_debug_flag"
3948
3949 if test "$enableval" = yes; then
3950 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3951 else
3952 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3953 fi
3954
3955else
3956
3957 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3958 if test "x$LINE" != x ; then
3959 eval "DEFAULT_$LINE"
3960 else
3961 no_cache=1
3962 fi
3963
3964 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3965
3966fi;
3967
3968 eval "$ac_cv_use_debug_flag"
3969 if test "$no_cache" != 1; then
3970 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3971 fi
3972
3973 if test "$wxUSE_DEBUG_FLAG" = yes; then
3974 echo "$as_me:$LINENO: result: yes" >&5
3975echo "${ECHO_T}yes" >&6
3976 else
3977 echo "$as_me:$LINENO: result: no" >&5
3978echo "${ECHO_T}no" >&6
3979 fi
3980
3981
3982 enablestring=
3983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3984echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3985 no_cache=0
3986 # Check whether --enable-debug_info or --disable-debug_info was given.
3987if test "${enable_debug_info+set}" = set; then
3988 enableval="$enable_debug_info"
3989
3990 if test "$enableval" = yes; then
3991 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3992 else
3993 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3994 fi
3995
3996else
3997
3998 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3999 if test "x$LINE" != x ; then
4000 eval "DEFAULT_$LINE"
4001 else
4002 no_cache=1
4003 fi
4004
4005 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4006
4007fi;
4008
4009 eval "$ac_cv_use_debug_info"
4010 if test "$no_cache" != 1; then
4011 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4012 fi
4013
4014 if test "$wxUSE_DEBUG_INFO" = yes; then
4015 echo "$as_me:$LINENO: result: yes" >&5
4016echo "${ECHO_T}yes" >&6
4017 else
4018 echo "$as_me:$LINENO: result: no" >&5
4019echo "${ECHO_T}no" >&6
4020 fi
4021
4022
4023 enablestring=
4024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4025echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4026 no_cache=0
4027 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4028if test "${enable_debug_gdb+set}" = set; then
4029 enableval="$enable_debug_gdb"
4030
4031 if test "$enableval" = yes; then
4032 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4033 else
4034 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4035 fi
4036
4037else
4038
4039 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4040 if test "x$LINE" != x ; then
4041 eval "DEFAULT_$LINE"
4042 else
4043 no_cache=1
4044 fi
4045
4046 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4047
4048fi;
4049
4050 eval "$ac_cv_use_debug_gdb"
4051 if test "$no_cache" != 1; then
4052 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4053 fi
4054
4055 if test "$wxUSE_DEBUG_GDB" = yes; then
4056 echo "$as_me:$LINENO: result: yes" >&5
4057echo "${ECHO_T}yes" >&6
4058 else
4059 echo "$as_me:$LINENO: result: no" >&5
4060echo "${ECHO_T}no" >&6
4061 fi
4062
4063
4064 enablestring=
4065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4066echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4067 no_cache=0
4068 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4069if test "${enable_debug_cntxt+set}" = set; then
4070 enableval="$enable_debug_cntxt"
4071
4072 if test "$enableval" = yes; then
4073 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4074 else
4075 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4076 fi
4077
4078else
4079
4080 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4081 if test "x$LINE" != x ; then
4082 eval "DEFAULT_$LINE"
4083 else
4084 no_cache=1
4085 fi
4086
4087 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4088
4089fi;
4090
4091 eval "$ac_cv_use_debug_cntxt"
4092 if test "$no_cache" != 1; then
4093 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4094 fi
4095
4096 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4097 echo "$as_me:$LINENO: result: yes" >&5
4098echo "${ECHO_T}yes" >&6
4099 else
4100 echo "$as_me:$LINENO: result: no" >&5
4101echo "${ECHO_T}no" >&6
4102 fi
4103
4104
4105 enablestring=
4106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4107echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4108 no_cache=0
4109 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4110if test "${enable_mem_tracing+set}" = set; then
4111 enableval="$enable_mem_tracing"
4112
4113 if test "$enableval" = yes; then
4114 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4115 else
4116 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4117 fi
4118
4119else
4120
4121 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4122 if test "x$LINE" != x ; then
4123 eval "DEFAULT_$LINE"
4124 else
4125 no_cache=1
4126 fi
4127
4128 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4129
4130fi;
4131
4132 eval "$ac_cv_use_mem_tracing"
4133 if test "$no_cache" != 1; then
4134 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4135 fi
4136
4137 if test "$wxUSE_MEM_TRACING" = yes; then
4138 echo "$as_me:$LINENO: result: yes" >&5
4139echo "${ECHO_T}yes" >&6
4140 else
4141 echo "$as_me:$LINENO: result: no" >&5
4142echo "${ECHO_T}no" >&6
4143 fi
4144
4145
4146 enablestring=
4147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4148echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4149 no_cache=0
4150 # Check whether --enable-profile or --disable-profile was given.
4151if test "${enable_profile+set}" = set; then
4152 enableval="$enable_profile"
4153
4154 if test "$enableval" = yes; then
4155 ac_cv_use_profile='wxUSE_PROFILE=yes'
4156 else
4157 ac_cv_use_profile='wxUSE_PROFILE=no'
4158 fi
4159
4160else
4161
4162 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4163 if test "x$LINE" != x ; then
4164 eval "DEFAULT_$LINE"
4165 else
4166 no_cache=1
4167 fi
4168
4169 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4170
4171fi;
4172
4173 eval "$ac_cv_use_profile"
4174 if test "$no_cache" != 1; then
4175 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4176 fi
4177
4178 if test "$wxUSE_PROFILE" = yes; then
4179 echo "$as_me:$LINENO: result: yes" >&5
4180echo "${ECHO_T}yes" >&6
4181 else
4182 echo "$as_me:$LINENO: result: no" >&5
4183echo "${ECHO_T}no" >&6
4184 fi
4185
4186
4187 enablestring=
4188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4189echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4190 no_cache=0
4191 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4192if test "${enable_no_rtti+set}" = set; then
4193 enableval="$enable_no_rtti"
4194
4195 if test "$enableval" = yes; then
4196 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4197 else
4198 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4199 fi
4200
4201else
4202
4203 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4204 if test "x$LINE" != x ; then
4205 eval "DEFAULT_$LINE"
4206 else
4207 no_cache=1
4208 fi
4209
4210 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4211
4212fi;
4213
4214 eval "$ac_cv_use_no_rtti"
4215 if test "$no_cache" != 1; then
4216 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4217 fi
4218
4219 if test "$wxUSE_NO_RTTI" = yes; then
4220 echo "$as_me:$LINENO: result: yes" >&5
4221echo "${ECHO_T}yes" >&6
4222 else
4223 echo "$as_me:$LINENO: result: no" >&5
4224echo "${ECHO_T}no" >&6
4225 fi
4226
4227
4228 enablestring=
4229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4230echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4231 no_cache=0
4232 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4233if test "${enable_no_exceptions+set}" = set; then
4234 enableval="$enable_no_exceptions"
4235
4236 if test "$enableval" = yes; then
4237 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4238 else
4239 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4240 fi
4241
4242else
4243
4244 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4245 if test "x$LINE" != x ; then
4246 eval "DEFAULT_$LINE"
4247 else
4248 no_cache=1
4249 fi
4250
4251 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4252
4253fi;
4254
4255 eval "$ac_cv_use_no_exceptions"
4256 if test "$no_cache" != 1; then
4257 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4258 fi
4259
4260 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4261 echo "$as_me:$LINENO: result: yes" >&5
4262echo "${ECHO_T}yes" >&6
4263 else
4264 echo "$as_me:$LINENO: result: no" >&5
4265echo "${ECHO_T}no" >&6
4266 fi
4267
4268
4269 enablestring=
4270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4271echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4272 no_cache=0
4273 # Check whether --enable-permissive or --disable-permissive was given.
4274if test "${enable_permissive+set}" = set; then
4275 enableval="$enable_permissive"
4276
4277 if test "$enableval" = yes; then
4278 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4279 else
4280 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4281 fi
4282
4283else
4284
4285 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4286 if test "x$LINE" != x ; then
4287 eval "DEFAULT_$LINE"
4288 else
4289 no_cache=1
4290 fi
4291
4292 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4293
4294fi;
4295
4296 eval "$ac_cv_use_permissive"
4297 if test "$no_cache" != 1; then
4298 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4299 fi
4300
4301 if test "$wxUSE_PERMISSIVE" = yes; then
4302 echo "$as_me:$LINENO: result: yes" >&5
4303echo "${ECHO_T}yes" >&6
4304 else
4305 echo "$as_me:$LINENO: result: no" >&5
4306echo "${ECHO_T}no" >&6
4307 fi
4308
4309
4310 enablestring=
4311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4312echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4313 no_cache=0
4314 # Check whether --enable-no_deps or --disable-no_deps was given.
4315if test "${enable_no_deps+set}" = set; then
4316 enableval="$enable_no_deps"
4317
4318 if test "$enableval" = yes; then
4319 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4320 else
4321 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4322 fi
4323
4324else
4325
4326 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4327 if test "x$LINE" != x ; then
4328 eval "DEFAULT_$LINE"
4329 else
4330 no_cache=1
4331 fi
4332
4333 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4334
4335fi;
4336
4337 eval "$ac_cv_use_no_deps"
4338 if test "$no_cache" != 1; then
4339 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4340 fi
4341
4342 if test "$wxUSE_NO_DEPS" = yes; then
4343 echo "$as_me:$LINENO: result: yes" >&5
4344echo "${ECHO_T}yes" >&6
4345 else
4346 echo "$as_me:$LINENO: result: no" >&5
4347echo "${ECHO_T}no" >&6
4348 fi
4349
4350
95768535 4351 enablestring=
7afc46ab
KO
4352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4353echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4354 no_cache=0
4355 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4356if test "${enable_universal_binary+set}" = set; then
4357 enableval="$enable_universal_binary"
4358
95768535 4359 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
7afc46ab
KO
4360
4361else
4362
4363 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4364 if test "x$LINE" != x ; then
4365 eval "DEFAULT_$LINE"
95768535 4366 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
7afc46ab
KO
4367 else
4368 no_cache=1
95768535 4369 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
7afc46ab
KO
4370 fi
4371
7afc46ab
KO
4372fi;
4373
95768535 4374 eval "$wx_cv_use_universal_binary"
7afc46ab 4375 if test "$no_cache" != 1; then
95768535 4376 echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
7afc46ab
KO
4377 fi
4378
95768535
MW
4379 echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4380echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
7afc46ab
KO
4381
4382
a848cd7e 4383
dee1a63f
MB
4384 enablestring=enable
4385 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4386echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4387 no_cache=0
dee1a63f
MB
4388 # Check whether --enable-compat24 or --disable-compat24 was given.
4389if test "${enable_compat24+set}" = set; then
4390 enableval="$enable_compat24"
a848cd7e
SC
4391
4392 if test "$enableval" = yes; then
dee1a63f 4393 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4394 else
dee1a63f 4395 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4396 fi
4397
4398else
4399
dee1a63f 4400 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4401 if test "x$LINE" != x ; then
4402 eval "DEFAULT_$LINE"
4403 else
4404 no_cache=1
4405 fi
4406
dee1a63f 4407 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4408
4409fi;
4410
dee1a63f 4411 eval "$ac_cv_use_compat24"
a848cd7e 4412 if test "$no_cache" != 1; then
dee1a63f 4413 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4414 fi
4415
dee1a63f 4416 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4417 echo "$as_me:$LINENO: result: yes" >&5
4418echo "${ECHO_T}yes" >&6
4419 else
4420 echo "$as_me:$LINENO: result: no" >&5
4421echo "${ECHO_T}no" >&6
4422 fi
4423
4424
4425 enablestring=disable
dee1a63f
MB
4426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4427echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4428 no_cache=0
dee1a63f
MB
4429 # Check whether --enable-compat26 or --disable-compat26 was given.
4430if test "${enable_compat26+set}" = set; then
4431 enableval="$enable_compat26"
a848cd7e
SC
4432
4433 if test "$enableval" = yes; then
dee1a63f 4434 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4435 else
dee1a63f 4436 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4437 fi
4438
4439else
4440
dee1a63f 4441 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4442 if test "x$LINE" != x ; then
4443 eval "DEFAULT_$LINE"
4444 else
4445 no_cache=1
4446 fi
4447
dee1a63f 4448 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4449
4450fi;
4451
dee1a63f 4452 eval "$ac_cv_use_compat26"
a848cd7e 4453 if test "$no_cache" != 1; then
dee1a63f 4454 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4455 fi
4456
dee1a63f 4457 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4458 echo "$as_me:$LINENO: result: yes" >&5
4459echo "${ECHO_T}yes" >&6
4460 else
4461 echo "$as_me:$LINENO: result: no" >&5
4462echo "${ECHO_T}no" >&6
4463 fi
4464
4465
ffa0583f
RL
4466
4467 enablestring=
4468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4469echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4470 no_cache=0
4471 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4472if test "${enable_rpath+set}" = set; then
4473 enableval="$enable_rpath"
ffa0583f
RL
4474
4475 if test "$enableval" = yes; then
4476 ac_cv_use_rpath='wxUSE_RPATH=yes'
4477 else
4478 ac_cv_use_rpath='wxUSE_RPATH=no'
4479 fi
4480
4481else
4482
4483 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4484 if test "x$LINE" != x ; then
4485 eval "DEFAULT_$LINE"
4486 else
4487 no_cache=1
4488 fi
4489
4490 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4491
a848cd7e
SC
4492fi;
4493
ffa0583f
RL
4494 eval "$ac_cv_use_rpath"
4495 if test "$no_cache" != 1; then
4496 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4497 fi
4498
4499 if test "$wxUSE_RPATH" = yes; then
4500 echo "$as_me:$LINENO: result: yes" >&5
4501echo "${ECHO_T}yes" >&6
4502 else
4503 echo "$as_me:$LINENO: result: no" >&5
4504echo "${ECHO_T}no" >&6
4505 fi
4506
a848cd7e
SC
4507
4508
4509
4510
4511 enablestring=
4512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4513echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4514 no_cache=0
4515 # Check whether --enable-intl or --disable-intl was given.
4516if test "${enable_intl+set}" = set; then
4517 enableval="$enable_intl"
4518
4519 if test "$enableval" = yes; then
4520 ac_cv_use_intl='wxUSE_INTL=yes'
4521 else
4522 ac_cv_use_intl='wxUSE_INTL=no'
4523 fi
4524
4525else
4526
4527 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4528 if test "x$LINE" != x ; then
4529 eval "DEFAULT_$LINE"
4530 else
4531 no_cache=1
4532 fi
4533
4534 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4535
4536fi;
4537
4538 eval "$ac_cv_use_intl"
4539 if test "$no_cache" != 1; then
4540 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4541 fi
4542
4543 if test "$wxUSE_INTL" = yes; then
4544 echo "$as_me:$LINENO: result: yes" >&5
4545echo "${ECHO_T}yes" >&6
4546 else
4547 echo "$as_me:$LINENO: result: no" >&5
4548echo "${ECHO_T}no" >&6
4549 fi
4550
4551
4552 enablestring=
4553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4554echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4555 no_cache=0
4556 # Check whether --enable-config or --disable-config was given.
4557if test "${enable_config+set}" = set; then
4558 enableval="$enable_config"
4559
4560 if test "$enableval" = yes; then
4561 ac_cv_use_config='wxUSE_CONFIG=yes'
4562 else
4563 ac_cv_use_config='wxUSE_CONFIG=no'
4564 fi
4565
4566else
4567
4568 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4569 if test "x$LINE" != x ; then
4570 eval "DEFAULT_$LINE"
4571 else
4572 no_cache=1
4573 fi
4574
4575 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4576
4577fi;
4578
4579 eval "$ac_cv_use_config"
4580 if test "$no_cache" != 1; then
4581 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4582 fi
4583
4584 if test "$wxUSE_CONFIG" = yes; then
4585 echo "$as_me:$LINENO: result: yes" >&5
4586echo "${ECHO_T}yes" >&6
4587 else
4588 echo "$as_me:$LINENO: result: no" >&5
4589echo "${ECHO_T}no" >&6
4590 fi
4591
4592
4593
4594 enablestring=
4595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4596echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4597 no_cache=0
4598 # Check whether --enable-protocols or --disable-protocols was given.
4599if test "${enable_protocols+set}" = set; then
4600 enableval="$enable_protocols"
4601
4602 if test "$enableval" = yes; then
4603 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4604 else
4605 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4606 fi
4607
4608else
4609
4610 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4611 if test "x$LINE" != x ; then
4612 eval "DEFAULT_$LINE"
4613 else
4614 no_cache=1
4615 fi
4616
4617 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4618
4619fi;
4620
4621 eval "$ac_cv_use_protocols"
4622 if test "$no_cache" != 1; then
4623 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4624 fi
4625
4626 if test "$wxUSE_PROTOCOL" = yes; then
4627 echo "$as_me:$LINENO: result: yes" >&5
4628echo "${ECHO_T}yes" >&6
4629 else
4630 echo "$as_me:$LINENO: result: no" >&5
4631echo "${ECHO_T}no" >&6
4632 fi
4633
4634
4635 enablestring=
4636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4637echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4638 no_cache=0
4639 # Check whether --enable-ftp or --disable-ftp was given.
4640if test "${enable_ftp+set}" = set; then
4641 enableval="$enable_ftp"
4642
4643 if test "$enableval" = yes; then
4644 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4645 else
4646 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4647 fi
4648
4649else
4650
4651 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4652 if test "x$LINE" != x ; then
4653 eval "DEFAULT_$LINE"
4654 else
4655 no_cache=1
4656 fi
4657
4658 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4659
4660fi;
4661
4662 eval "$ac_cv_use_ftp"
4663 if test "$no_cache" != 1; then
4664 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4665 fi
4666
4667 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4668 echo "$as_me:$LINENO: result: yes" >&5
4669echo "${ECHO_T}yes" >&6
4670 else
4671 echo "$as_me:$LINENO: result: no" >&5
4672echo "${ECHO_T}no" >&6
4673 fi
4674
4675
4676 enablestring=
4677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4678echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4679 no_cache=0
4680 # Check whether --enable-http or --disable-http was given.
4681if test "${enable_http+set}" = set; then
4682 enableval="$enable_http"
4683
4684 if test "$enableval" = yes; then
4685 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4686 else
4687 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4688 fi
4689
4690else
4691
4692 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4693 if test "x$LINE" != x ; then
4694 eval "DEFAULT_$LINE"
4695 else
4696 no_cache=1
4697 fi
4698
4699 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4700
4701fi;
4702
4703 eval "$ac_cv_use_http"
4704 if test "$no_cache" != 1; then
4705 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4706 fi
4707
4708 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4709 echo "$as_me:$LINENO: result: yes" >&5
4710echo "${ECHO_T}yes" >&6
4711 else
4712 echo "$as_me:$LINENO: result: no" >&5
4713echo "${ECHO_T}no" >&6
4714 fi
4715
4716
4717 enablestring=
4718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4719echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4720 no_cache=0
4721 # Check whether --enable-fileproto or --disable-fileproto was given.
4722if test "${enable_fileproto+set}" = set; then
4723 enableval="$enable_fileproto"
4724
4725 if test "$enableval" = yes; then
4726 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4727 else
4728 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4729 fi
4730
4731else
4732
4733 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4734 if test "x$LINE" != x ; then
4735 eval "DEFAULT_$LINE"
4736 else
4737 no_cache=1
4738 fi
4739
4740 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4741
4742fi;
4743
4744 eval "$ac_cv_use_fileproto"
4745 if test "$no_cache" != 1; then
4746 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4747 fi
4748
4749 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4750 echo "$as_me:$LINENO: result: yes" >&5
4751echo "${ECHO_T}yes" >&6
4752 else
4753 echo "$as_me:$LINENO: result: no" >&5
4754echo "${ECHO_T}no" >&6
4755 fi
4756
4757
4758 enablestring=
4759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4760echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4761 no_cache=0
4762 # Check whether --enable-sockets or --disable-sockets was given.
4763if test "${enable_sockets+set}" = set; then
4764 enableval="$enable_sockets"
4765
4766 if test "$enableval" = yes; then
4767 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4768 else
4769 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4770 fi
4771
4772else
4773
4774 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4775 if test "x$LINE" != x ; then
4776 eval "DEFAULT_$LINE"
4777 else
4778 no_cache=1
4779 fi
4780
4781 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4782
4783fi;
4784
4785 eval "$ac_cv_use_sockets"
4786 if test "$no_cache" != 1; then
4787 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4788 fi
4789
4790 if test "$wxUSE_SOCKETS" = yes; then
4791 echo "$as_me:$LINENO: result: yes" >&5
4792echo "${ECHO_T}yes" >&6
4793 else
4794 echo "$as_me:$LINENO: result: no" >&5
4795echo "${ECHO_T}no" >&6
4796 fi
4797
4798
4799 enablestring=
4800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4801echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4802 no_cache=0
4803 # Check whether --enable-ole or --disable-ole was given.
4804if test "${enable_ole+set}" = set; then
4805 enableval="$enable_ole"
4806
4807 if test "$enableval" = yes; then
4808 ac_cv_use_ole='wxUSE_OLE=yes'
4809 else
4810 ac_cv_use_ole='wxUSE_OLE=no'
4811 fi
4812
4813else
4814
4815 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4816 if test "x$LINE" != x ; then
4817 eval "DEFAULT_$LINE"
4818 else
4819 no_cache=1
4820 fi
4821
4822 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4823
4824fi;
4825
4826 eval "$ac_cv_use_ole"
4827 if test "$no_cache" != 1; then
4828 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4829 fi
4830
4831 if test "$wxUSE_OLE" = yes; then
4832 echo "$as_me:$LINENO: result: yes" >&5
4833echo "${ECHO_T}yes" >&6
4834 else
4835 echo "$as_me:$LINENO: result: no" >&5
4836echo "${ECHO_T}no" >&6
4837 fi
4838
4839
4840 enablestring=
4841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4842echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4843 no_cache=0
4844 # Check whether --enable-dataobj or --disable-dataobj was given.
4845if test "${enable_dataobj+set}" = set; then
4846 enableval="$enable_dataobj"
4847
4848 if test "$enableval" = yes; then
4849 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4850 else
4851 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4852 fi
4853
4854else
4855
4856 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4857 if test "x$LINE" != x ; then
4858 eval "DEFAULT_$LINE"
4859 else
4860 no_cache=1
4861 fi
4862
4863 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4864
4865fi;
4866
4867 eval "$ac_cv_use_dataobj"
4868 if test "$no_cache" != 1; then
4869 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4870 fi
4871
4872 if test "$wxUSE_DATAOBJ" = yes; then
4873 echo "$as_me:$LINENO: result: yes" >&5
4874echo "${ECHO_T}yes" >&6
4875 else
4876 echo "$as_me:$LINENO: result: no" >&5
4877echo "${ECHO_T}no" >&6
4878 fi
4879
4880
4881
4882 enablestring=
4883 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4884echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4885 no_cache=0
4886 # Check whether --enable-ipc or --disable-ipc was given.
4887if test "${enable_ipc+set}" = set; then
4888 enableval="$enable_ipc"
4889
4890 if test "$enableval" = yes; then
4891 ac_cv_use_ipc='wxUSE_IPC=yes'
4892 else
4893 ac_cv_use_ipc='wxUSE_IPC=no'
4894 fi
4895
4896else
4897
4898 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4899 if test "x$LINE" != x ; then
4900 eval "DEFAULT_$LINE"
4901 else
4902 no_cache=1
4903 fi
4904
4905 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4906
4907fi;
4908
4909 eval "$ac_cv_use_ipc"
4910 if test "$no_cache" != 1; then
4911 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4912 fi
4913
4914 if test "$wxUSE_IPC" = yes; then
4915 echo "$as_me:$LINENO: result: yes" >&5
4916echo "${ECHO_T}yes" >&6
4917 else
4918 echo "$as_me:$LINENO: result: no" >&5
4919echo "${ECHO_T}no" >&6
4920 fi
4921
4922
4923
4924 enablestring=
4925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4926echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4927 no_cache=0
4928 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4929if test "${enable_apple_ieee+set}" = set; then
4930 enableval="$enable_apple_ieee"
4931
4932 if test "$enableval" = yes; then
4933 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4934 else
4935 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4936 fi
4937
4938else
4939
4940 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4941 if test "x$LINE" != x ; then
4942 eval "DEFAULT_$LINE"
4943 else
4944 no_cache=1
4945 fi
4946
4947 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4948
4949fi;
4950
4951 eval "$ac_cv_use_apple_ieee"
4952 if test "$no_cache" != 1; then
4953 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4954 fi
4955
4956 if test "$wxUSE_APPLE_IEEE" = yes; then
4957 echo "$as_me:$LINENO: result: yes" >&5
4958echo "${ECHO_T}yes" >&6
4959 else
4960 echo "$as_me:$LINENO: result: no" >&5
4961echo "${ECHO_T}no" >&6
4962 fi
4963
4964
81f90336
MW
4965 enablestring=
4966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4967echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4968 no_cache=0
4969 # Check whether --enable-arcstream or --disable-arcstream was given.
4970if test "${enable_arcstream+set}" = set; then
4971 enableval="$enable_arcstream"
4972
4973 if test "$enableval" = yes; then
9e8e867f 4974 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4975 else
9e8e867f 4976 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4977 fi
4978
4979else
4980
9e8e867f 4981 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4982 if test "x$LINE" != x ; then
4983 eval "DEFAULT_$LINE"
4984 else
4985 no_cache=1
4986 fi
4987
9e8e867f 4988 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4989
4990fi;
4991
4992 eval "$ac_cv_use_arcstream"
4993 if test "$no_cache" != 1; then
4994 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4995 fi
4996
9e8e867f 4997 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4998 echo "$as_me:$LINENO: result: yes" >&5
4999echo "${ECHO_T}yes" >&6
5000 else
5001 echo "$as_me:$LINENO: result: no" >&5
5002echo "${ECHO_T}no" >&6
5003 fi
5004
5005
a848cd7e 5006 enablestring=
36b6448c
VZ
5007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5008echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 5009 no_cache=0
36b6448c
VZ
5010 # Check whether --enable-backtrace or --disable-backtrace was given.
5011if test "${enable_backtrace+set}" = set; then
5012 enableval="$enable_backtrace"
a848cd7e
SC
5013
5014 if test "$enableval" = yes; then
36b6448c 5015 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 5016 else
36b6448c 5017 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
5018 fi
5019
5020else
5021
36b6448c 5022 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
5023 if test "x$LINE" != x ; then
5024 eval "DEFAULT_$LINE"
5025 else
5026 no_cache=1
5027 fi
5028
36b6448c 5029 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
5030
5031fi;
5032
36b6448c 5033 eval "$ac_cv_use_backtrace"
a848cd7e 5034 if test "$no_cache" != 1; then
36b6448c 5035 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5036 fi
5037
36b6448c 5038 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
5039 echo "$as_me:$LINENO: result: yes" >&5
5040echo "${ECHO_T}yes" >&6
5041 else
5042 echo "$as_me:$LINENO: result: no" >&5
5043echo "${ECHO_T}no" >&6
5044 fi
5045
5046
eaff0f0d 5047 enablestring=
36b6448c
VZ
5048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5049echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 5050 no_cache=0
36b6448c
VZ
5051 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5052if test "${enable_catch_segvs+set}" = set; then
5053 enableval="$enable_catch_segvs"
eaff0f0d
VZ
5054
5055 if test "$enableval" = yes; then
36b6448c 5056 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 5057 else
36b6448c 5058 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
5059 fi
5060
5061else
5062
36b6448c 5063 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
5064 if test "x$LINE" != x ; then
5065 eval "DEFAULT_$LINE"
5066 else
5067 no_cache=1
5068 fi
5069
36b6448c 5070 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
5071
5072fi;
5073
36b6448c 5074 eval "$ac_cv_use_catch_segvs"
eaff0f0d 5075 if test "$no_cache" != 1; then
36b6448c 5076 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
5077 fi
5078
36b6448c 5079 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
5080 echo "$as_me:$LINENO: result: yes" >&5
5081echo "${ECHO_T}yes" >&6
5082 else
5083 echo "$as_me:$LINENO: result: no" >&5
5084echo "${ECHO_T}no" >&6
5085 fi
5086
5087
a848cd7e
SC
5088 enablestring=
5089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5090echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5091 no_cache=0
5092 # Check whether --enable-cmdline or --disable-cmdline was given.
5093if test "${enable_cmdline+set}" = set; then
5094 enableval="$enable_cmdline"
5095
5096 if test "$enableval" = yes; then
5097 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5098 else
5099 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5100 fi
5101
5102else
5103
5104 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5105 if test "x$LINE" != x ; then
5106 eval "DEFAULT_$LINE"
5107 else
5108 no_cache=1
5109 fi
5110
5111 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5112
5113fi;
5114
5115 eval "$ac_cv_use_cmdline"
5116 if test "$no_cache" != 1; then
5117 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5118 fi
5119
5120 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5121 echo "$as_me:$LINENO: result: yes" >&5
5122echo "${ECHO_T}yes" >&6
5123 else
5124 echo "$as_me:$LINENO: result: no" >&5
5125echo "${ECHO_T}no" >&6
5126 fi
5127
5128
5129 enablestring=
5130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5131echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5132 no_cache=0
5133 # Check whether --enable-datetime or --disable-datetime was given.
5134if test "${enable_datetime+set}" = set; then
5135 enableval="$enable_datetime"
5136
5137 if test "$enableval" = yes; then
5138 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5139 else
5140 ac_cv_use_datetime='wxUSE_DATETIME=no'
5141 fi
5142
5143else
5144
5145 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5146 if test "x$LINE" != x ; then
5147 eval "DEFAULT_$LINE"
5148 else
5149 no_cache=1
5150 fi
5151
5152 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5153
5154fi;
5155
5156 eval "$ac_cv_use_datetime"
5157 if test "$no_cache" != 1; then
5158 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5159 fi
5160
5161 if test "$wxUSE_DATETIME" = yes; then
5162 echo "$as_me:$LINENO: result: yes" >&5
5163echo "${ECHO_T}yes" >&6
5164 else
5165 echo "$as_me:$LINENO: result: no" >&5
5166echo "${ECHO_T}no" >&6
5167 fi
5168
5169
36b6448c
VZ
5170 enablestring=
5171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5172echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5173 no_cache=0
5174 # Check whether --enable-debugreport or --disable-debugreport was given.
5175if test "${enable_debugreport+set}" = set; then
5176 enableval="$enable_debugreport"
5177
5178 if test "$enableval" = yes; then
5179 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5180 else
5181 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5182 fi
5183
5184else
5185
5186 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5187 if test "x$LINE" != x ; then
5188 eval "DEFAULT_$LINE"
5189 else
5190 no_cache=1
5191 fi
5192
5193 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5194
5195fi;
5196
5197 eval "$ac_cv_use_debugreport"
5198 if test "$no_cache" != 1; then
5199 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5200 fi
5201
5202 if test "$wxUSE_DEBUGREPORT" = yes; then
5203 echo "$as_me:$LINENO: result: yes" >&5
5204echo "${ECHO_T}yes" >&6
5205 else
5206 echo "$as_me:$LINENO: result: no" >&5
5207echo "${ECHO_T}no" >&6
5208 fi
5209
5210
a848cd7e
SC
5211 enablestring=
5212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5213echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5214 no_cache=0
5215 # Check whether --enable-dialupman or --disable-dialupman was given.
5216if test "${enable_dialupman+set}" = set; then
5217 enableval="$enable_dialupman"
5218
5219 if test "$enableval" = yes; then
5220 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5221 else
5222 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5223 fi
5224
5225else
5226
5227 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5228 if test "x$LINE" != x ; then
5229 eval "DEFAULT_$LINE"
5230 else
5231 no_cache=1
5232 fi
5233
5234 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5235
5236fi;
5237
5238 eval "$ac_cv_use_dialupman"
5239 if test "$no_cache" != 1; then
5240 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5241 fi
5242
5243 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5244 echo "$as_me:$LINENO: result: yes" >&5
5245echo "${ECHO_T}yes" >&6
5246 else
5247 echo "$as_me:$LINENO: result: no" >&5
5248echo "${ECHO_T}no" >&6
5249 fi
5250
5251
5252 enablestring=
5253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5254echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5255 no_cache=0
5256 # Check whether --enable-dynlib or --disable-dynlib was given.
5257if test "${enable_dynlib+set}" = set; then
5258 enableval="$enable_dynlib"
5259
5260 if test "$enableval" = yes; then
5261 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5262 else
5263 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5264 fi
5265
5266else
5267
5268 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5269 if test "x$LINE" != x ; then
5270 eval "DEFAULT_$LINE"
5271 else
5272 no_cache=1
5273 fi
5274
5275 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5276
5277fi;
5278
5279 eval "$ac_cv_use_dynlib"
5280 if test "$no_cache" != 1; then
5281 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5282 fi
5283
5284 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5285 echo "$as_me:$LINENO: result: yes" >&5
5286echo "${ECHO_T}yes" >&6
5287 else
5288 echo "$as_me:$LINENO: result: no" >&5
5289echo "${ECHO_T}no" >&6
5290 fi
5291
5292
5293 enablestring=
5294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5295echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5296 no_cache=0
5297 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5298if test "${enable_dynamicloader+set}" = set; then
5299 enableval="$enable_dynamicloader"
5300
5301 if test "$enableval" = yes; then
5302 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5303 else
5304 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5305 fi
5306
5307else
5308
5309 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5310 if test "x$LINE" != x ; then
5311 eval "DEFAULT_$LINE"
5312 else
5313 no_cache=1
5314 fi
5315
5316 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5317
5318fi;
5319
5320 eval "$ac_cv_use_dynamicloader"
5321 if test "$no_cache" != 1; then
5322 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5323 fi
5324
5325 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5326 echo "$as_me:$LINENO: result: yes" >&5
5327echo "${ECHO_T}yes" >&6
5328 else
5329 echo "$as_me:$LINENO: result: no" >&5
5330echo "${ECHO_T}no" >&6
5331 fi
5332
5333
5334 enablestring=
5335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5336echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5337 no_cache=0
5338 # Check whether --enable-exceptions or --disable-exceptions was given.
5339if test "${enable_exceptions+set}" = set; then
5340 enableval="$enable_exceptions"
5341
5342 if test "$enableval" = yes; then
5343 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5344 else
5345 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5346 fi
5347
5348else
5349
5350 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5351 if test "x$LINE" != x ; then
5352 eval "DEFAULT_$LINE"
5353 else
5354 no_cache=1
5355 fi
5356
5357 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5358
5359fi;
5360
5361 eval "$ac_cv_use_exceptions"
5362 if test "$no_cache" != 1; then
5363 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5364 fi
5365
5366 if test "$wxUSE_EXCEPTIONS" = yes; then
5367 echo "$as_me:$LINENO: result: yes" >&5
5368echo "${ECHO_T}yes" >&6
5369 else
5370 echo "$as_me:$LINENO: result: no" >&5
5371echo "${ECHO_T}no" >&6
5372 fi
5373
5374
5375 enablestring=
5376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5377echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5378 no_cache=0
5379 # Check whether --enable-ffile or --disable-ffile was given.
5380if test "${enable_ffile+set}" = set; then
5381 enableval="$enable_ffile"
5382
5383 if test "$enableval" = yes; then
5384 ac_cv_use_ffile='wxUSE_FFILE=yes'
5385 else
5386 ac_cv_use_ffile='wxUSE_FFILE=no'
5387 fi
5388
5389else
5390
5391 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5392 if test "x$LINE" != x ; then
5393 eval "DEFAULT_$LINE"
5394 else
5395 no_cache=1
5396 fi
5397
5398 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5399
5400fi;
5401
5402 eval "$ac_cv_use_ffile"
5403 if test "$no_cache" != 1; then
5404 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5405 fi
5406
5407 if test "$wxUSE_FFILE" = yes; then
5408 echo "$as_me:$LINENO: result: yes" >&5
5409echo "${ECHO_T}yes" >&6
5410 else
5411 echo "$as_me:$LINENO: result: no" >&5
5412echo "${ECHO_T}no" >&6
5413 fi
5414
5415
5416 enablestring=
5417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5418echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5419 no_cache=0
5420 # Check whether --enable-file or --disable-file was given.
5421if test "${enable_file+set}" = set; then
5422 enableval="$enable_file"
5423
5424 if test "$enableval" = yes; then
5425 ac_cv_use_file='wxUSE_FILE=yes'
5426 else
5427 ac_cv_use_file='wxUSE_FILE=no'
5428 fi
5429
5430else
5431
5432 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5433 if test "x$LINE" != x ; then
5434 eval "DEFAULT_$LINE"
5435 else
5436 no_cache=1
5437 fi
5438
5439 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5440
5441fi;
5442
5443 eval "$ac_cv_use_file"
5444 if test "$no_cache" != 1; then
5445 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5446 fi
5447
5448 if test "$wxUSE_FILE" = yes; then
5449 echo "$as_me:$LINENO: result: yes" >&5
5450echo "${ECHO_T}yes" >&6
5451 else
5452 echo "$as_me:$LINENO: result: no" >&5
5453echo "${ECHO_T}no" >&6
5454 fi
5455
5456
5457 enablestring=
5458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5459echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5460 no_cache=0
5461 # Check whether --enable-filesystem or --disable-filesystem was given.
5462if test "${enable_filesystem+set}" = set; then
5463 enableval="$enable_filesystem"
5464
5465 if test "$enableval" = yes; then
5466 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5467 else
5468 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5469 fi
5470
5471else
5472
5473 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5474 if test "x$LINE" != x ; then
5475 eval "DEFAULT_$LINE"
5476 else
5477 no_cache=1
5478 fi
5479
5480 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5481
5482fi;
5483
5484 eval "$ac_cv_use_filesystem"
5485 if test "$no_cache" != 1; then
5486 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5487 fi
5488
5489 if test "$wxUSE_FILESYSTEM" = yes; then
5490 echo "$as_me:$LINENO: result: yes" >&5
5491echo "${ECHO_T}yes" >&6
5492 else
5493 echo "$as_me:$LINENO: result: no" >&5
5494echo "${ECHO_T}no" >&6
5495 fi
5496
5497
5498 enablestring=
5499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5500echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5501 no_cache=0
5502 # Check whether --enable-fontmap or --disable-fontmap was given.
5503if test "${enable_fontmap+set}" = set; then
5504 enableval="$enable_fontmap"
5505
5506 if test "$enableval" = yes; then
5507 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5508 else
5509 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5510 fi
5511
5512else
5513
5514 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5515 if test "x$LINE" != x ; then
5516 eval "DEFAULT_$LINE"
5517 else
5518 no_cache=1
5519 fi
5520
5521 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5522
5523fi;
5524
5525 eval "$ac_cv_use_fontmap"
5526 if test "$no_cache" != 1; then
5527 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5528 fi
5529
5530 if test "$wxUSE_FONTMAP" = yes; then
5531 echo "$as_me:$LINENO: result: yes" >&5
5532echo "${ECHO_T}yes" >&6
5533 else
5534 echo "$as_me:$LINENO: result: no" >&5
5535echo "${ECHO_T}no" >&6
5536 fi
5537
5538
5539 enablestring=
5540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5541echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5542 no_cache=0
5543 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5544if test "${enable_fs_inet+set}" = set; then
5545 enableval="$enable_fs_inet"
5546
5547 if test "$enableval" = yes; then
5548 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5549 else
5550 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5551 fi
5552
5553else
5554
5555 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5556 if test "x$LINE" != x ; then
5557 eval "DEFAULT_$LINE"
5558 else
5559 no_cache=1
5560 fi
5561
5562 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5563
5564fi;
5565
5566 eval "$ac_cv_use_fs_inet"
5567 if test "$no_cache" != 1; then
5568 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5569 fi
5570
5571 if test "$wxUSE_FS_INET" = yes; then
5572 echo "$as_me:$LINENO: result: yes" >&5
5573echo "${ECHO_T}yes" >&6
5574 else
5575 echo "$as_me:$LINENO: result: no" >&5
5576echo "${ECHO_T}no" >&6
5577 fi
5578
5579
5580 enablestring=
5581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5582echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5583 no_cache=0
5584 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5585if test "${enable_fs_zip+set}" = set; then
5586 enableval="$enable_fs_zip"
5587
5588 if test "$enableval" = yes; then
5589 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5590 else
5591 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5592 fi
5593
5594else
5595
5596 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5597 if test "x$LINE" != x ; then
5598 eval "DEFAULT_$LINE"
5599 else
5600 no_cache=1
5601 fi
5602
5603 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5604
5605fi;
5606
5607 eval "$ac_cv_use_fs_zip"
5608 if test "$no_cache" != 1; then
5609 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5610 fi
5611
5612 if test "$wxUSE_FS_ZIP" = yes; then
5613 echo "$as_me:$LINENO: result: yes" >&5
5614echo "${ECHO_T}yes" >&6
5615 else
5616 echo "$as_me:$LINENO: result: no" >&5
5617echo "${ECHO_T}no" >&6
5618 fi
5619
5620
5621 enablestring=
5622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5623echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5624 no_cache=0
5625 # Check whether --enable-geometry or --disable-geometry was given.
5626if test "${enable_geometry+set}" = set; then
5627 enableval="$enable_geometry"
5628
5629 if test "$enableval" = yes; then
5630 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5631 else
5632 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5633 fi
5634
5635else
5636
5637 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5638 if test "x$LINE" != x ; then
5639 eval "DEFAULT_$LINE"
5640 else
5641 no_cache=1
5642 fi
5643
5644 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5645
5646fi;
5647
5648 eval "$ac_cv_use_geometry"
5649 if test "$no_cache" != 1; then
5650 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5651 fi
5652
5653 if test "$wxUSE_GEOMETRY" = yes; then
5654 echo "$as_me:$LINENO: result: yes" >&5
5655echo "${ECHO_T}yes" >&6
5656 else
5657 echo "$as_me:$LINENO: result: no" >&5
5658echo "${ECHO_T}no" >&6
5659 fi
5660
5661
5662 enablestring=
5663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5664echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5665 no_cache=0
5666 # Check whether --enable-log or --disable-log was given.
5667if test "${enable_log+set}" = set; then
5668 enableval="$enable_log"
5669
5670 if test "$enableval" = yes; then
5671 ac_cv_use_log='wxUSE_LOG=yes'
5672 else
5673 ac_cv_use_log='wxUSE_LOG=no'
5674 fi
5675
5676else
5677
5678 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5679 if test "x$LINE" != x ; then
5680 eval "DEFAULT_$LINE"
5681 else
5682 no_cache=1
5683 fi
5684
5685 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5686
5687fi;
5688
5689 eval "$ac_cv_use_log"
5690 if test "$no_cache" != 1; then
5691 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5692 fi
5693
5694 if test "$wxUSE_LOG" = yes; then
5695 echo "$as_me:$LINENO: result: yes" >&5
5696echo "${ECHO_T}yes" >&6
5697 else
5698 echo "$as_me:$LINENO: result: no" >&5
5699echo "${ECHO_T}no" >&6
5700 fi
5701
5702
5703 enablestring=
5704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5705echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5706 no_cache=0
5707 # Check whether --enable-longlong or --disable-longlong was given.
5708if test "${enable_longlong+set}" = set; then
5709 enableval="$enable_longlong"
5710
5711 if test "$enableval" = yes; then
5712 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5713 else
5714 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5715 fi
5716
5717else
5718
5719 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5720 if test "x$LINE" != x ; then
5721 eval "DEFAULT_$LINE"
5722 else
5723 no_cache=1
5724 fi
5725
5726 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5727
5728fi;
5729
5730 eval "$ac_cv_use_longlong"
5731 if test "$no_cache" != 1; then
5732 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5733 fi
5734
5735 if test "$wxUSE_LONGLONG" = yes; then
5736 echo "$as_me:$LINENO: result: yes" >&5
5737echo "${ECHO_T}yes" >&6
5738 else
5739 echo "$as_me:$LINENO: result: no" >&5
5740echo "${ECHO_T}no" >&6
5741 fi
5742
5743
5744 enablestring=
5745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5746echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5747 no_cache=0
5748 # Check whether --enable-mimetype or --disable-mimetype was given.
5749if test "${enable_mimetype+set}" = set; then
5750 enableval="$enable_mimetype"
5751
5752 if test "$enableval" = yes; then
5753 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5754 else
5755 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5756 fi
5757
5758else
5759
5760 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5761 if test "x$LINE" != x ; then
5762 eval "DEFAULT_$LINE"
5763 else
5764 no_cache=1
5765 fi
5766
5767 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5768
5769fi;
5770
5771 eval "$ac_cv_use_mimetype"
5772 if test "$no_cache" != 1; then
5773 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5774 fi
5775
5776 if test "$wxUSE_MIMETYPE" = yes; then
5777 echo "$as_me:$LINENO: result: yes" >&5
5778echo "${ECHO_T}yes" >&6
5779 else
5780 echo "$as_me:$LINENO: result: no" >&5
5781echo "${ECHO_T}no" >&6
5782 fi
5783
5784
5785 enablestring=
5786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5787echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5788 no_cache=0
5789 # Check whether --enable-mslu or --disable-mslu was given.
5790if test "${enable_mslu+set}" = set; then
5791 enableval="$enable_mslu"
5792
5793 if test "$enableval" = yes; then
5794 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5795 else
5796 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5797 fi
5798
5799else
5800
5801 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5802 if test "x$LINE" != x ; then
5803 eval "DEFAULT_$LINE"
5804 else
5805 no_cache=1
5806 fi
5807
5808 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5809
5810fi;
5811
5812 eval "$ac_cv_use_mslu"
5813 if test "$no_cache" != 1; then
5814 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5815 fi
5816
5817 if test "$wxUSE_UNICODE_MSLU" = yes; then
5818 echo "$as_me:$LINENO: result: yes" >&5
5819echo "${ECHO_T}yes" >&6
5820 else
5821 echo "$as_me:$LINENO: result: no" >&5
5822echo "${ECHO_T}no" >&6
5823 fi
5824
5825
5826 enablestring=
5827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5828echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5829 no_cache=0
5830 # Check whether --enable-snglinst or --disable-snglinst was given.
5831if test "${enable_snglinst+set}" = set; then
5832 enableval="$enable_snglinst"
5833
5834 if test "$enableval" = yes; then
5835 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5836 else
5837 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5838 fi
5839
5840else
5841
5842 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5843 if test "x$LINE" != x ; then
5844 eval "DEFAULT_$LINE"
5845 else
5846 no_cache=1
5847 fi
5848
5849 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5850
5851fi;
5852
5853 eval "$ac_cv_use_snglinst"
5854 if test "$no_cache" != 1; then
5855 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5856 fi
5857
5858 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5859 echo "$as_me:$LINENO: result: yes" >&5
5860echo "${ECHO_T}yes" >&6
5861 else
5862 echo "$as_me:$LINENO: result: no" >&5
5863echo "${ECHO_T}no" >&6
5864 fi
5865
5866
5867 enablestring=
07158944
VZ
5868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5869echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5870 no_cache=0
07158944
VZ
5871 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5872if test "${enable_std_iostreams+set}" = set; then
5873 enableval="$enable_std_iostreams"
a848cd7e
SC
5874
5875 if test "$enableval" = yes; then
07158944 5876 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5877 else
07158944 5878 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5879 fi
5880
5881else
5882
07158944 5883 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5884 if test "x$LINE" != x ; then
5885 eval "DEFAULT_$LINE"
5886 else
5887 no_cache=1
5888 fi
5889
07158944 5890 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5891
5892fi;
5893
07158944 5894 eval "$ac_cv_use_std_iostreams"
a848cd7e 5895 if test "$no_cache" != 1; then
07158944 5896 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5897 fi
5898
07158944 5899 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5900 echo "$as_me:$LINENO: result: yes" >&5
5901echo "${ECHO_T}yes" >&6
5902 else
5903 echo "$as_me:$LINENO: result: no" >&5
5904echo "${ECHO_T}no" >&6
5905 fi
5906
5907
59746b65
MW
5908 enablestring=
5909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5910echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5911 no_cache=0
5912 # Check whether --enable-std_string or --disable-std_string was given.
5913if test "${enable_std_string+set}" = set; then
5914 enableval="$enable_std_string"
5915
5916 if test "$enableval" = yes; then
5917 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5918 else
5919 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5920 fi
5921
5922else
5923
5924 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5925 if test "x$LINE" != x ; then
5926 eval "DEFAULT_$LINE"
5927 else
5928 no_cache=1
5929 fi
5930
5931 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5932
5933fi;
5934
5935 eval "$ac_cv_use_std_string"
5936 if test "$no_cache" != 1; then
5937 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5938 fi
5939
5940 if test "$wxUSE_STD_STRING" = yes; then
5941 echo "$as_me:$LINENO: result: yes" >&5
5942echo "${ECHO_T}yes" >&6
5943 else
5944 echo "$as_me:$LINENO: result: no" >&5
5945echo "${ECHO_T}no" >&6
5946 fi
5947
5948
a848cd7e 5949 enablestring=
07158944
VZ
5950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5951echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5952 no_cache=0
07158944
VZ
5953 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5954if test "${enable_stdpaths+set}" = set; then
5955 enableval="$enable_stdpaths"
a848cd7e
SC
5956
5957 if test "$enableval" = yes; then
07158944 5958 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5959 else
07158944 5960 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5961 fi
5962
5963else
5964
07158944 5965 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5966 if test "x$LINE" != x ; then
5967 eval "DEFAULT_$LINE"
5968 else
5969 no_cache=1
5970 fi
5971
07158944 5972 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5973
5974fi;
5975
07158944 5976 eval "$ac_cv_use_stdpaths"
a848cd7e 5977 if test "$no_cache" != 1; then
07158944 5978 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5979 fi
5980
07158944 5981 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5982 echo "$as_me:$LINENO: result: yes" >&5
5983echo "${ECHO_T}yes" >&6
5984 else
5985 echo "$as_me:$LINENO: result: no" >&5
5986echo "${ECHO_T}no" >&6
5987 fi
5988
5989
5990 enablestring=
5991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5992echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5993 no_cache=0
5994 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5995if test "${enable_stopwatch+set}" = set; then
5996 enableval="$enable_stopwatch"
5997
5998 if test "$enableval" = yes; then
5999 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6000 else
6001 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6002 fi
6003
6004else
6005
6006 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6007 if test "x$LINE" != x ; then
6008 eval "DEFAULT_$LINE"
6009 else
6010 no_cache=1
6011 fi
6012
6013 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6014
6015fi;
6016
6017 eval "$ac_cv_use_stopwatch"
6018 if test "$no_cache" != 1; then
6019 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6020 fi
6021
6022 if test "$wxUSE_STOPWATCH" = yes; then
6023 echo "$as_me:$LINENO: result: yes" >&5
6024echo "${ECHO_T}yes" >&6
6025 else
6026 echo "$as_me:$LINENO: result: no" >&5
6027echo "${ECHO_T}no" >&6
6028 fi
6029
6030
07158944
VZ
6031 enablestring=
6032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6033echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6034 no_cache=0
6035 # Check whether --enable-streams or --disable-streams was given.
6036if test "${enable_streams+set}" = set; then
6037 enableval="$enable_streams"
6038
6039 if test "$enableval" = yes; then
6040 ac_cv_use_streams='wxUSE_STREAMS=yes'
6041 else
6042 ac_cv_use_streams='wxUSE_STREAMS=no'
6043 fi
6044
6045else
6046
6047 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6048 if test "x$LINE" != x ; then
6049 eval "DEFAULT_$LINE"
6050 else
6051 no_cache=1
6052 fi
6053
6054 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6055
6056fi;
6057
6058 eval "$ac_cv_use_streams"
6059 if test "$no_cache" != 1; then
6060 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6061 fi
6062
6063 if test "$wxUSE_STREAMS" = yes; then
6064 echo "$as_me:$LINENO: result: yes" >&5
6065echo "${ECHO_T}yes" >&6
6066 else
6067 echo "$as_me:$LINENO: result: no" >&5
6068echo "${ECHO_T}no" >&6
6069 fi
6070
6071
a848cd7e
SC
6072 enablestring=
6073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6074echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6075 no_cache=0
6076 # Check whether --enable-system_options or --disable-system_options was given.
6077if test "${enable_system_options+set}" = set; then
6078 enableval="$enable_system_options"
6079
6080 if test "$enableval" = yes; then
6081 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6082 else
6083 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6084 fi
6085
6086else
6087
6088 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6089 if test "x$LINE" != x ; then
6090 eval "DEFAULT_$LINE"
6091 else
6092 no_cache=1
6093 fi
6094
6095 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6096
6097fi;
6098
6099 eval "$ac_cv_use_system_options"
6100 if test "$no_cache" != 1; then
6101 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6102 fi
6103
6104 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6105 echo "$as_me:$LINENO: result: yes" >&5
6106echo "${ECHO_T}yes" >&6
6107 else
6108 echo "$as_me:$LINENO: result: no" >&5
6109echo "${ECHO_T}no" >&6
6110 fi
6111
6112
6113 enablestring=
6114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6115echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6116 no_cache=0
6117 # Check whether --enable-textbuf or --disable-textbuf was given.
6118if test "${enable_textbuf+set}" = set; then
6119 enableval="$enable_textbuf"
6120
6121 if test "$enableval" = yes; then
6122 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6123 else
6124 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6125 fi
6126
6127else
6128
6129 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6130 if test "x$LINE" != x ; then
6131 eval "DEFAULT_$LINE"
6132 else
6133 no_cache=1
6134 fi
6135
6136 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6137
6138fi;
6139
6140 eval "$ac_cv_use_textbuf"
6141 if test "$no_cache" != 1; then
6142 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6143 fi
6144
6145 if test "$wxUSE_TEXTBUFFER" = yes; then
6146 echo "$as_me:$LINENO: result: yes" >&5
6147echo "${ECHO_T}yes" >&6
6148 else
6149 echo "$as_me:$LINENO: result: no" >&5
6150echo "${ECHO_T}no" >&6
6151 fi
6152
6153
6154 enablestring=
6155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6156echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6157 no_cache=0
6158 # Check whether --enable-textfile or --disable-textfile was given.
6159if test "${enable_textfile+set}" = set; then
6160 enableval="$enable_textfile"
6161
6162 if test "$enableval" = yes; then
6163 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6164 else
6165 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6166 fi
6167
6168else
6169
6170 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6171 if test "x$LINE" != x ; then
6172 eval "DEFAULT_$LINE"
6173 else
6174 no_cache=1
6175 fi
6176
6177 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6178
6179fi;
6180
6181 eval "$ac_cv_use_textfile"
6182 if test "$no_cache" != 1; then
6183 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6184 fi
6185
6186 if test "$wxUSE_TEXTFILE" = yes; then
6187 echo "$as_me:$LINENO: result: yes" >&5
6188echo "${ECHO_T}yes" >&6
6189 else
6190 echo "$as_me:$LINENO: result: no" >&5
6191echo "${ECHO_T}no" >&6
6192 fi
6193
6194
6195 enablestring=
6196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6197echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6198 no_cache=0
6199 # Check whether --enable-timer or --disable-timer was given.
6200if test "${enable_timer+set}" = set; then
6201 enableval="$enable_timer"
6202
6203 if test "$enableval" = yes; then
6204 ac_cv_use_timer='wxUSE_TIMER=yes'
6205 else
6206 ac_cv_use_timer='wxUSE_TIMER=no'
6207 fi
6208
6209else
6210
6211 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6212 if test "x$LINE" != x ; then
6213 eval "DEFAULT_$LINE"
6214 else
6215 no_cache=1
6216 fi
6217
6218 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6219
6220fi;
6221
6222 eval "$ac_cv_use_timer"
6223 if test "$no_cache" != 1; then
6224 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6225 fi
6226
6227 if test "$wxUSE_TIMER" = yes; then
6228 echo "$as_me:$LINENO: result: yes" >&5
6229echo "${ECHO_T}yes" >&6
6230 else
6231 echo "$as_me:$LINENO: result: no" >&5
6232echo "${ECHO_T}no" >&6
6233 fi
6234
6235
6236 enablestring=
6237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6238echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6239 no_cache=0
6240 # Check whether --enable-unicode or --disable-unicode was given.
6241if test "${enable_unicode+set}" = set; then
6242 enableval="$enable_unicode"
6243
6244 if test "$enableval" = yes; then
6245 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6246 else
6247 ac_cv_use_unicode='wxUSE_UNICODE=no'
6248 fi
6249
6250else
6251
6252 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6253 if test "x$LINE" != x ; then
6254 eval "DEFAULT_$LINE"
6255 else
6256 no_cache=1
6257 fi
6258
6259 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6260
6261fi;
6262
6263 eval "$ac_cv_use_unicode"
6264 if test "$no_cache" != 1; then
6265 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6266 fi
6267
6268 if test "$wxUSE_UNICODE" = yes; then
6269 echo "$as_me:$LINENO: result: yes" >&5
6270echo "${ECHO_T}yes" >&6
6271 else
6272 echo "$as_me:$LINENO: result: no" >&5
6273echo "${ECHO_T}no" >&6
6274 fi
6275
6276
6277 enablestring=
6278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6279echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6280 no_cache=0
6281 # Check whether --enable-sound or --disable-sound was given.
6282if test "${enable_sound+set}" = set; then
6283 enableval="$enable_sound"
6284
6285 if test "$enableval" = yes; then
6286 ac_cv_use_sound='wxUSE_SOUND=yes'
6287 else
6288 ac_cv_use_sound='wxUSE_SOUND=no'
6289 fi
6290
6291else
6292
6293 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6294 if test "x$LINE" != x ; then
6295 eval "DEFAULT_$LINE"
6296 else
6297 no_cache=1
6298 fi
6299
6300 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6301
6302fi;
6303
6304 eval "$ac_cv_use_sound"
6305 if test "$no_cache" != 1; then
6306 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6307 fi
6308
6309 if test "$wxUSE_SOUND" = yes; then
6310 echo "$as_me:$LINENO: result: yes" >&5
6311echo "${ECHO_T}yes" >&6
6312 else
6313 echo "$as_me:$LINENO: result: no" >&5
6314echo "${ECHO_T}no" >&6
6315 fi
6316
6317
3b57de8b
RL
6318 enablestring=
6319 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6320echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6321 no_cache=0
6322 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6323if test "${enable_mediactrl+set}" = set; then
6324 enableval="$enable_mediactrl"
6325
6326 if test "$enableval" = yes; then
6327 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6328 else
6329 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6330 fi
6331
6332else
6333
6334 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6335 if test "x$LINE" != x ; then
6336 eval "DEFAULT_$LINE"
6337 else
6338 no_cache=1
6339 fi
6340
6341 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6342
6343fi;
6344
6345 eval "$ac_cv_use_mediactrl"
6346 if test "$no_cache" != 1; then
6347 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6348 fi
6349
6350 if test "$wxUSE_MEDIACTRL" = yes; then
6351 echo "$as_me:$LINENO: result: yes" >&5
6352echo "${ECHO_T}yes" >&6
6353 else
6354 echo "$as_me:$LINENO: result: no" >&5
6355echo "${ECHO_T}no" >&6
6356 fi
6357
6358
f10e38c4
VZ
6359 enablestring=
6360 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6361echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6362 no_cache=0
6363 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6364if test "${enable_gstreamer8+set}" = set; then
6365 enableval="$enable_gstreamer8"
6366
6367 if test "$enableval" = yes; then
6368 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6369 else
6370 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6371 fi
6372
6373else
6374
6375 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6376 if test "x$LINE" != x ; then
6377 eval "DEFAULT_$LINE"
6378 else
6379 no_cache=1
6380 fi
6381
6382 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6383
6384fi;
6385
6386 eval "$ac_cv_use_gstreamer8"
6387 if test "$no_cache" != 1; then
6388 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6389 fi
6390
6391 if test "$wxUSE_GSTREAMER8" = yes; then
6392 echo "$as_me:$LINENO: result: yes" >&5
6393echo "${ECHO_T}yes" >&6
6394 else
6395 echo "$as_me:$LINENO: result: no" >&5
6396echo "${ECHO_T}no" >&6
6397 fi
6398
6399
a848cd7e 6400 enablestring=
8b6682b9
JS
6401 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6402echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
a848cd7e 6403 no_cache=0
8b6682b9
JS
6404 # Check whether --enable-printfposparam or --disable-printfposparam was given.
6405if test "${enable_printfposparam+set}" = set; then
6406 enableval="$enable_printfposparam"
a848cd7e
SC
6407
6408 if test "$enableval" = yes; then
8b6682b9 6409 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 6410 else
8b6682b9 6411 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e
SC
6412 fi
6413
6414else
6415
8b6682b9 6416 LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
a848cd7e
SC
6417 if test "x$LINE" != x ; then
6418 eval "DEFAULT_$LINE"
6419 else
6420 no_cache=1
6421 fi
6422
8b6682b9 6423 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
a848cd7e
SC
6424
6425fi;
6426
8b6682b9 6427 eval "$ac_cv_use_printfposparam"
a848cd7e 6428 if test "$no_cache" != 1; then
8b6682b9 6429 echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6430 fi
6431
8b6682b9 6432 if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
a848cd7e
SC
6433 echo "$as_me:$LINENO: result: yes" >&5
6434echo "${ECHO_T}yes" >&6
6435 else
6436 echo "$as_me:$LINENO: result: no" >&5
6437echo "${ECHO_T}no" >&6
6438 fi
6439
6440
6441 enablestring=
6442 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6443echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6444 no_cache=0
6445 # Check whether --enable-zipstream or --disable-zipstream was given.
6446if test "${enable_zipstream+set}" = set; then
6447 enableval="$enable_zipstream"
6448
6449 if test "$enableval" = yes; then
6450 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6451 else
6452 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6453 fi
6454
6455else
6456
6457 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6458 if test "x$LINE" != x ; then
6459 eval "DEFAULT_$LINE"
6460 else
6461 no_cache=1
6462 fi
6463
6464 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6465
6466fi;
6467
6468 eval "$ac_cv_use_zipstream"
6469 if test "$no_cache" != 1; then
6470 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6471 fi
6472
6473 if test "$wxUSE_ZIPSTREAM" = yes; then
6474 echo "$as_me:$LINENO: result: yes" >&5
6475echo "${ECHO_T}yes" >&6
6476 else
6477 echo "$as_me:$LINENO: result: no" >&5
6478echo "${ECHO_T}no" >&6
6479 fi
6480
6481
a848cd7e
SC
6482
6483 enablestring=
6484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6485echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6486 no_cache=0
6487 # Check whether --enable-url or --disable-url was given.
6488if test "${enable_url+set}" = set; then
6489 enableval="$enable_url"
6490
6491 if test "$enableval" = yes; then
6492 ac_cv_use_url='wxUSE_URL=yes'
6493 else
6494 ac_cv_use_url='wxUSE_URL=no'
6495 fi
6496
6497else
6498
6499 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6500 if test "x$LINE" != x ; then
6501 eval "DEFAULT_$LINE"
6502 else
6503 no_cache=1
6504 fi
6505
6506 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6507
6508fi;
6509
6510 eval "$ac_cv_use_url"
6511 if test "$no_cache" != 1; then
6512 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6513 fi
6514
6515 if test "$wxUSE_URL" = yes; then
6516 echo "$as_me:$LINENO: result: yes" >&5
6517echo "${ECHO_T}yes" >&6
6518 else
6519 echo "$as_me:$LINENO: result: no" >&5
6520echo "${ECHO_T}no" >&6
6521 fi
6522
6523
6524 enablestring=
6525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6526echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6527 no_cache=0
6528 # Check whether --enable-protocol or --disable-protocol was given.
6529if test "${enable_protocol+set}" = set; then
6530 enableval="$enable_protocol"
6531
6532 if test "$enableval" = yes; then
6533 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6534 else
6535 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6536 fi
6537
6538else
6539
6540 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6541 if test "x$LINE" != x ; then
6542 eval "DEFAULT_$LINE"
6543 else
6544 no_cache=1
6545 fi
6546
6547 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6548
6549fi;
6550
6551 eval "$ac_cv_use_protocol"
6552 if test "$no_cache" != 1; then
6553 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6554 fi
6555
6556 if test "$wxUSE_PROTOCOL" = yes; then
6557 echo "$as_me:$LINENO: result: yes" >&5
6558echo "${ECHO_T}yes" >&6
6559 else
6560 echo "$as_me:$LINENO: result: no" >&5
6561echo "${ECHO_T}no" >&6
6562 fi
6563
6564
6565 enablestring=
6566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6567echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6568 no_cache=0
6569 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6570if test "${enable_protocol_http+set}" = set; then
6571 enableval="$enable_protocol_http"
6572
6573 if test "$enableval" = yes; then
6574 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6575 else
6576 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6577 fi
6578
6579else
6580
6581 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6582 if test "x$LINE" != x ; then
6583 eval "DEFAULT_$LINE"
6584 else
6585 no_cache=1
6586 fi
6587
6588 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6589
6590fi;
6591
6592 eval "$ac_cv_use_protocol_http"
6593 if test "$no_cache" != 1; then
6594 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6595 fi
6596
6597 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6598 echo "$as_me:$LINENO: result: yes" >&5
6599echo "${ECHO_T}yes" >&6
6600 else
6601 echo "$as_me:$LINENO: result: no" >&5
6602echo "${ECHO_T}no" >&6
6603 fi
6604
6605
6606 enablestring=
6607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6608echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6609 no_cache=0
6610 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6611if test "${enable_protocol_ftp+set}" = set; then
6612 enableval="$enable_protocol_ftp"
6613
6614 if test "$enableval" = yes; then
6615 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6616 else
6617 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6618 fi
6619
6620else
6621
6622 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6623 if test "x$LINE" != x ; then
6624 eval "DEFAULT_$LINE"
6625 else
6626 no_cache=1
6627 fi
6628
6629 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6630
6631fi;
6632
6633 eval "$ac_cv_use_protocol_ftp"
6634 if test "$no_cache" != 1; then
6635 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6636 fi
6637
6638 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6639 echo "$as_me:$LINENO: result: yes" >&5
6640echo "${ECHO_T}yes" >&6
6641 else
6642 echo "$as_me:$LINENO: result: no" >&5
6643echo "${ECHO_T}no" >&6
6644 fi
6645
6646
6647 enablestring=
6648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6649echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6650 no_cache=0
6651 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6652if test "${enable_protocol_file+set}" = set; then
6653 enableval="$enable_protocol_file"
6654
6655 if test "$enableval" = yes; then
6656 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6657 else
6658 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6659 fi
6660
6661else
6662
6663 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6664 if test "x$LINE" != x ; then
6665 eval "DEFAULT_$LINE"
6666 else
6667 no_cache=1
6668 fi
6669
6670 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6671
6672fi;
6673
6674 eval "$ac_cv_use_protocol_file"
6675 if test "$no_cache" != 1; then
6676 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6677 fi
6678
6679 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6680 echo "$as_me:$LINENO: result: yes" >&5
6681echo "${ECHO_T}yes" >&6
6682 else
6683 echo "$as_me:$LINENO: result: no" >&5
6684echo "${ECHO_T}no" >&6
6685 fi
6686
6687
6688
6689
6690
6691 enablestring=
6692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6693echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6694 no_cache=0
6695 # Check whether --enable-threads or --disable-threads was given.
6696if test "${enable_threads+set}" = set; then
6697 enableval="$enable_threads"
6698
6699 if test "$enableval" = yes; then
6700 ac_cv_use_threads='wxUSE_THREADS=yes'
6701 else
6702 ac_cv_use_threads='wxUSE_THREADS=no'
6703 fi
6704
6705else
6706
6707 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6708 if test "x$LINE" != x ; then
6709 eval "DEFAULT_$LINE"
6710 else
6711 no_cache=1
6712 fi
6713
6714 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6715
6716fi;
6717
6718 eval "$ac_cv_use_threads"
6719 if test "$no_cache" != 1; then
6720 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6721 fi
6722
6723 if test "$wxUSE_THREADS" = yes; then
6724 echo "$as_me:$LINENO: result: yes" >&5
6725echo "${ECHO_T}yes" >&6
6726 else
6727 echo "$as_me:$LINENO: result: no" >&5
6728echo "${ECHO_T}no" >&6
6729 fi
6730
6731
6732if test "$wxUSE_GUI" = "yes"; then
6733
6734
6735
6736 enablestring=
6737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6738echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6739 no_cache=0
6740 # Check whether --enable-docview or --disable-docview was given.
6741if test "${enable_docview+set}" = set; then
6742 enableval="$enable_docview"
6743
6744 if test "$enableval" = yes; then
6745 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6746 else
6747 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6748 fi
6749
6750else
6751
6752 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6753 if test "x$LINE" != x ; then
6754 eval "DEFAULT_$LINE"
6755 else
6756 no_cache=1
6757 fi
6758
6759 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6760
6761fi;
6762
6763 eval "$ac_cv_use_docview"
6764 if test "$no_cache" != 1; then
6765 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6766 fi
6767
6768 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6769 echo "$as_me:$LINENO: result: yes" >&5
6770echo "${ECHO_T}yes" >&6
6771 else
6772 echo "$as_me:$LINENO: result: no" >&5
6773echo "${ECHO_T}no" >&6
6774 fi
6775
6776
6777 enablestring=
6778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6779echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6780 no_cache=0
6781 # Check whether --enable-help or --disable-help was given.
6782if test "${enable_help+set}" = set; then
6783 enableval="$enable_help"
6784
6785 if test "$enableval" = yes; then
6786 ac_cv_use_help='wxUSE_HELP=yes'
6787 else
6788 ac_cv_use_help='wxUSE_HELP=no'
6789 fi
6790
6791else
6792
6793 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6794 if test "x$LINE" != x ; then
6795 eval "DEFAULT_$LINE"
6796 else
6797 no_cache=1
6798 fi
6799
6800 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6801
6802fi;
6803
6804 eval "$ac_cv_use_help"
6805 if test "$no_cache" != 1; then
6806 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6807 fi
6808
6809 if test "$wxUSE_HELP" = yes; then
6810 echo "$as_me:$LINENO: result: yes" >&5
6811echo "${ECHO_T}yes" >&6
6812 else
6813 echo "$as_me:$LINENO: result: no" >&5
6814echo "${ECHO_T}no" >&6
6815 fi
6816
6817
6818 enablestring=
6819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6820echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6821 no_cache=0
6822 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6823if test "${enable_mshtmlhelp+set}" = set; then
6824 enableval="$enable_mshtmlhelp"
6825
6826 if test "$enableval" = yes; then
6827 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6828 else
6829 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6830 fi
6831
6832else
6833
6834 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6835 if test "x$LINE" != x ; then
6836 eval "DEFAULT_$LINE"
6837 else
6838 no_cache=1
6839 fi
6840
6841 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6842
6843fi;
6844
6845 eval "$ac_cv_use_mshtmlhelp"
6846 if test "$no_cache" != 1; then
6847 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6848 fi
6849
6850 if test "$wxUSE_MS_HTML_HELP" = yes; then
6851 echo "$as_me:$LINENO: result: yes" >&5
6852echo "${ECHO_T}yes" >&6
6853 else
6854 echo "$as_me:$LINENO: result: no" >&5
6855echo "${ECHO_T}no" >&6
6856 fi
6857
6858
6859 enablestring=
6860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6861echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6862 no_cache=0
6863 # Check whether --enable-html or --disable-html was given.
6864if test "${enable_html+set}" = set; then
6865 enableval="$enable_html"
6866
6867 if test "$enableval" = yes; then
6868 ac_cv_use_html='wxUSE_HTML=yes'
6869 else
6870 ac_cv_use_html='wxUSE_HTML=no'
6871 fi
6872
6873else
6874
6875 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6876 if test "x$LINE" != x ; then
6877 eval "DEFAULT_$LINE"
6878 else
6879 no_cache=1
6880 fi
6881
6882 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6883
6884fi;
6885
6886 eval "$ac_cv_use_html"
6887 if test "$no_cache" != 1; then
6888 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6889 fi
6890
6891 if test "$wxUSE_HTML" = yes; then
6892 echo "$as_me:$LINENO: result: yes" >&5
6893echo "${ECHO_T}yes" >&6
6894 else
6895 echo "$as_me:$LINENO: result: no" >&5
6896echo "${ECHO_T}no" >&6
6897 fi
6898
6899
6900 enablestring=
6901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6902echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6903 no_cache=0
6904 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6905if test "${enable_htmlhelp+set}" = set; then
6906 enableval="$enable_htmlhelp"
6907
6908 if test "$enableval" = yes; then
6909 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6910 else
6911 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6912 fi
6913
6914else
6915
6916 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6917 if test "x$LINE" != x ; then
6918 eval "DEFAULT_$LINE"
6919 else
6920 no_cache=1
6921 fi
6922
6923 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6924
6925fi;
6926
6927 eval "$ac_cv_use_htmlhelp"
6928 if test "$no_cache" != 1; then
6929 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6930 fi
6931
6932 if test "$wxUSE_WXHTML_HELP" = yes; then
6933 echo "$as_me:$LINENO: result: yes" >&5
6934echo "${ECHO_T}yes" >&6
6935 else
6936 echo "$as_me:$LINENO: result: no" >&5
6937echo "${ECHO_T}no" >&6
6938 fi
6939
6940
9a8f0513
VS
6941 enablestring=
6942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6943echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6944 no_cache=0
6945 # Check whether --enable-xrc or --disable-xrc was given.
6946if test "${enable_xrc+set}" = set; then
6947 enableval="$enable_xrc"
6948
6949 if test "$enableval" = yes; then
6950 ac_cv_use_xrc='wxUSE_XRC=yes'
6951 else
6952 ac_cv_use_xrc='wxUSE_XRC=no'
6953 fi
6954
6955else
6956
6957 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6958 if test "x$LINE" != x ; then
6959 eval "DEFAULT_$LINE"
6960 else
6961 no_cache=1
6962 fi
6963
6964 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6965
6966fi;
6967
6968 eval "$ac_cv_use_xrc"
6969 if test "$no_cache" != 1; then
6970 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6971 fi
6972
6973 if test "$wxUSE_XRC" = yes; then
6974 echo "$as_me:$LINENO: result: yes" >&5
6975echo "${ECHO_T}yes" >&6
6976 else
6977 echo "$as_me:$LINENO: result: no" >&5
6978echo "${ECHO_T}no" >&6
6979 fi
6980
6981
3f60522a
JS
6982 enablestring=
6983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
6984echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
6985 no_cache=0
6986 # Check whether --enable-aui or --disable-aui was given.
6987if test "${enable_aui+set}" = set; then
6988 enableval="$enable_aui"
6989
6990 if test "$enableval" = yes; then
6991 ac_cv_use_aui='wxUSE_AUI=yes'
6992 else
6993 ac_cv_use_aui='wxUSE_AUI=no'
6994 fi
6995
6996else
6997
6998 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
6999 if test "x$LINE" != x ; then
7000 eval "DEFAULT_$LINE"
7001 else
7002 no_cache=1
7003 fi
7004
7005 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7006
7007fi;
7008
7009 eval "$ac_cv_use_aui"
7010 if test "$no_cache" != 1; then
7011 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7012 fi
7013
7014 if test "$wxUSE_AUI" = yes; then
7015 echo "$as_me:$LINENO: result: yes" >&5
7016echo "${ECHO_T}yes" >&6
7017 else
7018 echo "$as_me:$LINENO: result: no" >&5
7019echo "${ECHO_T}no" >&6
7020 fi
7021
7022
a848cd7e
SC
7023 enablestring=
7024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7025echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7026 no_cache=0
7027 # Check whether --enable-constraints or --disable-constraints was given.
7028if test "${enable_constraints+set}" = set; then
7029 enableval="$enable_constraints"
7030
7031 if test "$enableval" = yes; then
7032 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7033 else
7034 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7035 fi
7036
7037else
7038
7039 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7040 if test "x$LINE" != x ; then
7041 eval "DEFAULT_$LINE"
7042 else
7043 no_cache=1
7044 fi
7045
7046 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7047
7048fi;
7049
7050 eval "$ac_cv_use_constraints"
7051 if test "$no_cache" != 1; then
7052 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7053 fi
7054
7055 if test "$wxUSE_CONSTRAINTS" = yes; then
7056 echo "$as_me:$LINENO: result: yes" >&5
7057echo "${ECHO_T}yes" >&6
7058 else
7059 echo "$as_me:$LINENO: result: no" >&5
7060echo "${ECHO_T}no" >&6
7061 fi
7062
7063
7064 enablestring=
7065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7066echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7067 no_cache=0
7068 # Check whether --enable-printarch or --disable-printarch was given.
7069if test "${enable_printarch+set}" = set; then
7070 enableval="$enable_printarch"
7071
7072 if test "$enableval" = yes; then
7073 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7074 else
7075 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7076 fi
7077
7078else
7079
7080 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7081 if test "x$LINE" != x ; then
7082 eval "DEFAULT_$LINE"
7083 else
7084 no_cache=1
7085 fi
7086
7087 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7088
7089fi;
7090
7091 eval "$ac_cv_use_printarch"
7092 if test "$no_cache" != 1; then
7093 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7094 fi
7095
7096 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7097 echo "$as_me:$LINENO: result: yes" >&5
7098echo "${ECHO_T}yes" >&6
7099 else
7100 echo "$as_me:$LINENO: result: no" >&5
7101echo "${ECHO_T}no" >&6
7102 fi
7103
7104
7105 enablestring=
7106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7107echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7108 no_cache=0
7109 # Check whether --enable-mdi or --disable-mdi was given.
7110if test "${enable_mdi+set}" = set; then
7111 enableval="$enable_mdi"
7112
7113 if test "$enableval" = yes; then
8a7b1113 7114 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7115 else
8a7b1113 7116 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7117 fi
7118
7119else
7120
8a7b1113 7121 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7122 if test "x$LINE" != x ; then
7123 eval "DEFAULT_$LINE"
7124 else
7125 no_cache=1
7126 fi
7127
8a7b1113 7128 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7129
7130fi;
7131
7132 eval "$ac_cv_use_mdi"
7133 if test "$no_cache" != 1; then
7134 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7135 fi
7136
8a7b1113
VZ
7137 if test "$wxUSE_MDI" = yes; then
7138 echo "$as_me:$LINENO: result: yes" >&5
7139echo "${ECHO_T}yes" >&6
7140 else
7141 echo "$as_me:$LINENO: result: no" >&5
7142echo "${ECHO_T}no" >&6
7143 fi
7144
7145
7146 enablestring=
7147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7148echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7149 no_cache=0
7150 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7151if test "${enable_mdidoc+set}" = set; then
7152 enableval="$enable_mdidoc"
7153
7154 if test "$enableval" = yes; then
7155 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7156 else
7157 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7158 fi
7159
7160else
7161
7162 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7163 if test "x$LINE" != x ; then
7164 eval "DEFAULT_$LINE"
7165 else
7166 no_cache=1
7167 fi
7168
7169 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7170
7171fi;
7172
7173 eval "$ac_cv_use_mdidoc"
7174 if test "$no_cache" != 1; then
7175 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7176 fi
7177
a848cd7e
SC
7178 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7179 echo "$as_me:$LINENO: result: yes" >&5
7180echo "${ECHO_T}yes" >&6
7181 else
7182 echo "$as_me:$LINENO: result: no" >&5
7183echo "${ECHO_T}no" >&6
7184 fi
7185
7186
7187 enablestring=
7188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7189echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7190 no_cache=0
7191 # Check whether --enable-loggui or --disable-loggui was given.
7192if test "${enable_loggui+set}" = set; then
7193 enableval="$enable_loggui"
7194
7195 if test "$enableval" = yes; then
7196 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7197 else
7198 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7199 fi
7200
7201else
7202
7203 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7204 if test "x$LINE" != x ; then
7205 eval "DEFAULT_$LINE"
7206 else
7207 no_cache=1
7208 fi
7209
7210 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7211
7212fi;
7213
7214 eval "$ac_cv_use_loggui"
7215 if test "$no_cache" != 1; then
7216 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7217 fi
7218
7219 if test "$wxUSE_LOGGUI" = yes; then
7220 echo "$as_me:$LINENO: result: yes" >&5
7221echo "${ECHO_T}yes" >&6
7222 else
7223 echo "$as_me:$LINENO: result: no" >&5
7224echo "${ECHO_T}no" >&6
7225 fi
7226
7227
7228 enablestring=
7229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7230echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7231 no_cache=0
7232 # Check whether --enable-logwin or --disable-logwin was given.
7233if test "${enable_logwin+set}" = set; then
7234 enableval="$enable_logwin"
7235
7236 if test "$enableval" = yes; then
7237 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7238 else
7239 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7240 fi
7241
7242else
7243
7244 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7245 if test "x$LINE" != x ; then
7246 eval "DEFAULT_$LINE"
7247 else
7248 no_cache=1
7249 fi
7250
7251 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7252
7253fi;
7254
7255 eval "$ac_cv_use_logwin"
7256 if test "$no_cache" != 1; then
7257 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7258 fi
7259
7260 if test "$wxUSE_LOGWINDOW" = yes; then
7261 echo "$as_me:$LINENO: result: yes" >&5
7262echo "${ECHO_T}yes" >&6
7263 else
7264 echo "$as_me:$LINENO: result: no" >&5
7265echo "${ECHO_T}no" >&6
7266 fi
7267
7268
7269 enablestring=
7270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7271echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7272 no_cache=0
7273 # Check whether --enable-logdialog or --disable-logdialog was given.
7274if test "${enable_logdialog+set}" = set; then
7275 enableval="$enable_logdialog"
7276
7277 if test "$enableval" = yes; then
7278 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7279 else
7280 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7281 fi
7282
7283else
7284
7285 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7286 if test "x$LINE" != x ; then
7287 eval "DEFAULT_$LINE"
7288 else
7289 no_cache=1
7290 fi
7291
7292 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7293
7294fi;
7295
7296 eval "$ac_cv_use_logdialog"
7297 if test "$no_cache" != 1; then
7298 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7299 fi
7300
7301 if test "$wxUSE_LOGDIALOG" = yes; then
7302 echo "$as_me:$LINENO: result: yes" >&5
7303echo "${ECHO_T}yes" >&6
7304 else
7305 echo "$as_me:$LINENO: result: no" >&5
7306echo "${ECHO_T}no" >&6
7307 fi
7308
7309
646b6ec1
VS
7310 enablestring=
7311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7312echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7313 no_cache=0
7314 # Check whether --enable-webkit or --disable-webkit was given.
7315if test "${enable_webkit+set}" = set; then
7316 enableval="$enable_webkit"
7317
7318 if test "$enableval" = yes; then
7319 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7320 else
7321 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7322 fi
7323
7324else
7325
7326 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7327 if test "x$LINE" != x ; then
7328 eval "DEFAULT_$LINE"
7329 else
7330 no_cache=1
7331 fi
7332
7333 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7334
7335fi;
7336
7337 eval "$ac_cv_use_webkit"
7338 if test "$no_cache" != 1; then
7339 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7340 fi
7341
7342 if test "$wxUSE_WEBKIT" = yes; then
7343 echo "$as_me:$LINENO: result: yes" >&5
7344echo "${ECHO_T}yes" >&6
7345 else
7346 echo "$as_me:$LINENO: result: no" >&5
7347echo "${ECHO_T}no" >&6
7348 fi
7349
7350
91dea314
MW
7351 enablestring=
7352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7353echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7354 no_cache=0
7355 # Check whether --enable-html or --disable-html was given.
7356if test "${enable_html+set}" = set; then
7357 enableval="$enable_html"
7358
7359 if test "$enableval" = yes; then
7360 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7361 else
7362 ac_cv_use_html='wxUSE_RICHTEXT=no'
7363 fi
7364
7365else
7366
7367 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7368 if test "x$LINE" != x ; then
7369 eval "DEFAULT_$LINE"
7370 else
7371 no_cache=1
7372 fi
7373
7374 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7375
7376fi;
7377
7378 eval "$ac_cv_use_html"
7379 if test "$no_cache" != 1; then
7380 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7381 fi
7382
7383 if test "$wxUSE_RICHTEXT" = yes; then
7384 echo "$as_me:$LINENO: result: yes" >&5
7385echo "${ECHO_T}yes" >&6
7386 else
7387 echo "$as_me:$LINENO: result: no" >&5
7388echo "${ECHO_T}no" >&6
7389 fi
7390
7391
a848cd7e
SC
7392
7393 enablestring=
7394 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7395echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7396 no_cache=0
7397 # Check whether --enable-postscript or --disable-postscript was given.
7398if test "${enable_postscript+set}" = set; then
7399 enableval="$enable_postscript"
7400
7401 if test "$enableval" = yes; then
7402 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7403 else
7404 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7405 fi
7406
7407else
7408
7409 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7410 if test "x$LINE" != x ; then
7411 eval "DEFAULT_$LINE"
7412 else
7413 no_cache=1
7414 fi
7415
7416 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7417
7418fi;
7419
7420 eval "$ac_cv_use_postscript"
7421 if test "$no_cache" != 1; then
7422 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7423 fi
7424
7425 if test "$wxUSE_POSTSCRIPT" = yes; then
7426 echo "$as_me:$LINENO: result: yes" >&5
7427echo "${ECHO_T}yes" >&6
7428 else
7429 echo "$as_me:$LINENO: result: no" >&5
7430echo "${ECHO_T}no" >&6
7431 fi
7432
7433
7434
7435
7436
7437 enablestring=
7438 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7439echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7440 no_cache=0
7441 # Check whether --enable-prologio or --disable-prologio was given.
7442if test "${enable_prologio+set}" = set; then
7443 enableval="$enable_prologio"
7444
7445 if test "$enableval" = yes; then
7446 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7447 else
7448 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7449 fi
7450
7451else
7452
7453 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7454 if test "x$LINE" != x ; then
7455 eval "DEFAULT_$LINE"
7456 else
7457 no_cache=1
7458 fi
7459
7460 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7461
7462fi;
7463
7464 eval "$ac_cv_use_prologio"
7465 if test "$no_cache" != 1; then
7466 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7467 fi
7468
7469 if test "$wxUSE_PROLOGIO" = yes; then
7470 echo "$as_me:$LINENO: result: yes" >&5
7471echo "${ECHO_T}yes" >&6
7472 else
7473 echo "$as_me:$LINENO: result: no" >&5
7474echo "${ECHO_T}no" >&6
7475 fi
7476
7477
7478 enablestring=
7479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7480echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7481 no_cache=0
7482 # Check whether --enable-resources or --disable-resources was given.
7483if test "${enable_resources+set}" = set; then
7484 enableval="$enable_resources"
7485
7486 if test "$enableval" = yes; then
7487 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7488 else
7489 ac_cv_use_resources='wxUSE_RESOURCES=no'
7490 fi
7491
7492else
7493
7494 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7495 if test "x$LINE" != x ; then
7496 eval "DEFAULT_$LINE"
7497 else
7498 no_cache=1
7499 fi
7500
7501 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7502
7503fi;
7504
7505 eval "$ac_cv_use_resources"
7506 if test "$no_cache" != 1; then
7507 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7508 fi
7509
7510 if test "$wxUSE_RESOURCES" = yes; then
7511 echo "$as_me:$LINENO: result: yes" >&5
7512echo "${ECHO_T}yes" >&6
7513 else
7514 echo "$as_me:$LINENO: result: no" >&5
7515echo "${ECHO_T}no" >&6
7516 fi
7517
7518
7519
7520
7521 enablestring=
7522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7523echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7524 no_cache=0
7525 # Check whether --enable-clipboard or --disable-clipboard was given.
7526if test "${enable_clipboard+set}" = set; then
7527 enableval="$enable_clipboard"
7528
7529 if test "$enableval" = yes; then
7530 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7531 else
7532 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7533 fi
7534
7535else
7536
7537 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7538 if test "x$LINE" != x ; then
7539 eval "DEFAULT_$LINE"
7540 else
7541 no_cache=1
7542 fi
7543
7544 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7545
7546fi;
7547
7548 eval "$ac_cv_use_clipboard"
7549 if test "$no_cache" != 1; then
7550 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7551 fi
7552
7553 if test "$wxUSE_CLIPBOARD" = yes; then
7554 echo "$as_me:$LINENO: result: yes" >&5
7555echo "${ECHO_T}yes" >&6
7556 else
7557 echo "$as_me:$LINENO: result: no" >&5
7558echo "${ECHO_T}no" >&6
7559 fi
7560
7561
7562 enablestring=
7563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7564echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7565 no_cache=0
7566 # Check whether --enable-dnd or --disable-dnd was given.
7567if test "${enable_dnd+set}" = set; then
7568 enableval="$enable_dnd"
7569
7570 if test "$enableval" = yes; then
7571 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7572 else
7573 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7574 fi
7575
7576else
7577
7578 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7579 if test "x$LINE" != x ; then
7580 eval "DEFAULT_$LINE"
7581 else
7582 no_cache=1
7583 fi
7584
7585 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7586
7587fi;
7588
7589 eval "$ac_cv_use_dnd"
7590 if test "$no_cache" != 1; then
7591 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7592 fi
7593
7594 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7595 echo "$as_me:$LINENO: result: yes" >&5
7596echo "${ECHO_T}yes" >&6
7597 else
7598 echo "$as_me:$LINENO: result: no" >&5
7599echo "${ECHO_T}no" >&6
7600 fi
7601
7602
7603 enablestring=
7604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7605echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7606 no_cache=0
7607 # Check whether --enable-metafile or --disable-metafile was given.
7608if test "${enable_metafile+set}" = set; then
7609 enableval="$enable_metafile"
7610
7611 if test "$enableval" = yes; then
7612 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7613 else
7614 ac_cv_use_metafile='wxUSE_METAFILE=no'
7615 fi
7616
7617else
7618
7619 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7620 if test "x$LINE" != x ; then
7621 eval "DEFAULT_$LINE"
7622 else
7623 no_cache=1
7624 fi
7625
7626 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7627
7628fi;
7629
7630 eval "$ac_cv_use_metafile"
7631 if test "$no_cache" != 1; then
7632 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7633 fi
7634
7635 if test "$wxUSE_METAFILE" = yes; then
7636 echo "$as_me:$LINENO: result: yes" >&5
7637echo "${ECHO_T}yes" >&6
7638 else
7639 echo "$as_me:$LINENO: result: no" >&5
7640echo "${ECHO_T}no" >&6
7641 fi
7642
7643
7644
7645
7646
7647 enablestring=
7648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7649echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7650 no_cache=0
7651 # Check whether --enable-controls or --disable-controls was given.
7652if test "${enable_controls+set}" = set; then
7653 enableval="$enable_controls"
7654
7655 if test "$enableval" = yes; then
7656 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7657 else
7658 ac_cv_use_controls='wxUSE_CONTROLS=no'
7659 fi
7660
7661else
7662
7663 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7664 if test "x$LINE" != x ; then
7665 eval "DEFAULT_$LINE"
7666 else
7667 no_cache=1
7668 fi
7669
7670 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7671
7672fi;
7673
7674 eval "$ac_cv_use_controls"
7675 if test "$no_cache" != 1; then
7676 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7677 fi
7678
7679 if test "$wxUSE_CONTROLS" = yes; then
7680 echo "$as_me:$LINENO: result: yes" >&5
7681echo "${ECHO_T}yes" >&6
7682 else
7683 echo "$as_me:$LINENO: result: no" >&5
7684echo "${ECHO_T}no" >&6
7685 fi
7686
7687
7688if test "$wxUSE_CONTROLS" = "yes"; then
7689 DEFAULT_wxUSE_ACCEL=yes
7690 DEFAULT_wxUSE_BMPBUTTON=yes
7691 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7692 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7693 DEFAULT_wxUSE_CARET=yes
7694 DEFAULT_wxUSE_COMBOBOX=yes
7695 DEFAULT_wxUSE_CHECKBOX=yes
7696 DEFAULT_wxUSE_CHECKLISTBOX=yes
7697 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7698 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684
VZ
7699 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7700 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7701 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684
VZ
7702 DEFAULT_wxUSE_DISPLAY=yes
7703 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7704 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7705 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7706 DEFAULT_wxUSE_GAUGE=yes
7707 DEFAULT_wxUSE_GRID=yes
6954625c 7708 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7709 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7710 DEFAULT_wxUSE_IMAGLIST=yes
7711 DEFAULT_wxUSE_LISTBOOK=yes
7712 DEFAULT_wxUSE_LISTBOX=yes
7713 DEFAULT_wxUSE_LISTCTRL=yes
7714 DEFAULT_wxUSE_NOTEBOOK=yes
7715 DEFAULT_wxUSE_RADIOBOX=yes
7716 DEFAULT_wxUSE_RADIOBTN=yes
7717 DEFAULT_wxUSE_SASH=yes
7718 DEFAULT_wxUSE_SCROLLBAR=yes
7719 DEFAULT_wxUSE_SLIDER=yes
7720 DEFAULT_wxUSE_SPINBTN=yes
7721 DEFAULT_wxUSE_SPINCTRL=yes
7722 DEFAULT_wxUSE_SPLITTER=yes
7723 DEFAULT_wxUSE_STATBMP=yes
7724 DEFAULT_wxUSE_STATBOX=yes
7725 DEFAULT_wxUSE_STATLINE=yes
7726 DEFAULT_wxUSE_STATUSBAR=yes
7727 DEFAULT_wxUSE_TAB_DIALOG=yes
7728 DEFAULT_wxUSE_TOGGLEBTN=yes
7729 DEFAULT_wxUSE_TOOLBAR=yes
7730 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7731 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7732 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7733 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7734 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7735 DEFAULT_wxUSE_TREECTRL=yes
7736 DEFAULT_wxUSE_POPUPWIN=yes
7737 DEFAULT_wxUSE_TIPWINDOW=yes
7738elif test "$wxUSE_CONTROLS" = "no"; then
7739 DEFAULT_wxUSE_ACCEL=no
7740 DEFAULT_wxUSE_BMPBUTTON=no
7741 DEFAULT_wxUSE_BUTTON=no
7742 DEFAULT_wxUSE_CALCTRL=no
7743 DEFAULT_wxUSE_CARET=no
7744 DEFAULT_wxUSE_COMBOBOX=no
7745 DEFAULT_wxUSE_CHECKBOX=no
7746 DEFAULT_wxUSE_CHECKLISTBOX=no
7747 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7748 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
7749 DEFAULT_wxUSE_COLOURPICKERCTRL=no
7750 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 7751 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684
VZ
7752 DEFAULT_wxUSE_DISPLAY=no
7753 DEFAULT_wxUSE_DIRPICKERCTRL=no
7754 DEFAULT_wxUSE_FILEPICKERCTRL=no
7755 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
7756 DEFAULT_wxUSE_GAUGE=no
7757 DEFAULT_wxUSE_GRID=no
6954625c 7758 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7759 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7760 DEFAULT_wxUSE_IMAGLIST=no
7761 DEFAULT_wxUSE_LISTBOOK=no
7762 DEFAULT_wxUSE_LISTBOX=no
7763 DEFAULT_wxUSE_LISTCTRL=no
7764 DEFAULT_wxUSE_NOTEBOOK=no
7765 DEFAULT_wxUSE_RADIOBOX=no
7766 DEFAULT_wxUSE_RADIOBTN=no
7767 DEFAULT_wxUSE_SASH=no
7768 DEFAULT_wxUSE_SCROLLBAR=no
7769 DEFAULT_wxUSE_SLIDER=no
7770 DEFAULT_wxUSE_SPINBTN=no
7771 DEFAULT_wxUSE_SPINCTRL=no
7772 DEFAULT_wxUSE_SPLITTER=no
7773 DEFAULT_wxUSE_STATBMP=no
7774 DEFAULT_wxUSE_STATBOX=no
7775 DEFAULT_wxUSE_STATLINE=no
7776 DEFAULT_wxUSE_STATUSBAR=no
7777 DEFAULT_wxUSE_TAB_DIALOG=no
7778 DEFAULT_wxUSE_TOGGLEBTN=no
7779 DEFAULT_wxUSE_TOOLBAR=no
7780 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7781 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7782 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7783 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7784 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7785 DEFAULT_wxUSE_TREECTRL=no
7786 DEFAULT_wxUSE_POPUPWIN=no
7787 DEFAULT_wxUSE_TIPWINDOW=no
7788fi
7789
a848cd7e
SC
7790
7791 enablestring=
7792 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7793echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7794 no_cache=0
7795 # Check whether --enable-accel or --disable-accel was given.
7796if test "${enable_accel+set}" = set; then
7797 enableval="$enable_accel"
7798
7799 if test "$enableval" = yes; then
7800 ac_cv_use_accel='wxUSE_ACCEL=yes'
7801 else
7802 ac_cv_use_accel='wxUSE_ACCEL=no'
7803 fi
7804
7805else
7806
7807 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7808 if test "x$LINE" != x ; then
7809 eval "DEFAULT_$LINE"
7810 else
7811 no_cache=1
7812 fi
7813
7814 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7815
7816fi;
7817
7818 eval "$ac_cv_use_accel"
7819 if test "$no_cache" != 1; then
7820 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7821 fi
7822
7823 if test "$wxUSE_ACCEL" = yes; then
7824 echo "$as_me:$LINENO: result: yes" >&5
7825echo "${ECHO_T}yes" >&6
7826 else
7827 echo "$as_me:$LINENO: result: no" >&5
7828echo "${ECHO_T}no" >&6
7829 fi
7830
7831
7832 enablestring=
7833 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7834echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7835 no_cache=0
7836 # Check whether --enable-button or --disable-button was given.
7837if test "${enable_button+set}" = set; then
7838 enableval="$enable_button"
7839
7840 if test "$enableval" = yes; then
7841 ac_cv_use_button='wxUSE_BUTTON=yes'
7842 else
7843 ac_cv_use_button='wxUSE_BUTTON=no'
7844 fi
7845
7846else
7847
7848 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7849 if test "x$LINE" != x ; then
7850 eval "DEFAULT_$LINE"
7851 else
7852 no_cache=1
7853 fi
7854
7855 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7856
7857fi;
7858
7859 eval "$ac_cv_use_button"
7860 if test "$no_cache" != 1; then
7861 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7862 fi
7863
7864 if test "$wxUSE_BUTTON" = yes; then
7865 echo "$as_me:$LINENO: result: yes" >&5
7866echo "${ECHO_T}yes" >&6
7867 else
7868 echo "$as_me:$LINENO: result: no" >&5
7869echo "${ECHO_T}no" >&6
7870 fi
7871
7872
7873 enablestring=
7874 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7875echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7876 no_cache=0
7877 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7878if test "${enable_bmpbutton+set}" = set; then
7879 enableval="$enable_bmpbutton"
7880
7881 if test "$enableval" = yes; then
7882 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7883 else
7884 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7885 fi
7886
7887else
7888
7889 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7890 if test "x$LINE" != x ; then
7891 eval "DEFAULT_$LINE"
7892 else
7893 no_cache=1
7894 fi
7895
7896 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7897
7898fi;
7899
7900 eval "$ac_cv_use_bmpbutton"
7901 if test "$no_cache" != 1; then
7902 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7903 fi
7904
7905 if test "$wxUSE_BMPBUTTON" = yes; then
7906 echo "$as_me:$LINENO: result: yes" >&5
7907echo "${ECHO_T}yes" >&6
7908 else
7909 echo "$as_me:$LINENO: result: no" >&5
7910echo "${ECHO_T}no" >&6
7911 fi
7912
7913
7914 enablestring=
7915 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7916echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7917 no_cache=0
7918 # Check whether --enable-calendar or --disable-calendar was given.
7919if test "${enable_calendar+set}" = set; then
7920 enableval="$enable_calendar"
7921
7922 if test "$enableval" = yes; then
7923 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7924 else
7925 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7926 fi
7927
7928else
7929
7930 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7931 if test "x$LINE" != x ; then
7932 eval "DEFAULT_$LINE"
7933 else
7934 no_cache=1
7935 fi
7936
7937 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7938
7939fi;
7940
7941 eval "$ac_cv_use_calendar"
7942 if test "$no_cache" != 1; then
7943 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7944 fi
7945
7946 if test "$wxUSE_CALCTRL" = yes; then
7947 echo "$as_me:$LINENO: result: yes" >&5
7948echo "${ECHO_T}yes" >&6
7949 else
7950 echo "$as_me:$LINENO: result: no" >&5
7951echo "${ECHO_T}no" >&6
7952 fi
7953
7954
7955 enablestring=
7956 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7957echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7958 no_cache=0
7959 # Check whether --enable-caret or --disable-caret was given.
7960if test "${enable_caret+set}" = set; then
7961 enableval="$enable_caret"
7962
7963 if test "$enableval" = yes; then
7964 ac_cv_use_caret='wxUSE_CARET=yes'
7965 else
7966 ac_cv_use_caret='wxUSE_CARET=no'
7967 fi
7968
7969else
7970
7971 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7972 if test "x$LINE" != x ; then
7973 eval "DEFAULT_$LINE"
7974 else
7975 no_cache=1
7976 fi
7977
7978 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7979
7980fi;
7981
7982 eval "$ac_cv_use_caret"
7983 if test "$no_cache" != 1; then
7984 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7985 fi
7986
7987 if test "$wxUSE_CARET" = yes; then
7988 echo "$as_me:$LINENO: result: yes" >&5
7989echo "${ECHO_T}yes" >&6
7990 else
7991 echo "$as_me:$LINENO: result: no" >&5
7992echo "${ECHO_T}no" >&6
7993 fi
7994
7995
7996 enablestring=
7997 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7998echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7999 no_cache=0
8000 # Check whether --enable-checkbox or --disable-checkbox was given.
8001if test "${enable_checkbox+set}" = set; then
8002 enableval="$enable_checkbox"
8003
8004 if test "$enableval" = yes; then
8005 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8006 else
8007 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8008 fi
8009
8010else
8011
8012 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8013 if test "x$LINE" != x ; then
8014 eval "DEFAULT_$LINE"
8015 else
8016 no_cache=1
8017 fi
8018
8019 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8020
8021fi;
8022
8023 eval "$ac_cv_use_checkbox"
8024 if test "$no_cache" != 1; then
8025 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8026 fi
8027
8028 if test "$wxUSE_CHECKBOX" = yes; then
8029 echo "$as_me:$LINENO: result: yes" >&5
8030echo "${ECHO_T}yes" >&6
8031 else
8032 echo "$as_me:$LINENO: result: no" >&5
8033echo "${ECHO_T}no" >&6
8034 fi
8035
8036
8037 enablestring=
8038 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8039echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8040 no_cache=0
8041 # Check whether --enable-checklst or --disable-checklst was given.
8042if test "${enable_checklst+set}" = set; then
8043 enableval="$enable_checklst"
8044
8045 if test "$enableval" = yes; then
8046 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8047 else
8048 ac_cv_use_checklst='wxUSE_CHECKLST=no'
8049 fi
8050
8051else
8052
8053 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8054 if test "x$LINE" != x ; then
8055 eval "DEFAULT_$LINE"
8056 else
8057 no_cache=1
8058 fi
8059
8060 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8061
8062fi;
8063
8064 eval "$ac_cv_use_checklst"
8065 if test "$no_cache" != 1; then
8066 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8067 fi
8068
8069 if test "$wxUSE_CHECKLST" = yes; then
8070 echo "$as_me:$LINENO: result: yes" >&5
8071echo "${ECHO_T}yes" >&6
8072 else
8073 echo "$as_me:$LINENO: result: no" >&5
8074echo "${ECHO_T}no" >&6
8075 fi
8076
8077
8078 enablestring=
8079 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8080echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8081 no_cache=0
8082 # Check whether --enable-choice or --disable-choice was given.
8083if test "${enable_choice+set}" = set; then
8084 enableval="$enable_choice"
8085
8086 if test "$enableval" = yes; then
8087 ac_cv_use_choice='wxUSE_CHOICE=yes'
8088 else
8089 ac_cv_use_choice='wxUSE_CHOICE=no'
8090 fi
8091
8092else
8093
8094 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8095 if test "x$LINE" != x ; then
8096 eval "DEFAULT_$LINE"
8097 else
8098 no_cache=1
8099 fi
8100
8101 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8102
8103fi;
8104
8105 eval "$ac_cv_use_choice"
8106 if test "$no_cache" != 1; then
8107 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8108 fi
8109
8110 if test "$wxUSE_CHOICE" = yes; then
8111 echo "$as_me:$LINENO: result: yes" >&5
8112echo "${ECHO_T}yes" >&6
8113 else
8114 echo "$as_me:$LINENO: result: no" >&5
8115echo "${ECHO_T}no" >&6
8116 fi
8117
8118
92bbdbcd
WS
8119 enablestring=
8120 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8121echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8122 no_cache=0
8123 # Check whether --enable-choicebook or --disable-choicebook was given.
8124if test "${enable_choicebook+set}" = set; then
8125 enableval="$enable_choicebook"
8126
8127 if test "$enableval" = yes; then
8128 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8129 else
8130 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8131 fi
8132
8133else
8134
8135 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8136 if test "x$LINE" != x ; then
8137 eval "DEFAULT_$LINE"
8138 else
8139 no_cache=1
8140 fi
8141
8142 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8143
8144fi;
8145
8146 eval "$ac_cv_use_choicebook"
8147 if test "$no_cache" != 1; then
8148 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8149 fi
8150
8151 if test "$wxUSE_CHOICEBOOK" = yes; then
8152 echo "$as_me:$LINENO: result: yes" >&5
8153echo "${ECHO_T}yes" >&6
8154 else
8155 echo "$as_me:$LINENO: result: no" >&5
8156echo "${ECHO_T}no" >&6
8157 fi
8158
8159
e9263684
VZ
8160 enablestring=
8161 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8162echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8163 no_cache=0
8164 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8165if test "${enable_colourpicker+set}" = set; then
8166 enableval="$enable_colourpicker"
8167
8168 if test "$enableval" = yes; then
8169 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8170 else
8171 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8172 fi
8173
8174else
8175
8176 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8177 if test "x$LINE" != x ; then
8178 eval "DEFAULT_$LINE"
8179 else
8180 no_cache=1
8181 fi
8182
8183 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8184
8185fi;
8186
8187 eval "$ac_cv_use_colourpicker"
8188 if test "$no_cache" != 1; then
8189 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8190 fi
8191
8192 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8193 echo "$as_me:$LINENO: result: yes" >&5
8194echo "${ECHO_T}yes" >&6
8195 else
8196 echo "$as_me:$LINENO: result: no" >&5
8197echo "${ECHO_T}no" >&6
8198 fi
8199
8200
a848cd7e
SC
8201 enablestring=
8202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8203echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8204 no_cache=0
8205 # Check whether --enable-combobox or --disable-combobox was given.
8206if test "${enable_combobox+set}" = set; then
8207 enableval="$enable_combobox"
8208
8209 if test "$enableval" = yes; then
8210 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8211 else
8212 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8213 fi
8214
8215else
8216
8217 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8218 if test "x$LINE" != x ; then
8219 eval "DEFAULT_$LINE"
8220 else
8221 no_cache=1
8222 fi
8223
8224 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8225
8226fi;
8227
8228 eval "$ac_cv_use_combobox"
8229 if test "$no_cache" != 1; then
8230 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8231 fi
8232
8233 if test "$wxUSE_COMBOBOX" = yes; then
8234 echo "$as_me:$LINENO: result: yes" >&5
8235echo "${ECHO_T}yes" >&6
8236 else
8237 echo "$as_me:$LINENO: result: no" >&5
8238echo "${ECHO_T}no" >&6
8239 fi
8240
8241
642bcba9 8242 enablestring=
a57d600f
VZ
8243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8244echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8245 no_cache=0
a57d600f
VZ
8246 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8247if test "${enable_comboctrl+set}" = set; then
8248 enableval="$enable_comboctrl"
642bcba9
VZ
8249
8250 if test "$enableval" = yes; then
a57d600f 8251 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8252 else
a57d600f 8253 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8254 fi
8255
8256else
8257
a57d600f 8258 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8259 if test "x$LINE" != x ; then
8260 eval "DEFAULT_$LINE"
8261 else
8262 no_cache=1
8263 fi
8264
a57d600f 8265 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8266
8267fi;
8268
a57d600f 8269 eval "$ac_cv_use_comboctrl"
642bcba9 8270 if test "$no_cache" != 1; then
a57d600f 8271 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8272 fi
8273
a57d600f 8274 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8275 echo "$as_me:$LINENO: result: yes" >&5
8276echo "${ECHO_T}yes" >&6
8277 else
8278 echo "$as_me:$LINENO: result: no" >&5
8279echo "${ECHO_T}no" >&6
8280 fi
8281
8282
da98e9be
VZ
8283 enablestring=
8284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8285echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8286 no_cache=0
8287 # Check whether --enable-datepick or --disable-datepick was given.
8288if test "${enable_datepick+set}" = set; then
8289 enableval="$enable_datepick"
8290
8291 if test "$enableval" = yes; then
8292 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8293 else
8294 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8295 fi
8296
8297else
8298
8299 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8300 if test "x$LINE" != x ; then
8301 eval "DEFAULT_$LINE"
8302 else
8303 no_cache=1
8304 fi
8305
8306 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8307
8308fi;
8309
8310 eval "$ac_cv_use_datepick"
8311 if test "$no_cache" != 1; then
8312 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8313 fi
8314
8315 if test "$wxUSE_DATEPICKCTRL" = yes; then
8316 echo "$as_me:$LINENO: result: yes" >&5
8317echo "${ECHO_T}yes" >&6
8318 else
8319 echo "$as_me:$LINENO: result: no" >&5
8320echo "${ECHO_T}no" >&6
8321 fi
8322
8323
e9263684
VZ
8324 enablestring=
8325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8326echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8327 no_cache=0
8328 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8329if test "${enable_dirpicker+set}" = set; then
8330 enableval="$enable_dirpicker"
8331
8332 if test "$enableval" = yes; then
8333 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8334 else
8335 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8336 fi
8337
8338else
8339
8340 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8341 if test "x$LINE" != x ; then
8342 eval "DEFAULT_$LINE"
8343 else
8344 no_cache=1
8345 fi
8346
8347 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8348
8349fi;
8350
8351 eval "$ac_cv_use_dirpicker"
8352 if test "$no_cache" != 1; then
8353 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8354 fi
8355
8356 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8357 echo "$as_me:$LINENO: result: yes" >&5
8358echo "${ECHO_T}yes" >&6
8359 else
8360 echo "$as_me:$LINENO: result: no" >&5
8361echo "${ECHO_T}no" >&6
8362 fi
8363
8364
a848cd7e
SC
8365 enablestring=
8366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8367echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8368 no_cache=0
8369 # Check whether --enable-display or --disable-display was given.
8370if test "${enable_display+set}" = set; then
8371 enableval="$enable_display"
8372
8373 if test "$enableval" = yes; then
8374 ac_cv_use_display='wxUSE_DISPLAY=yes'
8375 else
8376 ac_cv_use_display='wxUSE_DISPLAY=no'
8377 fi
8378
8379else
8380
8381 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8382 if test "x$LINE" != x ; then
8383 eval "DEFAULT_$LINE"
8384 else
8385 no_cache=1
8386 fi
8387
8388 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8389
8390fi;
8391
8392 eval "$ac_cv_use_display"
8393 if test "$no_cache" != 1; then
8394 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8395 fi
8396
8397 if test "$wxUSE_DISPLAY" = yes; then
8398 echo "$as_me:$LINENO: result: yes" >&5
8399echo "${ECHO_T}yes" >&6
8400 else
8401 echo "$as_me:$LINENO: result: no" >&5
8402echo "${ECHO_T}no" >&6
8403 fi
8404
8405
e9263684
VZ
8406 enablestring=
8407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8408echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8409 no_cache=0
8410 # Check whether --enable-filepicker or --disable-filepicker was given.
8411if test "${enable_filepicker+set}" = set; then
8412 enableval="$enable_filepicker"
8413
8414 if test "$enableval" = yes; then
8415 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8416 else
8417 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8418 fi
8419
8420else
8421
8422 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8423 if test "x$LINE" != x ; then
8424 eval "DEFAULT_$LINE"
8425 else
8426 no_cache=1
8427 fi
8428
8429 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8430
8431fi;
8432
8433 eval "$ac_cv_use_filepicker"
8434 if test "$no_cache" != 1; then
8435 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8436 fi
8437
8438 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8439 echo "$as_me:$LINENO: result: yes" >&5
8440echo "${ECHO_T}yes" >&6
8441 else
8442 echo "$as_me:$LINENO: result: no" >&5
8443echo "${ECHO_T}no" >&6
8444 fi
8445
8446
8447 enablestring=
8448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8449echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8450 no_cache=0
8451 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8452if test "${enable_fontpicker+set}" = set; then
8453 enableval="$enable_fontpicker"
8454
8455 if test "$enableval" = yes; then
8456 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8457 else
8458 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8459 fi
8460
8461else
8462
8463 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8464 if test "x$LINE" != x ; then
8465 eval "DEFAULT_$LINE"
8466 else
8467 no_cache=1
8468 fi
8469
8470 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8471
8472fi;
8473
8474 eval "$ac_cv_use_fontpicker"
8475 if test "$no_cache" != 1; then
8476 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8477 fi
8478
8479 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8480 echo "$as_me:$LINENO: result: yes" >&5
8481echo "${ECHO_T}yes" >&6
8482 else
8483 echo "$as_me:$LINENO: result: no" >&5
8484echo "${ECHO_T}no" >&6
8485 fi
8486
8487
a848cd7e
SC
8488 enablestring=
8489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8490echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8491 no_cache=0
8492 # Check whether --enable-gauge or --disable-gauge was given.
8493if test "${enable_gauge+set}" = set; then
8494 enableval="$enable_gauge"
8495
8496 if test "$enableval" = yes; then
8497 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8498 else
8499 ac_cv_use_gauge='wxUSE_GAUGE=no'
8500 fi
8501
8502else
8503
8504 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8505 if test "x$LINE" != x ; then
8506 eval "DEFAULT_$LINE"
8507 else
8508 no_cache=1
8509 fi
8510
8511 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8512
8513fi;
8514
8515 eval "$ac_cv_use_gauge"
8516 if test "$no_cache" != 1; then
8517 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8518 fi
8519
8520 if test "$wxUSE_GAUGE" = yes; then
8521 echo "$as_me:$LINENO: result: yes" >&5
8522echo "${ECHO_T}yes" >&6
8523 else
8524 echo "$as_me:$LINENO: result: no" >&5
8525echo "${ECHO_T}no" >&6
8526 fi
8527
8528
8529 enablestring=
8530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8531echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8532 no_cache=0
8533 # Check whether --enable-grid or --disable-grid was given.
8534if test "${enable_grid+set}" = set; then
8535 enableval="$enable_grid"
8536
8537 if test "$enableval" = yes; then
8538 ac_cv_use_grid='wxUSE_GRID=yes'
8539 else
8540 ac_cv_use_grid='wxUSE_GRID=no'
8541 fi
8542
8543else
8544
8545 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8546 if test "x$LINE" != x ; then
8547 eval "DEFAULT_$LINE"
8548 else
8549 no_cache=1
8550 fi
8551
8552 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8553
8554fi;
8555
8556 eval "$ac_cv_use_grid"
8557 if test "$no_cache" != 1; then
8558 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8559 fi
8560
8561 if test "$wxUSE_GRID" = yes; then
8562 echo "$as_me:$LINENO: result: yes" >&5
8563echo "${ECHO_T}yes" >&6
8564 else
8565 echo "$as_me:$LINENO: result: no" >&5
8566echo "${ECHO_T}no" >&6
8567 fi
8568
8569
20e34ecc
RR
8570 enablestring=
8571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8572echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8573 no_cache=0
8574 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8575if test "${enable_dataviewctrl+set}" = set; then
8576 enableval="$enable_dataviewctrl"
8577
8578 if test "$enableval" = yes; then
8579 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8580 else
8581 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8582 fi
8583
8584else
8585
8586 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8587 if test "x$LINE" != x ; then
8588 eval "DEFAULT_$LINE"
8589 else
8590 no_cache=1
8591 fi
8592
8593 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8594
8595fi;
8596
8597 eval "$ac_cv_use_dataviewctrl"
8598 if test "$no_cache" != 1; then
8599 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8600 fi
8601
8602 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8603 echo "$as_me:$LINENO: result: yes" >&5
8604echo "${ECHO_T}yes" >&6
8605 else
8606 echo "$as_me:$LINENO: result: no" >&5
8607echo "${ECHO_T}no" >&6
8608 fi
8609
8610
6954625c
VZ
8611 enablestring=
8612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8613echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8614 no_cache=0
8615 # Check whether --enable-hyperlink or --disable-hyperlink was given.
8616if test "${enable_hyperlink+set}" = set; then
8617 enableval="$enable_hyperlink"
8618
8619 if test "$enableval" = yes; then
8620 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8621 else
8622 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8623 fi
8624
8625else
8626
8627 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8628 if test "x$LINE" != x ; then
8629 eval "DEFAULT_$LINE"
8630 else
8631 no_cache=1
8632 fi
8633
8634 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8635
8636fi;
8637
8638 eval "$ac_cv_use_hyperlink"
8639 if test "$no_cache" != 1; then
8640 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8641 fi
8642
8643 if test "$wxUSE_HYPERLINKCTRL" = yes; then
8644 echo "$as_me:$LINENO: result: yes" >&5
8645echo "${ECHO_T}yes" >&6
8646 else
8647 echo "$as_me:$LINENO: result: no" >&5
8648echo "${ECHO_T}no" >&6
8649 fi
8650
8651
a848cd7e
SC
8652 enablestring=
8653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8654echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8655 no_cache=0
8656 # Check whether --enable-imaglist or --disable-imaglist was given.
8657if test "${enable_imaglist+set}" = set; then
8658 enableval="$enable_imaglist"
8659
8660 if test "$enableval" = yes; then
8661 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8662 else
8663 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8664 fi
8665
8666else
8667
8668 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8669 if test "x$LINE" != x ; then
8670 eval "DEFAULT_$LINE"
8671 else
8672 no_cache=1
8673 fi
8674
8675 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8676
8677fi;
8678
8679 eval "$ac_cv_use_imaglist"
8680 if test "$no_cache" != 1; then
8681 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8682 fi
8683
8684 if test "$wxUSE_IMAGLIST" = yes; then
8685 echo "$as_me:$LINENO: result: yes" >&5
8686echo "${ECHO_T}yes" >&6
8687 else
8688 echo "$as_me:$LINENO: result: no" >&5
8689echo "${ECHO_T}no" >&6
8690 fi
8691
8692
8693 enablestring=
8694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8695echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8696 no_cache=0
8697 # Check whether --enable-listbook or --disable-listbook was given.
8698if test "${enable_listbook+set}" = set; then
8699 enableval="$enable_listbook"
8700
8701 if test "$enableval" = yes; then
8702 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8703 else
8704 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8705 fi
8706
8707else
8708
8709 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8710 if test "x$LINE" != x ; then
8711 eval "DEFAULT_$LINE"
8712 else
8713 no_cache=1
8714 fi
8715
8716 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8717
8718fi;
8719
8720 eval "$ac_cv_use_listbook"
8721 if test "$no_cache" != 1; then
8722 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8723 fi
8724
8725 if test "$wxUSE_LISTBOOK" = yes; then
8726 echo "$as_me:$LINENO: result: yes" >&5
8727echo "${ECHO_T}yes" >&6
8728 else
8729 echo "$as_me:$LINENO: result: no" >&5
8730echo "${ECHO_T}no" >&6
8731 fi
8732
8733
8734 enablestring=
8735 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8736echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8737 no_cache=0
8738 # Check whether --enable-listbox or --disable-listbox was given.
8739if test "${enable_listbox+set}" = set; then
8740 enableval="$enable_listbox"
8741
8742 if test "$enableval" = yes; then
8743 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8744 else
8745 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8746 fi
8747
8748else
8749
8750 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8751 if test "x$LINE" != x ; then
8752 eval "DEFAULT_$LINE"
8753 else
8754 no_cache=1
8755 fi
8756
8757 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8758
8759fi;
8760
8761 eval "$ac_cv_use_listbox"
8762 if test "$no_cache" != 1; then
8763 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8764 fi
8765
8766 if test "$wxUSE_LISTBOX" = yes; then
8767 echo "$as_me:$LINENO: result: yes" >&5
8768echo "${ECHO_T}yes" >&6
8769 else
8770 echo "$as_me:$LINENO: result: no" >&5
8771echo "${ECHO_T}no" >&6
8772 fi
8773
8774
8775 enablestring=
8776 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8777echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8778 no_cache=0
8779 # Check whether --enable-listctrl or --disable-listctrl was given.
8780if test "${enable_listctrl+set}" = set; then
8781 enableval="$enable_listctrl"
8782
8783 if test "$enableval" = yes; then
8784 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8785 else
8786 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8787 fi
8788
8789else
8790
8791 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8792 if test "x$LINE" != x ; then
8793 eval "DEFAULT_$LINE"
8794 else
8795 no_cache=1
8796 fi
8797
8798 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8799
8800fi;
8801
8802 eval "$ac_cv_use_listctrl"
8803 if test "$no_cache" != 1; then
8804 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8805 fi
8806
8807 if test "$wxUSE_LISTCTRL" = yes; then
8808 echo "$as_me:$LINENO: result: yes" >&5
8809echo "${ECHO_T}yes" >&6
8810 else
8811 echo "$as_me:$LINENO: result: no" >&5
8812echo "${ECHO_T}no" >&6
8813 fi
8814
8815
8816 enablestring=
8817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8818echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8819 no_cache=0
8820 # Check whether --enable-notebook or --disable-notebook was given.
8821if test "${enable_notebook+set}" = set; then
8822 enableval="$enable_notebook"
8823
8824 if test "$enableval" = yes; then
8825 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8826 else
8827 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8828 fi
8829
8830else
8831
8832 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8833 if test "x$LINE" != x ; then
8834 eval "DEFAULT_$LINE"
8835 else
8836 no_cache=1
8837 fi
8838
8839 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8840
8841fi;
8842
8843 eval "$ac_cv_use_notebook"
8844 if test "$no_cache" != 1; then
8845 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8846 fi
8847
8848 if test "$wxUSE_NOTEBOOK" = yes; then
8849 echo "$as_me:$LINENO: result: yes" >&5
8850echo "${ECHO_T}yes" >&6
8851 else
8852 echo "$as_me:$LINENO: result: no" >&5
8853echo "${ECHO_T}no" >&6
8854 fi
8855
8856
642bcba9 8857 enablestring=
a57d600f
VZ
8858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
8859echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 8860 no_cache=0
a57d600f
VZ
8861 # Check whether --enable-odcombobox or --disable-odcombobox was given.
8862if test "${enable_odcombobox+set}" = set; then
8863 enableval="$enable_odcombobox"
642bcba9
VZ
8864
8865 if test "$enableval" = yes; then
a57d600f 8866 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 8867 else
a57d600f 8868 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
8869 fi
8870
8871else
8872
a57d600f 8873 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
8874 if test "x$LINE" != x ; then
8875 eval "DEFAULT_$LINE"
8876 else
8877 no_cache=1
8878 fi
8879
a57d600f 8880 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
8881
8882fi;
8883
a57d600f 8884 eval "$ac_cv_use_odcombobox"
642bcba9 8885 if test "$no_cache" != 1; then
a57d600f 8886 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8887 fi
8888
a57d600f 8889 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
8890 echo "$as_me:$LINENO: result: yes" >&5
8891echo "${ECHO_T}yes" >&6
8892 else
8893 echo "$as_me:$LINENO: result: no" >&5
8894echo "${ECHO_T}no" >&6
8895 fi
8896
8897
a848cd7e
SC
8898 enablestring=
8899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8900echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8901 no_cache=0
8902 # Check whether --enable-radiobox or --disable-radiobox was given.
8903if test "${enable_radiobox+set}" = set; then
8904 enableval="$enable_radiobox"
8905
8906 if test "$enableval" = yes; then
8907 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8908 else
8909 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8910 fi
8911
8912else
8913
8914 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8915 if test "x$LINE" != x ; then
8916 eval "DEFAULT_$LINE"
8917 else
8918 no_cache=1
8919 fi
8920
8921 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8922
8923fi;
8924
8925 eval "$ac_cv_use_radiobox"
8926 if test "$no_cache" != 1; then
8927 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8928 fi
8929
8930 if test "$wxUSE_RADIOBOX" = yes; then
8931 echo "$as_me:$LINENO: result: yes" >&5
8932echo "${ECHO_T}yes" >&6
8933 else
8934 echo "$as_me:$LINENO: result: no" >&5
8935echo "${ECHO_T}no" >&6
8936 fi
8937
8938
8939 enablestring=
8940 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8941echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8942 no_cache=0
8943 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8944if test "${enable_radiobtn+set}" = set; then
8945 enableval="$enable_radiobtn"
8946
8947 if test "$enableval" = yes; then
8948 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8949 else
8950 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8951 fi
8952
8953else
8954
8955 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8956 if test "x$LINE" != x ; then
8957 eval "DEFAULT_$LINE"
8958 else
8959 no_cache=1
8960 fi
8961
8962 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8963
8964fi;
8965
8966 eval "$ac_cv_use_radiobtn"
8967 if test "$no_cache" != 1; then
8968 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8969 fi
8970
8971 if test "$wxUSE_RADIOBTN" = yes; then
8972 echo "$as_me:$LINENO: result: yes" >&5
8973echo "${ECHO_T}yes" >&6
8974 else
8975 echo "$as_me:$LINENO: result: no" >&5
8976echo "${ECHO_T}no" >&6
8977 fi
8978
8979
8980 enablestring=
8981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8982echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8983 no_cache=0
8984 # Check whether --enable-sash or --disable-sash was given.
8985if test "${enable_sash+set}" = set; then
8986 enableval="$enable_sash"
8987
8988 if test "$enableval" = yes; then
8989 ac_cv_use_sash='wxUSE_SASH=yes'
8990 else
8991 ac_cv_use_sash='wxUSE_SASH=no'
8992 fi
8993
8994else
8995
8996 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8997 if test "x$LINE" != x ; then
8998 eval "DEFAULT_$LINE"
8999 else
9000 no_cache=1
9001 fi
9002
9003 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9004
9005fi;
9006
9007 eval "$ac_cv_use_sash"
9008 if test "$no_cache" != 1; then
9009 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9010 fi
9011
9012 if test "$wxUSE_SASH" = yes; then
9013 echo "$as_me:$LINENO: result: yes" >&5
9014echo "${ECHO_T}yes" >&6
9015 else
9016 echo "$as_me:$LINENO: result: no" >&5
9017echo "${ECHO_T}no" >&6
9018 fi
9019
9020
9021 enablestring=
9022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9023echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9024 no_cache=0
9025 # Check whether --enable-scrollbar or --disable-scrollbar was given.
9026if test "${enable_scrollbar+set}" = set; then
9027 enableval="$enable_scrollbar"
9028
9029 if test "$enableval" = yes; then
9030 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9031 else
9032 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9033 fi
9034
9035else
9036
9037 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9038 if test "x$LINE" != x ; then
9039 eval "DEFAULT_$LINE"
9040 else
9041 no_cache=1
9042 fi
9043
9044 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9045
9046fi;
9047
9048 eval "$ac_cv_use_scrollbar"
9049 if test "$no_cache" != 1; then
9050 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9051 fi
9052
9053 if test "$wxUSE_SCROLLBAR" = yes; then
9054 echo "$as_me:$LINENO: result: yes" >&5
9055echo "${ECHO_T}yes" >&6
9056 else
9057 echo "$as_me:$LINENO: result: no" >&5
9058echo "${ECHO_T}no" >&6
9059 fi
9060
9061
9062 enablestring=
9063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9064echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9065 no_cache=0
9066 # Check whether --enable-slider or --disable-slider was given.
9067if test "${enable_slider+set}" = set; then
9068 enableval="$enable_slider"
9069
9070 if test "$enableval" = yes; then
9071 ac_cv_use_slider='wxUSE_SLIDER=yes'
9072 else
9073 ac_cv_use_slider='wxUSE_SLIDER=no'
9074 fi
9075
9076else
9077
9078 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9079 if test "x$LINE" != x ; then
9080 eval "DEFAULT_$LINE"
9081 else
9082 no_cache=1
9083 fi
9084
9085 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9086
9087fi;
9088
9089 eval "$ac_cv_use_slider"
9090 if test "$no_cache" != 1; then
9091 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9092 fi
9093
9094 if test "$wxUSE_SLIDER" = yes; then
9095 echo "$as_me:$LINENO: result: yes" >&5
9096echo "${ECHO_T}yes" >&6
9097 else
9098 echo "$as_me:$LINENO: result: no" >&5
9099echo "${ECHO_T}no" >&6
9100 fi
9101
9102
9103 enablestring=
9104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9105echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9106 no_cache=0
9107 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9108if test "${enable_spinbtn+set}" = set; then
9109 enableval="$enable_spinbtn"
9110
9111 if test "$enableval" = yes; then
9112 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9113 else
9114 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9115 fi
9116
9117else
9118
9119 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9120 if test "x$LINE" != x ; then
9121 eval "DEFAULT_$LINE"
9122 else
9123 no_cache=1
9124 fi
9125
9126 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9127
9128fi;
9129
9130 eval "$ac_cv_use_spinbtn"
9131 if test "$no_cache" != 1; then
9132 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9133 fi
9134
9135 if test "$wxUSE_SPINBTN" = yes; then
9136 echo "$as_me:$LINENO: result: yes" >&5
9137echo "${ECHO_T}yes" >&6
9138 else
9139 echo "$as_me:$LINENO: result: no" >&5
9140echo "${ECHO_T}no" >&6
9141 fi
9142
9143
9144 enablestring=
9145 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9146echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9147 no_cache=0
9148 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9149if test "${enable_spinctrl+set}" = set; then
9150 enableval="$enable_spinctrl"
9151
9152 if test "$enableval" = yes; then
9153 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9154 else
9155 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9156 fi
9157
9158else
9159
9160 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9161 if test "x$LINE" != x ; then
9162 eval "DEFAULT_$LINE"
9163 else
9164 no_cache=1
9165 fi
9166
9167 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9168
9169fi;
9170
9171 eval "$ac_cv_use_spinctrl"
9172 if test "$no_cache" != 1; then
9173 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9174 fi
9175
9176 if test "$wxUSE_SPINCTRL" = yes; then
9177 echo "$as_me:$LINENO: result: yes" >&5
9178echo "${ECHO_T}yes" >&6
9179 else
9180 echo "$as_me:$LINENO: result: no" >&5
9181echo "${ECHO_T}no" >&6
9182 fi
9183
9184
9185 enablestring=
9186 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9187echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9188 no_cache=0
9189 # Check whether --enable-splitter or --disable-splitter was given.
9190if test "${enable_splitter+set}" = set; then
9191 enableval="$enable_splitter"
9192
9193 if test "$enableval" = yes; then
9194 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9195 else
9196 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9197 fi
9198
9199else
9200
9201 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9202 if test "x$LINE" != x ; then
9203 eval "DEFAULT_$LINE"
9204 else
9205 no_cache=1
9206 fi
9207
9208 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9209
9210fi;
9211
9212 eval "$ac_cv_use_splitter"
9213 if test "$no_cache" != 1; then
9214 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9215 fi
9216
9217 if test "$wxUSE_SPLITTER" = yes; then
9218 echo "$as_me:$LINENO: result: yes" >&5
9219echo "${ECHO_T}yes" >&6
9220 else
9221 echo "$as_me:$LINENO: result: no" >&5
9222echo "${ECHO_T}no" >&6
9223 fi
9224
9225
9226 enablestring=
9227 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9228echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9229 no_cache=0
9230 # Check whether --enable-statbmp or --disable-statbmp was given.
9231if test "${enable_statbmp+set}" = set; then
9232 enableval="$enable_statbmp"
9233
9234 if test "$enableval" = yes; then
9235 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9236 else
9237 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9238 fi
9239
9240else
9241
9242 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9243 if test "x$LINE" != x ; then
9244 eval "DEFAULT_$LINE"
9245 else
9246 no_cache=1
9247 fi
9248
9249 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9250
9251fi;
9252
9253 eval "$ac_cv_use_statbmp"
9254 if test "$no_cache" != 1; then
9255 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9256 fi
9257
9258 if test "$wxUSE_STATBMP" = yes; then
9259 echo "$as_me:$LINENO: result: yes" >&5
9260echo "${ECHO_T}yes" >&6
9261 else
9262 echo "$as_me:$LINENO: result: no" >&5
9263echo "${ECHO_T}no" >&6
9264 fi
9265
9266
9267 enablestring=
9268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9269echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9270 no_cache=0
9271 # Check whether --enable-statbox or --disable-statbox was given.
9272if test "${enable_statbox+set}" = set; then
9273 enableval="$enable_statbox"
9274
9275 if test "$enableval" = yes; then
9276 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9277 else
9278 ac_cv_use_statbox='wxUSE_STATBOX=no'
9279 fi
9280
9281else
9282
9283 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9284 if test "x$LINE" != x ; then
9285 eval "DEFAULT_$LINE"
9286 else
9287 no_cache=1
9288 fi
9289
9290 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9291
9292fi;
9293
9294 eval "$ac_cv_use_statbox"
9295 if test "$no_cache" != 1; then
9296 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9297 fi
9298
9299 if test "$wxUSE_STATBOX" = yes; then
9300 echo "$as_me:$LINENO: result: yes" >&5
9301echo "${ECHO_T}yes" >&6
9302 else
9303 echo "$as_me:$LINENO: result: no" >&5
9304echo "${ECHO_T}no" >&6
9305 fi
9306
9307
9308 enablestring=
9309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9310echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9311 no_cache=0
9312 # Check whether --enable-statline or --disable-statline was given.
9313if test "${enable_statline+set}" = set; then
9314 enableval="$enable_statline"
9315
9316 if test "$enableval" = yes; then
9317 ac_cv_use_statline='wxUSE_STATLINE=yes'
9318 else
9319 ac_cv_use_statline='wxUSE_STATLINE=no'
9320 fi
9321
9322else
9323
9324 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9325 if test "x$LINE" != x ; then
9326 eval "DEFAULT_$LINE"
9327 else
9328 no_cache=1
9329 fi
9330
9331 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9332
9333fi;
9334
9335 eval "$ac_cv_use_statline"
9336 if test "$no_cache" != 1; then
9337 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9338 fi
9339
9340 if test "$wxUSE_STATLINE" = yes; then
9341 echo "$as_me:$LINENO: result: yes" >&5
9342echo "${ECHO_T}yes" >&6
9343 else
9344 echo "$as_me:$LINENO: result: no" >&5
9345echo "${ECHO_T}no" >&6
9346 fi
9347
9348
9349 enablestring=
9350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9351echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9352 no_cache=0
9353 # Check whether --enable-stattext or --disable-stattext was given.
9354if test "${enable_stattext+set}" = set; then
9355 enableval="$enable_stattext"
9356
9357 if test "$enableval" = yes; then
9358 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9359 else
9360 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9361 fi
9362
9363else
9364
9365 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9366 if test "x$LINE" != x ; then
9367 eval "DEFAULT_$LINE"
9368 else
9369 no_cache=1
9370 fi
9371
9372 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9373
9374fi;
9375
9376 eval "$ac_cv_use_stattext"
9377 if test "$no_cache" != 1; then
9378 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9379 fi
9380
9381 if test "$wxUSE_STATTEXT" = yes; then
9382 echo "$as_me:$LINENO: result: yes" >&5
9383echo "${ECHO_T}yes" >&6
9384 else
9385 echo "$as_me:$LINENO: result: no" >&5
9386echo "${ECHO_T}no" >&6
9387 fi
9388
9389
9390 enablestring=
9391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9392echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9393 no_cache=0
9394 # Check whether --enable-statusbar or --disable-statusbar was given.
9395if test "${enable_statusbar+set}" = set; then
9396 enableval="$enable_statusbar"
9397
9398 if test "$enableval" = yes; then
9399 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9400 else
9401 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9402 fi
9403
9404else
9405
9406 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9407 if test "x$LINE" != x ; then
9408 eval "DEFAULT_$LINE"
9409 else
9410 no_cache=1
9411 fi
9412
9413 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9414
9415fi;
9416
9417 eval "$ac_cv_use_statusbar"
9418 if test "$no_cache" != 1; then
9419 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9420 fi
9421
9422 if test "$wxUSE_STATUSBAR" = yes; then
9423 echo "$as_me:$LINENO: result: yes" >&5
9424echo "${ECHO_T}yes" >&6
9425 else
9426 echo "$as_me:$LINENO: result: no" >&5
9427echo "${ECHO_T}no" >&6
9428 fi
9429
9430
9431 enablestring=
9432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9433echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9434 no_cache=0
9435 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9436if test "${enable_tabdialog+set}" = set; then
9437 enableval="$enable_tabdialog"
9438
9439 if test "$enableval" = yes; then
f10e38c4 9440 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9441 else
f10e38c4 9442 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9443 fi
9444
9445else
9446
f10e38c4 9447 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9448 if test "x$LINE" != x ; then
9449 eval "DEFAULT_$LINE"
9450 else
9451 no_cache=1
9452 fi
9453
f10e38c4 9454 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9455
9456fi;
9457
9458 eval "$ac_cv_use_tabdialog"
9459 if test "$no_cache" != 1; then
9460 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9461 fi
9462
f10e38c4 9463 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9464 echo "$as_me:$LINENO: result: yes" >&5
9465echo "${ECHO_T}yes" >&6
9466 else
9467 echo "$as_me:$LINENO: result: no" >&5
9468echo "${ECHO_T}no" >&6
9469 fi
9470
9471
9472 enablestring=
9473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9474echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9475 no_cache=0
9476 # Check whether --enable-textctrl or --disable-textctrl was given.
9477if test "${enable_textctrl+set}" = set; then
9478 enableval="$enable_textctrl"
9479
9480 if test "$enableval" = yes; then
9481 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9482 else
9483 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9484 fi
9485
9486else
9487
9488 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9489 if test "x$LINE" != x ; then
9490 eval "DEFAULT_$LINE"
9491 else
9492 no_cache=1
9493 fi
9494
9495 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9496
9497fi;
9498
9499 eval "$ac_cv_use_textctrl"
9500 if test "$no_cache" != 1; then
9501 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9502 fi
9503
9504 if test "$wxUSE_TEXTCTRL" = yes; then
9505 echo "$as_me:$LINENO: result: yes" >&5
9506echo "${ECHO_T}yes" >&6
9507 else
9508 echo "$as_me:$LINENO: result: no" >&5
9509echo "${ECHO_T}no" >&6
9510 fi
9511
9512
9513 enablestring=
9514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9515echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9516 no_cache=0
9517 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9518if test "${enable_togglebtn+set}" = set; then
9519 enableval="$enable_togglebtn"
9520
9521 if test "$enableval" = yes; then
9522 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9523 else
9524 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9525 fi
9526
9527else
9528
9529 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9530 if test "x$LINE" != x ; then
9531 eval "DEFAULT_$LINE"
9532 else
9533 no_cache=1
9534 fi
9535
9536 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9537
9538fi;
9539
9540 eval "$ac_cv_use_togglebtn"
9541 if test "$no_cache" != 1; then
9542 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9543 fi
9544
9545 if test "$wxUSE_TOGGLEBTN" = yes; then
9546 echo "$as_me:$LINENO: result: yes" >&5
9547echo "${ECHO_T}yes" >&6
9548 else
9549 echo "$as_me:$LINENO: result: no" >&5
9550echo "${ECHO_T}no" >&6
9551 fi
9552
9553
9554 enablestring=
9555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9556echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9557 no_cache=0
9558 # Check whether --enable-toolbar or --disable-toolbar was given.
9559if test "${enable_toolbar+set}" = set; then
9560 enableval="$enable_toolbar"
9561
9562 if test "$enableval" = yes; then
9563 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9564 else
9565 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9566 fi
9567
9568else
9569
9570 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9571 if test "x$LINE" != x ; then
9572 eval "DEFAULT_$LINE"
9573 else
9574 no_cache=1
9575 fi
9576
9577 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9578
9579fi;
9580
9581 eval "$ac_cv_use_toolbar"
9582 if test "$no_cache" != 1; then
9583 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9584 fi
9585
9586 if test "$wxUSE_TOOLBAR" = yes; then
9587 echo "$as_me:$LINENO: result: yes" >&5
9588echo "${ECHO_T}yes" >&6
9589 else
9590 echo "$as_me:$LINENO: result: no" >&5
9591echo "${ECHO_T}no" >&6
9592 fi
9593
9594
9595 enablestring=
9596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9597echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9598 no_cache=0
9599 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9600if test "${enable_tbarnative+set}" = set; then
9601 enableval="$enable_tbarnative"
9602
9603 if test "$enableval" = yes; then
9604 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9605 else
9606 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9607 fi
9608
9609else
9610
9611 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9612 if test "x$LINE" != x ; then
9613 eval "DEFAULT_$LINE"
9614 else
9615 no_cache=1
9616 fi
9617
9618 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9619
9620fi;
9621
9622 eval "$ac_cv_use_tbarnative"
9623 if test "$no_cache" != 1; then
9624 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9625 fi
9626
9627 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9628 echo "$as_me:$LINENO: result: yes" >&5
9629echo "${ECHO_T}yes" >&6
9630 else
9631 echo "$as_me:$LINENO: result: no" >&5
9632echo "${ECHO_T}no" >&6
9633 fi
9634
9635
9636 enablestring=
9637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
9638echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
9639 no_cache=0
9640 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
9641if test "${enable_tbarsmpl+set}" = set; then
9642 enableval="$enable_tbarsmpl"
9643
9644 if test "$enableval" = yes; then
9645 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
9646 else
9647 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
9648 fi
9649
9650else
9651
9652 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
9653 if test "x$LINE" != x ; then
9654 eval "DEFAULT_$LINE"
9655 else
9656 no_cache=1
9657 fi
9658
9659 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
9660
9661fi;
9662
9663 eval "$ac_cv_use_tbarsmpl"
9664 if test "$no_cache" != 1; then
9665 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
9666 fi
9667
9668 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
9669 echo "$as_me:$LINENO: result: yes" >&5
9670echo "${ECHO_T}yes" >&6
9671 else
9672 echo "$as_me:$LINENO: result: no" >&5
9673echo "${ECHO_T}no" >&6
9674 fi
9675
9676
0093c2fc
VZ
9677 enablestring=
9678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9679echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9680 no_cache=0
9681 # Check whether --enable-treebook or --disable-treebook was given.
9682if test "${enable_treebook+set}" = set; then
9683 enableval="$enable_treebook"
9684
9685 if test "$enableval" = yes; then
9686 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9687 else
9688 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9689 fi
9690
9691else
9692
9693 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9694 if test "x$LINE" != x ; then
9695 eval "DEFAULT_$LINE"
9696 else
9697 no_cache=1
9698 fi
9699
9700 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9701
9702fi;
9703
9704 eval "$ac_cv_use_treebook"
9705 if test "$no_cache" != 1; then
9706 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9707 fi
9708
9709 if test "$wxUSE_TREEBOOK" = yes; then
9710 echo "$as_me:$LINENO: result: yes" >&5
9711echo "${ECHO_T}yes" >&6
9712 else
9713 echo "$as_me:$LINENO: result: no" >&5
9714echo "${ECHO_T}no" >&6
9715 fi
9716
9717
5ec3bc43
JS
9718 enablestring=
9719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9720echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9721 no_cache=0
9722 # Check whether --enable-toolbook or --disable-toolbook was given.
9723if test "${enable_toolbook+set}" = set; then
9724 enableval="$enable_toolbook"
9725
9726 if test "$enableval" = yes; then
9727 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9728 else
9729 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9730 fi
9731
9732else
9733
9734 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9735 if test "x$LINE" != x ; then
9736 eval "DEFAULT_$LINE"
9737 else
9738 no_cache=1
9739 fi
9740
9741 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9742
9743fi;
9744
9745 eval "$ac_cv_use_toolbook"
9746 if test "$no_cache" != 1; then
9747 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9748 fi
9749
9750 if test "$wxUSE_TOOLBOOK" = yes; then
9751 echo "$as_me:$LINENO: result: yes" >&5
9752echo "${ECHO_T}yes" >&6
9753 else
9754 echo "$as_me:$LINENO: result: no" >&5
9755echo "${ECHO_T}no" >&6
9756 fi
9757
9758
a848cd7e
SC
9759 enablestring=
9760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9761echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9762 no_cache=0
9763 # Check whether --enable-treectrl or --disable-treectrl was given.
9764if test "${enable_treectrl+set}" = set; then
9765 enableval="$enable_treectrl"
9766
9767 if test "$enableval" = yes; then
9768 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9769 else
9770 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9771 fi
9772
9773else
9774
9775 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9776 if test "x$LINE" != x ; then
9777 eval "DEFAULT_$LINE"
9778 else
9779 no_cache=1
9780 fi
9781
9782 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9783
9784fi;
9785
9786 eval "$ac_cv_use_treectrl"
9787 if test "$no_cache" != 1; then
9788 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9789 fi
9790
9791 if test "$wxUSE_TREECTRL" = yes; then
9792 echo "$as_me:$LINENO: result: yes" >&5
9793echo "${ECHO_T}yes" >&6
9794 else
9795 echo "$as_me:$LINENO: result: no" >&5
9796echo "${ECHO_T}no" >&6
9797 fi
9798
9799
9800 enablestring=
9801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9802echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9803 no_cache=0
9804 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9805if test "${enable_tipwindow+set}" = set; then
9806 enableval="$enable_tipwindow"
9807
9808 if test "$enableval" = yes; then
9809 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9810 else
9811 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9812 fi
9813
9814else
9815
9816 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9817 if test "x$LINE" != x ; then
9818 eval "DEFAULT_$LINE"
9819 else
9820 no_cache=1
9821 fi
9822
9823 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9824
9825fi;
9826
9827 eval "$ac_cv_use_tipwindow"
9828 if test "$no_cache" != 1; then
9829 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9830 fi
9831
9832 if test "$wxUSE_TIPWINDOW" = yes; then
9833 echo "$as_me:$LINENO: result: yes" >&5
9834echo "${ECHO_T}yes" >&6
9835 else
9836 echo "$as_me:$LINENO: result: no" >&5
9837echo "${ECHO_T}no" >&6
9838 fi
9839
9840
9841 enablestring=
9842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9843echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9844 no_cache=0
9845 # Check whether --enable-popupwin or --disable-popupwin was given.
9846if test "${enable_popupwin+set}" = set; then
9847 enableval="$enable_popupwin"
9848
9849 if test "$enableval" = yes; then
9850 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9851 else
9852 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9853 fi
9854
9855else
9856
9857 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9858 if test "x$LINE" != x ; then
9859 eval "DEFAULT_$LINE"
9860 else
9861 no_cache=1
9862 fi
9863
9864 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9865
9866fi;
9867
9868 eval "$ac_cv_use_popupwin"
9869 if test "$no_cache" != 1; then
9870 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9871 fi
9872
9873 if test "$wxUSE_POPUPWIN" = yes; then
9874 echo "$as_me:$LINENO: result: yes" >&5
9875echo "${ECHO_T}yes" >&6
9876 else
9877 echo "$as_me:$LINENO: result: no" >&5
9878echo "${ECHO_T}no" >&6
9879 fi
9880
9881
9882
9883
9884 enablestring=
9885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9886echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9887 no_cache=0
9888 # Check whether --enable-commondlg or --disable-commondlg was given.
9889if test "${enable_commondlg+set}" = set; then
9890 enableval="$enable_commondlg"
9891
9892 if test "$enableval" = yes; then
9893 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9894 else
9895 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9896 fi
9897
9898else
9899
9900 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9901 if test "x$LINE" != x ; then
9902 eval "DEFAULT_$LINE"
9903 else
9904 no_cache=1
9905 fi
9906
9907 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9908
9909fi;
9910
9911 eval "$ac_cv_use_commondlg"
9912 if test "$no_cache" != 1; then
9913 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9914 fi
9915
9916 if test "$wxUSE_COMMONDLGS" = yes; then
9917 echo "$as_me:$LINENO: result: yes" >&5
9918echo "${ECHO_T}yes" >&6
9919 else
9920 echo "$as_me:$LINENO: result: no" >&5
9921echo "${ECHO_T}no" >&6
9922 fi
9923
9924
9925 enablestring=
9926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9927echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9928 no_cache=0
9929 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9930if test "${enable_choicedlg+set}" = set; then
9931 enableval="$enable_choicedlg"
9932
9933 if test "$enableval" = yes; then
9934 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9935 else
9936 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9937 fi
9938
9939else
9940
9941 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9942 if test "x$LINE" != x ; then
9943 eval "DEFAULT_$LINE"
9944 else
9945 no_cache=1
9946 fi
9947
9948 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9949
9950fi;
9951
9952 eval "$ac_cv_use_choicedlg"
9953 if test "$no_cache" != 1; then
9954 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9955 fi
9956
9957 if test "$wxUSE_CHOICEDLG" = yes; then
9958 echo "$as_me:$LINENO: result: yes" >&5
9959echo "${ECHO_T}yes" >&6
9960 else
9961 echo "$as_me:$LINENO: result: no" >&5
9962echo "${ECHO_T}no" >&6
9963 fi
9964
9965
9966 enablestring=
9967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9968echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9969 no_cache=0
9970 # Check whether --enable-coldlg or --disable-coldlg was given.
9971if test "${enable_coldlg+set}" = set; then
9972 enableval="$enable_coldlg"
9973
9974 if test "$enableval" = yes; then
9975 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9976 else
9977 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9978 fi
9979
9980else
9981
9982 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9983 if test "x$LINE" != x ; then
9984 eval "DEFAULT_$LINE"
9985 else
9986 no_cache=1
9987 fi
9988
9989 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9990
9991fi;
9992
9993 eval "$ac_cv_use_coldlg"
9994 if test "$no_cache" != 1; then
9995 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9996 fi
9997
9998 if test "$wxUSE_COLOURDLG" = yes; then
9999 echo "$as_me:$LINENO: result: yes" >&5
10000echo "${ECHO_T}yes" >&6
10001 else
10002 echo "$as_me:$LINENO: result: no" >&5
10003echo "${ECHO_T}no" >&6
10004 fi
10005
10006
10007 enablestring=
10008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10009echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
10010 no_cache=0
10011 # Check whether --enable-filedlg or --disable-filedlg was given.
10012if test "${enable_filedlg+set}" = set; then
10013 enableval="$enable_filedlg"
10014
10015 if test "$enableval" = yes; then
10016 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
10017 else
10018 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
10019 fi
10020
10021else
10022
10023 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10024 if test "x$LINE" != x ; then
10025 eval "DEFAULT_$LINE"
10026 else
10027 no_cache=1
10028 fi
10029
10030 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10031
10032fi;
10033
10034 eval "$ac_cv_use_filedlg"
10035 if test "$no_cache" != 1; then
10036 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10037 fi
10038
10039 if test "$wxUSE_FILEDLG" = yes; then
10040 echo "$as_me:$LINENO: result: yes" >&5
10041echo "${ECHO_T}yes" >&6
10042 else
10043 echo "$as_me:$LINENO: result: no" >&5
10044echo "${ECHO_T}no" >&6
10045 fi
10046
10047
10048 enablestring=
10049 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10050echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10051 no_cache=0
10052 # Check whether --enable-finddlg or --disable-finddlg was given.
10053if test "${enable_finddlg+set}" = set; then
10054 enableval="$enable_finddlg"
10055
10056 if test "$enableval" = yes; then
10057 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10058 else
10059 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10060 fi
10061
10062else
10063
10064 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10065 if test "x$LINE" != x ; then
10066 eval "DEFAULT_$LINE"
10067 else
10068 no_cache=1
10069 fi
10070
10071 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10072
10073fi;
10074
10075 eval "$ac_cv_use_finddlg"
10076 if test "$no_cache" != 1; then
10077 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10078 fi
10079
10080 if test "$wxUSE_FINDREPLDLG" = yes; then
10081 echo "$as_me:$LINENO: result: yes" >&5
10082echo "${ECHO_T}yes" >&6
10083 else
10084 echo "$as_me:$LINENO: result: no" >&5
10085echo "${ECHO_T}no" >&6
10086 fi
10087
10088
10089 enablestring=
10090 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10091echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10092 no_cache=0
10093 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10094if test "${enable_fontdlg+set}" = set; then
10095 enableval="$enable_fontdlg"
10096
10097 if test "$enableval" = yes; then
10098 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10099 else
10100 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10101 fi
10102
10103else
10104
10105 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10106 if test "x$LINE" != x ; then
10107 eval "DEFAULT_$LINE"
10108 else
10109 no_cache=1
10110 fi
10111
10112 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10113
10114fi;
10115
10116 eval "$ac_cv_use_fontdlg"
10117 if test "$no_cache" != 1; then
10118 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10119 fi
10120
10121 if test "$wxUSE_FONTDLG" = yes; then
10122 echo "$as_me:$LINENO: result: yes" >&5
10123echo "${ECHO_T}yes" >&6
10124 else
10125 echo "$as_me:$LINENO: result: no" >&5
10126echo "${ECHO_T}no" >&6
10127 fi
10128
10129
10130 enablestring=
10131 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10132echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10133 no_cache=0
10134 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10135if test "${enable_dirdlg+set}" = set; then
10136 enableval="$enable_dirdlg"
10137
10138 if test "$enableval" = yes; then
10139 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10140 else
10141 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10142 fi
10143
10144else
10145
10146 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10147 if test "x$LINE" != x ; then
10148 eval "DEFAULT_$LINE"
10149 else
10150 no_cache=1
10151 fi
10152
10153 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10154
10155fi;
10156
10157 eval "$ac_cv_use_dirdlg"
10158 if test "$no_cache" != 1; then
10159 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10160 fi
10161
10162 if test "$wxUSE_DIRDLG" = yes; then
10163 echo "$as_me:$LINENO: result: yes" >&5
10164echo "${ECHO_T}yes" >&6
10165 else
10166 echo "$as_me:$LINENO: result: no" >&5
10167echo "${ECHO_T}no" >&6
10168 fi
10169
10170
10171 enablestring=
10172 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10173echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10174 no_cache=0
10175 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10176if test "${enable_msgdlg+set}" = set; then
10177 enableval="$enable_msgdlg"
10178
10179 if test "$enableval" = yes; then
10180 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10181 else
10182 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10183 fi
10184
10185else
10186
10187 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10188 if test "x$LINE" != x ; then
10189 eval "DEFAULT_$LINE"
10190 else
10191 no_cache=1
10192 fi
10193
10194 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10195
10196fi;
10197
10198 eval "$ac_cv_use_msgdlg"
10199 if test "$no_cache" != 1; then
10200 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10201 fi
10202
10203 if test "$wxUSE_MSGDLG" = yes; then
10204 echo "$as_me:$LINENO: result: yes" >&5
10205echo "${ECHO_T}yes" >&6
10206 else
10207 echo "$as_me:$LINENO: result: no" >&5
10208echo "${ECHO_T}no" >&6
10209 fi
10210
10211
10212 enablestring=
10213 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10214echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10215 no_cache=0
10216 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10217if test "${enable_numberdlg+set}" = set; then
10218 enableval="$enable_numberdlg"
10219
10220 if test "$enableval" = yes; then
10221 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10222 else
10223 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10224 fi
10225
10226else
10227
10228 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10229 if test "x$LINE" != x ; then
10230 eval "DEFAULT_$LINE"
10231 else
10232 no_cache=1
10233 fi
10234
10235 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10236
10237fi;
10238
10239 eval "$ac_cv_use_numberdlg"
10240 if test "$no_cache" != 1; then
10241 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10242 fi
10243
10244 if test "$wxUSE_NUMBERDLG" = yes; then
10245 echo "$as_me:$LINENO: result: yes" >&5
10246echo "${ECHO_T}yes" >&6
10247 else
10248 echo "$as_me:$LINENO: result: no" >&5
10249echo "${ECHO_T}no" >&6
10250 fi
10251
10252
10253 enablestring=
10254 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10255echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10256 no_cache=0
10257 # Check whether --enable-splash or --disable-splash was given.
10258if test "${enable_splash+set}" = set; then
10259 enableval="$enable_splash"
10260
10261 if test "$enableval" = yes; then
10262 ac_cv_use_splash='wxUSE_SPLASH=yes'
10263 else
10264 ac_cv_use_splash='wxUSE_SPLASH=no'
10265 fi
10266
10267else
10268
10269 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10270 if test "x$LINE" != x ; then
10271 eval "DEFAULT_$LINE"
10272 else
10273 no_cache=1
10274 fi
10275
10276 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10277
10278fi;
10279
10280 eval "$ac_cv_use_splash"
10281 if test "$no_cache" != 1; then
10282 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10283 fi
10284
10285 if test "$wxUSE_SPLASH" = yes; then
10286 echo "$as_me:$LINENO: result: yes" >&5
10287echo "${ECHO_T}yes" >&6
10288 else
10289 echo "$as_me:$LINENO: result: no" >&5
10290echo "${ECHO_T}no" >&6
10291 fi
10292
10293
10294 enablestring=
10295 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10296echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10297 no_cache=0
10298 # Check whether --enable-textdlg or --disable-textdlg was given.
10299if test "${enable_textdlg+set}" = set; then
10300 enableval="$enable_textdlg"
10301
10302 if test "$enableval" = yes; then
10303 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10304 else
10305 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10306 fi
10307
10308else
10309
10310 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10311 if test "x$LINE" != x ; then
10312 eval "DEFAULT_$LINE"
10313 else
10314 no_cache=1
10315 fi
10316
10317 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10318
10319fi;
10320
10321 eval "$ac_cv_use_textdlg"
10322 if test "$no_cache" != 1; then
10323 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10324 fi
10325
10326 if test "$wxUSE_TEXTDLG" = yes; then
10327 echo "$as_me:$LINENO: result: yes" >&5
10328echo "${ECHO_T}yes" >&6
10329 else
10330 echo "$as_me:$LINENO: result: no" >&5
10331echo "${ECHO_T}no" >&6
10332 fi
10333
10334
10335 enablestring=
10336 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10337echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10338 no_cache=0
10339 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10340if test "${enable_tipdlg+set}" = set; then
10341 enableval="$enable_tipdlg"
10342
10343 if test "$enableval" = yes; then
10344 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10345 else
10346 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10347 fi
10348
10349else
10350
10351 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10352 if test "x$LINE" != x ; then
10353 eval "DEFAULT_$LINE"
10354 else
10355 no_cache=1
10356 fi
10357
10358 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10359
10360fi;
10361
10362 eval "$ac_cv_use_tipdlg"
10363 if test "$no_cache" != 1; then
10364 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10365 fi
10366
10367 if test "$wxUSE_STARTUP_TIPS" = yes; then
10368 echo "$as_me:$LINENO: result: yes" >&5
10369echo "${ECHO_T}yes" >&6
10370 else
10371 echo "$as_me:$LINENO: result: no" >&5
10372echo "${ECHO_T}no" >&6
10373 fi
10374
10375
10376 enablestring=
10377 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10378echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10379 no_cache=0
10380 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10381if test "${enable_progressdlg+set}" = set; then
10382 enableval="$enable_progressdlg"
10383
10384 if test "$enableval" = yes; then
10385 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10386 else
10387 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10388 fi
10389
10390else
10391
10392 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10393 if test "x$LINE" != x ; then
10394 eval "DEFAULT_$LINE"
10395 else
10396 no_cache=1
10397 fi
10398
10399 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10400
10401fi;
10402
10403 eval "$ac_cv_use_progressdlg"
10404 if test "$no_cache" != 1; then
10405 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10406 fi
10407
10408 if test "$wxUSE_PROGRESSDLG" = yes; then
10409 echo "$as_me:$LINENO: result: yes" >&5
10410echo "${ECHO_T}yes" >&6
10411 else
10412 echo "$as_me:$LINENO: result: no" >&5
10413echo "${ECHO_T}no" >&6
10414 fi
10415
10416
10417 enablestring=
10418 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10419echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10420 no_cache=0
10421 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10422if test "${enable_wizarddlg+set}" = set; then
10423 enableval="$enable_wizarddlg"
10424
10425 if test "$enableval" = yes; then
10426 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10427 else
10428 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10429 fi
10430
10431else
10432
10433 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10434 if test "x$LINE" != x ; then
10435 eval "DEFAULT_$LINE"
10436 else
10437 no_cache=1
10438 fi
10439
10440 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10441
10442fi;
10443
10444 eval "$ac_cv_use_wizarddlg"
10445 if test "$no_cache" != 1; then
10446 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10447 fi
10448
10449 if test "$wxUSE_WIZARDDLG" = yes; then
10450 echo "$as_me:$LINENO: result: yes" >&5
10451echo "${ECHO_T}yes" >&6
10452 else
10453 echo "$as_me:$LINENO: result: no" >&5
10454echo "${ECHO_T}no" >&6
10455 fi
10456
10457
10458
10459
10460 enablestring=
10461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10462echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10463 no_cache=0
10464 # Check whether --enable-menus or --disable-menus was given.
10465if test "${enable_menus+set}" = set; then
10466 enableval="$enable_menus"
10467
10468 if test "$enableval" = yes; then
10469 ac_cv_use_menus='wxUSE_MENUS=yes'
10470 else
10471 ac_cv_use_menus='wxUSE_MENUS=no'
10472 fi
10473
10474else
10475
10476 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10477 if test "x$LINE" != x ; then
10478 eval "DEFAULT_$LINE"
10479 else
10480 no_cache=1
10481 fi
10482
10483 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10484
10485fi;
10486
10487 eval "$ac_cv_use_menus"
10488 if test "$no_cache" != 1; then
10489 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10490 fi
10491
10492 if test "$wxUSE_MENUS" = yes; then
10493 echo "$as_me:$LINENO: result: yes" >&5
10494echo "${ECHO_T}yes" >&6
10495 else
10496 echo "$as_me:$LINENO: result: no" >&5
10497echo "${ECHO_T}no" >&6
10498 fi
10499
10500
10501 enablestring=
10502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10503echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10504 no_cache=0
10505 # Check whether --enable-miniframe or --disable-miniframe was given.
10506if test "${enable_miniframe+set}" = set; then
10507 enableval="$enable_miniframe"
10508
10509 if test "$enableval" = yes; then
10510 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10511 else
10512 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10513 fi
10514
10515else
10516
10517 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10518 if test "x$LINE" != x ; then
10519 eval "DEFAULT_$LINE"
10520 else
10521 no_cache=1
10522 fi
10523
10524 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10525
10526fi;
10527
10528 eval "$ac_cv_use_miniframe"
10529 if test "$no_cache" != 1; then
10530 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10531 fi
10532
10533 if test "$wxUSE_MINIFRAME" = yes; then
10534 echo "$as_me:$LINENO: result: yes" >&5
10535echo "${ECHO_T}yes" >&6
10536 else
10537 echo "$as_me:$LINENO: result: no" >&5
10538echo "${ECHO_T}no" >&6
10539 fi
10540
10541
10542 enablestring=
10543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10544echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10545 no_cache=0
10546 # Check whether --enable-tooltips or --disable-tooltips was given.
10547if test "${enable_tooltips+set}" = set; then
10548 enableval="$enable_tooltips"
10549
10550 if test "$enableval" = yes; then
10551 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10552 else
10553 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10554 fi
10555
10556else
10557
10558 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10559 if test "x$LINE" != x ; then
10560 eval "DEFAULT_$LINE"
10561 else
10562 no_cache=1
10563 fi
10564
10565 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10566
10567fi;
10568
10569 eval "$ac_cv_use_tooltips"
10570 if test "$no_cache" != 1; then
10571 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10572 fi
10573
10574 if test "$wxUSE_TOOLTIPS" = yes; then
10575 echo "$as_me:$LINENO: result: yes" >&5
10576echo "${ECHO_T}yes" >&6
10577 else
10578 echo "$as_me:$LINENO: result: no" >&5
10579echo "${ECHO_T}no" >&6
10580 fi
10581
10582
10583 enablestring=
10584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10585echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10586 no_cache=0
10587 # Check whether --enable-splines or --disable-splines was given.
10588if test "${enable_splines+set}" = set; then
10589 enableval="$enable_splines"
10590
10591 if test "$enableval" = yes; then
10592 ac_cv_use_splines='wxUSE_SPLINES=yes'
10593 else
10594 ac_cv_use_splines='wxUSE_SPLINES=no'
10595 fi
10596
10597else
10598
10599 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10600 if test "x$LINE" != x ; then
10601 eval "DEFAULT_$LINE"
10602 else
10603 no_cache=1
10604 fi
10605
10606 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10607
10608fi;
10609
10610 eval "$ac_cv_use_splines"
10611 if test "$no_cache" != 1; then
10612 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10613 fi
10614
10615 if test "$wxUSE_SPLINES" = yes; then
10616 echo "$as_me:$LINENO: result: yes" >&5
10617echo "${ECHO_T}yes" >&6
10618 else
10619 echo "$as_me:$LINENO: result: no" >&5
10620echo "${ECHO_T}no" >&6
10621 fi
10622
10623
fbe2ca43
SN
10624 enablestring=
10625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10626echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10627 no_cache=0
10628 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10629if test "${enable_mousewheel+set}" = set; then
10630 enableval="$enable_mousewheel"
10631
10632 if test "$enableval" = yes; then
10633 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10634 else
10635 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10636 fi
10637
10638else
10639
10640 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10641 if test "x$LINE" != x ; then
10642 eval "DEFAULT_$LINE"
10643 else
10644 no_cache=1
10645 fi
10646
10647 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10648
10649fi;
10650
10651 eval "$ac_cv_use_mousewheel"
10652 if test "$no_cache" != 1; then
10653 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10654 fi
10655
10656 if test "$wxUSE_MOUSEWHEEL" = yes; then
10657 echo "$as_me:$LINENO: result: yes" >&5
10658echo "${ECHO_T}yes" >&6
10659 else
10660 echo "$as_me:$LINENO: result: no" >&5
10661echo "${ECHO_T}no" >&6
10662 fi
10663
10664
a848cd7e
SC
10665 enablestring=
10666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10667echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10668 no_cache=0
10669 # Check whether --enable-validators or --disable-validators was given.
10670if test "${enable_validators+set}" = set; then
10671 enableval="$enable_validators"
10672
10673 if test "$enableval" = yes; then
10674 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10675 else
10676 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10677 fi
10678
10679else
10680
10681 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10682 if test "x$LINE" != x ; then
10683 eval "DEFAULT_$LINE"
10684 else
10685 no_cache=1
10686 fi
10687
10688 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10689
10690fi;
10691
10692 eval "$ac_cv_use_validators"
10693 if test "$no_cache" != 1; then
10694 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10695 fi
10696
10697 if test "$wxUSE_VALIDATORS" = yes; then
10698 echo "$as_me:$LINENO: result: yes" >&5
10699echo "${ECHO_T}yes" >&6
10700 else
10701 echo "$as_me:$LINENO: result: no" >&5
10702echo "${ECHO_T}no" >&6
10703 fi
10704
10705
10706 enablestring=
10707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10708echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10709 no_cache=0
10710 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10711if test "${enable_busyinfo+set}" = set; then
10712 enableval="$enable_busyinfo"
10713
10714 if test "$enableval" = yes; then
10715 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10716 else
10717 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10718 fi
10719
10720else
10721
10722 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10723 if test "x$LINE" != x ; then
10724 eval "DEFAULT_$LINE"
10725 else
10726 no_cache=1
10727 fi
10728
10729 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10730
10731fi;
10732
10733 eval "$ac_cv_use_busyinfo"
10734 if test "$no_cache" != 1; then
10735 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10736 fi
10737
10738 if test "$wxUSE_BUSYINFO" = yes; then
10739 echo "$as_me:$LINENO: result: yes" >&5
10740echo "${ECHO_T}yes" >&6
10741 else
10742 echo "$as_me:$LINENO: result: no" >&5
10743echo "${ECHO_T}no" >&6
10744 fi
10745
10746
10747 enablestring=
10748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10749echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10750 no_cache=0
10751 # Check whether --enable-joystick or --disable-joystick was given.
10752if test "${enable_joystick+set}" = set; then
10753 enableval="$enable_joystick"
10754
10755 if test "$enableval" = yes; then
10756 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10757 else
10758 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10759 fi
10760
10761else
10762
10763 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10764 if test "x$LINE" != x ; then
10765 eval "DEFAULT_$LINE"
10766 else
10767 no_cache=1
10768 fi
10769
10770 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10771
10772fi;
10773
10774 eval "$ac_cv_use_joystick"
10775 if test "$no_cache" != 1; then
10776 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10777 fi
10778
10779 if test "$wxUSE_JOYSTICK" = yes; then
10780 echo "$as_me:$LINENO: result: yes" >&5
10781echo "${ECHO_T}yes" >&6
10782 else
10783 echo "$as_me:$LINENO: result: no" >&5
10784echo "${ECHO_T}no" >&6
10785 fi
10786
10787
10788 enablestring=
10789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10790echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10791 no_cache=0
10792 # Check whether --enable-metafile or --disable-metafile was given.
10793if test "${enable_metafile+set}" = set; then
10794 enableval="$enable_metafile"
10795
10796 if test "$enableval" = yes; then
10797 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10798 else
10799 ac_cv_use_metafile='wxUSE_METAFILE=no'
10800 fi
10801
10802else
10803
10804 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10805 if test "x$LINE" != x ; then
10806 eval "DEFAULT_$LINE"
10807 else
10808 no_cache=1
10809 fi
10810
10811 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10812
10813fi;
10814
10815 eval "$ac_cv_use_metafile"
10816 if test "$no_cache" != 1; then
10817 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10818 fi
10819
10820 if test "$wxUSE_METAFILE" = yes; then
10821 echo "$as_me:$LINENO: result: yes" >&5
10822echo "${ECHO_T}yes" >&6
10823 else
10824 echo "$as_me:$LINENO: result: no" >&5
10825echo "${ECHO_T}no" >&6
10826 fi
10827
10828
10829 enablestring=
10830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10831echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10832 no_cache=0
10833 # Check whether --enable-dragimage or --disable-dragimage was given.
10834if test "${enable_dragimage+set}" = set; then
10835 enableval="$enable_dragimage"
10836
10837 if test "$enableval" = yes; then
10838 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10839 else
10840 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10841 fi
10842
10843else
10844
10845 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10846 if test "x$LINE" != x ; then
10847 eval "DEFAULT_$LINE"
10848 else
10849 no_cache=1
10850 fi
10851
10852 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10853
10854fi;
10855
10856 eval "$ac_cv_use_dragimage"
10857 if test "$no_cache" != 1; then
10858 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10859 fi
10860
10861 if test "$wxUSE_DRAGIMAGE" = yes; then
10862 echo "$as_me:$LINENO: result: yes" >&5
10863echo "${ECHO_T}yes" >&6
10864 else
10865 echo "$as_me:$LINENO: result: no" >&5
10866echo "${ECHO_T}no" >&6
10867 fi
10868
10869
10870 enablestring=
10871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10872echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10873 no_cache=0
10874 # Check whether --enable-accessibility or --disable-accessibility was given.
10875if test "${enable_accessibility+set}" = set; then
10876 enableval="$enable_accessibility"
10877
10878 if test "$enableval" = yes; then
10879 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10880 else
10881 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10882 fi
10883
10884else
10885
10886 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10887 if test "x$LINE" != x ; then
10888 eval "DEFAULT_$LINE"
10889 else
10890 no_cache=1
10891 fi
10892
10893 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10894
10895fi;
10896
10897 eval "$ac_cv_use_accessibility"
10898 if test "$no_cache" != 1; then
10899 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10900 fi
10901
10902 if test "$wxUSE_ACCESSIBILITY" = yes; then
10903 echo "$as_me:$LINENO: result: yes" >&5
10904echo "${ECHO_T}yes" >&6
10905 else
10906 echo "$as_me:$LINENO: result: no" >&5
10907echo "${ECHO_T}no" >&6
10908 fi
10909
10910
38b4a946
VZ
10911if test "$wxUSE_MSW" = "1"; then
10912
10913 enablestring=
10914 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10915echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10916 no_cache=0
10917 # Check whether --enable-dccache or --disable-dccache was given.
10918if test "${enable_dccache+set}" = set; then
10919 enableval="$enable_dccache"
10920
10921 if test "$enableval" = yes; then
10922 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10923 else
10924 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10925 fi
10926
10927else
10928
10929 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10930 if test "x$LINE" != x ; then
10931 eval "DEFAULT_$LINE"
10932 else
10933 no_cache=1
10934 fi
10935
10936 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10937
10938fi;
10939
10940 eval "$ac_cv_use_dccache"
10941 if test "$no_cache" != 1; then
10942 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10943 fi
10944
10945 if test "$wxUSE_DC_CACHEING" = yes; then
10946 echo "$as_me:$LINENO: result: yes" >&5
10947echo "${ECHO_T}yes" >&6
10948 else
10949 echo "$as_me:$LINENO: result: no" >&5
10950echo "${ECHO_T}no" >&6
10951 fi
10952
10953fi
10954
a848cd7e
SC
10955
10956
10957 enablestring=
10958 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10959echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10960 no_cache=0
10961 # Check whether --enable-palette or --disable-palette was given.
10962if test "${enable_palette+set}" = set; then
10963 enableval="$enable_palette"
10964
10965 if test "$enableval" = yes; then
10966 ac_cv_use_palette='wxUSE_PALETTE=yes'
10967 else
10968 ac_cv_use_palette='wxUSE_PALETTE=no'
10969 fi
10970
10971else
10972
10973 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10974 if test "x$LINE" != x ; then
10975 eval "DEFAULT_$LINE"
10976 else
10977 no_cache=1
10978 fi
10979
10980 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10981
10982fi;
10983
10984 eval "$ac_cv_use_palette"
10985 if test "$no_cache" != 1; then
10986 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10987 fi
10988
10989 if test "$wxUSE_PALETTE" = yes; then
10990 echo "$as_me:$LINENO: result: yes" >&5
10991echo "${ECHO_T}yes" >&6
10992 else
10993 echo "$as_me:$LINENO: result: no" >&5
10994echo "${ECHO_T}no" >&6
10995 fi
10996
10997
10998 enablestring=
10999 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
11000echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
11001 no_cache=0
11002 # Check whether --enable-image or --disable-image was given.
11003if test "${enable_image+set}" = set; then
11004 enableval="$enable_image"
11005
11006 if test "$enableval" = yes; then
11007 ac_cv_use_image='wxUSE_IMAGE=yes'
11008 else
11009 ac_cv_use_image='wxUSE_IMAGE=no'
11010 fi
11011
11012else
11013
11014 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11015 if test "x$LINE" != x ; then
11016 eval "DEFAULT_$LINE"
11017 else
11018 no_cache=1
11019 fi
11020
11021 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11022
11023fi;
11024
11025 eval "$ac_cv_use_image"
11026 if test "$no_cache" != 1; then
11027 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11028 fi
11029
11030 if test "$wxUSE_IMAGE" = yes; then
11031 echo "$as_me:$LINENO: result: yes" >&5
11032echo "${ECHO_T}yes" >&6
11033 else
11034 echo "$as_me:$LINENO: result: no" >&5
11035echo "${ECHO_T}no" >&6
11036 fi
11037
11038
11039 enablestring=
11040 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11041echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11042 no_cache=0
11043 # Check whether --enable-gif or --disable-gif was given.
11044if test "${enable_gif+set}" = set; then
11045 enableval="$enable_gif"
11046
11047 if test "$enableval" = yes; then
11048 ac_cv_use_gif='wxUSE_GIF=yes'
11049 else
11050 ac_cv_use_gif='wxUSE_GIF=no'
11051 fi
11052
11053else
11054
11055 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11056 if test "x$LINE" != x ; then
11057 eval "DEFAULT_$LINE"
11058 else
11059 no_cache=1
11060 fi
11061
11062 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11063
11064fi;
11065
11066 eval "$ac_cv_use_gif"
11067 if test "$no_cache" != 1; then
11068 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11069 fi
11070
11071 if test "$wxUSE_GIF" = yes; then
11072 echo "$as_me:$LINENO: result: yes" >&5
11073echo "${ECHO_T}yes" >&6
11074 else
11075 echo "$as_me:$LINENO: result: no" >&5
11076echo "${ECHO_T}no" >&6
11077 fi
11078
11079
11080 enablestring=
11081 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11082echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11083 no_cache=0
11084 # Check whether --enable-pcx or --disable-pcx was given.
11085if test "${enable_pcx+set}" = set; then
11086 enableval="$enable_pcx"
11087
11088 if test "$enableval" = yes; then
11089 ac_cv_use_pcx='wxUSE_PCX=yes'
11090 else
11091 ac_cv_use_pcx='wxUSE_PCX=no'
11092 fi
11093
11094else
11095
11096 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11097 if test "x$LINE" != x ; then
11098 eval "DEFAULT_$LINE"
11099 else
11100 no_cache=1
11101 fi
11102
11103 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11104
11105fi;
11106
11107 eval "$ac_cv_use_pcx"
11108 if test "$no_cache" != 1; then
11109 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11110 fi
11111
11112 if test "$wxUSE_PCX" = yes; then
11113 echo "$as_me:$LINENO: result: yes" >&5
11114echo "${ECHO_T}yes" >&6
11115 else
11116 echo "$as_me:$LINENO: result: no" >&5
11117echo "${ECHO_T}no" >&6
11118 fi
11119
11120
11121 enablestring=
11122 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11123echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11124 no_cache=0
11125 # Check whether --enable-iff or --disable-iff was given.
11126if test "${enable_iff+set}" = set; then
11127 enableval="$enable_iff"
11128
11129 if test "$enableval" = yes; then
11130 ac_cv_use_iff='wxUSE_IFF=yes'
11131 else
11132 ac_cv_use_iff='wxUSE_IFF=no'
11133 fi
11134
11135else
11136
11137 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11138 if test "x$LINE" != x ; then
11139 eval "DEFAULT_$LINE"
11140 else
11141 no_cache=1
11142 fi
11143
11144 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11145
11146fi;
11147
11148 eval "$ac_cv_use_iff"
11149 if test "$no_cache" != 1; then
11150 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11151 fi
11152
11153 if test "$wxUSE_IFF" = yes; then
11154 echo "$as_me:$LINENO: result: yes" >&5
11155echo "${ECHO_T}yes" >&6
11156 else
11157 echo "$as_me:$LINENO: result: no" >&5
11158echo "${ECHO_T}no" >&6
11159 fi
11160
11161
11162 enablestring=
11163 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11164echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11165 no_cache=0
11166 # Check whether --enable-pnm or --disable-pnm was given.
11167if test "${enable_pnm+set}" = set; then
11168 enableval="$enable_pnm"
11169
11170 if test "$enableval" = yes; then
11171 ac_cv_use_pnm='wxUSE_PNM=yes'
11172 else
11173 ac_cv_use_pnm='wxUSE_PNM=no'
11174 fi
11175
11176else
11177
11178 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11179 if test "x$LINE" != x ; then
11180 eval "DEFAULT_$LINE"
11181 else
11182 no_cache=1
11183 fi
11184
11185 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11186
11187fi;
11188
11189 eval "$ac_cv_use_pnm"
11190 if test "$no_cache" != 1; then
11191 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11192 fi
11193
11194 if test "$wxUSE_PNM" = yes; then
11195 echo "$as_me:$LINENO: result: yes" >&5
11196echo "${ECHO_T}yes" >&6
11197 else
11198 echo "$as_me:$LINENO: result: no" >&5
11199echo "${ECHO_T}no" >&6
11200 fi
11201
11202
11203 enablestring=
11204 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11205echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11206 no_cache=0
11207 # Check whether --enable-xpm or --disable-xpm was given.
11208if test "${enable_xpm+set}" = set; then
11209 enableval="$enable_xpm"
11210
11211 if test "$enableval" = yes; then
11212 ac_cv_use_xpm='wxUSE_XPM=yes'
11213 else
11214 ac_cv_use_xpm='wxUSE_XPM=no'
11215 fi
11216
11217else
11218
11219 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11220 if test "x$LINE" != x ; then
11221 eval "DEFAULT_$LINE"
11222 else
11223 no_cache=1
11224 fi
11225
11226 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11227
11228fi;
11229
11230 eval "$ac_cv_use_xpm"
11231 if test "$no_cache" != 1; then
11232 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11233 fi
11234
11235 if test "$wxUSE_XPM" = yes; then
11236 echo "$as_me:$LINENO: result: yes" >&5
11237echo "${ECHO_T}yes" >&6
11238 else
11239 echo "$as_me:$LINENO: result: no" >&5
11240echo "${ECHO_T}no" >&6
11241 fi
11242
11243
11244 enablestring=
11245 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11246echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11247 no_cache=0
11248 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11249if test "${enable_ico_cur+set}" = set; then
11250 enableval="$enable_ico_cur"
11251
11252 if test "$enableval" = yes; then
11253 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11254 else
11255 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11256 fi
11257
11258else
11259
11260 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11261 if test "x$LINE" != x ; then
11262 eval "DEFAULT_$LINE"
11263 else
11264 no_cache=1
11265 fi
11266
11267 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11268
11269fi;
11270
11271 eval "$ac_cv_use_ico_cur"
11272 if test "$no_cache" != 1; then
11273 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11274 fi
11275
11276 if test "$wxUSE_ICO_CUR" = yes; then
11277 echo "$as_me:$LINENO: result: yes" >&5
11278echo "${ECHO_T}yes" >&6
11279 else
11280 echo "$as_me:$LINENO: result: no" >&5
11281echo "${ECHO_T}no" >&6
11282 fi
11283
11284
11285fi
11286
11287
11288
ceec2216
RL
11289# Check whether --with-flavour or --without-flavour was given.
11290if test "${with_flavour+set}" = set; then
11291 withval="$with_flavour"
11292 WX_FLAVOUR="$withval"
11293fi;
11294
11295
11296
a848cd7e
SC
11297 enablestring=
11298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11299echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11300 no_cache=0
11301 # Check whether --enable-official_build or --disable-official_build was given.
11302if test "${enable_official_build+set}" = set; then
11303 enableval="$enable_official_build"
11304
11305 if test "$enableval" = yes; then
11306 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11307 else
11308 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11309 fi
11310
11311else
11312
11313 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11314 if test "x$LINE" != x ; then
11315 eval "DEFAULT_$LINE"
11316 else
11317 no_cache=1
11318 fi
11319
11320 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11321
11322fi;
11323
11324 eval "$ac_cv_use_official_build"
11325 if test "$no_cache" != 1; then
11326 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11327 fi
11328
11329 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11330 echo "$as_me:$LINENO: result: yes" >&5
11331echo "${ECHO_T}yes" >&6
11332 else
11333 echo "$as_me:$LINENO: result: no" >&5
11334echo "${ECHO_T}no" >&6
11335 fi
11336
11337# Check whether --enable-vendor or --disable-vendor was given.
11338if test "${enable_vendor+set}" = set; then
11339 enableval="$enable_vendor"
11340 VENDOR="$enableval"
11341fi;
11342if test "x$VENDOR" = "x"; then
11343 VENDOR="custom"
11344fi
11345
a848cd7e
SC
11346
11347
11348
11349 echo "saving argument cache $wx_arg_cache_file"
11350 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11351
11352
11353
11354echo "$as_me:$LINENO: checking for toolkit" >&5
11355echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11356
11357# In Wine, we need to default to MSW, not GTK or MOTIF
11358if test "$wxUSE_WINE" = "yes"; then
11359 DEFAULT_DEFAULT_wxUSE_GTK=0
11360 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11361 DEFAULT_DEFAULT_wxUSE_MSW=1
11362 wxUSE_SHARED=no
11363fi
11364
f597b41c 11365
a848cd7e
SC
11366if test "$wxUSE_GUI" = "yes"; then
11367
11368 if test "$USE_BEOS" = 1; then
11369 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11370echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11371 { (exit 1); exit 1; }; }
11372 fi
11373
11374 if test "$TOOLKIT_GIVEN" = 1; then
11375 for toolkit in `echo $ALL_TOOLKITS`; do
11376 var=wxUSE_$toolkit
11377 eval "value=\$${var}"
f34ca037
MW
11378 if test "x$value" = "xno"; then
11379 eval "$var=0"
11380 elif test "x$value" != "x"; then
11381 eval "$var=1"
11382 fi
11383
11384 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11385 eval "wx${toolkit}_VERSION=$value"
11386 fi
a848cd7e
SC
11387 done
11388 else
11389 for toolkit in `echo $ALL_TOOLKITS`; do
11390 if test "$has_toolkit_in_cache" != 1; then
11391 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11392 else
11393 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11394
11395 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11396 if test "x$version" != "x"; then
11397 eval "wx${toolkit}_VERSION=$version"
11398 fi
a848cd7e
SC
11399 fi
11400 eval "wxUSE_$toolkit=\$${var}"
11401 done
11402 fi
11403
11404 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
11405 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
11406 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11407
11408 case "${host}" in
11409 *-pc-os2_emx | *-pc-os2-emx )
11410 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11411 esac
11412
11413 case "$NUM_TOOLKITS" in
11414 1)
11415 ;;
11416 0)
11417 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11418echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11419 { (exit 1); exit 1; }; }
11420 ;;
11421 *)
11422 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11423echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11424 { (exit 1); exit 1; }; }
11425 esac
11426
f34ca037
MW
11427 # to be removed when --disable-gtk2 isn't needed
11428 if test "x$wxUSE_GTK2" = "xyes"; then
11429 wxGTK_VERSION=2
11430 elif test "x$wxUSE_GTK2" = "xno"; then
11431 wxGTK_VERSION=1
11432 fi
11433
a848cd7e
SC
11434 for toolkit in `echo $ALL_TOOLKITS`; do
11435 var=wxUSE_$toolkit
11436 eval "value=\$${var}"
11437 if test "x$value" != x; then
11438 cache_var=CACHE_$toolkit
11439 eval "cache=\$${cache_var}"
11440 if test "$cache" = 1; then
11441 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11442 eval "version=\$wx${toolkit}_VERSION"
11443 if test "x$version" != "x"; then
11444 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11445 fi
a848cd7e
SC
11446 fi
11447 if test "$value" = 1; then
11448 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11449 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11450echo "${ECHO_T}$toolkit_echo" >&6
11451 fi
11452 fi
11453 done
11454else
11455 if test "x$host_alias" != "x"; then
11456 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11457echo "${ECHO_T}base ($host_alias hosted) only" >&6
11458 else
11459 echo "$as_me:$LINENO: result: base only" >&5
11460echo "${ECHO_T}base only" >&6
11461 fi
11462fi
11463
11464wants_win32=0
11465doesnt_want_win32=0
11466case "${host}" in
11467 *-*-cygwin*)
11468 if test "$wxUSE_MSW" = 1 ; then
11469 wants_win32=1
7275146d 11470 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11471 else
11472 doesnt_want_win32=1
11473 fi
11474 ;;
11475 *-*-mingw*)
11476 wants_win32=1
11477 ;;
11478esac
11479
11480if test "$wxUSE_WINE" = "yes"; then
11481 wants_win32=1
11482 CC=winegcc
11483 CXX=wineg++
a848cd7e
SC
11484 LDFLAGS_GUI="-mwindows"
11485fi
11486
11487if test "$wants_win32" = 1 ; then
11488 USE_UNIX=0
11489 USE_WIN32=1
11490 cat >>confdefs.h <<\_ACEOF
11491#define __WIN32__ 1
11492_ACEOF
11493
11494 cat >>confdefs.h <<\_ACEOF
11495#define __WIN95__ 1
11496_ACEOF
11497
11498 cat >>confdefs.h <<\_ACEOF
11499#define __WINDOWS__ 1
11500_ACEOF
11501
11502 cat >>confdefs.h <<\_ACEOF
11503#define __GNUWIN32__ 1
11504_ACEOF
11505
11506 cat >>confdefs.h <<\_ACEOF
11507#define STRICT 1
11508_ACEOF
11509
11510 cat >>confdefs.h <<\_ACEOF
11511#define WINVER 0x0400
11512_ACEOF
11513
11514fi
11515if test "$doesnt_want_win32" = 1 ; then
11516 USE_UNIX=1
11517 USE_WIN32=0
11518fi
11519
11520if test "$USE_UNIX" = 1 ; then
11521 wxUSE_UNIX=yes
11522 cat >>confdefs.h <<\_ACEOF
11523#define __UNIX__ 1
11524_ACEOF
11525
11526fi
11527
11528
11529cat >confcache <<\_ACEOF
11530# This file is a shell script that caches the results of configure
11531# tests run on this system so they can be shared between configure
11532# scripts and configure runs, see configure's option --config-cache.
11533# It is not useful on other systems. If it contains results you don't
11534# want to keep, you may remove or edit it.
11535#
11536# config.status only pays attention to the cache file if you give it
11537# the --recheck option to rerun configure.
11538#
11539# `ac_cv_env_foo' variables (set or unset) will be overridden when
11540# loading this file, other *unset* `ac_cv_foo' will be assigned the
11541# following values.
11542
11543_ACEOF
11544
11545# The following way of writing the cache mishandles newlines in values,
11546# but we know of no workaround that is simple, portable, and efficient.
11547# So, don't put newlines in cache variables' values.
11548# Ultrix sh set writes to stderr and can't be redirected directly,
11549# and sets the high bit in the cache file unless we assign to the vars.
11550{
11551 (set) 2>&1 |
11552 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11553 *ac_space=\ *)
11554 # `set' does not quote correctly, so add quotes (double-quote
11555 # substitution turns \\\\ into \\, and sed turns \\ into \).
11556 sed -n \
ac1cb8d3
VS
11557 "s/'/'\\\\''/g;
11558 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11559 ;;
11560 *)
11561 # `set' quotes correctly as required by POSIX, so do not add quotes.
11562 sed -n \
ac1cb8d3 11563 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11564 ;;
11565 esac;
11566} |
11567 sed '
11568 t clear
11569 : clear
11570 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11571 t end
11572 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11573 : end' >>confcache
11574if diff $cache_file confcache >/dev/null 2>&1; then :; else
11575 if test -w $cache_file; then
11576 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11577 cat confcache >$cache_file
11578 else
11579 echo "not updating unwritable cache $cache_file"
11580 fi
11581fi
11582rm -f confcache
11583
a848cd7e 11584CFLAGS=${CFLAGS:=}
6dcfc289
DE
11585
11586
3006edc0 11587
6dcfc289 11588 ac_ext=c
a848cd7e
SC
11589ac_cpp='$CPP $CPPFLAGS'
11590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11592ac_compiler_gnu=$ac_cv_c_compiler_gnu
11593if test -n "$ac_tool_prefix"; then
11594 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11595set dummy ${ac_tool_prefix}gcc; ac_word=$2
11596echo "$as_me:$LINENO: checking for $ac_word" >&5
11597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11598if test "${ac_cv_prog_CC+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11600else
11601 if test -n "$CC"; then
11602 ac_cv_prog_CC="$CC" # Let the user override the test.
11603else
11604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11605for as_dir in $PATH
11606do
11607 IFS=$as_save_IFS
11608 test -z "$as_dir" && as_dir=.
11609 for ac_exec_ext in '' $ac_executable_extensions; do
11610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11611 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11613 break 2
11614 fi
11615done
11616done
11617
11618fi
11619fi
11620CC=$ac_cv_prog_CC
11621if test -n "$CC"; then
11622 echo "$as_me:$LINENO: result: $CC" >&5
11623echo "${ECHO_T}$CC" >&6
11624else
11625 echo "$as_me:$LINENO: result: no" >&5
11626echo "${ECHO_T}no" >&6
11627fi
11628
11629fi
11630if test -z "$ac_cv_prog_CC"; then
11631 ac_ct_CC=$CC
11632 # Extract the first word of "gcc", so it can be a program name with args.
11633set dummy gcc; ac_word=$2
11634echo "$as_me:$LINENO: checking for $ac_word" >&5
11635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11636if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11637 echo $ECHO_N "(cached) $ECHO_C" >&6
11638else
11639 if test -n "$ac_ct_CC"; then
11640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11641else
11642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643for as_dir in $PATH
11644do
11645 IFS=$as_save_IFS
11646 test -z "$as_dir" && as_dir=.
11647 for ac_exec_ext in '' $ac_executable_extensions; do
11648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11649 ac_cv_prog_ac_ct_CC="gcc"
11650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11651 break 2
11652 fi
11653done
11654done
11655
11656fi
11657fi
11658ac_ct_CC=$ac_cv_prog_ac_ct_CC
11659if test -n "$ac_ct_CC"; then
11660 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11661echo "${ECHO_T}$ac_ct_CC" >&6
11662else
11663 echo "$as_me:$LINENO: result: no" >&5
11664echo "${ECHO_T}no" >&6
11665fi
11666
11667 CC=$ac_ct_CC
11668else
11669 CC="$ac_cv_prog_CC"
11670fi
11671
11672if test -z "$CC"; then
11673 if test -n "$ac_tool_prefix"; then
11674 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11675set dummy ${ac_tool_prefix}cc; ac_word=$2
11676echo "$as_me:$LINENO: checking for $ac_word" >&5
11677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11678if test "${ac_cv_prog_CC+set}" = set; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11680else
11681 if test -n "$CC"; then
11682 ac_cv_prog_CC="$CC" # Let the user override the test.
11683else
11684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11685for as_dir in $PATH
11686do
11687 IFS=$as_save_IFS
11688 test -z "$as_dir" && as_dir=.
11689 for ac_exec_ext in '' $ac_executable_extensions; do
11690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11691 ac_cv_prog_CC="${ac_tool_prefix}cc"
11692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11693 break 2
11694 fi
11695done
11696done
11697
11698fi
11699fi
11700CC=$ac_cv_prog_CC
11701if test -n "$CC"; then
11702 echo "$as_me:$LINENO: result: $CC" >&5
11703echo "${ECHO_T}$CC" >&6
11704else
11705 echo "$as_me:$LINENO: result: no" >&5
11706echo "${ECHO_T}no" >&6
11707fi
11708
11709fi
11710if test -z "$ac_cv_prog_CC"; then
11711 ac_ct_CC=$CC
11712 # Extract the first word of "cc", so it can be a program name with args.
11713set dummy cc; ac_word=$2
11714echo "$as_me:$LINENO: checking for $ac_word" >&5
11715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11716if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11718else
11719 if test -n "$ac_ct_CC"; then
11720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11721else
11722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11723for as_dir in $PATH
11724do
11725 IFS=$as_save_IFS
11726 test -z "$as_dir" && as_dir=.
11727 for ac_exec_ext in '' $ac_executable_extensions; do
11728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11729 ac_cv_prog_ac_ct_CC="cc"
11730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11731 break 2
11732 fi
11733done
11734done
11735
11736fi
11737fi
11738ac_ct_CC=$ac_cv_prog_ac_ct_CC
11739if test -n "$ac_ct_CC"; then
11740 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11741echo "${ECHO_T}$ac_ct_CC" >&6
11742else
11743 echo "$as_me:$LINENO: result: no" >&5
11744echo "${ECHO_T}no" >&6
11745fi
11746
11747 CC=$ac_ct_CC
11748else
11749 CC="$ac_cv_prog_CC"
11750fi
11751
11752fi
11753if test -z "$CC"; then
11754 # Extract the first word of "cc", so it can be a program name with args.
11755set dummy cc; ac_word=$2
11756echo "$as_me:$LINENO: checking for $ac_word" >&5
11757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11758if test "${ac_cv_prog_CC+set}" = set; then
11759 echo $ECHO_N "(cached) $ECHO_C" >&6
11760else
11761 if test -n "$CC"; then
11762 ac_cv_prog_CC="$CC" # Let the user override the test.
11763else
11764 ac_prog_rejected=no
11765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11766for as_dir in $PATH
11767do
11768 IFS=$as_save_IFS
11769 test -z "$as_dir" && as_dir=.
11770 for ac_exec_ext in '' $ac_executable_extensions; do
11771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11772 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11773 ac_prog_rejected=yes
11774 continue
11775 fi
11776 ac_cv_prog_CC="cc"
11777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11778 break 2
11779 fi
11780done
11781done
11782
11783if test $ac_prog_rejected = yes; then
11784 # We found a bogon in the path, so make sure we never use it.
11785 set dummy $ac_cv_prog_CC
11786 shift
11787 if test $# != 0; then
11788 # We chose a different compiler from the bogus one.
11789 # However, it has the same basename, so the bogon will be chosen
11790 # first if we set CC to just the basename; use the full file name.
11791 shift
11792 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11793 fi
11794fi
11795fi
11796fi
11797CC=$ac_cv_prog_CC
11798if test -n "$CC"; then
11799 echo "$as_me:$LINENO: result: $CC" >&5
11800echo "${ECHO_T}$CC" >&6
11801else
11802 echo "$as_me:$LINENO: result: no" >&5
11803echo "${ECHO_T}no" >&6
11804fi
11805
11806fi
11807if test -z "$CC"; then
11808 if test -n "$ac_tool_prefix"; then
11809 for ac_prog in cl
11810 do
11811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11812set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11813echo "$as_me:$LINENO: checking for $ac_word" >&5
11814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11815if test "${ac_cv_prog_CC+set}" = set; then
11816 echo $ECHO_N "(cached) $ECHO_C" >&6
11817else
11818 if test -n "$CC"; then
11819 ac_cv_prog_CC="$CC" # Let the user override the test.
11820else
11821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822for as_dir in $PATH
11823do
11824 IFS=$as_save_IFS
11825 test -z "$as_dir" && as_dir=.
11826 for ac_exec_ext in '' $ac_executable_extensions; do
11827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11828 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11830 break 2
11831 fi
11832done
11833done
11834
11835fi
11836fi
11837CC=$ac_cv_prog_CC
11838if test -n "$CC"; then
11839 echo "$as_me:$LINENO: result: $CC" >&5
11840echo "${ECHO_T}$CC" >&6
11841else
11842 echo "$as_me:$LINENO: result: no" >&5
11843echo "${ECHO_T}no" >&6
11844fi
11845
11846 test -n "$CC" && break
11847 done
11848fi
11849if test -z "$CC"; then
11850 ac_ct_CC=$CC
11851 for ac_prog in cl
11852do
11853 # Extract the first word of "$ac_prog", so it can be a program name with args.
11854set dummy $ac_prog; ac_word=$2
11855echo "$as_me:$LINENO: checking for $ac_word" >&5
11856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11857if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11859else
11860 if test -n "$ac_ct_CC"; then
11861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11862else
11863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11864for as_dir in $PATH
11865do
11866 IFS=$as_save_IFS
11867 test -z "$as_dir" && as_dir=.
11868 for ac_exec_ext in '' $ac_executable_extensions; do
11869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11870 ac_cv_prog_ac_ct_CC="$ac_prog"
11871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11872 break 2
11873 fi
11874done
11875done
11876
11877fi
11878fi
11879ac_ct_CC=$ac_cv_prog_ac_ct_CC
11880if test -n "$ac_ct_CC"; then
11881 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11882echo "${ECHO_T}$ac_ct_CC" >&6
11883else
11884 echo "$as_me:$LINENO: result: no" >&5
11885echo "${ECHO_T}no" >&6
11886fi
11887
11888 test -n "$ac_ct_CC" && break
11889done
11890
11891 CC=$ac_ct_CC
11892fi
11893
11894fi
11895
11896
11897test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11898See \`config.log' for more details." >&5
11899echo "$as_me: error: no acceptable C compiler found in \$PATH
11900See \`config.log' for more details." >&2;}
11901 { (exit 1); exit 1; }; }
11902
11903# Provide some information about the compiler.
11904echo "$as_me:$LINENO:" \
11905 "checking for C compiler version" >&5
11906ac_compiler=`set X $ac_compile; echo $2`
11907{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11908 (eval $ac_compiler --version </dev/null >&5) 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }
11912{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11913 (eval $ac_compiler -v </dev/null >&5) 2>&5
11914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }
11917{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11918 (eval $ac_compiler -V </dev/null >&5) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }
11922
11923cat >conftest.$ac_ext <<_ACEOF
11924/* confdefs.h. */
11925_ACEOF
11926cat confdefs.h >>conftest.$ac_ext
11927cat >>conftest.$ac_ext <<_ACEOF
11928/* end confdefs.h. */
11929
11930int
11931main ()
11932{
11933
11934 ;
11935 return 0;
11936}
11937_ACEOF
11938ac_clean_files_save=$ac_clean_files
11939ac_clean_files="$ac_clean_files a.out a.exe b.out"
11940# Try to create an executable without -o first, disregard a.out.
11941# It will help us diagnose broken compilers, and finding out an intuition
11942# of exeext.
ac1cb8d3
VS
11943echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11944echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11945ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11946if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11947 (eval $ac_link_default) 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; then
11951 # Find the output, starting from the most likely. This scheme is
11952# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11953# resort.
11954
11955# Be careful to initialize this variable, since it used to be cached.
11956# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11957ac_cv_exeext=
11958# b.out is created by i960 compilers.
11959for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11960do
11961 test -f "$ac_file" || continue
11962 case $ac_file in
11963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11964 ;;
a848cd7e 11965 conftest.$ac_ext )
ac1cb8d3
VS
11966 # This is the source file.
11967 ;;
a848cd7e 11968 [ab].out )
ac1cb8d3
VS
11969 # We found the default executable, but exeext='' is most
11970 # certainly right.
11971 break;;
a848cd7e 11972 *.* )
ac1cb8d3
VS
11973 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11974 # FIXME: I believe we export ac_cv_exeext for Libtool,
11975 # but it would be cool to find out if it's true. Does anybody
11976 # maintain Libtool? --akim.
11977 export ac_cv_exeext
11978 break;;
a848cd7e 11979 * )
ac1cb8d3 11980 break;;
a848cd7e
SC
11981 esac
11982done
11983else
11984 echo "$as_me: failed program was:" >&5
11985sed 's/^/| /' conftest.$ac_ext >&5
11986
11987{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11988See \`config.log' for more details." >&5
11989echo "$as_me: error: C compiler cannot create executables
11990See \`config.log' for more details." >&2;}
11991 { (exit 77); exit 77; }; }
11992fi
11993
11994ac_exeext=$ac_cv_exeext
11995echo "$as_me:$LINENO: result: $ac_file" >&5
11996echo "${ECHO_T}$ac_file" >&6
11997
11998# Check the compiler produces executables we can run. If not, either
11999# the compiler is broken, or we cross compile.
12000echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12001echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12002# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12003# If not cross compiling, check that we can run a simple program.
12004if test "$cross_compiling" != yes; then
12005 if { ac_try='./$ac_file'
12006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12008 ac_status=$?
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12011 cross_compiling=no
12012 else
12013 if test "$cross_compiling" = maybe; then
12014 cross_compiling=yes
12015 else
12016 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12017If you meant to cross compile, use \`--host'.
12018See \`config.log' for more details." >&5
12019echo "$as_me: error: cannot run C compiled programs.
12020If you meant to cross compile, use \`--host'.
12021See \`config.log' for more details." >&2;}
12022 { (exit 1); exit 1; }; }
12023 fi
12024 fi
12025fi
12026echo "$as_me:$LINENO: result: yes" >&5
12027echo "${ECHO_T}yes" >&6
12028
12029rm -f a.out a.exe conftest$ac_cv_exeext b.out
12030ac_clean_files=$ac_clean_files_save
12031# Check the compiler produces executables we can run. If not, either
12032# the compiler is broken, or we cross compile.
12033echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12034echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12035echo "$as_me:$LINENO: result: $cross_compiling" >&5
12036echo "${ECHO_T}$cross_compiling" >&6
12037
12038echo "$as_me:$LINENO: checking for suffix of executables" >&5
12039echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12041 (eval $ac_link) 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; then
12045 # If both `conftest.exe' and `conftest' are `present' (well, observable)
12046# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
12047# work properly (i.e., refer to `conftest.exe'), while it won't with
12048# `rm'.
12049for ac_file in conftest.exe conftest conftest.*; do
12050 test -f "$ac_file" || continue
12051 case $ac_file in
12052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12053 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
12054 export ac_cv_exeext
12055 break;;
a848cd7e
SC
12056 * ) break;;
12057 esac
12058done
12059else
12060 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12061See \`config.log' for more details." >&5
12062echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12063See \`config.log' for more details." >&2;}
12064 { (exit 1); exit 1; }; }
12065fi
12066
12067rm -f conftest$ac_cv_exeext
12068echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12069echo "${ECHO_T}$ac_cv_exeext" >&6
12070
12071rm -f conftest.$ac_ext
12072EXEEXT=$ac_cv_exeext
12073ac_exeext=$EXEEXT
12074echo "$as_me:$LINENO: checking for suffix of object files" >&5
12075echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12076if test "${ac_cv_objext+set}" = set; then
12077 echo $ECHO_N "(cached) $ECHO_C" >&6
12078else
12079 cat >conftest.$ac_ext <<_ACEOF
12080/* confdefs.h. */
12081_ACEOF
12082cat confdefs.h >>conftest.$ac_ext
12083cat >>conftest.$ac_ext <<_ACEOF
12084/* end confdefs.h. */
12085
12086int
12087main ()
12088{
12089
12090 ;
12091 return 0;
12092}
12093_ACEOF
12094rm -f conftest.o conftest.obj
12095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12096 (eval $ac_compile) 2>&5
12097 ac_status=$?
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); }; then
12100 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12101 case $ac_file in
12102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12103 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12104 break;;
12105 esac
12106done
12107else
12108 echo "$as_me: failed program was:" >&5
12109sed 's/^/| /' conftest.$ac_ext >&5
12110
12111{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12112See \`config.log' for more details." >&5
12113echo "$as_me: error: cannot compute suffix of object files: cannot compile
12114See \`config.log' for more details." >&2;}
12115 { (exit 1); exit 1; }; }
12116fi
12117
12118rm -f conftest.$ac_cv_objext conftest.$ac_ext
12119fi
12120echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12121echo "${ECHO_T}$ac_cv_objext" >&6
12122OBJEXT=$ac_cv_objext
12123ac_objext=$OBJEXT
12124echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12125echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12126if test "${ac_cv_c_compiler_gnu+set}" = set; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12128else
12129 cat >conftest.$ac_ext <<_ACEOF
12130/* confdefs.h. */
12131_ACEOF
12132cat confdefs.h >>conftest.$ac_ext
12133cat >>conftest.$ac_ext <<_ACEOF
12134/* end confdefs.h. */
12135
12136int
12137main ()
12138{
12139#ifndef __GNUC__
12140 choke me
12141#endif
12142
12143 ;
12144 return 0;
12145}
12146_ACEOF
12147rm -f conftest.$ac_objext
12148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12149 (eval $ac_compile) 2>conftest.er1
a848cd7e 12150 ac_status=$?
ac1cb8d3
VS
12151 grep -v '^ *+' conftest.er1 >conftest.err
12152 rm -f conftest.er1
12153 cat conftest.err >&5
a848cd7e
SC
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } &&
c9a66001 12156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158 (eval $ac_try) 2>&5
12159 ac_status=$?
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; } &&
12162 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164 (eval $ac_try) 2>&5
12165 ac_status=$?
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); }; }; then
12168 ac_compiler_gnu=yes
12169else
12170 echo "$as_me: failed program was:" >&5
12171sed 's/^/| /' conftest.$ac_ext >&5
12172
12173ac_compiler_gnu=no
12174fi
ac1cb8d3 12175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12176ac_cv_c_compiler_gnu=$ac_compiler_gnu
12177
12178fi
12179echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12180echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12181GCC=`test $ac_compiler_gnu = yes && echo yes`
12182ac_test_CFLAGS=${CFLAGS+set}
12183ac_save_CFLAGS=$CFLAGS
8aeeb05c 12184CFLAGS="-g"
a848cd7e
SC
12185echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12186echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12187if test "${ac_cv_prog_cc_g+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12189else
12190 cat >conftest.$ac_ext <<_ACEOF
12191/* confdefs.h. */
12192_ACEOF
12193cat confdefs.h >>conftest.$ac_ext
12194cat >>conftest.$ac_ext <<_ACEOF
12195/* end confdefs.h. */
12196
12197int
12198main ()
12199{
12200
12201 ;
12202 return 0;
12203}
12204_ACEOF
12205rm -f conftest.$ac_objext
12206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12207 (eval $ac_compile) 2>conftest.er1
a848cd7e 12208 ac_status=$?
ac1cb8d3
VS
12209 grep -v '^ *+' conftest.er1 >conftest.err
12210 rm -f conftest.er1
12211 cat conftest.err >&5
a848cd7e
SC
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } &&
c9a66001 12214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216 (eval $ac_try) 2>&5
12217 ac_status=$?
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; } &&
12220 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12223 ac_status=$?
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
12226 ac_cv_prog_cc_g=yes
12227else
12228 echo "$as_me: failed program was:" >&5
12229sed 's/^/| /' conftest.$ac_ext >&5
12230
12231ac_cv_prog_cc_g=no
12232fi
ac1cb8d3 12233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12234fi
12235echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12236echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12237if test "$ac_test_CFLAGS" = set; then
12238 CFLAGS=$ac_save_CFLAGS
12239elif test $ac_cv_prog_cc_g = yes; then
12240 if test "$GCC" = yes; then
12241 CFLAGS="-g -O2"
12242 else
12243 CFLAGS="-g"
12244 fi
12245else
12246 if test "$GCC" = yes; then
12247 CFLAGS="-O2"
12248 else
12249 CFLAGS=
12250 fi
12251fi
12252echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12253echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12254if test "${ac_cv_prog_cc_stdc+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12256else
12257 ac_cv_prog_cc_stdc=no
12258ac_save_CC=$CC
12259cat >conftest.$ac_ext <<_ACEOF
12260/* confdefs.h. */
12261_ACEOF
12262cat confdefs.h >>conftest.$ac_ext
12263cat >>conftest.$ac_ext <<_ACEOF
12264/* end confdefs.h. */
12265#include <stdarg.h>
12266#include <stdio.h>
12267#include <sys/types.h>
12268#include <sys/stat.h>
12269/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12270struct buf { int x; };
12271FILE * (*rcsopen) (struct buf *, struct stat *, int);
12272static char *e (p, i)
12273 char **p;
12274 int i;
12275{
12276 return p[i];
12277}
12278static char *f (char * (*g) (char **, int), char **p, ...)
12279{
12280 char *s;
12281 va_list v;
12282 va_start (v,p);
12283 s = g (p, va_arg (v,int));
12284 va_end (v);
12285 return s;
12286}
ac1cb8d3
VS
12287
12288/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12289 function prototypes and stuff, but not '\xHH' hex character constants.
12290 These don't provoke an error unfortunately, instead are silently treated
12291 as 'x'. The following induces an error, until -std1 is added to get
12292 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12293 array size at least. It's necessary to write '\x00'==0 to get something
12294 that's true only with -std1. */
12295int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12296
a848cd7e
SC
12297int test (int i, double x);
12298struct s1 {int (*f) (int a);};
12299struct s2 {int (*f) (double a);};
12300int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12301int argc;
12302char **argv;
12303int
12304main ()
12305{
12306return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12307 ;
12308 return 0;
12309}
12310_ACEOF
12311# Don't try gcc -ansi; that turns off useful extensions and
12312# breaks some systems' header files.
12313# AIX -qlanglvl=ansi
12314# Ultrix and OSF/1 -std1
12315# HP-UX 10.20 and later -Ae
12316# HP-UX older versions -Aa -D_HPUX_SOURCE
12317# SVR4 -Xc -D__EXTENSIONS__
12318for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12319do
12320 CC="$ac_save_CC $ac_arg"
12321 rm -f conftest.$ac_objext
12322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12323 (eval $ac_compile) 2>conftest.er1
a848cd7e 12324 ac_status=$?
ac1cb8d3
VS
12325 grep -v '^ *+' conftest.er1 >conftest.err
12326 rm -f conftest.er1
12327 cat conftest.err >&5
a848cd7e
SC
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } &&
c9a66001 12330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332 (eval $ac_try) 2>&5
12333 ac_status=$?
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; } &&
12336 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338 (eval $ac_try) 2>&5
12339 ac_status=$?
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; }; then
12342 ac_cv_prog_cc_stdc=$ac_arg
12343break
12344else
12345 echo "$as_me: failed program was:" >&5
12346sed 's/^/| /' conftest.$ac_ext >&5
12347
12348fi
ac1cb8d3 12349rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
12350done
12351rm -f conftest.$ac_ext conftest.$ac_objext
12352CC=$ac_save_CC
12353
12354fi
12355
12356case "x$ac_cv_prog_cc_stdc" in
12357 x|xno)
12358 echo "$as_me:$LINENO: result: none needed" >&5
12359echo "${ECHO_T}none needed" >&6 ;;
12360 *)
12361 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12362echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12363 CC="$CC $ac_cv_prog_cc_stdc" ;;
12364esac
12365
12366# Some people use a C++ compiler to compile C. Since we use `exit',
12367# in C++ we need to declare it. In case someone uses the same compiler
12368# for both compiling C and C++ we need to have the C++ compiler decide
12369# the declaration of exit, since it's the most demanding environment.
12370cat >conftest.$ac_ext <<_ACEOF
12371#ifndef __cplusplus
12372 choke me
12373#endif
12374_ACEOF
12375rm -f conftest.$ac_objext
12376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12377 (eval $ac_compile) 2>conftest.er1
a848cd7e 12378 ac_status=$?
ac1cb8d3
VS
12379 grep -v '^ *+' conftest.er1 >conftest.err
12380 rm -f conftest.er1
12381 cat conftest.err >&5
a848cd7e
SC
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); } &&
c9a66001 12384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386 (eval $ac_try) 2>&5
12387 ac_status=$?
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; } &&
12390 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12392 (eval $ac_try) 2>&5
12393 ac_status=$?
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; }; then
12396 for ac_declaration in \
ac1cb8d3 12397 '' \
a848cd7e
SC
12398 'extern "C" void std::exit (int) throw (); using std::exit;' \
12399 'extern "C" void std::exit (int); using std::exit;' \
12400 'extern "C" void exit (int) throw ();' \
12401 'extern "C" void exit (int);' \
12402 'void exit (int);'
12403do
12404 cat >conftest.$ac_ext <<_ACEOF
12405/* confdefs.h. */
12406_ACEOF
12407cat confdefs.h >>conftest.$ac_ext
12408cat >>conftest.$ac_ext <<_ACEOF
12409/* end confdefs.h. */
de59c161 12410$ac_declaration
ac1cb8d3 12411#include <stdlib.h>
a848cd7e
SC
12412int
12413main ()
12414{
12415exit (42);
12416 ;
12417 return 0;
12418}
12419_ACEOF
12420rm -f conftest.$ac_objext
12421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12422 (eval $ac_compile) 2>conftest.er1
a848cd7e 12423 ac_status=$?
ac1cb8d3
VS
12424 grep -v '^ *+' conftest.er1 >conftest.err
12425 rm -f conftest.er1
12426 cat conftest.err >&5
a848cd7e
SC
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } &&
c9a66001 12429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431 (eval $ac_try) 2>&5
12432 ac_status=$?
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; } &&
12435 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437 (eval $ac_try) 2>&5
12438 ac_status=$?
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; }; then
12441 :
12442else
12443 echo "$as_me: failed program was:" >&5
12444sed 's/^/| /' conftest.$ac_ext >&5
12445
12446continue
12447fi
ac1cb8d3 12448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12449 cat >conftest.$ac_ext <<_ACEOF
12450/* confdefs.h. */
12451_ACEOF
12452cat confdefs.h >>conftest.$ac_ext
12453cat >>conftest.$ac_ext <<_ACEOF
12454/* end confdefs.h. */
12455$ac_declaration
12456int
12457main ()
12458{
12459exit (42);
12460 ;
12461 return 0;
12462}
12463_ACEOF
12464rm -f conftest.$ac_objext
12465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12466 (eval $ac_compile) 2>conftest.er1
a848cd7e 12467 ac_status=$?
ac1cb8d3
VS
12468 grep -v '^ *+' conftest.er1 >conftest.err
12469 rm -f conftest.er1
12470 cat conftest.err >&5
a848cd7e
SC
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } &&
c9a66001 12473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; } &&
12479 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12482 ac_status=$?
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; }; then
12485 break
12486else
12487 echo "$as_me: failed program was:" >&5
12488sed 's/^/| /' conftest.$ac_ext >&5
12489
12490fi
ac1cb8d3 12491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12492done
12493rm -f conftest*
12494if test -n "$ac_declaration"; then
12495 echo '#ifdef __cplusplus' >>confdefs.h
12496 echo $ac_declaration >>confdefs.h
12497 echo '#endif' >>confdefs.h
12498fi
12499
12500else
12501 echo "$as_me: failed program was:" >&5
12502sed 's/^/| /' conftest.$ac_ext >&5
12503
12504fi
ac1cb8d3 12505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12506ac_ext=c
12507ac_cpp='$CPP $CPPFLAGS'
12508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12510ac_compiler_gnu=$ac_cv_c_compiler_gnu
12511
ab0ad5f1
VZ
12512
12513
12514 ac_ext=c
12515ac_cpp='$CPP $CPPFLAGS'
12516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12518ac_compiler_gnu=$ac_cv_c_compiler_gnu
12519
12520 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12521echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12522if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12524else
12525 cat >conftest.$ac_ext <<_ACEOF
12526/* confdefs.h. */
12527_ACEOF
12528cat confdefs.h >>conftest.$ac_ext
12529cat >>conftest.$ac_ext <<_ACEOF
12530/* end confdefs.h. */
12531
12532int
12533main ()
12534{
12535
12536 #ifndef __INTEL_COMPILER
12537 choke me
12538 #endif
12539
12540 ;
12541 return 0;
12542}
12543_ACEOF
12544rm -f conftest.$ac_objext
12545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12546 (eval $ac_compile) 2>conftest.er1
12547 ac_status=$?
12548 grep -v '^ *+' conftest.er1 >conftest.err
12549 rm -f conftest.er1
12550 cat conftest.err >&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); } &&
c9a66001 12553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12556 ac_status=$?
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; } &&
12559 { ac_try='test -s conftest.$ac_objext'
12560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12562 ac_status=$?
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; }; then
12565 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12566else
12567 echo "$as_me: failed program was:" >&5
12568sed 's/^/| /' conftest.$ac_ext >&5
12569
12570bakefile_cv_c_compiler___INTEL_COMPILER=no
12571
12572fi
12573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12574
12575
12576fi
12577echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12578echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12579 ac_ext=c
12580ac_cpp='$CPP $CPPFLAGS'
12581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12583ac_compiler_gnu=$ac_cv_c_compiler_gnu
12584
12585 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12586 :; INTELCC=yes
12587 else
12588 :;
12589 fi
12590
12591
12592 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12593 if test "xCC" = "xC"; then
12594 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12595echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12596if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12597 echo $ECHO_N "(cached) $ECHO_C" >&6
12598else
12599 cat >conftest.$ac_ext <<_ACEOF
12600/* confdefs.h. */
12601_ACEOF
12602cat confdefs.h >>conftest.$ac_ext
12603cat >>conftest.$ac_ext <<_ACEOF
12604/* end confdefs.h. */
12605
12606int
12607main ()
12608{
12609
12610 ;
12611 return 0;
12612}
12613_ACEOF
12614rm -f conftest.$ac_objext conftest.$ac_ext.o
12615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12616 (eval $ac_compile) 2>&5
12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; then
12620 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12621 case $ac_file in
12622 conftest.$ac_ext.o)
0093c2fc 12623 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12624 ;;
12625 *)
12626 ;;
12627 esac
12628done
12629else
12630 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12631See \`config.log' for more details." >&5
12632echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12633See \`config.log' for more details." >&2;}
12634 { (exit 1); exit 1; }; }
12635
12636fi
12637
12638rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12639
12640fi
0093c2fc
VZ
12641echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12642echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12643if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12644 if test "c" = "c"; then
0093c2fc 12645 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12646 fi
12647 if test "c" = "cxx"; then
0093c2fc 12648 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12649 fi
12650fi
12651
0093c2fc 12652 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12653 unset ac_cv_prog_cc_g
12654 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12655ac_save_CFLAGS=$CFLAGS
8aeeb05c 12656CFLAGS="-g"
480ccd21
DE
12657echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12658echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12659if test "${ac_cv_prog_cc_g+set}" = set; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12661else
12662 cat >conftest.$ac_ext <<_ACEOF
12663/* confdefs.h. */
12664_ACEOF
12665cat confdefs.h >>conftest.$ac_ext
12666cat >>conftest.$ac_ext <<_ACEOF
12667/* end confdefs.h. */
12668
12669int
12670main ()
12671{
12672
12673 ;
12674 return 0;
12675}
12676_ACEOF
12677rm -f conftest.$ac_objext
12678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12679 (eval $ac_compile) 2>conftest.er1
12680 ac_status=$?
12681 grep -v '^ *+' conftest.er1 >conftest.err
12682 rm -f conftest.er1
12683 cat conftest.err >&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); } &&
c9a66001 12686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; } &&
12692 { ac_try='test -s conftest.$ac_objext'
12693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694 (eval $ac_try) 2>&5
12695 ac_status=$?
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; }; then
12698 ac_cv_prog_cc_g=yes
12699else
12700 echo "$as_me: failed program was:" >&5
12701sed 's/^/| /' conftest.$ac_ext >&5
12702
12703ac_cv_prog_cc_g=no
12704fi
12705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12706fi
12707echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12708echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12709if test "$ac_test_CFLAGS" = set; then
12710 CFLAGS=$ac_save_CFLAGS
12711elif test $ac_cv_prog_cc_g = yes; then
12712 if test "$GCC" = yes; then
12713 CFLAGS="-g -O2"
12714 else
12715 CFLAGS="-g"
12716 fi
12717else
12718 if test "$GCC" = yes; then
12719 CFLAGS="-O2"
12720 else
12721 CFLAGS=
12722 fi
12723fi
3006edc0 12724 fi
ab0ad5f1 12725 fi
3006edc0
VZ
12726
12727 case `uname -s` in
12728 AIX*)
12729 ac_ext=c
12730ac_cpp='$CPP $CPPFLAGS'
12731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12733ac_compiler_gnu=$ac_cv_c_compiler_gnu
12734
12735echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12736echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12737if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12738 echo $ECHO_N "(cached) $ECHO_C" >&6
12739else
12740 cat >conftest.$ac_ext <<_ACEOF
12741/* confdefs.h. */
12742_ACEOF
12743cat confdefs.h >>conftest.$ac_ext
12744cat >>conftest.$ac_ext <<_ACEOF
12745/* end confdefs.h. */
12746
12747int
12748main ()
12749{
12750#ifndef __xlC__
12751 choke me
12752#endif
12753
12754 ;
12755 return 0;
12756}
12757_ACEOF
12758rm -f conftest.$ac_objext
12759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12760 (eval $ac_compile) 2>conftest.er1
12761 ac_status=$?
12762 grep -v '^ *+' conftest.er1 >conftest.err
12763 rm -f conftest.er1
12764 cat conftest.err >&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); } &&
c9a66001 12767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769 (eval $ac_try) 2>&5
12770 ac_status=$?
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; } &&
12773 { ac_try='test -s conftest.$ac_objext'
12774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775 (eval $ac_try) 2>&5
12776 ac_status=$?
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); }; }; then
0093c2fc 12779 bakefile_compiler_xlc=yes
3006edc0
VZ
12780else
12781 echo "$as_me: failed program was:" >&5
12782sed 's/^/| /' conftest.$ac_ext >&5
12783
0093c2fc 12784bakefile_compiler_xlc=no
3006edc0
VZ
12785fi
12786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12787 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12788
12789fi
0093c2fc
VZ
12790echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12791echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12792
0093c2fc 12793XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12794ac_ext=c
12795ac_cpp='$CPP $CPPFLAGS'
12796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12798ac_compiler_gnu=$ac_cv_c_compiler_gnu
12799
12800
12801 ;;
12802
12803 Darwin)
12804 ac_ext=c
95986553
DE
12805ac_cpp='$CPP $CPPFLAGS'
12806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12808ac_compiler_gnu=$ac_cv_c_compiler_gnu
12809
12810echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12811echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12812if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12813 echo $ECHO_N "(cached) $ECHO_C" >&6
12814else
12815 cat >conftest.$ac_ext <<_ACEOF
12816/* confdefs.h. */
12817_ACEOF
12818cat confdefs.h >>conftest.$ac_ext
12819cat >>conftest.$ac_ext <<_ACEOF
12820/* end confdefs.h. */
12821
12822int
12823main ()
12824{
12825#ifndef __MWERKS__
12826 choke me
12827#endif
12828
12829 ;
12830 return 0;
12831}
12832_ACEOF
12833rm -f conftest.$ac_objext
12834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12835 (eval $ac_compile) 2>conftest.er1
12836 ac_status=$?
12837 grep -v '^ *+' conftest.er1 >conftest.err
12838 rm -f conftest.er1
12839 cat conftest.err >&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } &&
c9a66001 12842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12845 ac_status=$?
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; } &&
12848 { ac_try='test -s conftest.$ac_objext'
12849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850 (eval $ac_try) 2>&5
12851 ac_status=$?
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; }; then
12854 bakefile_compiler_mwerks=yes
12855else
12856 echo "$as_me: failed program was:" >&5
12857sed 's/^/| /' conftest.$ac_ext >&5
12858
12859bakefile_compiler_mwerks=no
12860fi
12861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12862 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12863
12864fi
12865echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12866echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12867
0e6fa1d9 12868MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12869ac_ext=c
12870ac_cpp='$CPP $CPPFLAGS'
12871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12873ac_compiler_gnu=$ac_cv_c_compiler_gnu
12874
12875
3006edc0 12876 ac_ext=c
9273ffba
DE
12877ac_cpp='$CPP $CPPFLAGS'
12878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12880ac_compiler_gnu=$ac_cv_c_compiler_gnu
12881
12882echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12883echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12884if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12886else
12887 cat >conftest.$ac_ext <<_ACEOF
12888/* confdefs.h. */
12889_ACEOF
12890cat confdefs.h >>conftest.$ac_ext
12891cat >>conftest.$ac_ext <<_ACEOF
12892/* end confdefs.h. */
12893
12894int
12895main ()
12896{
12897#ifndef __xlC__
12898 choke me
12899#endif
12900
12901 ;
12902 return 0;
12903}
12904_ACEOF
12905rm -f conftest.$ac_objext
12906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12907 (eval $ac_compile) 2>conftest.er1
12908 ac_status=$?
12909 grep -v '^ *+' conftest.er1 >conftest.err
12910 rm -f conftest.er1
12911 cat conftest.err >&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } &&
c9a66001 12914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12917 ac_status=$?
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; } &&
12920 { ac_try='test -s conftest.$ac_objext'
12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
12923 ac_status=$?
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; }; then
0093c2fc 12926 bakefile_compiler_xlc=yes
9273ffba
DE
12927else
12928 echo "$as_me: failed program was:" >&5
12929sed 's/^/| /' conftest.$ac_ext >&5
12930
0093c2fc 12931bakefile_compiler_xlc=no
9273ffba
DE
12932fi
12933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12934 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12935
12936fi
0093c2fc
VZ
12937echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12938echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12939
0093c2fc 12940XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12941ac_ext=c
12942ac_cpp='$CPP $CPPFLAGS'
12943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12945ac_compiler_gnu=$ac_cv_c_compiler_gnu
12946
12947
3006edc0
VZ
12948 ;;
12949
12950 IRIX*)
a848cd7e 12951
6dcfc289 12952
0ad5d837
VZ
12953 ac_ext=c
12954ac_cpp='$CPP $CPPFLAGS'
12955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12957ac_compiler_gnu=$ac_cv_c_compiler_gnu
12958
12959 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12960echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12961if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12962 echo $ECHO_N "(cached) $ECHO_C" >&6
12963else
12964 cat >conftest.$ac_ext <<_ACEOF
12965/* confdefs.h. */
12966_ACEOF
12967cat confdefs.h >>conftest.$ac_ext
12968cat >>conftest.$ac_ext <<_ACEOF
12969/* end confdefs.h. */
12970
12971int
12972main ()
12973{
12974
12975 #ifndef _SGI_COMPILER_VERSION
12976 choke me
12977 #endif
12978
12979 ;
12980 return 0;
12981}
12982_ACEOF
12983rm -f conftest.$ac_objext
12984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12985 (eval $ac_compile) 2>conftest.er1
12986 ac_status=$?
12987 grep -v '^ *+' conftest.er1 >conftest.err
12988 rm -f conftest.er1
12989 cat conftest.err >&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } &&
c9a66001 12992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12995 ac_status=$?
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; } &&
12998 { ac_try='test -s conftest.$ac_objext'
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000 (eval $ac_try) 2>&5
13001 ac_status=$?
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }; then
13004 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13005else
13006 echo "$as_me: failed program was:" >&5
13007sed 's/^/| /' conftest.$ac_ext >&5
13008
13009bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
13010
13011fi
13012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13013
13014
13015fi
13016echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13017echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13018 ac_ext=c
13019ac_cpp='$CPP $CPPFLAGS'
13020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13022ac_compiler_gnu=$ac_cv_c_compiler_gnu
13023
13024 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13025 :; SGICC=yes
13026 else
13027 :;
13028 fi
13029
13030
3006edc0
VZ
13031 ;;
13032
0093c2fc 13033 HP-UX*)
3006edc0
VZ
13034
13035
13036 ac_ext=c
13037ac_cpp='$CPP $CPPFLAGS'
13038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13040ac_compiler_gnu=$ac_cv_c_compiler_gnu
13041
0093c2fc
VZ
13042 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13043echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13044if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
13045 echo $ECHO_N "(cached) $ECHO_C" >&6
13046else
13047 cat >conftest.$ac_ext <<_ACEOF
13048/* confdefs.h. */
13049_ACEOF
13050cat confdefs.h >>conftest.$ac_ext
13051cat >>conftest.$ac_ext <<_ACEOF
13052/* end confdefs.h. */
13053
13054int
13055main ()
13056{
13057
0093c2fc 13058 #ifndef __HP_cc
3006edc0
VZ
13059 choke me
13060 #endif
13061
13062 ;
13063 return 0;
13064}
13065_ACEOF
13066rm -f conftest.$ac_objext
13067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13068 (eval $ac_compile) 2>conftest.er1
13069 ac_status=$?
13070 grep -v '^ *+' conftest.er1 >conftest.err
13071 rm -f conftest.er1
13072 cat conftest.err >&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); } &&
c9a66001 13075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13077 (eval $ac_try) 2>&5
13078 ac_status=$?
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); }; } &&
13081 { ac_try='test -s conftest.$ac_objext'
13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083 (eval $ac_try) 2>&5
13084 ac_status=$?
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; }; then
0093c2fc 13087 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13088else
13089 echo "$as_me: failed program was:" >&5
13090sed 's/^/| /' conftest.$ac_ext >&5
13091
0093c2fc 13092bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13093
13094fi
13095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13096
13097
13098fi
0093c2fc
VZ
13099echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13100echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13101 ac_ext=c
13102ac_cpp='$CPP $CPPFLAGS'
13103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13105ac_compiler_gnu=$ac_cv_c_compiler_gnu
13106
0093c2fc
VZ
13107 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13108 :; HPCC=yes
a1aa0349
VZ
13109 else
13110 :;
13111 fi
13112
13113
13114 ;;
13115
0093c2fc 13116 OSF1)
a1aa0349
VZ
13117
13118
13119 ac_ext=c
13120ac_cpp='$CPP $CPPFLAGS'
13121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13123ac_compiler_gnu=$ac_cv_c_compiler_gnu
13124
0093c2fc
VZ
13125 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13126echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13127if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13128 echo $ECHO_N "(cached) $ECHO_C" >&6
13129else
13130 cat >conftest.$ac_ext <<_ACEOF
13131/* confdefs.h. */
13132_ACEOF
13133cat confdefs.h >>conftest.$ac_ext
13134cat >>conftest.$ac_ext <<_ACEOF
13135/* end confdefs.h. */
13136
13137int
13138main ()
13139{
13140
0093c2fc 13141 #ifndef __DECC
a1aa0349
VZ
13142 choke me
13143 #endif
13144
13145 ;
13146 return 0;
13147}
13148_ACEOF
13149rm -f conftest.$ac_objext
13150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13151 (eval $ac_compile) 2>conftest.er1
13152 ac_status=$?
13153 grep -v '^ *+' conftest.er1 >conftest.err
13154 rm -f conftest.er1
13155 cat conftest.err >&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } &&
c9a66001 13158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5
13161 ac_status=$?
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; } &&
13164 { ac_try='test -s conftest.$ac_objext'
13165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166 (eval $ac_try) 2>&5
13167 ac_status=$?
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; }; then
0093c2fc 13170 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13171else
13172 echo "$as_me: failed program was:" >&5
13173sed 's/^/| /' conftest.$ac_ext >&5
13174
0093c2fc 13175bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13176
13177fi
13178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13179
13180
13181fi
0093c2fc
VZ
13182echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13183echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13184 ac_ext=c
13185ac_cpp='$CPP $CPPFLAGS'
13186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13188ac_compiler_gnu=$ac_cv_c_compiler_gnu
13189
0093c2fc
VZ
13190 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13191 :; COMPAQCC=yes
13192 else
13193 :;
13194 fi
13195
13196
13197 ;;
13198
13199 SunOS)
13200
13201
13202 ac_ext=c
13203ac_cpp='$CPP $CPPFLAGS'
13204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13206ac_compiler_gnu=$ac_cv_c_compiler_gnu
13207
13208 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13209echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13210if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13212else
13213 cat >conftest.$ac_ext <<_ACEOF
13214/* confdefs.h. */
13215_ACEOF
13216cat confdefs.h >>conftest.$ac_ext
13217cat >>conftest.$ac_ext <<_ACEOF
13218/* end confdefs.h. */
13219
13220int
13221main ()
13222{
13223
13224 #ifndef __SUNPRO_C
13225 choke me
13226 #endif
13227
13228 ;
13229 return 0;
13230}
13231_ACEOF
13232rm -f conftest.$ac_objext
13233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13234 (eval $ac_compile) 2>conftest.er1
13235 ac_status=$?
13236 grep -v '^ *+' conftest.er1 >conftest.err
13237 rm -f conftest.er1
13238 cat conftest.err >&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } &&
c9a66001 13241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
13242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243 (eval $ac_try) 2>&5
13244 ac_status=$?
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; } &&
13247 { ac_try='test -s conftest.$ac_objext'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13250 ac_status=$?
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; }; then
13253 bakefile_cv_c_compiler___SUNPRO_C=yes
13254else
13255 echo "$as_me: failed program was:" >&5
13256sed 's/^/| /' conftest.$ac_ext >&5
13257
13258bakefile_cv_c_compiler___SUNPRO_C=no
13259
13260fi
13261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13262
13263
13264fi
13265echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13266echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13267 ac_ext=c
13268ac_cpp='$CPP $CPPFLAGS'
13269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13271ac_compiler_gnu=$ac_cv_c_compiler_gnu
13272
13273 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13274 :; SUNCC=yes
3006edc0
VZ
13275 else
13276 :;
13277 fi
13278
13279
13280 ;;
13281 esac
ab0ad5f1 13282 fi
a9e5b1f0
MW
13283
13284
3006edc0 13285
a848cd7e
SC
13286ac_ext=c
13287ac_cpp='$CPP $CPPFLAGS'
13288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13290ac_compiler_gnu=$ac_cv_c_compiler_gnu
13291echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13292echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13293# On Suns, sometimes $CPP names a directory.
13294if test -n "$CPP" && test -d "$CPP"; then
13295 CPP=
13296fi
13297if test -z "$CPP"; then
13298 if test "${ac_cv_prog_CPP+set}" = set; then
13299 echo $ECHO_N "(cached) $ECHO_C" >&6
13300else
13301 # Double quotes because CPP needs to be expanded
13302 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13303 do
13304 ac_preproc_ok=false
13305for ac_c_preproc_warn_flag in '' yes
13306do
13307 # Use a header file that comes with gcc, so configuring glibc
13308 # with a fresh cross-compiler works.
13309 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13310 # <limits.h> exists even on freestanding compilers.
13311 # On the NeXT, cc -E runs the code through the compiler's parser,
13312 # not just through cpp. "Syntax error" is here to catch this case.
13313 cat >conftest.$ac_ext <<_ACEOF
13314/* confdefs.h. */
13315_ACEOF
13316cat confdefs.h >>conftest.$ac_ext
13317cat >>conftest.$ac_ext <<_ACEOF
13318/* end confdefs.h. */
13319#ifdef __STDC__
13320# include <limits.h>
13321#else
13322# include <assert.h>
13323#endif
ac1cb8d3 13324 Syntax error
a848cd7e
SC
13325_ACEOF
13326if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13328 ac_status=$?
13329 grep -v '^ *+' conftest.er1 >conftest.err
13330 rm -f conftest.er1
13331 cat conftest.err >&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } >/dev/null; then
13334 if test -s conftest.err; then
13335 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13337 else
13338 ac_cpp_err=
13339 fi
13340else
13341 ac_cpp_err=yes
13342fi
13343if test -z "$ac_cpp_err"; then
13344 :
13345else
13346 echo "$as_me: failed program was:" >&5
13347sed 's/^/| /' conftest.$ac_ext >&5
13348
13349 # Broken: fails on valid input.
13350continue
13351fi
13352rm -f conftest.err conftest.$ac_ext
13353
13354 # OK, works on sane cases. Now check whether non-existent headers
13355 # can be detected and how.
13356 cat >conftest.$ac_ext <<_ACEOF
13357/* confdefs.h. */
13358_ACEOF
13359cat confdefs.h >>conftest.$ac_ext
13360cat >>conftest.$ac_ext <<_ACEOF
13361/* end confdefs.h. */
13362#include <ac_nonexistent.h>
13363_ACEOF
13364if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13366 ac_status=$?
13367 grep -v '^ *+' conftest.er1 >conftest.err
13368 rm -f conftest.er1
13369 cat conftest.err >&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); } >/dev/null; then
13372 if test -s conftest.err; then
13373 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13375 else
13376 ac_cpp_err=
13377 fi
13378else
13379 ac_cpp_err=yes
13380fi
13381if test -z "$ac_cpp_err"; then
13382 # Broken: success on invalid input.
13383continue
13384else
13385 echo "$as_me: failed program was:" >&5
13386sed 's/^/| /' conftest.$ac_ext >&5
13387
13388 # Passes both tests.
13389ac_preproc_ok=:
13390break
13391fi
13392rm -f conftest.err conftest.$ac_ext
13393
13394done
13395# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13396rm -f conftest.err conftest.$ac_ext
13397if $ac_preproc_ok; then
13398 break
13399fi
13400
13401 done
13402 ac_cv_prog_CPP=$CPP
13403
13404fi
13405 CPP=$ac_cv_prog_CPP
13406else
13407 ac_cv_prog_CPP=$CPP
13408fi
13409echo "$as_me:$LINENO: result: $CPP" >&5
13410echo "${ECHO_T}$CPP" >&6
13411ac_preproc_ok=false
13412for ac_c_preproc_warn_flag in '' yes
13413do
13414 # Use a header file that comes with gcc, so configuring glibc
13415 # with a fresh cross-compiler works.
13416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13417 # <limits.h> exists even on freestanding compilers.
13418 # On the NeXT, cc -E runs the code through the compiler's parser,
13419 # not just through cpp. "Syntax error" is here to catch this case.
13420 cat >conftest.$ac_ext <<_ACEOF
13421/* confdefs.h. */
13422_ACEOF
13423cat confdefs.h >>conftest.$ac_ext
13424cat >>conftest.$ac_ext <<_ACEOF
13425/* end confdefs.h. */
13426#ifdef __STDC__
13427# include <limits.h>
13428#else
13429# include <assert.h>
13430#endif
ac1cb8d3 13431 Syntax error
a848cd7e
SC
13432_ACEOF
13433if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13435 ac_status=$?
13436 grep -v '^ *+' conftest.er1 >conftest.err
13437 rm -f conftest.er1
13438 cat conftest.err >&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } >/dev/null; then
13441 if test -s conftest.err; then
13442 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13444 else
13445 ac_cpp_err=
13446 fi
13447else
13448 ac_cpp_err=yes
13449fi
13450if test -z "$ac_cpp_err"; then
13451 :
13452else
13453 echo "$as_me: failed program was:" >&5
13454sed 's/^/| /' conftest.$ac_ext >&5
13455
13456 # Broken: fails on valid input.
13457continue
13458fi
13459rm -f conftest.err conftest.$ac_ext
13460
13461 # OK, works on sane cases. Now check whether non-existent headers
13462 # can be detected and how.
13463 cat >conftest.$ac_ext <<_ACEOF
13464/* confdefs.h. */
13465_ACEOF
13466cat confdefs.h >>conftest.$ac_ext
13467cat >>conftest.$ac_ext <<_ACEOF
13468/* end confdefs.h. */
13469#include <ac_nonexistent.h>
13470_ACEOF
13471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13473 ac_status=$?
13474 grep -v '^ *+' conftest.er1 >conftest.err
13475 rm -f conftest.er1
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } >/dev/null; then
13479 if test -s conftest.err; then
13480 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13482 else
13483 ac_cpp_err=
13484 fi
13485else
13486 ac_cpp_err=yes
13487fi
13488if test -z "$ac_cpp_err"; then
13489 # Broken: success on invalid input.
13490continue
13491else
13492 echo "$as_me: failed program was:" >&5
13493sed 's/^/| /' conftest.$ac_ext >&5
13494
13495 # Passes both tests.
13496ac_preproc_ok=:
13497break
13498fi
13499rm -f conftest.err conftest.$ac_ext
13500
13501done
13502# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13503rm -f conftest.err conftest.$ac_ext
13504if $ac_preproc_ok; then
13505 :
13506else
13507 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13508See \`config.log' for more details." >&5
13509echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13510See \`config.log' for more details." >&2;}
13511 { (exit 1); exit 1; }; }
13512fi
13513
13514ac_ext=c
13515ac_cpp='$CPP $CPPFLAGS'
13516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13518ac_compiler_gnu=$ac_cv_c_compiler_gnu
13519
13520
13521echo "$as_me:$LINENO: checking for egrep" >&5
13522echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13523if test "${ac_cv_prog_egrep+set}" = set; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
13525else
13526 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13527 then ac_cv_prog_egrep='grep -E'
13528 else ac_cv_prog_egrep='egrep'
13529 fi
13530fi
13531echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13532echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13533 EGREP=$ac_cv_prog_egrep
13534
13535
13536if test $ac_cv_c_compiler_gnu = yes; then
13537 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13538echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13539if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13541else
13542 ac_pattern="Autoconf.*'x'"
13543 cat >conftest.$ac_ext <<_ACEOF
13544/* confdefs.h. */
13545_ACEOF
13546cat confdefs.h >>conftest.$ac_ext
13547cat >>conftest.$ac_ext <<_ACEOF
13548/* end confdefs.h. */
13549#include <sgtty.h>
13550Autoconf TIOCGETP
13551_ACEOF
13552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13553 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13554 ac_cv_prog_gcc_traditional=yes
13555else
13556 ac_cv_prog_gcc_traditional=no
13557fi
13558rm -f conftest*
13559
13560
13561 if test $ac_cv_prog_gcc_traditional = no; then
13562 cat >conftest.$ac_ext <<_ACEOF
13563/* confdefs.h. */
13564_ACEOF
13565cat confdefs.h >>conftest.$ac_ext
13566cat >>conftest.$ac_ext <<_ACEOF
13567/* end confdefs.h. */
13568#include <termio.h>
13569Autoconf TCGETA
13570_ACEOF
13571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13572 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13573 ac_cv_prog_gcc_traditional=yes
13574fi
13575rm -f conftest*
13576
13577 fi
13578fi
13579echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13580echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13581 if test $ac_cv_prog_gcc_traditional = yes; then
13582 CC="$CC -traditional"
13583 fi
13584fi
13585
13586
a848cd7e
SC
13587ac_ext=cc
13588ac_cpp='$CXXCPP $CPPFLAGS'
13589ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13590ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13591ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13592
13593
13594CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13595
13596
3006edc0 13597
6dcfc289 13598 ac_ext=cc
a848cd7e
SC
13599ac_cpp='$CXXCPP $CPPFLAGS'
13600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13603if test -n "$ac_tool_prefix"; then
13604 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13605 do
13606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13607set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13608echo "$as_me:$LINENO: checking for $ac_word" >&5
13609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13610if test "${ac_cv_prog_CXX+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13612else
13613 if test -n "$CXX"; then
13614 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13615else
13616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13617for as_dir in $PATH
13618do
13619 IFS=$as_save_IFS
13620 test -z "$as_dir" && as_dir=.
13621 for ac_exec_ext in '' $ac_executable_extensions; do
13622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13623 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13625 break 2
13626 fi
13627done
13628done
13629
13630fi
13631fi
13632CXX=$ac_cv_prog_CXX
13633if test -n "$CXX"; then
13634 echo "$as_me:$LINENO: result: $CXX" >&5
13635echo "${ECHO_T}$CXX" >&6
13636else
13637 echo "$as_me:$LINENO: result: no" >&5
13638echo "${ECHO_T}no" >&6
13639fi
13640
13641 test -n "$CXX" && break
13642 done
13643fi
13644if test -z "$CXX"; then
13645 ac_ct_CXX=$CXX
13646 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13647do
13648 # Extract the first word of "$ac_prog", so it can be a program name with args.
13649set dummy $ac_prog; ac_word=$2
13650echo "$as_me:$LINENO: checking for $ac_word" >&5
13651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13652if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13654else
13655 if test -n "$ac_ct_CXX"; then
13656 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13657else
13658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13659for as_dir in $PATH
13660do
13661 IFS=$as_save_IFS
13662 test -z "$as_dir" && as_dir=.
13663 for ac_exec_ext in '' $ac_executable_extensions; do
13664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13665 ac_cv_prog_ac_ct_CXX="$ac_prog"
13666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13667 break 2
13668 fi
13669done
13670done
13671
13672fi
13673fi
13674ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13675if test -n "$ac_ct_CXX"; then
13676 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13677echo "${ECHO_T}$ac_ct_CXX" >&6
13678else
13679 echo "$as_me:$LINENO: result: no" >&5
13680echo "${ECHO_T}no" >&6
13681fi
13682
13683 test -n "$ac_ct_CXX" && break
13684done
13685test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13686
13687 CXX=$ac_ct_CXX
13688fi
13689
13690
13691# Provide some information about the compiler.
13692echo "$as_me:$LINENO:" \
13693 "checking for C++ compiler version" >&5
13694ac_compiler=`set X $ac_compile; echo $2`
13695{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13696 (eval $ac_compiler --version </dev/null >&5) 2>&5
13697 ac_status=$?
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }
13700{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13701 (eval $ac_compiler -v </dev/null >&5) 2>&5
13702 ac_status=$?
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); }
13705{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13706 (eval $ac_compiler -V </dev/null >&5) 2>&5
13707 ac_status=$?
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }
13710
13711echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13712echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13713if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13714 echo $ECHO_N "(cached) $ECHO_C" >&6
13715else
13716 cat >conftest.$ac_ext <<_ACEOF
13717/* confdefs.h. */
13718_ACEOF
13719cat confdefs.h >>conftest.$ac_ext
13720cat >>conftest.$ac_ext <<_ACEOF
13721/* end confdefs.h. */
13722
13723int
13724main ()
13725{
13726#ifndef __GNUC__
13727 choke me
13728#endif
13729
13730 ;
13731 return 0;
13732}
13733_ACEOF
13734rm -f conftest.$ac_objext
13735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13736 (eval $ac_compile) 2>conftest.er1
a848cd7e 13737 ac_status=$?
ac1cb8d3
VS
13738 grep -v '^ *+' conftest.er1 >conftest.err
13739 rm -f conftest.er1
13740 cat conftest.err >&5
a848cd7e
SC
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } &&
c9a66001 13743 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13746 ac_status=$?
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; } &&
13749 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751 (eval $ac_try) 2>&5
13752 ac_status=$?
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; }; then
13755 ac_compiler_gnu=yes
13756else
13757 echo "$as_me: failed program was:" >&5
13758sed 's/^/| /' conftest.$ac_ext >&5
13759
13760ac_compiler_gnu=no
13761fi
ac1cb8d3 13762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13763ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13764
13765fi
13766echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13767echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13768GXX=`test $ac_compiler_gnu = yes && echo yes`
13769ac_test_CXXFLAGS=${CXXFLAGS+set}
13770ac_save_CXXFLAGS=$CXXFLAGS
13771CXXFLAGS="-g"
13772echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13773echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13774if test "${ac_cv_prog_cxx_g+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13776else
13777 cat >conftest.$ac_ext <<_ACEOF
13778/* confdefs.h. */
13779_ACEOF
13780cat confdefs.h >>conftest.$ac_ext
13781cat >>conftest.$ac_ext <<_ACEOF
13782/* end confdefs.h. */
13783
13784int
13785main ()
13786{
13787
13788 ;
13789 return 0;
13790}
13791_ACEOF
13792rm -f conftest.$ac_objext
13793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13794 (eval $ac_compile) 2>conftest.er1
a848cd7e 13795 ac_status=$?
ac1cb8d3
VS
13796 grep -v '^ *+' conftest.er1 >conftest.err
13797 rm -f conftest.er1
13798 cat conftest.err >&5
a848cd7e
SC
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } &&
c9a66001 13801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13803 (eval $ac_try) 2>&5
13804 ac_status=$?
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); }; } &&
13807 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13810 ac_status=$?
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; }; then
13813 ac_cv_prog_cxx_g=yes
13814else
13815 echo "$as_me: failed program was:" >&5
13816sed 's/^/| /' conftest.$ac_ext >&5
13817
13818ac_cv_prog_cxx_g=no
13819fi
ac1cb8d3 13820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13821fi
13822echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13823echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13824if test "$ac_test_CXXFLAGS" = set; then
13825 CXXFLAGS=$ac_save_CXXFLAGS
13826elif test $ac_cv_prog_cxx_g = yes; then
13827 if test "$GXX" = yes; then
8aeeb05c 13828 CXXFLAGS="-g -O2"
a848cd7e 13829 else
8aeeb05c 13830 CXXFLAGS="-g"
a848cd7e
SC
13831 fi
13832else
13833 if test "$GXX" = yes; then
13834 CXXFLAGS="-O2"
13835 else
13836 CXXFLAGS=
13837 fi
13838fi
13839for ac_declaration in \
ac1cb8d3 13840 '' \
a848cd7e
SC
13841 'extern "C" void std::exit (int) throw (); using std::exit;' \
13842 'extern "C" void std::exit (int); using std::exit;' \
13843 'extern "C" void exit (int) throw ();' \
13844 'extern "C" void exit (int);' \
13845 'void exit (int);'
13846do
13847 cat >conftest.$ac_ext <<_ACEOF
13848/* confdefs.h. */
13849_ACEOF
13850cat confdefs.h >>conftest.$ac_ext
13851cat >>conftest.$ac_ext <<_ACEOF
13852/* end confdefs.h. */
de59c161 13853$ac_declaration
ac1cb8d3 13854#include <stdlib.h>
a848cd7e
SC
13855int
13856main ()
13857{
13858exit (42);
13859 ;
13860 return 0;
13861}
13862_ACEOF
13863rm -f conftest.$ac_objext
13864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13865 (eval $ac_compile) 2>conftest.er1
a848cd7e 13866 ac_status=$?
ac1cb8d3
VS
13867 grep -v '^ *+' conftest.er1 >conftest.err
13868 rm -f conftest.er1
13869 cat conftest.err >&5
a848cd7e
SC
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } &&
c9a66001 13872 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13875 ac_status=$?
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; } &&
13878 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880 (eval $ac_try) 2>&5
13881 ac_status=$?
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); }; }; then
13884 :
13885else
13886 echo "$as_me: failed program was:" >&5
13887sed 's/^/| /' conftest.$ac_ext >&5
13888
13889continue
13890fi
ac1cb8d3 13891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13892 cat >conftest.$ac_ext <<_ACEOF
13893/* confdefs.h. */
13894_ACEOF
13895cat confdefs.h >>conftest.$ac_ext
13896cat >>conftest.$ac_ext <<_ACEOF
13897/* end confdefs.h. */
13898$ac_declaration
13899int
13900main ()
13901{
13902exit (42);
13903 ;
13904 return 0;
13905}
13906_ACEOF
13907rm -f conftest.$ac_objext
13908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13909 (eval $ac_compile) 2>conftest.er1
a848cd7e 13910 ac_status=$?
ac1cb8d3
VS
13911 grep -v '^ *+' conftest.er1 >conftest.err
13912 rm -f conftest.er1
13913 cat conftest.err >&5
a848cd7e
SC
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } &&
c9a66001 13916 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13919 ac_status=$?
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; } &&
13922 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13924 (eval $ac_try) 2>&5
13925 ac_status=$?
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }; }; then
13928 break
13929else
13930 echo "$as_me: failed program was:" >&5
13931sed 's/^/| /' conftest.$ac_ext >&5
13932
13933fi
ac1cb8d3 13934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13935done
13936rm -f conftest*
13937if test -n "$ac_declaration"; then
13938 echo '#ifdef __cplusplus' >>confdefs.h
13939 echo $ac_declaration >>confdefs.h
13940 echo '#endif' >>confdefs.h
13941fi
13942
13943ac_ext=cc
13944ac_cpp='$CXXCPP $CPPFLAGS'
13945ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13946ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13947ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13948
ab0ad5f1
VZ
13949
13950
13951 ac_ext=cc
13952ac_cpp='$CXXCPP $CPPFLAGS'
13953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13956
13957 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13958echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13959if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13961else
13962 cat >conftest.$ac_ext <<_ACEOF
13963/* confdefs.h. */
13964_ACEOF
13965cat confdefs.h >>conftest.$ac_ext
13966cat >>conftest.$ac_ext <<_ACEOF
13967/* end confdefs.h. */
13968
13969int
13970main ()
13971{
13972
13973 #ifndef __INTEL_COMPILER
13974 choke me
13975 #endif
13976
13977 ;
13978 return 0;
13979}
13980_ACEOF
13981rm -f conftest.$ac_objext
13982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13983 (eval $ac_compile) 2>conftest.er1
13984 ac_status=$?
13985 grep -v '^ *+' conftest.er1 >conftest.err
13986 rm -f conftest.er1
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } &&
c9a66001 13990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
13991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992 (eval $ac_try) 2>&5
13993 ac_status=$?
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; } &&
13996 { ac_try='test -s conftest.$ac_objext'
13997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13998 (eval $ac_try) 2>&5
13999 ac_status=$?
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); }; }; then
14002 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14003else
14004 echo "$as_me: failed program was:" >&5
14005sed 's/^/| /' conftest.$ac_ext >&5
14006
14007bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14008
14009fi
14010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14011
14012
14013fi
14014echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14015echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
14016 ac_ext=cc
14017ac_cpp='$CXXCPP $CPPFLAGS'
14018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14021
14022 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
14023 :; INTELCXX=yes
14024 else
14025 :;
14026 fi
14027
14028
3006edc0
VZ
14029 if test "x$GCXX" != "xyes"; then
14030 if test "xCXX" = "xC"; then
14031 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 14032echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 14033if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14035else
14036 cat >conftest.$ac_ext <<_ACEOF
14037/* confdefs.h. */
14038_ACEOF
14039cat confdefs.h >>conftest.$ac_ext
14040cat >>conftest.$ac_ext <<_ACEOF
14041/* end confdefs.h. */
14042
14043int
14044main ()
14045{
14046
14047 ;
14048 return 0;
14049}
14050_ACEOF
14051rm -f conftest.$ac_objext conftest.$ac_ext.o
14052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14053 (eval $ac_compile) 2>&5
14054 ac_status=$?
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; then
14057 for ac_file in `(ls conftest.* 2>/dev/null)`; do
14058 case $ac_file in
14059 conftest.$ac_ext.o)
0093c2fc 14060 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
14061 ;;
14062 *)
14063 ;;
14064 esac
14065done
14066else
14067 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14068See \`config.log' for more details." >&5
14069echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14070See \`config.log' for more details." >&2;}
14071 { (exit 1); exit 1; }; }
14072
14073fi
14074
14075rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14076
14077fi
0093c2fc
VZ
14078echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14079echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14080if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 14081 if test "cxx" = "c"; then
0093c2fc 14082 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
14083 fi
14084 if test "cxx" = "cxx"; then
0093c2fc 14085 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
14086 fi
14087fi
14088
0093c2fc 14089 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14090 unset ac_cv_prog_cc_g
14091 ac_test_CFLAGS=${CFLAGS+set}
14092ac_save_CFLAGS=$CFLAGS
8aeeb05c 14093CFLAGS="-g"
3006edc0
VZ
14094echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14095echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14096if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14097 echo $ECHO_N "(cached) $ECHO_C" >&6
14098else
14099 cat >conftest.$ac_ext <<_ACEOF
14100/* confdefs.h. */
14101_ACEOF
14102cat confdefs.h >>conftest.$ac_ext
14103cat >>conftest.$ac_ext <<_ACEOF
14104/* end confdefs.h. */
14105
14106int
14107main ()
14108{
14109
14110 ;
14111 return 0;
14112}
14113_ACEOF
14114rm -f conftest.$ac_objext
14115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14116 (eval $ac_compile) 2>conftest.er1
14117 ac_status=$?
14118 grep -v '^ *+' conftest.er1 >conftest.err
14119 rm -f conftest.er1
14120 cat conftest.err >&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); } &&
c9a66001 14123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
14124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125 (eval $ac_try) 2>&5
14126 ac_status=$?
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); }; } &&
14129 { ac_try='test -s conftest.$ac_objext'
14130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131 (eval $ac_try) 2>&5
14132 ac_status=$?
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); }; }; then
3006edc0 14135 ac_cv_prog_cc_g=yes
480ccd21
DE
14136else
14137 echo "$as_me: failed program was:" >&5
14138sed 's/^/| /' conftest.$ac_ext >&5
14139
3006edc0 14140ac_cv_prog_cc_g=no
480ccd21
DE
14141fi
14142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14143fi
3006edc0
VZ
14144echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14145echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14146if test "$ac_test_CFLAGS" = set; then
14147 CFLAGS=$ac_save_CFLAGS
14148elif test $ac_cv_prog_cc_g = yes; then
14149 if test "$GCC" = yes; then
14150 CFLAGS="-g -O2"
480ccd21 14151 else
3006edc0 14152 CFLAGS="-g"
480ccd21
DE
14153 fi
14154else
3006edc0
VZ
14155 if test "$GCC" = yes; then
14156 CFLAGS="-O2"
480ccd21 14157 else
3006edc0 14158 CFLAGS=
480ccd21
DE
14159 fi
14160fi
3006edc0 14161 fi
ab0ad5f1 14162 fi
3006edc0
VZ
14163
14164 case `uname -s` in
14165 AIX*)
14166 ac_ext=cc
14167ac_cpp='$CXXCPP $CPPFLAGS'
14168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14171
14172echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14173echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14174if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14175 echo $ECHO_N "(cached) $ECHO_C" >&6
14176else
14177 cat >conftest.$ac_ext <<_ACEOF
14178/* confdefs.h. */
14179_ACEOF
14180cat confdefs.h >>conftest.$ac_ext
14181cat >>conftest.$ac_ext <<_ACEOF
14182/* end confdefs.h. */
14183
14184int
14185main ()
14186{
14187#ifndef __xlC__
14188 choke me
14189#endif
14190
14191 ;
14192 return 0;
14193}
14194_ACEOF
14195rm -f conftest.$ac_objext
14196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14197 (eval $ac_compile) 2>conftest.er1
14198 ac_status=$?
14199 grep -v '^ *+' conftest.er1 >conftest.err
14200 rm -f conftest.er1
14201 cat conftest.err >&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } &&
c9a66001 14204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14207 ac_status=$?
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; } &&
14210 { ac_try='test -s conftest.$ac_objext'
14211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14212 (eval $ac_try) 2>&5
14213 ac_status=$?
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; }; then
0093c2fc 14216 bakefile_compiler_xlc=yes
3006edc0
VZ
14217else
14218 echo "$as_me: failed program was:" >&5
14219sed 's/^/| /' conftest.$ac_ext >&5
14220
0093c2fc 14221bakefile_compiler_xlc=no
3006edc0
VZ
14222fi
14223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14224 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14225
14226fi
0093c2fc
VZ
14227echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14228echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14229
0093c2fc 14230XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
14231ac_ext=cc
14232ac_cpp='$CXXCPP $CPPFLAGS'
14233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14236
14237
14238 ;;
14239
14240 Darwin)
14241 ac_ext=cc
95986553
DE
14242ac_cpp='$CXXCPP $CPPFLAGS'
14243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14246
14247echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14248echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14249if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14250 echo $ECHO_N "(cached) $ECHO_C" >&6
14251else
14252 cat >conftest.$ac_ext <<_ACEOF
14253/* confdefs.h. */
14254_ACEOF
14255cat confdefs.h >>conftest.$ac_ext
14256cat >>conftest.$ac_ext <<_ACEOF
14257/* end confdefs.h. */
14258
14259int
14260main ()
14261{
14262#ifndef __MWERKS__
14263 choke me
14264#endif
14265
14266 ;
14267 return 0;
14268}
14269_ACEOF
14270rm -f conftest.$ac_objext
14271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14272 (eval $ac_compile) 2>conftest.er1
14273 ac_status=$?
14274 grep -v '^ *+' conftest.er1 >conftest.err
14275 rm -f conftest.er1
14276 cat conftest.err >&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } &&
c9a66001 14279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; } &&
14285 { ac_try='test -s conftest.$ac_objext'
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14288 ac_status=$?
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }; then
14291 bakefile_compiler_mwerks=yes
14292else
14293 echo "$as_me: failed program was:" >&5
14294sed 's/^/| /' conftest.$ac_ext >&5
14295
14296bakefile_compiler_mwerks=no
14297fi
14298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14299 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14300
14301fi
14302echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14303echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14304
0e6fa1d9 14305MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
14306ac_ext=cc
14307ac_cpp='$CXXCPP $CPPFLAGS'
14308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14311
14312
3006edc0 14313 ac_ext=cc
9273ffba
DE
14314ac_cpp='$CXXCPP $CPPFLAGS'
14315ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14316ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14317ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14318
14319echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14320echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14321if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14322 echo $ECHO_N "(cached) $ECHO_C" >&6
14323else
14324 cat >conftest.$ac_ext <<_ACEOF
14325/* confdefs.h. */
14326_ACEOF
14327cat confdefs.h >>conftest.$ac_ext
14328cat >>conftest.$ac_ext <<_ACEOF
14329/* end confdefs.h. */
14330
14331int
14332main ()
14333{
14334#ifndef __xlC__
14335 choke me
14336#endif
14337
14338 ;
14339 return 0;
14340}
14341_ACEOF
14342rm -f conftest.$ac_objext
14343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14344 (eval $ac_compile) 2>conftest.er1
14345 ac_status=$?
14346 grep -v '^ *+' conftest.er1 >conftest.err
14347 rm -f conftest.er1
14348 cat conftest.err >&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } &&
c9a66001 14351 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14354 ac_status=$?
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; } &&
14357 { ac_try='test -s conftest.$ac_objext'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14360 ac_status=$?
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; }; then
0093c2fc 14363 bakefile_compiler_xlc=yes
9273ffba
DE
14364else
14365 echo "$as_me: failed program was:" >&5
14366sed 's/^/| /' conftest.$ac_ext >&5
14367
0093c2fc 14368bakefile_compiler_xlc=no
9273ffba
DE
14369fi
14370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14371 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14372
14373fi
0093c2fc
VZ
14374echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14375echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14376
0093c2fc 14377XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14378ac_ext=cc
14379ac_cpp='$CXXCPP $CPPFLAGS'
14380ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14381ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14382ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14383
14384
3006edc0
VZ
14385 ;;
14386
14387 IRIX*)
95986553 14388
6dcfc289 14389
0ad5d837
VZ
14390 ac_ext=cc
14391ac_cpp='$CXXCPP $CPPFLAGS'
14392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14395
14396 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14397echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14398if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14400else
14401 cat >conftest.$ac_ext <<_ACEOF
14402/* confdefs.h. */
14403_ACEOF
14404cat confdefs.h >>conftest.$ac_ext
14405cat >>conftest.$ac_ext <<_ACEOF
14406/* end confdefs.h. */
14407
14408int
14409main ()
14410{
14411
14412 #ifndef _SGI_COMPILER_VERSION
14413 choke me
14414 #endif
14415
14416 ;
14417 return 0;
14418}
14419_ACEOF
14420rm -f conftest.$ac_objext
14421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14422 (eval $ac_compile) 2>conftest.er1
14423 ac_status=$?
14424 grep -v '^ *+' conftest.er1 >conftest.err
14425 rm -f conftest.er1
14426 cat conftest.err >&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); } &&
c9a66001 14429 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
14430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14432 ac_status=$?
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; } &&
14435 { ac_try='test -s conftest.$ac_objext'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; }; then
14441 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14442else
14443 echo "$as_me: failed program was:" >&5
14444sed 's/^/| /' conftest.$ac_ext >&5
14445
14446bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14447
14448fi
14449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14450
14451
14452fi
14453echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14454echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14455 ac_ext=cc
14456ac_cpp='$CXXCPP $CPPFLAGS'
14457ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14458ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14459ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14460
14461 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14462 :; SGICXX=yes
14463 else
14464 :;
14465 fi
14466
14467
3006edc0
VZ
14468 ;;
14469
0093c2fc 14470 HP-UX*)
3006edc0
VZ
14471
14472
14473 ac_ext=cc
14474ac_cpp='$CXXCPP $CPPFLAGS'
14475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14478
0093c2fc
VZ
14479 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14480echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14481if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14483else
14484 cat >conftest.$ac_ext <<_ACEOF
14485/* confdefs.h. */
14486_ACEOF
14487cat confdefs.h >>conftest.$ac_ext
14488cat >>conftest.$ac_ext <<_ACEOF
14489/* end confdefs.h. */
14490
14491int
14492main ()
14493{
14494
0093c2fc 14495 #ifndef __HP_aCC
3006edc0
VZ
14496 choke me
14497 #endif
14498
14499 ;
14500 return 0;
14501}
14502_ACEOF
14503rm -f conftest.$ac_objext
14504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14505 (eval $ac_compile) 2>conftest.er1
14506 ac_status=$?
14507 grep -v '^ *+' conftest.er1 >conftest.err
14508 rm -f conftest.er1
14509 cat conftest.err >&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } &&
c9a66001 14512 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14515 ac_status=$?
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; } &&
14518 { ac_try='test -s conftest.$ac_objext'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; }; then
0093c2fc 14524 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14525else
14526 echo "$as_me: failed program was:" >&5
14527sed 's/^/| /' conftest.$ac_ext >&5
14528
0093c2fc 14529bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14530
14531fi
14532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14533
14534
14535fi
0093c2fc
VZ
14536echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14537echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14538 ac_ext=cc
14539ac_cpp='$CXXCPP $CPPFLAGS'
14540ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14541ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14542ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14543
0093c2fc
VZ
14544 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14545 :; HPCXX=yes
a1aa0349
VZ
14546 else
14547 :;
14548 fi
14549
14550
14551 ;;
14552
0093c2fc 14553 OSF1)
a1aa0349
VZ
14554
14555
14556 ac_ext=cc
14557ac_cpp='$CXXCPP $CPPFLAGS'
14558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14561
0093c2fc
VZ
14562 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14563echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14564if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14566else
14567 cat >conftest.$ac_ext <<_ACEOF
14568/* confdefs.h. */
14569_ACEOF
14570cat confdefs.h >>conftest.$ac_ext
14571cat >>conftest.$ac_ext <<_ACEOF
14572/* end confdefs.h. */
14573
14574int
14575main ()
14576{
14577
0093c2fc 14578 #ifndef __DECCXX
a1aa0349
VZ
14579 choke me
14580 #endif
14581
14582 ;
14583 return 0;
14584}
14585_ACEOF
14586rm -f conftest.$ac_objext
14587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14588 (eval $ac_compile) 2>conftest.er1
14589 ac_status=$?
14590 grep -v '^ *+' conftest.er1 >conftest.err
14591 rm -f conftest.er1
14592 cat conftest.err >&5
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); } &&
c9a66001 14595 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
14596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14597 (eval $ac_try) 2>&5
14598 ac_status=$?
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); }; } &&
14601 { ac_try='test -s conftest.$ac_objext'
14602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14603 (eval $ac_try) 2>&5
14604 ac_status=$?
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; }; then
0093c2fc 14607 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14608else
14609 echo "$as_me: failed program was:" >&5
14610sed 's/^/| /' conftest.$ac_ext >&5
14611
0093c2fc 14612bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14613
14614fi
14615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14616
14617
14618fi
0093c2fc
VZ
14619echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14620echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14621 ac_ext=cc
14622ac_cpp='$CXXCPP $CPPFLAGS'
14623ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14624ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14625ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14626
0093c2fc
VZ
14627 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14628 :; COMPAQCXX=yes
14629 else
14630 :;
14631 fi
14632
14633
14634 ;;
14635
14636 SunOS)
14637
14638
14639 ac_ext=cc
14640ac_cpp='$CXXCPP $CPPFLAGS'
14641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14644
14645 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14646echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14647if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14648 echo $ECHO_N "(cached) $ECHO_C" >&6
14649else
14650 cat >conftest.$ac_ext <<_ACEOF
14651/* confdefs.h. */
14652_ACEOF
14653cat confdefs.h >>conftest.$ac_ext
14654cat >>conftest.$ac_ext <<_ACEOF
14655/* end confdefs.h. */
14656
14657int
14658main ()
14659{
14660
14661 #ifndef __SUNPRO_CC
14662 choke me
14663 #endif
14664
14665 ;
14666 return 0;
14667}
14668_ACEOF
14669rm -f conftest.$ac_objext
14670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14671 (eval $ac_compile) 2>conftest.er1
14672 ac_status=$?
14673 grep -v '^ *+' conftest.er1 >conftest.err
14674 rm -f conftest.er1
14675 cat conftest.err >&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); } &&
c9a66001 14678 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
14679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 (eval $ac_try) 2>&5
14681 ac_status=$?
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; } &&
14684 { ac_try='test -s conftest.$ac_objext'
14685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14686 (eval $ac_try) 2>&5
14687 ac_status=$?
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); }; }; then
14690 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14691else
14692 echo "$as_me: failed program was:" >&5
14693sed 's/^/| /' conftest.$ac_ext >&5
14694
14695bakefile_cv_cxx_compiler___SUNPRO_CC=no
14696
14697fi
14698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14699
14700
14701fi
14702echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14703echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14704 ac_ext=cc
14705ac_cpp='$CXXCPP $CPPFLAGS'
14706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14709
14710 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14711 :; SUNCXX=yes
3006edc0
VZ
14712 else
14713 :;
ab0ad5f1 14714 fi
a9e5b1f0
MW
14715
14716
3006edc0
VZ
14717 ;;
14718 esac
14719 fi
14720
14721
14722
a848cd7e
SC
14723if test -n "$ac_tool_prefix"; then
14724 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14725set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14726echo "$as_me:$LINENO: checking for $ac_word" >&5
14727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14728if test "${ac_cv_prog_RANLIB+set}" = set; then
14729 echo $ECHO_N "(cached) $ECHO_C" >&6
14730else
14731 if test -n "$RANLIB"; then
14732 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14733else
14734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14735for as_dir in $PATH
14736do
14737 IFS=$as_save_IFS
14738 test -z "$as_dir" && as_dir=.
14739 for ac_exec_ext in '' $ac_executable_extensions; do
14740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14741 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14743 break 2
14744 fi
14745done
14746done
14747
14748fi
14749fi
14750RANLIB=$ac_cv_prog_RANLIB
14751if test -n "$RANLIB"; then
14752 echo "$as_me:$LINENO: result: $RANLIB" >&5
14753echo "${ECHO_T}$RANLIB" >&6
14754else
14755 echo "$as_me:$LINENO: result: no" >&5
14756echo "${ECHO_T}no" >&6
14757fi
14758
14759fi
14760if test -z "$ac_cv_prog_RANLIB"; then
14761 ac_ct_RANLIB=$RANLIB
14762 # Extract the first word of "ranlib", so it can be a program name with args.
14763set dummy ranlib; ac_word=$2
14764echo "$as_me:$LINENO: checking for $ac_word" >&5
14765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14766if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14768else
14769 if test -n "$ac_ct_RANLIB"; then
14770 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14771else
14772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14773for as_dir in $PATH
14774do
14775 IFS=$as_save_IFS
14776 test -z "$as_dir" && as_dir=.
14777 for ac_exec_ext in '' $ac_executable_extensions; do
14778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14779 ac_cv_prog_ac_ct_RANLIB="ranlib"
14780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14781 break 2
14782 fi
14783done
14784done
14785
14786 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14787fi
14788fi
14789ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14790if test -n "$ac_ct_RANLIB"; then
14791 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14792echo "${ECHO_T}$ac_ct_RANLIB" >&6
14793else
14794 echo "$as_me:$LINENO: result: no" >&5
14795echo "${ECHO_T}no" >&6
14796fi
14797
14798 RANLIB=$ac_ct_RANLIB
14799else
14800 RANLIB="$ac_cv_prog_RANLIB"
14801fi
14802
14803
8c80d384
DE
14804if test -n "$ac_tool_prefix"; then
14805 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14806set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14807echo "$as_me:$LINENO: checking for $ac_word" >&5
14808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14809if test "${ac_cv_prog_AR+set}" = set; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14811else
14812 if test -n "$AR"; then
14813 ac_cv_prog_AR="$AR" # Let the user override the test.
14814else
14815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14816for as_dir in $PATH
14817do
14818 IFS=$as_save_IFS
14819 test -z "$as_dir" && as_dir=.
14820 for ac_exec_ext in '' $ac_executable_extensions; do
14821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14822 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14824 break 2
14825 fi
14826done
14827done
14828
14829fi
14830fi
14831AR=$ac_cv_prog_AR
14832if test -n "$AR"; then
14833 echo "$as_me:$LINENO: result: $AR" >&5
14834echo "${ECHO_T}$AR" >&6
14835else
14836 echo "$as_me:$LINENO: result: no" >&5
14837echo "${ECHO_T}no" >&6
14838fi
14839
8c80d384
DE
14840fi
14841if test -z "$ac_cv_prog_AR"; then
14842 ac_ct_AR=$AR
14843 # Extract the first word of "ar", so it can be a program name with args.
14844set dummy ar; ac_word=$2
14845echo "$as_me:$LINENO: checking for $ac_word" >&5
14846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14847if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14848 echo $ECHO_N "(cached) $ECHO_C" >&6
14849else
14850 if test -n "$ac_ct_AR"; then
14851 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14852else
14853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14854for as_dir in $PATH
14855do
14856 IFS=$as_save_IFS
14857 test -z "$as_dir" && as_dir=.
14858 for ac_exec_ext in '' $ac_executable_extensions; do
14859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14860 ac_cv_prog_ac_ct_AR="ar"
14861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14862 break 2
14863 fi
14864done
14865done
14866
14867fi
14868fi
14869ac_ct_AR=$ac_cv_prog_ac_ct_AR
14870if test -n "$ac_ct_AR"; then
14871 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14872echo "${ECHO_T}$ac_ct_AR" >&6
14873else
14874 echo "$as_me:$LINENO: result: no" >&5
14875echo "${ECHO_T}no" >&6
14876fi
14877
14878 AR=$ac_ct_AR
14879else
14880 AR="$ac_cv_prog_AR"
14881fi
14882
a848cd7e 14883if test "x$AR" = "x" ; then
77ffb593
JS
14884 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14885echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14886 { (exit 1); exit 1; }; }
14887fi
14888
14889# Find a good install program. We prefer a C program (faster),
14890# so one script is as good as another. But avoid the broken or
14891# incompatible versions:
14892# SysV /etc/install, /usr/sbin/install
14893# SunOS /usr/etc/install
14894# IRIX /sbin/install
14895# AIX /bin/install
14896# AmigaOS /C/install, which installs bootblocks on floppy discs
14897# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14898# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14899# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14900# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14901# ./install, which can be erroneously created by make from ./install.sh.
14902echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14903echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14904if test -z "$INSTALL"; then
14905if test "${ac_cv_path_install+set}" = set; then
14906 echo $ECHO_N "(cached) $ECHO_C" >&6
14907else
14908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14909for as_dir in $PATH
14910do
14911 IFS=$as_save_IFS
14912 test -z "$as_dir" && as_dir=.
14913 # Account for people who put trailing slashes in PATH elements.
14914case $as_dir/ in
14915 ./ | .// | /cC/* | \
14916 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14917 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14918 /usr/ucb/* ) ;;
14919 *)
14920 # OSF1 and SCO ODT 3.0 have their own names for install.
14921 # Don't use installbsd from OSF since it installs stuff as root
14922 # by default.
14923 for ac_prog in ginstall scoinst install; do
14924 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14925 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14926 if test $ac_prog = install &&
14927 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14928 # AIX install. It has an incompatible calling convention.
14929 :
14930 elif test $ac_prog = install &&
14931 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14932 # program-specific install script used by HP pwplus--don't use.
14933 :
14934 else
14935 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14936 break 3
14937 fi
14938 fi
a848cd7e
SC
14939 done
14940 done
14941 ;;
14942esac
14943done
14944
14945
14946fi
14947 if test "${ac_cv_path_install+set}" = set; then
14948 INSTALL=$ac_cv_path_install
14949 else
14950 # As a last resort, use the slow shell script. We don't cache a
14951 # path for INSTALL within a source directory, because that will
14952 # break other packages using the cache if that directory is
14953 # removed, or if the path is relative.
14954 INSTALL=$ac_install_sh
14955 fi
14956fi
14957echo "$as_me:$LINENO: result: $INSTALL" >&5
14958echo "${ECHO_T}$INSTALL" >&6
14959
14960# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14961# It thinks the first close brace ends the variable substitution.
14962test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14963
14964test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14965
14966test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14967
14968
14969case ${INSTALL} in
14970 /* ) # Absolute
14971 ;;
14972 ?:* ) # Drive letter, considered as absolute.
14973 ;;
14974 *)
14975 INSTALL=`pwd`/${INSTALL} ;;
14976esac
14977
a848cd7e
SC
14978
14979case "${host}" in
14980
cfda0ea8 14981 *-*-darwin* )
a848cd7e
SC
14982 INSTALL_PROGRAM="cp -fp"
14983 INSTALL_DATA="cp -fp"
14984 ;;
14985 *)
14986 ;;
14987esac
14988
8c80d384
DE
14989if test -n "$ac_tool_prefix"; then
14990 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14991set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14992echo "$as_me:$LINENO: checking for $ac_word" >&5
14993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14994if test "${ac_cv_prog_STRIP+set}" = set; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14996else
14997 if test -n "$STRIP"; then
14998 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14999else
15000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15001for as_dir in $PATH
15002do
15003 IFS=$as_save_IFS
15004 test -z "$as_dir" && as_dir=.
15005 for ac_exec_ext in '' $ac_executable_extensions; do
15006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15007 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
15008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15009 break 2
15010 fi
15011done
15012done
15013
a848cd7e
SC
15014fi
15015fi
15016STRIP=$ac_cv_prog_STRIP
15017if test -n "$STRIP"; then
15018 echo "$as_me:$LINENO: result: $STRIP" >&5
15019echo "${ECHO_T}$STRIP" >&6
15020else
15021 echo "$as_me:$LINENO: result: no" >&5
15022echo "${ECHO_T}no" >&6
15023fi
15024
8c80d384
DE
15025fi
15026if test -z "$ac_cv_prog_STRIP"; then
15027 ac_ct_STRIP=$STRIP
15028 # Extract the first word of "strip", so it can be a program name with args.
15029set dummy strip; ac_word=$2
15030echo "$as_me:$LINENO: checking for $ac_word" >&5
15031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15032if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15033 echo $ECHO_N "(cached) $ECHO_C" >&6
15034else
15035 if test -n "$ac_ct_STRIP"; then
15036 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15037else
15038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15039for as_dir in $PATH
15040do
15041 IFS=$as_save_IFS
15042 test -z "$as_dir" && as_dir=.
15043 for ac_exec_ext in '' $ac_executable_extensions; do
15044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15045 ac_cv_prog_ac_ct_STRIP="strip"
15046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15047 break 2
15048 fi
15049done
15050done
15051
15052 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15053fi
15054fi
15055ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15056if test -n "$ac_ct_STRIP"; then
15057 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15058echo "${ECHO_T}$ac_ct_STRIP" >&6
15059else
15060 echo "$as_me:$LINENO: result: no" >&5
15061echo "${ECHO_T}no" >&6
15062fi
15063
15064 STRIP=$ac_ct_STRIP
15065else
15066 STRIP="$ac_cv_prog_STRIP"
15067fi
15068
15069
15070if test "$wxUSE_WINE" = "yes"; then
15071 if test -n "$ac_tool_prefix"; then
15072 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15073set dummy ${ac_tool_prefix}wrc; ac_word=$2
15074echo "$as_me:$LINENO: checking for $ac_word" >&5
15075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15076if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
15077 echo $ECHO_N "(cached) $ECHO_C" >&6
15078else
8ced02f6
DE
15079 if test -n "$WINDRES"; then
15080 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15081else
15082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15083for as_dir in $PATH
15084do
15085 IFS=$as_save_IFS
15086 test -z "$as_dir" && as_dir=.
15087 for ac_exec_ext in '' $ac_executable_extensions; do
15088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15089 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15091 break 2
15092 fi
15093done
15094done
15095
15096fi
15097fi
8ced02f6
DE
15098WINDRES=$ac_cv_prog_WINDRES
15099if test -n "$WINDRES"; then
15100 echo "$as_me:$LINENO: result: $WINDRES" >&5
15101echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15102else
15103 echo "$as_me:$LINENO: result: no" >&5
15104echo "${ECHO_T}no" >&6
15105fi
15106
15107fi
8ced02f6
DE
15108if test -z "$ac_cv_prog_WINDRES"; then
15109 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15110 # Extract the first word of "wrc", so it can be a program name with args.
15111set dummy wrc; ac_word=$2
15112echo "$as_me:$LINENO: checking for $ac_word" >&5
15113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15114if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15115 echo $ECHO_N "(cached) $ECHO_C" >&6
15116else
8ced02f6
DE
15117 if test -n "$ac_ct_WINDRES"; then
15118 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15119else
15120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15121for as_dir in $PATH
15122do
15123 IFS=$as_save_IFS
15124 test -z "$as_dir" && as_dir=.
15125 for ac_exec_ext in '' $ac_executable_extensions; do
15126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15127 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15129 break 2
15130 fi
15131done
15132done
15133
15134fi
15135fi
8ced02f6
DE
15136ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15137if test -n "$ac_ct_WINDRES"; then
15138 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15139echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15140else
15141 echo "$as_me:$LINENO: result: no" >&5
15142echo "${ECHO_T}no" >&6
15143fi
15144
8ced02f6 15145 WINDRES=$ac_ct_WINDRES
8c80d384 15146else
8ced02f6 15147 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15148fi
15149
004ee6da 15150 RESCOMP="$WINDRES"
8c80d384
DE
15151else
15152 case "${host}" in
15153 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15154 if test -n "$ac_tool_prefix"; then
15155 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15156set dummy ${ac_tool_prefix}windres; ac_word=$2
15157echo "$as_me:$LINENO: checking for $ac_word" >&5
15158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15159if test "${ac_cv_prog_WINDRES+set}" = set; then
15160 echo $ECHO_N "(cached) $ECHO_C" >&6
15161else
15162 if test -n "$WINDRES"; then
15163 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15164else
15165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15166for as_dir in $PATH
15167do
15168 IFS=$as_save_IFS
15169 test -z "$as_dir" && as_dir=.
15170 for ac_exec_ext in '' $ac_executable_extensions; do
15171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15172 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15174 break 2
15175 fi
15176done
15177done
15178
15179fi
15180fi
15181WINDRES=$ac_cv_prog_WINDRES
15182if test -n "$WINDRES"; then
15183 echo "$as_me:$LINENO: result: $WINDRES" >&5
15184echo "${ECHO_T}$WINDRES" >&6
15185else
15186 echo "$as_me:$LINENO: result: no" >&5
15187echo "${ECHO_T}no" >&6
15188fi
15189
15190fi
15191if test -z "$ac_cv_prog_WINDRES"; then
15192 ac_ct_WINDRES=$WINDRES
15193 # Extract the first word of "windres", so it can be a program name with args.
15194set dummy windres; ac_word=$2
15195echo "$as_me:$LINENO: checking for $ac_word" >&5
15196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15197if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15199else
15200 if test -n "$ac_ct_WINDRES"; then
15201 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15202else
15203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15204for as_dir in $PATH
15205do
15206 IFS=$as_save_IFS
15207 test -z "$as_dir" && as_dir=.
15208 for ac_exec_ext in '' $ac_executable_extensions; do
15209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15210 ac_cv_prog_ac_ct_WINDRES="windres"
15211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15212 break 2
15213 fi
15214done
15215done
15216
15217fi
15218fi
15219ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15220if test -n "$ac_ct_WINDRES"; then
15221 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15222echo "${ECHO_T}$ac_ct_WINDRES" >&6
15223else
15224 echo "$as_me:$LINENO: result: no" >&5
15225echo "${ECHO_T}no" >&6
15226fi
15227
15228 WINDRES=$ac_ct_WINDRES
15229else
15230 WINDRES="$ac_cv_prog_WINDRES"
15231fi
15232
15233 RESCOMP="$WINDRES"
15234 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15235 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15236set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15237echo "$as_me:$LINENO: checking for $ac_word" >&5
15238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15239if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15240 echo $ECHO_N "(cached) $ECHO_C" >&6
15241else
15242 if test -n "$DLLTOOL"; then
15243 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15244else
15245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15246for as_dir in $PATH
15247do
15248 IFS=$as_save_IFS
15249 test -z "$as_dir" && as_dir=.
15250 for ac_exec_ext in '' $ac_executable_extensions; do
15251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15252 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15254 break 2
15255 fi
15256done
15257done
15258
15259fi
15260fi
15261DLLTOOL=$ac_cv_prog_DLLTOOL
15262if test -n "$DLLTOOL"; then
15263 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15264echo "${ECHO_T}$DLLTOOL" >&6
15265else
15266 echo "$as_me:$LINENO: result: no" >&5
15267echo "${ECHO_T}no" >&6
15268fi
15269
15270fi
15271if test -z "$ac_cv_prog_DLLTOOL"; then
15272 ac_ct_DLLTOOL=$DLLTOOL
15273 # Extract the first word of "dlltool", so it can be a program name with args.
15274set dummy dlltool; ac_word=$2
15275echo "$as_me:$LINENO: checking for $ac_word" >&5
15276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15277if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15279else
15280 if test -n "$ac_ct_DLLTOOL"; then
15281 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15282else
15283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15284for as_dir in $PATH
15285do
15286 IFS=$as_save_IFS
15287 test -z "$as_dir" && as_dir=.
15288 for ac_exec_ext in '' $ac_executable_extensions; do
15289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15290 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15292 break 2
15293 fi
15294done
15295done
15296
15297fi
15298fi
15299ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15300if test -n "$ac_ct_DLLTOOL"; then
15301 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15302echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15303else
15304 echo "$as_me:$LINENO: result: no" >&5
15305echo "${ECHO_T}no" >&6
15306fi
15307
15308 DLLTOOL=$ac_ct_DLLTOOL
15309else
15310 DLLTOOL="$ac_cv_prog_DLLTOOL"
15311fi
15312
15313 ;;
15314 esac
15315fi
a848cd7e
SC
15316
15317echo "$as_me:$LINENO: checking if make is GNU make" >&5
15318echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15319if test "${wx_cv_prog_makeisgnu+set}" = set; then
15320 echo $ECHO_N "(cached) $ECHO_C" >&6
15321else
15322
15323 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15324 egrep -s GNU > /dev/null); then
15325 wx_cv_prog_makeisgnu="yes"
15326 else
15327 wx_cv_prog_makeisgnu="no"
15328 fi
15329
15330fi
15331echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15332echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15333
15334if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15335 IF_GNU_MAKE=""
15336else
15337 IF_GNU_MAKE="#"
15338fi
15339
15340
15341
15342if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15343echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15344echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15345if test "${wx_cv_prog_makevpath+set}" = set; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15347else
15348
15349cat - << EOF > confMake
15350check : file
15351 cp \$? \$@
15352 cp \$? final_file
15353EOF
15354
15355if test ! -d sub ; then
15356 mkdir sub
15357fi
15358echo dummy > sub/file
15359${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15360RESULT=$?
15361rm -f sub/file check final_file confMake
15362rmdir sub
15363if test "$RESULT" = 0; then
15364 wx_cv_prog_makevpath="yes"
15365else
15366 wx_cv_prog_makevpath="no"
15367fi
15368
15369fi
15370echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15371echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15372
15373if test "x$wx_cv_prog_makevpath" != "xyes"; then
15374{ { echo "$as_me:$LINENO: error:
15375You need a make-utility that is able to use the variable
15376VPATH correctly.
15377If your version of make does not support VPATH correctly,
15378please install GNU-make (possibly as gmake), and start
15379configure with the following command:
15380export MAKE=gmake; ./configure for sh-type shells
15381setenv MAKE gmake; ./configure for csh-type shells
15382Also please do remember to use gmake in this case every time
15383you are trying to compile.
15384" >&5
15385echo "$as_me: error:
15386You need a make-utility that is able to use the variable
15387VPATH correctly.
15388If your version of make does not support VPATH correctly,
15389please install GNU-make (possibly as gmake), and start
15390configure with the following command:
15391export MAKE=gmake; ./configure for sh-type shells
15392setenv MAKE gmake; ./configure for csh-type shells
15393Also please do remember to use gmake in this case every time
15394you are trying to compile.
15395" >&2;}
15396 { (exit 1); exit 1; }; }
15397fi fi
15398echo "$as_me:$LINENO: checking whether ln -s works" >&5
15399echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15400LN_S=$as_ln_s
15401if test "$LN_S" = "ln -s"; then
15402 echo "$as_me:$LINENO: result: yes" >&5
15403echo "${ECHO_T}yes" >&6
15404else
15405 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15406echo "${ECHO_T}no, using $LN_S" >&6
15407fi
15408
15409
bcaab0f9 15410
a848cd7e 15411
2113bc77 15412if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15413 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15414fi
15415
4d7ec9f1
DE
15416case "${host}" in
15417 powerpc-*-darwin* )
15418 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15419echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15420 cat >conftest.$ac_ext <<_ACEOF
15421/* confdefs.h. */
15422_ACEOF
15423cat confdefs.h >>conftest.$ac_ext
15424cat >>conftest.$ac_ext <<_ACEOF
15425/* end confdefs.h. */
15426
15427int
15428main ()
15429{
15430#ifndef __POWERPC__
15431 choke me for lack of PowerPC
15432#endif
15433
15434 ;
15435 return 0;
15436}
15437_ACEOF
15438rm -f conftest.$ac_objext
15439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15440 (eval $ac_compile) 2>conftest.er1
15441 ac_status=$?
15442 grep -v '^ *+' conftest.er1 >conftest.err
15443 rm -f conftest.er1
15444 cat conftest.err >&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } &&
c9a66001 15447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15449 (eval $ac_try) 2>&5
15450 ac_status=$?
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; } &&
15453 { ac_try='test -s conftest.$ac_objext'
15454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15455 (eval $ac_try) 2>&5
15456 ac_status=$?
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); }; }; then
15459 echo "$as_me:$LINENO: result: yes" >&5
15460echo "${ECHO_T}yes" >&6
15461else
15462 echo "$as_me: failed program was:" >&5
15463sed 's/^/| /' conftest.$ac_ext >&5
15464
15465echo "$as_me:$LINENO: result: no" >&5
15466echo "${ECHO_T}no" >&6
15467 cat >>confdefs.h <<\_ACEOF
15468#define __POWERPC__ 1
15469_ACEOF
15470
15471
15472fi
15473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15474 ;;
15475esac
15476
15477case "${host}" in
15478 *-*-darwin* )
4d7ec9f1
DE
15479 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15480echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15481 cat >conftest.$ac_ext <<_ACEOF
15482/* confdefs.h. */
15483_ACEOF
15484cat confdefs.h >>conftest.$ac_ext
15485cat >>conftest.$ac_ext <<_ACEOF
15486/* end confdefs.h. */
15487#include <CoreFoundation/CFBase.h>
15488
15489int
15490main ()
15491{
15492
15493 ;
15494 return 0;
15495}
15496_ACEOF
15497rm -f conftest.$ac_objext
15498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15499 (eval $ac_compile) 2>conftest.er1
15500 ac_status=$?
15501 grep -v '^ *+' conftest.er1 >conftest.err
15502 rm -f conftest.er1
15503 cat conftest.err >&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); } &&
c9a66001 15506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508 (eval $ac_try) 2>&5
15509 ac_status=$?
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; } &&
15512 { ac_try='test -s conftest.$ac_objext'
15513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514 (eval $ac_try) 2>&5
15515 ac_status=$?
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; }; then
15518 echo "$as_me:$LINENO: result: yes" >&5
15519echo "${ECHO_T}yes" >&6
15520else
15521 echo "$as_me: failed program was:" >&5
15522sed 's/^/| /' conftest.$ac_ext >&5
15523
15524echo "$as_me:$LINENO: result: no" >&5
15525echo "${ECHO_T}no" >&6
15526 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15527echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15528 cat >conftest.$ac_ext <<_ACEOF
15529/* confdefs.h. */
15530_ACEOF
15531cat confdefs.h >>conftest.$ac_ext
15532cat >>conftest.$ac_ext <<_ACEOF
15533/* end confdefs.h. */
15534#define __CF_USE_FRAMEWORK_INCLUDES__
15535#include <CoreFoundation/CFBase.h>
15536
15537int
15538main ()
15539{
15540
15541 ;
15542 return 0;
15543}
15544_ACEOF
15545rm -f conftest.$ac_objext
15546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15547 (eval $ac_compile) 2>conftest.er1
15548 ac_status=$?
15549 grep -v '^ *+' conftest.er1 >conftest.err
15550 rm -f conftest.er1
15551 cat conftest.err >&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } &&
c9a66001 15554 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15556 (eval $ac_try) 2>&5
15557 ac_status=$?
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; } &&
15560 { ac_try='test -s conftest.$ac_objext'
15561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15562 (eval $ac_try) 2>&5
15563 ac_status=$?
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; }; then
15566 echo "$as_me:$LINENO: result: yes" >&5
15567echo "${ECHO_T}yes" >&6
c92ad099 15568 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15569else
15570 echo "$as_me: failed program was:" >&5
15571sed 's/^/| /' conftest.$ac_ext >&5
15572
15573{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15574See \`config.log' for more details." >&5
15575echo "$as_me: error: no. CoreFoundation not available.
15576See \`config.log' for more details." >&2;}
15577 { (exit 1); exit 1; }; }
15578
15579fi
15580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15581
15582
15583fi
15584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15585 ;;
15586esac
15587
a848cd7e
SC
15588case "${host}" in
15589 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15590 ac_ext=c
15591ac_cpp='$CPP $CPPFLAGS'
15592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15594ac_compiler_gnu=$ac_cv_c_compiler_gnu
15595
15596 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15597 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15598echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15599if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15600 echo $ECHO_N "(cached) $ECHO_C" >&6
15601else
15602 ac_check_lib_save_LIBS=$LIBS
15603LIBS="-lcExt $LIBS"
15604cat >conftest.$ac_ext <<_ACEOF
15605/* confdefs.h. */
15606_ACEOF
15607cat confdefs.h >>conftest.$ac_ext
15608cat >>conftest.$ac_ext <<_ACEOF
15609/* end confdefs.h. */
15610
15611/* Override any gcc2 internal prototype to avoid an error. */
15612#ifdef __cplusplus
15613extern "C"
15614#endif
15615/* We use char because int might match the return type of a gcc2
15616 builtin and then its argument prototype would still apply. */
15617char drand48 ();
15618int
15619main ()
15620{
15621drand48 ();
15622 ;
15623 return 0;
15624}
15625_ACEOF
15626rm -f conftest.$ac_objext conftest$ac_exeext
15627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15628 (eval $ac_link) 2>conftest.er1
a848cd7e 15629 ac_status=$?
ac1cb8d3
VS
15630 grep -v '^ *+' conftest.er1 >conftest.err
15631 rm -f conftest.er1
15632 cat conftest.err >&5
a848cd7e
SC
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); } &&
c9a66001 15635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637 (eval $ac_try) 2>&5
15638 ac_status=$?
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; } &&
15641 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15644 ac_status=$?
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; }; then
15647 ac_cv_lib_cExt_drand48=yes
15648else
15649 echo "$as_me: failed program was:" >&5
15650sed 's/^/| /' conftest.$ac_ext >&5
15651
15652ac_cv_lib_cExt_drand48=no
15653fi
ac1cb8d3
VS
15654rm -f conftest.err conftest.$ac_objext \
15655 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15656LIBS=$ac_check_lib_save_LIBS
15657fi
15658echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15659echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15660if test $ac_cv_lib_cExt_drand48 = yes; then
15661 LIBS="$LIBS -lcExt"
15662fi
15663
15664 else
15665 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15666 fi
69120ee4
VZ
15667 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15668echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15669if test "${wx_cv_gccversion+set}" = set; then
15670 echo $ECHO_N "(cached) $ECHO_C" >&6
15671else
15672
391a765e
VS
15673 if test "$cross_compiling" = yes; then
15674 wx_cv_gccversion="EMX2"
15675
15676else
15677 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15678/* confdefs.h. */
15679_ACEOF
15680cat confdefs.h >>conftest.$ac_ext
15681cat >>conftest.$ac_ext <<_ACEOF
15682/* end confdefs.h. */
15683
391a765e 15684 #include <stdio.h>
a848cd7e 15685
391a765e
VS
15686 int main()
15687 {
15688 FILE *f=fopen("conftestval", "w");
15689 if (!f) exit(1);
15690 fprintf(f,
a848cd7e 15691 #if (__GNUC__ < 3)
391a765e
VS
15692 "EMX2"
15693 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15694 "EMX3"
15695 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15696 "Innotek5"
15697 #else
15698 "Innotek6"
a848cd7e 15699 #endif
391a765e
VS
15700 );
15701 exit(0);
15702 }
a848cd7e 15703
a848cd7e 15704_ACEOF
391a765e
VS
15705rm -f conftest$ac_exeext
15706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15707 (eval $ac_link) 2>&5
ac1cb8d3
VS
15708 ac_status=$?
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15713 ac_status=$?
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; }; then
391a765e 15716 wx_cv_gccversion=`cat conftestval`
a848cd7e 15717else
391a765e
VS
15718 echo "$as_me: program exited with status $ac_status" >&5
15719echo "$as_me: failed program was:" >&5
a848cd7e
SC
15720sed 's/^/| /' conftest.$ac_ext >&5
15721
391a765e
VS
15722( exit $ac_status )
15723wx_cv_gccversion="EMX2"
a848cd7e 15724fi
391a765e 15725rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15726fi
a848cd7e
SC
15727
15728fi
15729echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15730echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
15731 ac_ext=cc
15732ac_cpp='$CXXCPP $CPPFLAGS'
15733ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15734ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15735ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15736
391a765e 15737 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15738 LIBS="$LIBS -lstdcpp"
15739 LDFLAGS="$LDFLAGS -Zsysv-signals"
15740 else
391a765e 15741 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15742 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15743 LDFLAGS="$LDFLAGS -Zsysv-signals"
15744 else
15745 LIBS="$LIBS -lstdc++"
15746 fi
15747 fi
94acd38e
DE
15748 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15749 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15750echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15751 wxUSE_OMF=yes
2da0c077 15752 enable_omf=yes
a848cd7e
SC
15753 fi
15754 ;;
15755 *)
15756
95986553 15757 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15758echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15759if test "${ac_cv_string_strcasecmp+set}" = set; then
15760 echo $ECHO_N "(cached) $ECHO_C" >&6
15761else
15762
15763 cat >conftest.$ac_ext <<_ACEOF
15764/* confdefs.h. */
15765_ACEOF
15766cat confdefs.h >>conftest.$ac_ext
15767cat >>conftest.$ac_ext <<_ACEOF
15768/* end confdefs.h. */
15769
15770 #include <string.h>
15771
15772int
15773main ()
15774{
15775
15776 strcasecmp("foo", "bar");
15777
15778 ;
15779 return 0;
15780}
15781_ACEOF
15782rm -f conftest.$ac_objext conftest$ac_exeext
15783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15784 (eval $ac_link) 2>conftest.er1
a848cd7e 15785 ac_status=$?
ac1cb8d3
VS
15786 grep -v '^ *+' conftest.er1 >conftest.err
15787 rm -f conftest.er1
15788 cat conftest.err >&5
a848cd7e
SC
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); } &&
c9a66001 15791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15793 (eval $ac_try) 2>&5
15794 ac_status=$?
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }; } &&
15797 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15799 (eval $ac_try) 2>&5
15800 ac_status=$?
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); }; }; then
15803 ac_cv_string_strcasecmp=yes
15804else
15805 echo "$as_me: failed program was:" >&5
15806sed 's/^/| /' conftest.$ac_ext >&5
15807
15808ac_cv_string_strcasecmp=no
15809
15810fi
ac1cb8d3
VS
15811rm -f conftest.err conftest.$ac_objext \
15812 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15813
15814fi
15815echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15816echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15817
15818 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15819 cat >>confdefs.h <<\_ACEOF
15820#define HAVE_STRCASECMP_IN_STRING_H 1
15821_ACEOF
15822
15823 else
15824 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15825echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15826if test "${ac_cv_strings_strcasecmp+set}" = set; then
15827 echo $ECHO_N "(cached) $ECHO_C" >&6
15828else
15829
15830 cat >conftest.$ac_ext <<_ACEOF
15831/* confdefs.h. */
15832_ACEOF
15833cat confdefs.h >>conftest.$ac_ext
15834cat >>conftest.$ac_ext <<_ACEOF
15835/* end confdefs.h. */
15836
15837 #include <strings.h>
15838
15839int
15840main ()
15841{
15842
15843 strcasecmp("foo", "bar");
15844
15845 ;
15846 return 0;
15847}
15848_ACEOF
15849rm -f conftest.$ac_objext conftest$ac_exeext
15850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15851 (eval $ac_link) 2>conftest.er1
a848cd7e 15852 ac_status=$?
ac1cb8d3
VS
15853 grep -v '^ *+' conftest.er1 >conftest.err
15854 rm -f conftest.er1
15855 cat conftest.err >&5
a848cd7e
SC
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); } &&
c9a66001 15858 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860 (eval $ac_try) 2>&5
15861 ac_status=$?
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; } &&
15864 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866 (eval $ac_try) 2>&5
15867 ac_status=$?
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }; }; then
15870 ac_cv_strings_strcasecmp=yes
15871else
15872 echo "$as_me: failed program was:" >&5
15873sed 's/^/| /' conftest.$ac_ext >&5
15874
15875ac_cv_strings_strcasecmp=no
15876
15877fi
ac1cb8d3
VS
15878rm -f conftest.err conftest.$ac_objext \
15879 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15880
15881fi
15882echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15883echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15884
0c3c69fc 15885 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15886 cat >>confdefs.h <<\_ACEOF
15887#define HAVE_STRCASECMP_IN_STRINGS_H 1
15888_ACEOF
15889
15890 else
15891 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15892echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15893 { (exit 1); exit 1; }; }
15894 fi
15895 fi
15896
a848cd7e
SC
15897 ;;
15898esac
15899
15900
5d7b7554
VZ
15901ac_ext=cc
15902ac_cpp='$CXXCPP $CPPFLAGS'
15903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15906echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15907echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15908if test -z "$CXXCPP"; then
15909 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15911else
15912 # Double quotes because CXXCPP needs to be expanded
15913 for CXXCPP in "$CXX -E" "/lib/cpp"
15914 do
15915 ac_preproc_ok=false
15916for ac_cxx_preproc_warn_flag in '' yes
15917do
15918 # Use a header file that comes with gcc, so configuring glibc
15919 # with a fresh cross-compiler works.
15920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15921 # <limits.h> exists even on freestanding compilers.
15922 # On the NeXT, cc -E runs the code through the compiler's parser,
15923 # not just through cpp. "Syntax error" is here to catch this case.
15924 cat >conftest.$ac_ext <<_ACEOF
15925/* confdefs.h. */
15926_ACEOF
15927cat confdefs.h >>conftest.$ac_ext
15928cat >>conftest.$ac_ext <<_ACEOF
15929/* end confdefs.h. */
15930#ifdef __STDC__
15931# include <limits.h>
15932#else
15933# include <assert.h>
15934#endif
15935 Syntax error
15936_ACEOF
15937if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15939 ac_status=$?
15940 grep -v '^ *+' conftest.er1 >conftest.err
15941 rm -f conftest.er1
15942 cat conftest.err >&5
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); } >/dev/null; then
15945 if test -s conftest.err; then
15946 ac_cpp_err=$ac_cxx_preproc_warn_flag
15947 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15948 else
15949 ac_cpp_err=
15950 fi
15951else
15952 ac_cpp_err=yes
15953fi
15954if test -z "$ac_cpp_err"; then
15955 :
15956else
15957 echo "$as_me: failed program was:" >&5
15958sed 's/^/| /' conftest.$ac_ext >&5
15959
15960 # Broken: fails on valid input.
15961continue
15962fi
15963rm -f conftest.err conftest.$ac_ext
15964
15965 # OK, works on sane cases. Now check whether non-existent headers
15966 # can be detected and how.
15967 cat >conftest.$ac_ext <<_ACEOF
15968/* confdefs.h. */
15969_ACEOF
15970cat confdefs.h >>conftest.$ac_ext
15971cat >>conftest.$ac_ext <<_ACEOF
15972/* end confdefs.h. */
15973#include <ac_nonexistent.h>
15974_ACEOF
15975if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15977 ac_status=$?
15978 grep -v '^ *+' conftest.er1 >conftest.err
15979 rm -f conftest.er1
15980 cat conftest.err >&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } >/dev/null; then
15983 if test -s conftest.err; then
15984 ac_cpp_err=$ac_cxx_preproc_warn_flag
15985 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15986 else
15987 ac_cpp_err=
15988 fi
15989else
15990 ac_cpp_err=yes
15991fi
15992if test -z "$ac_cpp_err"; then
15993 # Broken: success on invalid input.
15994continue
15995else
15996 echo "$as_me: failed program was:" >&5
15997sed 's/^/| /' conftest.$ac_ext >&5
15998
15999 # Passes both tests.
16000ac_preproc_ok=:
16001break
16002fi
16003rm -f conftest.err conftest.$ac_ext
16004
16005done
16006# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16007rm -f conftest.err conftest.$ac_ext
16008if $ac_preproc_ok; then
16009 break
16010fi
16011
16012 done
16013 ac_cv_prog_CXXCPP=$CXXCPP
16014
16015fi
16016 CXXCPP=$ac_cv_prog_CXXCPP
16017else
16018 ac_cv_prog_CXXCPP=$CXXCPP
16019fi
16020echo "$as_me:$LINENO: result: $CXXCPP" >&5
16021echo "${ECHO_T}$CXXCPP" >&6
16022ac_preproc_ok=false
16023for ac_cxx_preproc_warn_flag in '' yes
16024do
16025 # Use a header file that comes with gcc, so configuring glibc
16026 # with a fresh cross-compiler works.
16027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16028 # <limits.h> exists even on freestanding compilers.
16029 # On the NeXT, cc -E runs the code through the compiler's parser,
16030 # not just through cpp. "Syntax error" is here to catch this case.
16031 cat >conftest.$ac_ext <<_ACEOF
16032/* confdefs.h. */
16033_ACEOF
16034cat confdefs.h >>conftest.$ac_ext
16035cat >>conftest.$ac_ext <<_ACEOF
16036/* end confdefs.h. */
16037#ifdef __STDC__
16038# include <limits.h>
16039#else
16040# include <assert.h>
16041#endif
16042 Syntax error
16043_ACEOF
16044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16046 ac_status=$?
16047 grep -v '^ *+' conftest.er1 >conftest.err
16048 rm -f conftest.er1
16049 cat conftest.err >&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } >/dev/null; then
16052 if test -s conftest.err; then
16053 ac_cpp_err=$ac_cxx_preproc_warn_flag
16054 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16055 else
16056 ac_cpp_err=
16057 fi
16058else
16059 ac_cpp_err=yes
16060fi
16061if test -z "$ac_cpp_err"; then
16062 :
16063else
16064 echo "$as_me: failed program was:" >&5
16065sed 's/^/| /' conftest.$ac_ext >&5
16066
16067 # Broken: fails on valid input.
16068continue
16069fi
16070rm -f conftest.err conftest.$ac_ext
16071
16072 # OK, works on sane cases. Now check whether non-existent headers
16073 # can be detected and how.
16074 cat >conftest.$ac_ext <<_ACEOF
16075/* confdefs.h. */
16076_ACEOF
16077cat confdefs.h >>conftest.$ac_ext
16078cat >>conftest.$ac_ext <<_ACEOF
16079/* end confdefs.h. */
16080#include <ac_nonexistent.h>
16081_ACEOF
16082if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16084 ac_status=$?
16085 grep -v '^ *+' conftest.er1 >conftest.err
16086 rm -f conftest.er1
16087 cat conftest.err >&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } >/dev/null; then
16090 if test -s conftest.err; then
16091 ac_cpp_err=$ac_cxx_preproc_warn_flag
16092 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16093 else
16094 ac_cpp_err=
16095 fi
16096else
16097 ac_cpp_err=yes
16098fi
16099if test -z "$ac_cpp_err"; then
16100 # Broken: success on invalid input.
16101continue
16102else
16103 echo "$as_me: failed program was:" >&5
16104sed 's/^/| /' conftest.$ac_ext >&5
16105
16106 # Passes both tests.
16107ac_preproc_ok=:
16108break
16109fi
16110rm -f conftest.err conftest.$ac_ext
16111
16112done
16113# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16114rm -f conftest.err conftest.$ac_ext
16115if $ac_preproc_ok; then
16116 :
16117else
16118 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16119See \`config.log' for more details." >&5
16120echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16121See \`config.log' for more details." >&2;}
16122 { (exit 1); exit 1; }; }
16123fi
16124
16125ac_ext=cc
16126ac_cpp='$CXXCPP $CPPFLAGS'
16127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16130
16131
a848cd7e
SC
16132echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16133echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16134if test "${ac_cv_header_stdc+set}" = set; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16136else
16137 cat >conftest.$ac_ext <<_ACEOF
16138/* confdefs.h. */
16139_ACEOF
16140cat confdefs.h >>conftest.$ac_ext
16141cat >>conftest.$ac_ext <<_ACEOF
16142/* end confdefs.h. */
16143#include <stdlib.h>
16144#include <stdarg.h>
16145#include <string.h>
16146#include <float.h>
16147
16148int
16149main ()
16150{
16151
16152 ;
16153 return 0;
16154}
16155_ACEOF
16156rm -f conftest.$ac_objext
16157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16158 (eval $ac_compile) 2>conftest.er1
a848cd7e 16159 ac_status=$?
ac1cb8d3
VS
16160 grep -v '^ *+' conftest.er1 >conftest.err
16161 rm -f conftest.er1
16162 cat conftest.err >&5
a848cd7e
SC
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); } &&
c9a66001 16165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16167 (eval $ac_try) 2>&5
16168 ac_status=$?
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); }; } &&
16171 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173 (eval $ac_try) 2>&5
16174 ac_status=$?
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; }; then
16177 ac_cv_header_stdc=yes
16178else
16179 echo "$as_me: failed program was:" >&5
16180sed 's/^/| /' conftest.$ac_ext >&5
16181
16182ac_cv_header_stdc=no
16183fi
ac1cb8d3 16184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16185
16186if test $ac_cv_header_stdc = yes; then
16187 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16188 cat >conftest.$ac_ext <<_ACEOF
16189/* confdefs.h. */
16190_ACEOF
16191cat confdefs.h >>conftest.$ac_ext
16192cat >>conftest.$ac_ext <<_ACEOF
16193/* end confdefs.h. */
16194#include <string.h>
16195
16196_ACEOF
16197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16198 $EGREP "memchr" >/dev/null 2>&1; then
16199 :
16200else
16201 ac_cv_header_stdc=no
16202fi
16203rm -f conftest*
16204
16205fi
16206
16207if test $ac_cv_header_stdc = yes; then
16208 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16209 cat >conftest.$ac_ext <<_ACEOF
16210/* confdefs.h. */
16211_ACEOF
16212cat confdefs.h >>conftest.$ac_ext
16213cat >>conftest.$ac_ext <<_ACEOF
16214/* end confdefs.h. */
16215#include <stdlib.h>
16216
16217_ACEOF
16218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16219 $EGREP "free" >/dev/null 2>&1; then
16220 :
16221else
16222 ac_cv_header_stdc=no
16223fi
16224rm -f conftest*
16225
16226fi
16227
16228if test $ac_cv_header_stdc = yes; then
16229 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16230 if test "$cross_compiling" = yes; then
16231 :
16232else
16233 cat >conftest.$ac_ext <<_ACEOF
16234/* confdefs.h. */
16235_ACEOF
16236cat confdefs.h >>conftest.$ac_ext
16237cat >>conftest.$ac_ext <<_ACEOF
16238/* end confdefs.h. */
16239#include <ctype.h>
16240#if ((' ' & 0x0FF) == 0x020)
16241# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16242# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16243#else
16244# define ISLOWER(c) \
ac1cb8d3
VS
16245 (('a' <= (c) && (c) <= 'i') \
16246 || ('j' <= (c) && (c) <= 'r') \
16247 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16248# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16249#endif
16250
16251#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16252int
16253main ()
16254{
16255 int i;
16256 for (i = 0; i < 256; i++)
16257 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16258 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16259 exit(2);
16260 exit (0);
16261}
16262_ACEOF
16263rm -f conftest$ac_exeext
16264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16265 (eval $ac_link) 2>&5
16266 ac_status=$?
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270 (eval $ac_try) 2>&5
16271 ac_status=$?
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); }; }; then
16274 :
16275else
16276 echo "$as_me: program exited with status $ac_status" >&5
16277echo "$as_me: failed program was:" >&5
16278sed 's/^/| /' conftest.$ac_ext >&5
16279
16280( exit $ac_status )
16281ac_cv_header_stdc=no
16282fi
ac1cb8d3 16283rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16284fi
16285fi
16286fi
16287echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16288echo "${ECHO_T}$ac_cv_header_stdc" >&6
16289if test $ac_cv_header_stdc = yes; then
16290
16291cat >>confdefs.h <<\_ACEOF
16292#define STDC_HEADERS 1
16293_ACEOF
16294
16295fi
16296
16297# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16308 inttypes.h stdint.h unistd.h
a848cd7e
SC
16309do
16310as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16311echo "$as_me:$LINENO: checking for $ac_header" >&5
16312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16313if eval "test \"\${$as_ac_Header+set}\" = set"; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16315else
16316 cat >conftest.$ac_ext <<_ACEOF
16317/* confdefs.h. */
16318_ACEOF
16319cat confdefs.h >>conftest.$ac_ext
16320cat >>conftest.$ac_ext <<_ACEOF
16321/* end confdefs.h. */
16322$ac_includes_default
16323
16324#include <$ac_header>
16325_ACEOF
16326rm -f conftest.$ac_objext
16327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16328 (eval $ac_compile) 2>conftest.er1
a848cd7e 16329 ac_status=$?
ac1cb8d3
VS
16330 grep -v '^ *+' conftest.er1 >conftest.err
16331 rm -f conftest.er1
16332 cat conftest.err >&5
a848cd7e
SC
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } &&
c9a66001 16335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16337 (eval $ac_try) 2>&5
16338 ac_status=$?
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); }; } &&
16341 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343 (eval $ac_try) 2>&5
16344 ac_status=$?
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); }; }; then
16347 eval "$as_ac_Header=yes"
16348else
16349 echo "$as_me: failed program was:" >&5
16350sed 's/^/| /' conftest.$ac_ext >&5
16351
16352eval "$as_ac_Header=no"
16353fi
ac1cb8d3 16354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16355fi
16356echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16357echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16358if test `eval echo '${'$as_ac_Header'}'` = yes; then
16359 cat >>confdefs.h <<_ACEOF
16360#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16361_ACEOF
16362
16363fi
16364
16365done
16366
16367
16368
16369for ac_header in stdlib.h
16370do
16371as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16372if eval "test \"\${$as_ac_Header+set}\" = set"; then
16373 echo "$as_me:$LINENO: checking for $ac_header" >&5
16374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16375if eval "test \"\${$as_ac_Header+set}\" = set"; then
16376 echo $ECHO_N "(cached) $ECHO_C" >&6
16377fi
16378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16380else
16381 # Is the header compilable?
16382echo "$as_me:$LINENO: checking $ac_header usability" >&5
16383echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16384cat >conftest.$ac_ext <<_ACEOF
16385/* confdefs.h. */
16386_ACEOF
16387cat confdefs.h >>conftest.$ac_ext
16388cat >>conftest.$ac_ext <<_ACEOF
16389/* end confdefs.h. */
16390$ac_includes_default
16391#include <$ac_header>
16392_ACEOF
16393rm -f conftest.$ac_objext
16394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16395 (eval $ac_compile) 2>conftest.er1
a848cd7e 16396 ac_status=$?
ac1cb8d3
VS
16397 grep -v '^ *+' conftest.er1 >conftest.err
16398 rm -f conftest.er1
16399 cat conftest.err >&5
a848cd7e
SC
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); } &&
c9a66001 16402 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16404 (eval $ac_try) 2>&5
16405 ac_status=$?
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); }; } &&
16408 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16410 (eval $ac_try) 2>&5
16411 ac_status=$?
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); }; }; then
16414 ac_header_compiler=yes
16415else
16416 echo "$as_me: failed program was:" >&5
16417sed 's/^/| /' conftest.$ac_ext >&5
16418
16419ac_header_compiler=no
16420fi
ac1cb8d3 16421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16422echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16423echo "${ECHO_T}$ac_header_compiler" >&6
16424
16425# Is the header present?
16426echo "$as_me:$LINENO: checking $ac_header presence" >&5
16427echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16428cat >conftest.$ac_ext <<_ACEOF
16429/* confdefs.h. */
16430_ACEOF
16431cat confdefs.h >>conftest.$ac_ext
16432cat >>conftest.$ac_ext <<_ACEOF
16433/* end confdefs.h. */
16434#include <$ac_header>
16435_ACEOF
16436if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16438 ac_status=$?
16439 grep -v '^ *+' conftest.er1 >conftest.err
16440 rm -f conftest.er1
16441 cat conftest.err >&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); } >/dev/null; then
16444 if test -s conftest.err; then
5d7b7554
VZ
16445 ac_cpp_err=$ac_cxx_preproc_warn_flag
16446 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16447 else
16448 ac_cpp_err=
16449 fi
16450else
16451 ac_cpp_err=yes
16452fi
16453if test -z "$ac_cpp_err"; then
16454 ac_header_preproc=yes
16455else
16456 echo "$as_me: failed program was:" >&5
16457sed 's/^/| /' conftest.$ac_ext >&5
16458
16459 ac_header_preproc=no
16460fi
16461rm -f conftest.err conftest.$ac_ext
16462echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16463echo "${ECHO_T}$ac_header_preproc" >&6
16464
16465# So? What about this header?
5d7b7554 16466case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16467 yes:no: )
a848cd7e
SC
16468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16469echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16471echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16472 ac_header_preproc=yes
a848cd7e 16473 ;;
ac1cb8d3 16474 no:yes:* )
a848cd7e
SC
16475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16476echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16478echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16480echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16482echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16484echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16486echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16487 (
16488 cat <<\_ASBOX
ac1cb8d3
VS
16489## ----------------------------------------- ##
16490## Report this to wx-dev@lists.wxwidgets.org ##
16491## ----------------------------------------- ##
a848cd7e
SC
16492_ASBOX
16493 ) |
16494 sed "s/^/$as_me: WARNING: /" >&2
16495 ;;
16496esac
16497echo "$as_me:$LINENO: checking for $ac_header" >&5
16498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16499if eval "test \"\${$as_ac_Header+set}\" = set"; then
16500 echo $ECHO_N "(cached) $ECHO_C" >&6
16501else
ac1cb8d3 16502 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16503fi
16504echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16505echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16506
16507fi
16508if test `eval echo '${'$as_ac_Header'}'` = yes; then
16509 cat >>confdefs.h <<_ACEOF
16510#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16511_ACEOF
16512
16513fi
16514
16515done
16516
16517
16518for ac_header in malloc.h
16519do
16520as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16521if eval "test \"\${$as_ac_Header+set}\" = set"; then
16522 echo "$as_me:$LINENO: checking for $ac_header" >&5
16523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16524if eval "test \"\${$as_ac_Header+set}\" = set"; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16526fi
16527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16528echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16529else
16530 # Is the header compilable?
16531echo "$as_me:$LINENO: checking $ac_header usability" >&5
16532echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16533cat >conftest.$ac_ext <<_ACEOF
16534/* confdefs.h. */
16535_ACEOF
16536cat confdefs.h >>conftest.$ac_ext
16537cat >>conftest.$ac_ext <<_ACEOF
16538/* end confdefs.h. */
16539$ac_includes_default
16540#include <$ac_header>
16541_ACEOF
16542rm -f conftest.$ac_objext
16543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16544 (eval $ac_compile) 2>conftest.er1
a848cd7e 16545 ac_status=$?
ac1cb8d3
VS
16546 grep -v '^ *+' conftest.er1 >conftest.err
16547 rm -f conftest.er1
16548 cat conftest.err >&5
a848cd7e
SC
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } &&
c9a66001 16551 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16553 (eval $ac_try) 2>&5
16554 ac_status=$?
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); }; } &&
16557 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16559 (eval $ac_try) 2>&5
16560 ac_status=$?
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); }; }; then
16563 ac_header_compiler=yes
16564else
16565 echo "$as_me: failed program was:" >&5
16566sed 's/^/| /' conftest.$ac_ext >&5
16567
16568ac_header_compiler=no
16569fi
ac1cb8d3 16570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16571echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16572echo "${ECHO_T}$ac_header_compiler" >&6
16573
16574# Is the header present?
16575echo "$as_me:$LINENO: checking $ac_header presence" >&5
16576echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16577cat >conftest.$ac_ext <<_ACEOF
16578/* confdefs.h. */
16579_ACEOF
16580cat confdefs.h >>conftest.$ac_ext
16581cat >>conftest.$ac_ext <<_ACEOF
16582/* end confdefs.h. */
16583#include <$ac_header>
16584_ACEOF
16585if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16587 ac_status=$?
16588 grep -v '^ *+' conftest.er1 >conftest.err
16589 rm -f conftest.er1
16590 cat conftest.err >&5
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); } >/dev/null; then
16593 if test -s conftest.err; then
5d7b7554
VZ
16594 ac_cpp_err=$ac_cxx_preproc_warn_flag
16595 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16596 else
16597 ac_cpp_err=
16598 fi
16599else
16600 ac_cpp_err=yes
16601fi
16602if test -z "$ac_cpp_err"; then
16603 ac_header_preproc=yes
16604else
16605 echo "$as_me: failed program was:" >&5
16606sed 's/^/| /' conftest.$ac_ext >&5
16607
16608 ac_header_preproc=no
16609fi
16610rm -f conftest.err conftest.$ac_ext
16611echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16612echo "${ECHO_T}$ac_header_preproc" >&6
16613
16614# So? What about this header?
5d7b7554 16615case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16616 yes:no: )
a848cd7e
SC
16617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16618echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16620echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16621 ac_header_preproc=yes
a848cd7e 16622 ;;
ac1cb8d3 16623 no:yes:* )
a848cd7e
SC
16624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16625echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16627echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16629echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16631echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16633echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16635echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16636 (
16637 cat <<\_ASBOX
ac1cb8d3
VS
16638## ----------------------------------------- ##
16639## Report this to wx-dev@lists.wxwidgets.org ##
16640## ----------------------------------------- ##
a848cd7e
SC
16641_ASBOX
16642 ) |
16643 sed "s/^/$as_me: WARNING: /" >&2
16644 ;;
16645esac
16646echo "$as_me:$LINENO: checking for $ac_header" >&5
16647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16648if eval "test \"\${$as_ac_Header+set}\" = set"; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16650else
ac1cb8d3 16651 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16652fi
16653echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16654echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16655
16656fi
16657if test `eval echo '${'$as_ac_Header'}'` = yes; then
16658 cat >>confdefs.h <<_ACEOF
16659#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16660_ACEOF
16661
16662fi
16663
16664done
16665
16666
16667for ac_header in unistd.h
16668do
16669as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16670if eval "test \"\${$as_ac_Header+set}\" = set"; then
16671 echo "$as_me:$LINENO: checking for $ac_header" >&5
16672echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16673if eval "test \"\${$as_ac_Header+set}\" = set"; then
16674 echo $ECHO_N "(cached) $ECHO_C" >&6
16675fi
16676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16677echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16678else
16679 # Is the header compilable?
16680echo "$as_me:$LINENO: checking $ac_header usability" >&5
16681echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16682cat >conftest.$ac_ext <<_ACEOF
16683/* confdefs.h. */
16684_ACEOF
16685cat confdefs.h >>conftest.$ac_ext
16686cat >>conftest.$ac_ext <<_ACEOF
16687/* end confdefs.h. */
16688$ac_includes_default
16689#include <$ac_header>
16690_ACEOF
16691rm -f conftest.$ac_objext
16692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16693 (eval $ac_compile) 2>conftest.er1
a848cd7e 16694 ac_status=$?
ac1cb8d3
VS
16695 grep -v '^ *+' conftest.er1 >conftest.err
16696 rm -f conftest.er1
16697 cat conftest.err >&5
a848cd7e
SC
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); } &&
c9a66001 16700 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16702 (eval $ac_try) 2>&5
16703 ac_status=$?
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; } &&
16706 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16708 (eval $ac_try) 2>&5
16709 ac_status=$?
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; }; then
16712 ac_header_compiler=yes
16713else
16714 echo "$as_me: failed program was:" >&5
16715sed 's/^/| /' conftest.$ac_ext >&5
16716
16717ac_header_compiler=no
16718fi
ac1cb8d3 16719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16720echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16721echo "${ECHO_T}$ac_header_compiler" >&6
16722
16723# Is the header present?
16724echo "$as_me:$LINENO: checking $ac_header presence" >&5
16725echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16726cat >conftest.$ac_ext <<_ACEOF
16727/* confdefs.h. */
16728_ACEOF
16729cat confdefs.h >>conftest.$ac_ext
16730cat >>conftest.$ac_ext <<_ACEOF
16731/* end confdefs.h. */
16732#include <$ac_header>
16733_ACEOF
16734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16736 ac_status=$?
16737 grep -v '^ *+' conftest.er1 >conftest.err
16738 rm -f conftest.er1
16739 cat conftest.err >&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); } >/dev/null; then
16742 if test -s conftest.err; then
5d7b7554
VZ
16743 ac_cpp_err=$ac_cxx_preproc_warn_flag
16744 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16745 else
16746 ac_cpp_err=
16747 fi
16748else
16749 ac_cpp_err=yes
16750fi
16751if test -z "$ac_cpp_err"; then
16752 ac_header_preproc=yes
16753else
16754 echo "$as_me: failed program was:" >&5
16755sed 's/^/| /' conftest.$ac_ext >&5
16756
16757 ac_header_preproc=no
16758fi
16759rm -f conftest.err conftest.$ac_ext
16760echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16761echo "${ECHO_T}$ac_header_preproc" >&6
16762
16763# So? What about this header?
5d7b7554 16764case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16765 yes:no: )
a848cd7e
SC
16766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16767echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16769echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16770 ac_header_preproc=yes
a848cd7e 16771 ;;
ac1cb8d3 16772 no:yes:* )
a848cd7e
SC
16773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16774echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16776echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16778echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16780echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16782echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16784echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16785 (
16786 cat <<\_ASBOX
ac1cb8d3
VS
16787## ----------------------------------------- ##
16788## Report this to wx-dev@lists.wxwidgets.org ##
16789## ----------------------------------------- ##
a848cd7e
SC
16790_ASBOX
16791 ) |
16792 sed "s/^/$as_me: WARNING: /" >&2
16793 ;;
16794esac
16795echo "$as_me:$LINENO: checking for $ac_header" >&5
16796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16797if eval "test \"\${$as_ac_Header+set}\" = set"; then
16798 echo $ECHO_N "(cached) $ECHO_C" >&6
16799else
ac1cb8d3 16800 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16801fi
16802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16803echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16804
16805fi
16806if test `eval echo '${'$as_ac_Header'}'` = yes; then
16807 cat >>confdefs.h <<_ACEOF
16808#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16809_ACEOF
16810
16811fi
16812
16813done
16814
16815
16816for ac_header in wchar.h
16817do
16818as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16819if eval "test \"\${$as_ac_Header+set}\" = set"; then
16820 echo "$as_me:$LINENO: checking for $ac_header" >&5
16821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16822if eval "test \"\${$as_ac_Header+set}\" = set"; then
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
16824fi
16825echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16826echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16827else
16828 # Is the header compilable?
16829echo "$as_me:$LINENO: checking $ac_header usability" >&5
16830echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16831cat >conftest.$ac_ext <<_ACEOF
16832/* confdefs.h. */
16833_ACEOF
16834cat confdefs.h >>conftest.$ac_ext
16835cat >>conftest.$ac_ext <<_ACEOF
16836/* end confdefs.h. */
16837$ac_includes_default
16838#include <$ac_header>
16839_ACEOF
16840rm -f conftest.$ac_objext
16841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16842 (eval $ac_compile) 2>conftest.er1
a848cd7e 16843 ac_status=$?
ac1cb8d3
VS
16844 grep -v '^ *+' conftest.er1 >conftest.err
16845 rm -f conftest.er1
16846 cat conftest.err >&5
a848cd7e
SC
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } &&
c9a66001 16849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851 (eval $ac_try) 2>&5
16852 ac_status=$?
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; } &&
16855 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857 (eval $ac_try) 2>&5
16858 ac_status=$?
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; }; then
16861 ac_header_compiler=yes
16862else
16863 echo "$as_me: failed program was:" >&5
16864sed 's/^/| /' conftest.$ac_ext >&5
16865
16866ac_header_compiler=no
16867fi
ac1cb8d3 16868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16869echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16870echo "${ECHO_T}$ac_header_compiler" >&6
16871
16872# Is the header present?
16873echo "$as_me:$LINENO: checking $ac_header presence" >&5
16874echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16875cat >conftest.$ac_ext <<_ACEOF
16876/* confdefs.h. */
16877_ACEOF
16878cat confdefs.h >>conftest.$ac_ext
16879cat >>conftest.$ac_ext <<_ACEOF
16880/* end confdefs.h. */
16881#include <$ac_header>
16882_ACEOF
16883if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16885 ac_status=$?
16886 grep -v '^ *+' conftest.er1 >conftest.err
16887 rm -f conftest.er1
16888 cat conftest.err >&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); } >/dev/null; then
16891 if test -s conftest.err; then
5d7b7554
VZ
16892 ac_cpp_err=$ac_cxx_preproc_warn_flag
16893 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16894 else
16895 ac_cpp_err=
16896 fi
16897else
16898 ac_cpp_err=yes
16899fi
16900if test -z "$ac_cpp_err"; then
16901 ac_header_preproc=yes
16902else
16903 echo "$as_me: failed program was:" >&5
16904sed 's/^/| /' conftest.$ac_ext >&5
16905
16906 ac_header_preproc=no
16907fi
16908rm -f conftest.err conftest.$ac_ext
16909echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16910echo "${ECHO_T}$ac_header_preproc" >&6
16911
16912# So? What about this header?
5d7b7554 16913case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16914 yes:no: )
a848cd7e
SC
16915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16916echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16918echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16919 ac_header_preproc=yes
a848cd7e 16920 ;;
ac1cb8d3 16921 no:yes:* )
a848cd7e
SC
16922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16923echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16925echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16926 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16927echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16928 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16929echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16931echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16932 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16933echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16934 (
16935 cat <<\_ASBOX
ac1cb8d3
VS
16936## ----------------------------------------- ##
16937## Report this to wx-dev@lists.wxwidgets.org ##
16938## ----------------------------------------- ##
a848cd7e
SC
16939_ASBOX
16940 ) |
16941 sed "s/^/$as_me: WARNING: /" >&2
16942 ;;
16943esac
16944echo "$as_me:$LINENO: checking for $ac_header" >&5
16945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16946if eval "test \"\${$as_ac_Header+set}\" = set"; then
16947 echo $ECHO_N "(cached) $ECHO_C" >&6
16948else
ac1cb8d3 16949 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16950fi
16951echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16952echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16953
16954fi
16955if test `eval echo '${'$as_ac_Header'}'` = yes; then
16956 cat >>confdefs.h <<_ACEOF
16957#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16958_ACEOF
16959
16960fi
16961
16962done
16963
16964
16965if test "$ac_cv_header_wchar_h" != "yes"; then
16966
16967for ac_header in wcstr.h
16968do
16969as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16970if eval "test \"\${$as_ac_Header+set}\" = set"; then
16971 echo "$as_me:$LINENO: checking for $ac_header" >&5
16972echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16973if eval "test \"\${$as_ac_Header+set}\" = set"; then
16974 echo $ECHO_N "(cached) $ECHO_C" >&6
16975fi
16976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16977echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16978else
16979 # Is the header compilable?
16980echo "$as_me:$LINENO: checking $ac_header usability" >&5
16981echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16982cat >conftest.$ac_ext <<_ACEOF
16983/* confdefs.h. */
16984_ACEOF
16985cat confdefs.h >>conftest.$ac_ext
16986cat >>conftest.$ac_ext <<_ACEOF
16987/* end confdefs.h. */
16988$ac_includes_default
16989#include <$ac_header>
16990_ACEOF
16991rm -f conftest.$ac_objext
16992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16993 (eval $ac_compile) 2>conftest.er1
a848cd7e 16994 ac_status=$?
ac1cb8d3
VS
16995 grep -v '^ *+' conftest.er1 >conftest.err
16996 rm -f conftest.er1
16997 cat conftest.err >&5
a848cd7e
SC
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); } &&
c9a66001 17000 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002 (eval $ac_try) 2>&5
17003 ac_status=$?
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; } &&
17006 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008 (eval $ac_try) 2>&5
17009 ac_status=$?
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }; }; then
17012 ac_header_compiler=yes
17013else
17014 echo "$as_me: failed program was:" >&5
17015sed 's/^/| /' conftest.$ac_ext >&5
17016
17017ac_header_compiler=no
17018fi
ac1cb8d3 17019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17020echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17021echo "${ECHO_T}$ac_header_compiler" >&6
17022
17023# Is the header present?
17024echo "$as_me:$LINENO: checking $ac_header presence" >&5
17025echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17026cat >conftest.$ac_ext <<_ACEOF
17027/* confdefs.h. */
17028_ACEOF
17029cat confdefs.h >>conftest.$ac_ext
17030cat >>conftest.$ac_ext <<_ACEOF
17031/* end confdefs.h. */
17032#include <$ac_header>
17033_ACEOF
17034if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17036 ac_status=$?
17037 grep -v '^ *+' conftest.er1 >conftest.err
17038 rm -f conftest.er1
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } >/dev/null; then
17042 if test -s conftest.err; then
5d7b7554
VZ
17043 ac_cpp_err=$ac_cxx_preproc_warn_flag
17044 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17045 else
17046 ac_cpp_err=
17047 fi
17048else
17049 ac_cpp_err=yes
17050fi
17051if test -z "$ac_cpp_err"; then
17052 ac_header_preproc=yes
17053else
17054 echo "$as_me: failed program was:" >&5
17055sed 's/^/| /' conftest.$ac_ext >&5
17056
17057 ac_header_preproc=no
17058fi
17059rm -f conftest.err conftest.$ac_ext
17060echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17061echo "${ECHO_T}$ac_header_preproc" >&6
17062
17063# So? What about this header?
5d7b7554 17064case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17065 yes:no: )
a848cd7e
SC
17066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17067echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17069echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17070 ac_header_preproc=yes
a848cd7e 17071 ;;
ac1cb8d3 17072 no:yes:* )
a848cd7e
SC
17073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17074echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17076echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17078echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17080echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17082echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17084echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17085 (
17086 cat <<\_ASBOX
ac1cb8d3
VS
17087## ----------------------------------------- ##
17088## Report this to wx-dev@lists.wxwidgets.org ##
17089## ----------------------------------------- ##
a848cd7e
SC
17090_ASBOX
17091 ) |
17092 sed "s/^/$as_me: WARNING: /" >&2
17093 ;;
17094esac
17095echo "$as_me:$LINENO: checking for $ac_header" >&5
17096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17097if eval "test \"\${$as_ac_Header+set}\" = set"; then
17098 echo $ECHO_N "(cached) $ECHO_C" >&6
17099else
ac1cb8d3 17100 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17101fi
17102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17103echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17104
17105fi
17106if test `eval echo '${'$as_ac_Header'}'` = yes; then
17107 cat >>confdefs.h <<_ACEOF
17108#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17109_ACEOF
17110
17111fi
17112
17113done
17114
17115fi
17116
17117
17118for ac_header in fnmatch.h
17119do
17120as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17121if eval "test \"\${$as_ac_Header+set}\" = set"; then
17122 echo "$as_me:$LINENO: checking for $ac_header" >&5
17123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17124if eval "test \"\${$as_ac_Header+set}\" = set"; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17126fi
17127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17128echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17129else
17130 # Is the header compilable?
17131echo "$as_me:$LINENO: checking $ac_header usability" >&5
17132echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17133cat >conftest.$ac_ext <<_ACEOF
17134/* confdefs.h. */
17135_ACEOF
17136cat confdefs.h >>conftest.$ac_ext
17137cat >>conftest.$ac_ext <<_ACEOF
17138/* end confdefs.h. */
17139$ac_includes_default
17140#include <$ac_header>
17141_ACEOF
17142rm -f conftest.$ac_objext
17143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17144 (eval $ac_compile) 2>conftest.er1
a848cd7e 17145 ac_status=$?
ac1cb8d3
VS
17146 grep -v '^ *+' conftest.er1 >conftest.err
17147 rm -f conftest.er1
17148 cat conftest.err >&5
a848cd7e
SC
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); } &&
c9a66001 17151 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17153 (eval $ac_try) 2>&5
17154 ac_status=$?
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; } &&
17157 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17159 (eval $ac_try) 2>&5
17160 ac_status=$?
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); }; }; then
17163 ac_header_compiler=yes
17164else
17165 echo "$as_me: failed program was:" >&5
17166sed 's/^/| /' conftest.$ac_ext >&5
17167
17168ac_header_compiler=no
17169fi
ac1cb8d3 17170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17171echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17172echo "${ECHO_T}$ac_header_compiler" >&6
17173
17174# Is the header present?
17175echo "$as_me:$LINENO: checking $ac_header presence" >&5
17176echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17177cat >conftest.$ac_ext <<_ACEOF
17178/* confdefs.h. */
17179_ACEOF
17180cat confdefs.h >>conftest.$ac_ext
17181cat >>conftest.$ac_ext <<_ACEOF
17182/* end confdefs.h. */
17183#include <$ac_header>
17184_ACEOF
17185if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17187 ac_status=$?
17188 grep -v '^ *+' conftest.er1 >conftest.err
17189 rm -f conftest.er1
17190 cat conftest.err >&5
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); } >/dev/null; then
17193 if test -s conftest.err; then
5d7b7554
VZ
17194 ac_cpp_err=$ac_cxx_preproc_warn_flag
17195 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17196 else
17197 ac_cpp_err=
17198 fi
17199else
17200 ac_cpp_err=yes
17201fi
17202if test -z "$ac_cpp_err"; then
17203 ac_header_preproc=yes
17204else
17205 echo "$as_me: failed program was:" >&5
17206sed 's/^/| /' conftest.$ac_ext >&5
17207
17208 ac_header_preproc=no
17209fi
17210rm -f conftest.err conftest.$ac_ext
17211echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17212echo "${ECHO_T}$ac_header_preproc" >&6
17213
17214# So? What about this header?
5d7b7554 17215case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17216 yes:no: )
a848cd7e
SC
17217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17218echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17220echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17221 ac_header_preproc=yes
a848cd7e 17222 ;;
ac1cb8d3 17223 no:yes:* )
a848cd7e
SC
17224 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17225echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17226 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17227echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17228 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17229echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17230 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17231echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17233echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17234 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17235echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17236 (
17237 cat <<\_ASBOX
ac1cb8d3
VS
17238## ----------------------------------------- ##
17239## Report this to wx-dev@lists.wxwidgets.org ##
17240## ----------------------------------------- ##
a848cd7e
SC
17241_ASBOX
17242 ) |
17243 sed "s/^/$as_me: WARNING: /" >&2
17244 ;;
17245esac
17246echo "$as_me:$LINENO: checking for $ac_header" >&5
17247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17248if eval "test \"\${$as_ac_Header+set}\" = set"; then
17249 echo $ECHO_N "(cached) $ECHO_C" >&6
17250else
ac1cb8d3 17251 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17252fi
17253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17254echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17255
17256fi
17257if test `eval echo '${'$as_ac_Header'}'` = yes; then
17258 cat >>confdefs.h <<_ACEOF
17259#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17260_ACEOF
17261
17262fi
17263
17264done
17265
17266
a848cd7e
SC
17267
17268for ac_header in langinfo.h
17269do
17270as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17271if eval "test \"\${$as_ac_Header+set}\" = set"; then
17272 echo "$as_me:$LINENO: checking for $ac_header" >&5
17273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17274if eval "test \"\${$as_ac_Header+set}\" = set"; then
17275 echo $ECHO_N "(cached) $ECHO_C" >&6
17276fi
17277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17278echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17279else
17280 # Is the header compilable?
17281echo "$as_me:$LINENO: checking $ac_header usability" >&5
17282echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17283cat >conftest.$ac_ext <<_ACEOF
17284/* confdefs.h. */
17285_ACEOF
17286cat confdefs.h >>conftest.$ac_ext
17287cat >>conftest.$ac_ext <<_ACEOF
17288/* end confdefs.h. */
17289$ac_includes_default
17290#include <$ac_header>
17291_ACEOF
17292rm -f conftest.$ac_objext
17293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17294 (eval $ac_compile) 2>conftest.er1
a848cd7e 17295 ac_status=$?
ac1cb8d3
VS
17296 grep -v '^ *+' conftest.er1 >conftest.err
17297 rm -f conftest.er1
17298 cat conftest.err >&5
a848cd7e
SC
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } &&
c9a66001 17301 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303 (eval $ac_try) 2>&5
17304 ac_status=$?
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }; } &&
17307 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17309 (eval $ac_try) 2>&5
17310 ac_status=$?
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); }; }; then
17313 ac_header_compiler=yes
17314else
17315 echo "$as_me: failed program was:" >&5
17316sed 's/^/| /' conftest.$ac_ext >&5
17317
17318ac_header_compiler=no
17319fi
ac1cb8d3 17320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17321echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17322echo "${ECHO_T}$ac_header_compiler" >&6
17323
17324# Is the header present?
17325echo "$as_me:$LINENO: checking $ac_header presence" >&5
17326echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17327cat >conftest.$ac_ext <<_ACEOF
17328/* confdefs.h. */
17329_ACEOF
17330cat confdefs.h >>conftest.$ac_ext
17331cat >>conftest.$ac_ext <<_ACEOF
17332/* end confdefs.h. */
17333#include <$ac_header>
17334_ACEOF
17335if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17337 ac_status=$?
17338 grep -v '^ *+' conftest.er1 >conftest.err
17339 rm -f conftest.er1
17340 cat conftest.err >&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } >/dev/null; then
17343 if test -s conftest.err; then
5d7b7554
VZ
17344 ac_cpp_err=$ac_cxx_preproc_warn_flag
17345 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17346 else
17347 ac_cpp_err=
17348 fi
17349else
17350 ac_cpp_err=yes
17351fi
17352if test -z "$ac_cpp_err"; then
17353 ac_header_preproc=yes
17354else
17355 echo "$as_me: failed program was:" >&5
17356sed 's/^/| /' conftest.$ac_ext >&5
17357
17358 ac_header_preproc=no
17359fi
17360rm -f conftest.err conftest.$ac_ext
17361echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17362echo "${ECHO_T}$ac_header_preproc" >&6
17363
17364# So? What about this header?
5d7b7554 17365case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17366 yes:no: )
a848cd7e
SC
17367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17368echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17370echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17371 ac_header_preproc=yes
a848cd7e 17372 ;;
ac1cb8d3 17373 no:yes:* )
a848cd7e
SC
17374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17375echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17377echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17379echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17381echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17383echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17385echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17386 (
17387 cat <<\_ASBOX
ac1cb8d3
VS
17388## ----------------------------------------- ##
17389## Report this to wx-dev@lists.wxwidgets.org ##
17390## ----------------------------------------- ##
a848cd7e
SC
17391_ASBOX
17392 ) |
17393 sed "s/^/$as_me: WARNING: /" >&2
17394 ;;
17395esac
17396echo "$as_me:$LINENO: checking for $ac_header" >&5
17397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17398if eval "test \"\${$as_ac_Header+set}\" = set"; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17400else
ac1cb8d3 17401 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17402fi
17403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17404echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17405
17406fi
17407if test `eval echo '${'$as_ac_Header'}'` = yes; then
17408 cat >>confdefs.h <<_ACEOF
17409#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17410_ACEOF
17411
17412fi
17413
17414done
17415
17416
17417case "${host}" in
17418 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17419 if test $ac_cv_header_langinfo_h = "yes" \
17420 -a \( "$wx_cv_gccversion" = "EMX2" \
17421 -o "$wx_cv_gccversion" = "EMX3" \
17422 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17423 LIBS="$LIBS -lintl"
17424 fi
17425 ;;
17426esac
17427
bc023abb
MW
17428if test "$USE_UNIX" = 1 ; then
17429
17430for ac_header in sys/select.h
17431do
17432as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17433if eval "test \"\${$as_ac_Header+set}\" = set"; then
17434 echo "$as_me:$LINENO: checking for $ac_header" >&5
17435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17436if eval "test \"\${$as_ac_Header+set}\" = set"; then
17437 echo $ECHO_N "(cached) $ECHO_C" >&6
17438fi
17439echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17440echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17441else
17442 # Is the header compilable?
17443echo "$as_me:$LINENO: checking $ac_header usability" >&5
17444echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17445cat >conftest.$ac_ext <<_ACEOF
17446/* confdefs.h. */
17447_ACEOF
17448cat confdefs.h >>conftest.$ac_ext
17449cat >>conftest.$ac_ext <<_ACEOF
17450/* end confdefs.h. */
17451$ac_includes_default
17452#include <$ac_header>
17453_ACEOF
17454rm -f conftest.$ac_objext
17455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17456 (eval $ac_compile) 2>conftest.er1
17457 ac_status=$?
17458 grep -v '^ *+' conftest.er1 >conftest.err
17459 rm -f conftest.er1
17460 cat conftest.err >&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); } &&
17463 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465 (eval $ac_try) 2>&5
17466 ac_status=$?
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; } &&
17469 { ac_try='test -s conftest.$ac_objext'
17470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471 (eval $ac_try) 2>&5
17472 ac_status=$?
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; }; then
17475 ac_header_compiler=yes
17476else
17477 echo "$as_me: failed program was:" >&5
17478sed 's/^/| /' conftest.$ac_ext >&5
17479
17480ac_header_compiler=no
17481fi
17482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17483echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17484echo "${ECHO_T}$ac_header_compiler" >&6
17485
17486# Is the header present?
17487echo "$as_me:$LINENO: checking $ac_header presence" >&5
17488echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17489cat >conftest.$ac_ext <<_ACEOF
17490/* confdefs.h. */
17491_ACEOF
17492cat confdefs.h >>conftest.$ac_ext
17493cat >>conftest.$ac_ext <<_ACEOF
17494/* end confdefs.h. */
17495#include <$ac_header>
17496_ACEOF
17497if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17499 ac_status=$?
17500 grep -v '^ *+' conftest.er1 >conftest.err
17501 rm -f conftest.er1
17502 cat conftest.err >&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } >/dev/null; then
17505 if test -s conftest.err; then
17506 ac_cpp_err=$ac_cxx_preproc_warn_flag
17507 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17508 else
17509 ac_cpp_err=
17510 fi
17511else
17512 ac_cpp_err=yes
17513fi
17514if test -z "$ac_cpp_err"; then
17515 ac_header_preproc=yes
17516else
17517 echo "$as_me: failed program was:" >&5
17518sed 's/^/| /' conftest.$ac_ext >&5
17519
17520 ac_header_preproc=no
17521fi
17522rm -f conftest.err conftest.$ac_ext
17523echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17524echo "${ECHO_T}$ac_header_preproc" >&6
17525
17526# So? What about this header?
17527case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17528 yes:no: )
17529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17530echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17532echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17533 ac_header_preproc=yes
17534 ;;
17535 no:yes:* )
17536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17537echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17539echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17540 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17541echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17542 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17543echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17545echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17546 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17547echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17548 (
17549 cat <<\_ASBOX
17550## ----------------------------------------- ##
17551## Report this to wx-dev@lists.wxwidgets.org ##
17552## ----------------------------------------- ##
17553_ASBOX
17554 ) |
17555 sed "s/^/$as_me: WARNING: /" >&2
17556 ;;
17557esac
17558echo "$as_me:$LINENO: checking for $ac_header" >&5
17559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17560if eval "test \"\${$as_ac_Header+set}\" = set"; then
17561 echo $ECHO_N "(cached) $ECHO_C" >&6
17562else
17563 eval "$as_ac_Header=\$ac_header_preproc"
17564fi
17565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17566echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17567
17568fi
17569if test `eval echo '${'$as_ac_Header'}'` = yes; then
17570 cat >>confdefs.h <<_ACEOF
17571#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17572_ACEOF
17573
17574fi
17575
17576done
17577
17578fi
17579
a848cd7e
SC
17580
17581echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17582echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17583if test "${ac_cv_c_const+set}" = set; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
17585else
17586 cat >conftest.$ac_ext <<_ACEOF
17587/* confdefs.h. */
17588_ACEOF
17589cat confdefs.h >>conftest.$ac_ext
17590cat >>conftest.$ac_ext <<_ACEOF
17591/* end confdefs.h. */
17592
17593int
17594main ()
17595{
17596/* FIXME: Include the comments suggested by Paul. */
17597#ifndef __cplusplus
17598 /* Ultrix mips cc rejects this. */
17599 typedef int charset[2];
17600 const charset x;
17601 /* SunOS 4.1.1 cc rejects this. */
17602 char const *const *ccp;
17603 char **p;
17604 /* NEC SVR4.0.2 mips cc rejects this. */
17605 struct point {int x, y;};
17606 static struct point const zero = {0,0};
17607 /* AIX XL C 1.02.0.0 rejects this.
17608 It does not let you subtract one const X* pointer from another in
17609 an arm of an if-expression whose if-part is not a constant
17610 expression */
17611 const char *g = "string";
17612 ccp = &g + (g ? g-g : 0);
17613 /* HPUX 7.0 cc rejects these. */
17614 ++ccp;
17615 p = (char**) ccp;
17616 ccp = (char const *const *) p;
17617 { /* SCO 3.2v4 cc rejects this. */
17618 char *t;
17619 char const *s = 0 ? (char *) 0 : (char const *) 0;
17620
17621 *t++ = 0;
17622 }
17623 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17624 int x[] = {25, 17};
17625 const int *foo = &x[0];
17626 ++foo;
17627 }
17628 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17629 typedef const int *iptr;
17630 iptr p = 0;
17631 ++p;
17632 }
17633 { /* AIX XL C 1.02.0.0 rejects this saying
17634 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17635 struct s { int j; const int *ap[3]; };
17636 struct s *b; b->j = 5;
17637 }
17638 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17639 const int foo = 10;
17640 }
17641#endif
17642
17643 ;
17644 return 0;
17645}
17646_ACEOF
17647rm -f conftest.$ac_objext
17648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17649 (eval $ac_compile) 2>conftest.er1
a848cd7e 17650 ac_status=$?
ac1cb8d3
VS
17651 grep -v '^ *+' conftest.er1 >conftest.err
17652 rm -f conftest.er1
17653 cat conftest.err >&5
a848cd7e
SC
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } &&
c9a66001 17656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17659 ac_status=$?
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; } &&
17662 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17665 ac_status=$?
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; }; then
17668 ac_cv_c_const=yes
17669else
17670 echo "$as_me: failed program was:" >&5
17671sed 's/^/| /' conftest.$ac_ext >&5
17672
17673ac_cv_c_const=no
17674fi
ac1cb8d3 17675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17676fi
17677echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17678echo "${ECHO_T}$ac_cv_c_const" >&6
17679if test $ac_cv_c_const = no; then
17680
17681cat >>confdefs.h <<\_ACEOF
17682#define const
17683_ACEOF
17684
17685fi
17686
17687echo "$as_me:$LINENO: checking for inline" >&5
17688echo $ECHO_N "checking for inline... $ECHO_C" >&6
17689if test "${ac_cv_c_inline+set}" = set; then
17690 echo $ECHO_N "(cached) $ECHO_C" >&6
17691else
17692 ac_cv_c_inline=no
17693for ac_kw in inline __inline__ __inline; do
17694 cat >conftest.$ac_ext <<_ACEOF
17695/* confdefs.h. */
17696_ACEOF
17697cat confdefs.h >>conftest.$ac_ext
17698cat >>conftest.$ac_ext <<_ACEOF
17699/* end confdefs.h. */
17700#ifndef __cplusplus
17701typedef int foo_t;
17702static $ac_kw foo_t static_foo () {return 0; }
17703$ac_kw foo_t foo () {return 0; }
17704#endif
17705
17706_ACEOF
17707rm -f conftest.$ac_objext
17708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17709 (eval $ac_compile) 2>conftest.er1
a848cd7e 17710 ac_status=$?
ac1cb8d3
VS
17711 grep -v '^ *+' conftest.er1 >conftest.err
17712 rm -f conftest.er1
17713 cat conftest.err >&5
a848cd7e
SC
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } &&
c9a66001 17716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; } &&
17722 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; }; then
17728 ac_cv_c_inline=$ac_kw; break
17729else
17730 echo "$as_me: failed program was:" >&5
17731sed 's/^/| /' conftest.$ac_ext >&5
17732
17733fi
ac1cb8d3 17734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17735done
17736
17737fi
17738echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17739echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17740
17741
a848cd7e
SC
17742case $ac_cv_c_inline in
17743 inline | yes) ;;
ac1cb8d3
VS
17744 *)
17745 case $ac_cv_c_inline in
17746 no) ac_val=;;
17747 *) ac_val=$ac_cv_c_inline;;
17748 esac
17749 cat >>confdefs.h <<_ACEOF
17750#ifndef __cplusplus
17751#define inline $ac_val
17752#endif
de59c161 17753_ACEOF
ac1cb8d3 17754 ;;
a848cd7e
SC
17755esac
17756
17757
17758echo "$as_me:$LINENO: checking for char" >&5
17759echo $ECHO_N "checking for char... $ECHO_C" >&6
17760if test "${ac_cv_type_char+set}" = set; then
17761 echo $ECHO_N "(cached) $ECHO_C" >&6
17762else
17763 cat >conftest.$ac_ext <<_ACEOF
17764/* confdefs.h. */
17765_ACEOF
17766cat confdefs.h >>conftest.$ac_ext
17767cat >>conftest.$ac_ext <<_ACEOF
17768/* end confdefs.h. */
17769$ac_includes_default
17770int
17771main ()
17772{
17773if ((char *) 0)
17774 return 0;
17775if (sizeof (char))
17776 return 0;
17777 ;
17778 return 0;
17779}
17780_ACEOF
17781rm -f conftest.$ac_objext
17782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17783 (eval $ac_compile) 2>conftest.er1
a848cd7e 17784 ac_status=$?
ac1cb8d3
VS
17785 grep -v '^ *+' conftest.er1 >conftest.err
17786 rm -f conftest.er1
17787 cat conftest.err >&5
a848cd7e
SC
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); } &&
c9a66001 17790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792 (eval $ac_try) 2>&5
17793 ac_status=$?
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); }; } &&
17796 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17798 (eval $ac_try) 2>&5
17799 ac_status=$?
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); }; }; then
17802 ac_cv_type_char=yes
17803else
17804 echo "$as_me: failed program was:" >&5
17805sed 's/^/| /' conftest.$ac_ext >&5
17806
17807ac_cv_type_char=no
17808fi
ac1cb8d3 17809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17810fi
17811echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17812echo "${ECHO_T}$ac_cv_type_char" >&6
17813
17814echo "$as_me:$LINENO: checking size of char" >&5
17815echo $ECHO_N "checking size of char... $ECHO_C" >&6
17816if test "${ac_cv_sizeof_char+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17818else
17819 if test "$ac_cv_type_char" = yes; then
17820 # The cast to unsigned long works around a bug in the HP C Compiler
17821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17823 # This bug is HP SR number 8606223364.
17824 if test "$cross_compiling" = yes; then
17825 # Depending upon the size, compute the lo and hi bounds.
17826cat >conftest.$ac_ext <<_ACEOF
17827/* confdefs.h. */
17828_ACEOF
17829cat confdefs.h >>conftest.$ac_ext
17830cat >>conftest.$ac_ext <<_ACEOF
17831/* end confdefs.h. */
17832$ac_includes_default
17833int
17834main ()
17835{
17836static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17837test_array [0] = 0
17838
17839 ;
17840 return 0;
17841}
17842_ACEOF
17843rm -f conftest.$ac_objext
17844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17845 (eval $ac_compile) 2>conftest.er1
a848cd7e 17846 ac_status=$?
ac1cb8d3
VS
17847 grep -v '^ *+' conftest.er1 >conftest.err
17848 rm -f conftest.er1
17849 cat conftest.err >&5
a848cd7e
SC
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); } &&
c9a66001 17852 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17854 (eval $ac_try) 2>&5
17855 ac_status=$?
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; } &&
17858 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17860 (eval $ac_try) 2>&5
17861 ac_status=$?
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); }; }; then
17864 ac_lo=0 ac_mid=0
17865 while :; do
17866 cat >conftest.$ac_ext <<_ACEOF
17867/* confdefs.h. */
17868_ACEOF
17869cat confdefs.h >>conftest.$ac_ext
17870cat >>conftest.$ac_ext <<_ACEOF
17871/* end confdefs.h. */
17872$ac_includes_default
17873int
17874main ()
17875{
17876static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17877test_array [0] = 0
17878
17879 ;
17880 return 0;
17881}
17882_ACEOF
17883rm -f conftest.$ac_objext
17884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17885 (eval $ac_compile) 2>conftest.er1
a848cd7e 17886 ac_status=$?
ac1cb8d3
VS
17887 grep -v '^ *+' conftest.er1 >conftest.err
17888 rm -f conftest.er1
17889 cat conftest.err >&5
a848cd7e
SC
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); } &&
c9a66001 17892 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17895 ac_status=$?
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; } &&
17898 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900 (eval $ac_try) 2>&5
17901 ac_status=$?
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); }; }; then
17904 ac_hi=$ac_mid; break
17905else
17906 echo "$as_me: failed program was:" >&5
17907sed 's/^/| /' conftest.$ac_ext >&5
17908
17909ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17910 if test $ac_lo -le $ac_mid; then
17911 ac_lo= ac_hi=
17912 break
17913 fi
17914 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17915fi
ac1cb8d3 17916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17917 done
17918else
17919 echo "$as_me: failed program was:" >&5
17920sed 's/^/| /' conftest.$ac_ext >&5
17921
17922cat >conftest.$ac_ext <<_ACEOF
17923/* confdefs.h. */
17924_ACEOF
17925cat confdefs.h >>conftest.$ac_ext
17926cat >>conftest.$ac_ext <<_ACEOF
17927/* end confdefs.h. */
17928$ac_includes_default
17929int
17930main ()
17931{
17932static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17933test_array [0] = 0
17934
17935 ;
17936 return 0;
17937}
17938_ACEOF
17939rm -f conftest.$ac_objext
17940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17941 (eval $ac_compile) 2>conftest.er1
a848cd7e 17942 ac_status=$?
ac1cb8d3
VS
17943 grep -v '^ *+' conftest.er1 >conftest.err
17944 rm -f conftest.er1
17945 cat conftest.err >&5
a848cd7e
SC
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); } &&
c9a66001 17948 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950 (eval $ac_try) 2>&5
17951 ac_status=$?
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; } &&
17954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956 (eval $ac_try) 2>&5
17957 ac_status=$?
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; }; then
17960 ac_hi=-1 ac_mid=-1
17961 while :; do
17962 cat >conftest.$ac_ext <<_ACEOF
17963/* confdefs.h. */
17964_ACEOF
17965cat confdefs.h >>conftest.$ac_ext
17966cat >>conftest.$ac_ext <<_ACEOF
17967/* end confdefs.h. */
17968$ac_includes_default
17969int
17970main ()
17971{
17972static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17973test_array [0] = 0
17974
17975 ;
17976 return 0;
17977}
17978_ACEOF
17979rm -f conftest.$ac_objext
17980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17981 (eval $ac_compile) 2>conftest.er1
a848cd7e 17982 ac_status=$?
ac1cb8d3
VS
17983 grep -v '^ *+' conftest.er1 >conftest.err
17984 rm -f conftest.er1
17985 cat conftest.err >&5
a848cd7e
SC
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } &&
c9a66001 17988 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17991 ac_status=$?
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; } &&
17994 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996 (eval $ac_try) 2>&5
17997 ac_status=$?
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; }; then
18000 ac_lo=$ac_mid; break
18001else
18002 echo "$as_me: failed program was:" >&5
18003sed 's/^/| /' conftest.$ac_ext >&5
18004
18005ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18006 if test $ac_mid -le $ac_hi; then
18007 ac_lo= ac_hi=
18008 break
18009 fi
18010 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18011fi
ac1cb8d3 18012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18013 done
18014else
18015 echo "$as_me: failed program was:" >&5
18016sed 's/^/| /' conftest.$ac_ext >&5
18017
18018ac_lo= ac_hi=
18019fi
ac1cb8d3 18020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18021fi
ac1cb8d3 18022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18023# Binary search between lo and hi bounds.
18024while test "x$ac_lo" != "x$ac_hi"; do
18025 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18026 cat >conftest.$ac_ext <<_ACEOF
18027/* confdefs.h. */
18028_ACEOF
18029cat confdefs.h >>conftest.$ac_ext
18030cat >>conftest.$ac_ext <<_ACEOF
18031/* end confdefs.h. */
18032$ac_includes_default
18033int
18034main ()
18035{
18036static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18037test_array [0] = 0
18038
18039 ;
18040 return 0;
18041}
18042_ACEOF
18043rm -f conftest.$ac_objext
18044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18045 (eval $ac_compile) 2>conftest.er1
a848cd7e 18046 ac_status=$?
ac1cb8d3
VS
18047 grep -v '^ *+' conftest.er1 >conftest.err
18048 rm -f conftest.er1
18049 cat conftest.err >&5
a848cd7e
SC
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); } &&
c9a66001 18052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18054 (eval $ac_try) 2>&5
18055 ac_status=$?
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); }; } &&
18058 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18061 ac_status=$?
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; }; then
18064 ac_hi=$ac_mid
18065else
18066 echo "$as_me: failed program was:" >&5
18067sed 's/^/| /' conftest.$ac_ext >&5
18068
18069ac_lo=`expr '(' $ac_mid ')' + 1`
18070fi
ac1cb8d3 18071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18072done
18073case $ac_lo in
18074?*) ac_cv_sizeof_char=$ac_lo;;
18075'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18076See \`config.log' for more details." >&5
18077echo "$as_me: error: cannot compute sizeof (char), 77
18078See \`config.log' for more details." >&2;}
18079 { (exit 1); exit 1; }; } ;;
18080esac
18081else
18082 if test "$cross_compiling" = yes; then
c9a66001
VZ
18083 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18084echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18085 { (exit 1); exit 1; }; }
18086else
18087 cat >conftest.$ac_ext <<_ACEOF
18088/* confdefs.h. */
18089_ACEOF
18090cat confdefs.h >>conftest.$ac_ext
18091cat >>conftest.$ac_ext <<_ACEOF
18092/* end confdefs.h. */
18093$ac_includes_default
18094long longval () { return (long) (sizeof (char)); }
18095unsigned long ulongval () { return (long) (sizeof (char)); }
18096#include <stdio.h>
18097#include <stdlib.h>
18098int
18099main ()
18100{
18101
18102 FILE *f = fopen ("conftest.val", "w");
18103 if (! f)
18104 exit (1);
18105 if (((long) (sizeof (char))) < 0)
18106 {
18107 long i = longval ();
18108 if (i != ((long) (sizeof (char))))
18109 exit (1);
18110 fprintf (f, "%ld\n", i);
18111 }
18112 else
18113 {
18114 unsigned long i = ulongval ();
18115 if (i != ((long) (sizeof (char))))
18116 exit (1);
18117 fprintf (f, "%lu\n", i);
18118 }
18119 exit (ferror (f) || fclose (f) != 0);
18120
18121 ;
18122 return 0;
18123}
18124_ACEOF
18125rm -f conftest$ac_exeext
18126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18127 (eval $ac_link) 2>&5
18128 ac_status=$?
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132 (eval $ac_try) 2>&5
18133 ac_status=$?
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; }; then
18136 ac_cv_sizeof_char=`cat conftest.val`
18137else
18138 echo "$as_me: program exited with status $ac_status" >&5
18139echo "$as_me: failed program was:" >&5
18140sed 's/^/| /' conftest.$ac_ext >&5
18141
18142( exit $ac_status )
18143{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18144See \`config.log' for more details." >&5
18145echo "$as_me: error: cannot compute sizeof (char), 77
18146See \`config.log' for more details." >&2;}
18147 { (exit 1); exit 1; }; }
18148fi
ac1cb8d3 18149rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18150fi
18151fi
18152rm -f conftest.val
18153else
18154 ac_cv_sizeof_char=0
18155fi
18156fi
18157echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18158echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18159cat >>confdefs.h <<_ACEOF
18160#define SIZEOF_CHAR $ac_cv_sizeof_char
18161_ACEOF
18162
18163
18164echo "$as_me:$LINENO: checking for short" >&5
18165echo $ECHO_N "checking for short... $ECHO_C" >&6
18166if test "${ac_cv_type_short+set}" = set; then
18167 echo $ECHO_N "(cached) $ECHO_C" >&6
18168else
18169 cat >conftest.$ac_ext <<_ACEOF
18170/* confdefs.h. */
18171_ACEOF
18172cat confdefs.h >>conftest.$ac_ext
18173cat >>conftest.$ac_ext <<_ACEOF
18174/* end confdefs.h. */
18175$ac_includes_default
18176int
18177main ()
18178{
18179if ((short *) 0)
18180 return 0;
18181if (sizeof (short))
18182 return 0;
18183 ;
18184 return 0;
18185}
18186_ACEOF
18187rm -f conftest.$ac_objext
18188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18189 (eval $ac_compile) 2>conftest.er1
a848cd7e 18190 ac_status=$?
ac1cb8d3
VS
18191 grep -v '^ *+' conftest.er1 >conftest.err
18192 rm -f conftest.er1
18193 cat conftest.err >&5
a848cd7e
SC
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); } &&
c9a66001 18196 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18198 (eval $ac_try) 2>&5
18199 ac_status=$?
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); }; } &&
18202 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18204 (eval $ac_try) 2>&5
18205 ac_status=$?
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); }; }; then
18208 ac_cv_type_short=yes
18209else
18210 echo "$as_me: failed program was:" >&5
18211sed 's/^/| /' conftest.$ac_ext >&5
18212
18213ac_cv_type_short=no
18214fi
ac1cb8d3 18215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18216fi
18217echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18218echo "${ECHO_T}$ac_cv_type_short" >&6
18219
18220echo "$as_me:$LINENO: checking size of short" >&5
18221echo $ECHO_N "checking size of short... $ECHO_C" >&6
18222if test "${ac_cv_sizeof_short+set}" = set; then
18223 echo $ECHO_N "(cached) $ECHO_C" >&6
18224else
18225 if test "$ac_cv_type_short" = yes; then
18226 # The cast to unsigned long works around a bug in the HP C Compiler
18227 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18228 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18229 # This bug is HP SR number 8606223364.
18230 if test "$cross_compiling" = yes; then
18231 # Depending upon the size, compute the lo and hi bounds.
18232cat >conftest.$ac_ext <<_ACEOF
18233/* confdefs.h. */
18234_ACEOF
18235cat confdefs.h >>conftest.$ac_ext
18236cat >>conftest.$ac_ext <<_ACEOF
18237/* end confdefs.h. */
18238$ac_includes_default
18239int
18240main ()
18241{
18242static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18243test_array [0] = 0
18244
18245 ;
18246 return 0;
18247}
18248_ACEOF
18249rm -f conftest.$ac_objext
18250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18251 (eval $ac_compile) 2>conftest.er1
a848cd7e 18252 ac_status=$?
ac1cb8d3
VS
18253 grep -v '^ *+' conftest.er1 >conftest.err
18254 rm -f conftest.er1
18255 cat conftest.err >&5
a848cd7e
SC
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); } &&
c9a66001 18258 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260 (eval $ac_try) 2>&5
18261 ac_status=$?
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); }; } &&
18264 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18266 (eval $ac_try) 2>&5
18267 ac_status=$?
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); }; }; then
18270 ac_lo=0 ac_mid=0
18271 while :; do
18272 cat >conftest.$ac_ext <<_ACEOF
18273/* confdefs.h. */
18274_ACEOF
18275cat confdefs.h >>conftest.$ac_ext
18276cat >>conftest.$ac_ext <<_ACEOF
18277/* end confdefs.h. */
18278$ac_includes_default
18279int
18280main ()
18281{
18282static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18283test_array [0] = 0
18284
18285 ;
18286 return 0;
18287}
18288_ACEOF
18289rm -f conftest.$ac_objext
18290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18291 (eval $ac_compile) 2>conftest.er1
a848cd7e 18292 ac_status=$?
ac1cb8d3
VS
18293 grep -v '^ *+' conftest.er1 >conftest.err
18294 rm -f conftest.er1
18295 cat conftest.err >&5
a848cd7e
SC
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); } &&
c9a66001 18298 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300 (eval $ac_try) 2>&5
18301 ac_status=$?
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); }; } &&
18304 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18306 (eval $ac_try) 2>&5
18307 ac_status=$?
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); }; }; then
18310 ac_hi=$ac_mid; break
18311else
18312 echo "$as_me: failed program was:" >&5
18313sed 's/^/| /' conftest.$ac_ext >&5
18314
18315ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18316 if test $ac_lo -le $ac_mid; then
18317 ac_lo= ac_hi=
18318 break
18319 fi
18320 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18321fi
ac1cb8d3 18322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18323 done
18324else
18325 echo "$as_me: failed program was:" >&5
18326sed 's/^/| /' conftest.$ac_ext >&5
18327
18328cat >conftest.$ac_ext <<_ACEOF
18329/* confdefs.h. */
18330_ACEOF
18331cat confdefs.h >>conftest.$ac_ext
18332cat >>conftest.$ac_ext <<_ACEOF
18333/* end confdefs.h. */
18334$ac_includes_default
18335int
18336main ()
18337{
18338static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18339test_array [0] = 0
18340
18341 ;
18342 return 0;
18343}
18344_ACEOF
18345rm -f conftest.$ac_objext
18346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18347 (eval $ac_compile) 2>conftest.er1
a848cd7e 18348 ac_status=$?
ac1cb8d3
VS
18349 grep -v '^ *+' conftest.er1 >conftest.err
18350 rm -f conftest.er1
18351 cat conftest.err >&5
a848cd7e
SC
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); } &&
c9a66001 18354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356 (eval $ac_try) 2>&5
18357 ac_status=$?
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); }; } &&
18360 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362 (eval $ac_try) 2>&5
18363 ac_status=$?
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; }; then
18366 ac_hi=-1 ac_mid=-1
18367 while :; do
18368 cat >conftest.$ac_ext <<_ACEOF
18369/* confdefs.h. */
18370_ACEOF
18371cat confdefs.h >>conftest.$ac_ext
18372cat >>conftest.$ac_ext <<_ACEOF
18373/* end confdefs.h. */
18374$ac_includes_default
18375int
18376main ()
18377{
18378static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18379test_array [0] = 0
18380
18381 ;
18382 return 0;
18383}
18384_ACEOF
18385rm -f conftest.$ac_objext
18386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18387 (eval $ac_compile) 2>conftest.er1
a848cd7e 18388 ac_status=$?
ac1cb8d3
VS
18389 grep -v '^ *+' conftest.er1 >conftest.err
18390 rm -f conftest.er1
18391 cat conftest.err >&5
a848cd7e
SC
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); } &&
c9a66001 18394 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18396 (eval $ac_try) 2>&5
18397 ac_status=$?
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); }; } &&
18400 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18402 (eval $ac_try) 2>&5
18403 ac_status=$?
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); }; }; then
18406 ac_lo=$ac_mid; break
18407else
18408 echo "$as_me: failed program was:" >&5
18409sed 's/^/| /' conftest.$ac_ext >&5
18410
18411ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18412 if test $ac_mid -le $ac_hi; then
18413 ac_lo= ac_hi=
18414 break
18415 fi
18416 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18417fi
ac1cb8d3 18418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18419 done
18420else
18421 echo "$as_me: failed program was:" >&5
18422sed 's/^/| /' conftest.$ac_ext >&5
18423
18424ac_lo= ac_hi=
18425fi
ac1cb8d3 18426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18427fi
ac1cb8d3 18428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18429# Binary search between lo and hi bounds.
18430while test "x$ac_lo" != "x$ac_hi"; do
18431 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18432 cat >conftest.$ac_ext <<_ACEOF
18433/* confdefs.h. */
18434_ACEOF
18435cat confdefs.h >>conftest.$ac_ext
18436cat >>conftest.$ac_ext <<_ACEOF
18437/* end confdefs.h. */
18438$ac_includes_default
18439int
18440main ()
18441{
18442static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18443test_array [0] = 0
18444
18445 ;
18446 return 0;
18447}
18448_ACEOF
18449rm -f conftest.$ac_objext
18450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18451 (eval $ac_compile) 2>conftest.er1
a848cd7e 18452 ac_status=$?
ac1cb8d3
VS
18453 grep -v '^ *+' conftest.er1 >conftest.err
18454 rm -f conftest.er1
18455 cat conftest.err >&5
a848cd7e
SC
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); } &&
c9a66001 18458 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18467 ac_status=$?
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; }; then
18470 ac_hi=$ac_mid
18471else
18472 echo "$as_me: failed program was:" >&5
18473sed 's/^/| /' conftest.$ac_ext >&5
18474
18475ac_lo=`expr '(' $ac_mid ')' + 1`
18476fi
ac1cb8d3 18477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18478done
18479case $ac_lo in
18480?*) ac_cv_sizeof_short=$ac_lo;;
18481'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18482See \`config.log' for more details." >&5
18483echo "$as_me: error: cannot compute sizeof (short), 77
18484See \`config.log' for more details." >&2;}
18485 { (exit 1); exit 1; }; } ;;
18486esac
18487else
18488 if test "$cross_compiling" = yes; then
c9a66001
VZ
18489 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18490echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18491 { (exit 1); exit 1; }; }
18492else
18493 cat >conftest.$ac_ext <<_ACEOF
18494/* confdefs.h. */
18495_ACEOF
18496cat confdefs.h >>conftest.$ac_ext
18497cat >>conftest.$ac_ext <<_ACEOF
18498/* end confdefs.h. */
18499$ac_includes_default
18500long longval () { return (long) (sizeof (short)); }
18501unsigned long ulongval () { return (long) (sizeof (short)); }
18502#include <stdio.h>
18503#include <stdlib.h>
18504int
18505main ()
18506{
18507
18508 FILE *f = fopen ("conftest.val", "w");
18509 if (! f)
18510 exit (1);
18511 if (((long) (sizeof (short))) < 0)
18512 {
18513 long i = longval ();
18514 if (i != ((long) (sizeof (short))))
18515 exit (1);
18516 fprintf (f, "%ld\n", i);
18517 }
18518 else
18519 {
18520 unsigned long i = ulongval ();
18521 if (i != ((long) (sizeof (short))))
18522 exit (1);
18523 fprintf (f, "%lu\n", i);
18524 }
18525 exit (ferror (f) || fclose (f) != 0);
18526
18527 ;
18528 return 0;
18529}
18530_ACEOF
18531rm -f conftest$ac_exeext
18532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18533 (eval $ac_link) 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538 (eval $ac_try) 2>&5
18539 ac_status=$?
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; }; then
18542 ac_cv_sizeof_short=`cat conftest.val`
18543else
18544 echo "$as_me: program exited with status $ac_status" >&5
18545echo "$as_me: failed program was:" >&5
18546sed 's/^/| /' conftest.$ac_ext >&5
18547
18548( exit $ac_status )
18549{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18550See \`config.log' for more details." >&5
18551echo "$as_me: error: cannot compute sizeof (short), 77
18552See \`config.log' for more details." >&2;}
18553 { (exit 1); exit 1; }; }
18554fi
ac1cb8d3 18555rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18556fi
18557fi
18558rm -f conftest.val
18559else
18560 ac_cv_sizeof_short=0
18561fi
18562fi
18563echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18564echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18565cat >>confdefs.h <<_ACEOF
18566#define SIZEOF_SHORT $ac_cv_sizeof_short
18567_ACEOF
18568
18569
18570echo "$as_me:$LINENO: checking for void *" >&5
18571echo $ECHO_N "checking for void *... $ECHO_C" >&6
18572if test "${ac_cv_type_void_p+set}" = set; then
18573 echo $ECHO_N "(cached) $ECHO_C" >&6
18574else
18575 cat >conftest.$ac_ext <<_ACEOF
18576/* confdefs.h. */
18577_ACEOF
18578cat confdefs.h >>conftest.$ac_ext
18579cat >>conftest.$ac_ext <<_ACEOF
18580/* end confdefs.h. */
18581$ac_includes_default
18582int
18583main ()
18584{
18585if ((void * *) 0)
18586 return 0;
18587if (sizeof (void *))
18588 return 0;
18589 ;
18590 return 0;
18591}
18592_ACEOF
18593rm -f conftest.$ac_objext
18594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18595 (eval $ac_compile) 2>conftest.er1
a848cd7e 18596 ac_status=$?
ac1cb8d3
VS
18597 grep -v '^ *+' conftest.er1 >conftest.err
18598 rm -f conftest.er1
18599 cat conftest.err >&5
a848cd7e
SC
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } &&
c9a66001 18602 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18604 (eval $ac_try) 2>&5
18605 ac_status=$?
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; } &&
18608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18610 (eval $ac_try) 2>&5
18611 ac_status=$?
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); }; }; then
18614 ac_cv_type_void_p=yes
18615else
18616 echo "$as_me: failed program was:" >&5
18617sed 's/^/| /' conftest.$ac_ext >&5
18618
18619ac_cv_type_void_p=no
18620fi
ac1cb8d3 18621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18622fi
18623echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18624echo "${ECHO_T}$ac_cv_type_void_p" >&6
18625
18626echo "$as_me:$LINENO: checking size of void *" >&5
18627echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18628if test "${ac_cv_sizeof_void_p+set}" = set; then
18629 echo $ECHO_N "(cached) $ECHO_C" >&6
18630else
18631 if test "$ac_cv_type_void_p" = yes; then
18632 # The cast to unsigned long works around a bug in the HP C Compiler
18633 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18634 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18635 # This bug is HP SR number 8606223364.
18636 if test "$cross_compiling" = yes; then
18637 # Depending upon the size, compute the lo and hi bounds.
18638cat >conftest.$ac_ext <<_ACEOF
18639/* confdefs.h. */
18640_ACEOF
18641cat confdefs.h >>conftest.$ac_ext
18642cat >>conftest.$ac_ext <<_ACEOF
18643/* end confdefs.h. */
18644$ac_includes_default
18645int
18646main ()
18647{
18648static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18649test_array [0] = 0
18650
18651 ;
18652 return 0;
18653}
18654_ACEOF
18655rm -f conftest.$ac_objext
18656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18657 (eval $ac_compile) 2>conftest.er1
a848cd7e 18658 ac_status=$?
ac1cb8d3
VS
18659 grep -v '^ *+' conftest.er1 >conftest.err
18660 rm -f conftest.er1
18661 cat conftest.err >&5
a848cd7e
SC
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); } &&
c9a66001 18664 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18667 ac_status=$?
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; } &&
18670 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18673 ac_status=$?
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; }; then
18676 ac_lo=0 ac_mid=0
18677 while :; do
18678 cat >conftest.$ac_ext <<_ACEOF
18679/* confdefs.h. */
18680_ACEOF
18681cat confdefs.h >>conftest.$ac_ext
18682cat >>conftest.$ac_ext <<_ACEOF
18683/* end confdefs.h. */
18684$ac_includes_default
18685int
18686main ()
18687{
18688static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18689test_array [0] = 0
18690
18691 ;
18692 return 0;
18693}
18694_ACEOF
18695rm -f conftest.$ac_objext
18696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18697 (eval $ac_compile) 2>conftest.er1
a848cd7e 18698 ac_status=$?
ac1cb8d3
VS
18699 grep -v '^ *+' conftest.er1 >conftest.err
18700 rm -f conftest.er1
18701 cat conftest.err >&5
a848cd7e
SC
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); } &&
c9a66001 18704 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18706 (eval $ac_try) 2>&5
18707 ac_status=$?
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; } &&
18710 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18712 (eval $ac_try) 2>&5
18713 ac_status=$?
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; }; then
18716 ac_hi=$ac_mid; break
18717else
18718 echo "$as_me: failed program was:" >&5
18719sed 's/^/| /' conftest.$ac_ext >&5
18720
18721ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18722 if test $ac_lo -le $ac_mid; then
18723 ac_lo= ac_hi=
18724 break
18725 fi
18726 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18727fi
ac1cb8d3 18728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18729 done
18730else
18731 echo "$as_me: failed program was:" >&5
18732sed 's/^/| /' conftest.$ac_ext >&5
18733
18734cat >conftest.$ac_ext <<_ACEOF
18735/* confdefs.h. */
18736_ACEOF
18737cat confdefs.h >>conftest.$ac_ext
18738cat >>conftest.$ac_ext <<_ACEOF
18739/* end confdefs.h. */
18740$ac_includes_default
18741int
18742main ()
18743{
18744static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18745test_array [0] = 0
18746
18747 ;
18748 return 0;
18749}
18750_ACEOF
18751rm -f conftest.$ac_objext
18752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18753 (eval $ac_compile) 2>conftest.er1
a848cd7e 18754 ac_status=$?
ac1cb8d3
VS
18755 grep -v '^ *+' conftest.er1 >conftest.err
18756 rm -f conftest.er1
18757 cat conftest.err >&5
a848cd7e
SC
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); } &&
c9a66001 18760 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762 (eval $ac_try) 2>&5
18763 ac_status=$?
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; } &&
18766 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18768 (eval $ac_try) 2>&5
18769 ac_status=$?
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); }; }; then
18772 ac_hi=-1 ac_mid=-1
18773 while :; do
18774 cat >conftest.$ac_ext <<_ACEOF
18775/* confdefs.h. */
18776_ACEOF
18777cat confdefs.h >>conftest.$ac_ext
18778cat >>conftest.$ac_ext <<_ACEOF
18779/* end confdefs.h. */
18780$ac_includes_default
18781int
18782main ()
18783{
18784static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18785test_array [0] = 0
18786
18787 ;
18788 return 0;
18789}
18790_ACEOF
18791rm -f conftest.$ac_objext
18792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18793 (eval $ac_compile) 2>conftest.er1
a848cd7e 18794 ac_status=$?
ac1cb8d3
VS
18795 grep -v '^ *+' conftest.er1 >conftest.err
18796 rm -f conftest.er1
18797 cat conftest.err >&5
a848cd7e
SC
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } &&
c9a66001 18800 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802 (eval $ac_try) 2>&5
18803 ac_status=$?
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); }; } &&
18806 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808 (eval $ac_try) 2>&5
18809 ac_status=$?
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; }; then
18812 ac_lo=$ac_mid; break
18813else
18814 echo "$as_me: failed program was:" >&5
18815sed 's/^/| /' conftest.$ac_ext >&5
18816
18817ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18818 if test $ac_mid -le $ac_hi; then
18819 ac_lo= ac_hi=
18820 break
18821 fi
18822 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18823fi
ac1cb8d3 18824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18825 done
18826else
18827 echo "$as_me: failed program was:" >&5
18828sed 's/^/| /' conftest.$ac_ext >&5
18829
18830ac_lo= ac_hi=
18831fi
ac1cb8d3 18832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18833fi
ac1cb8d3 18834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18835# Binary search between lo and hi bounds.
18836while test "x$ac_lo" != "x$ac_hi"; do
18837 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18838 cat >conftest.$ac_ext <<_ACEOF
18839/* confdefs.h. */
18840_ACEOF
18841cat confdefs.h >>conftest.$ac_ext
18842cat >>conftest.$ac_ext <<_ACEOF
18843/* end confdefs.h. */
18844$ac_includes_default
18845int
18846main ()
18847{
18848static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18849test_array [0] = 0
18850
18851 ;
18852 return 0;
18853}
18854_ACEOF
18855rm -f conftest.$ac_objext
18856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18857 (eval $ac_compile) 2>conftest.er1
a848cd7e 18858 ac_status=$?
ac1cb8d3
VS
18859 grep -v '^ *+' conftest.er1 >conftest.err
18860 rm -f conftest.er1
18861 cat conftest.err >&5
a848cd7e
SC
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); } &&
c9a66001 18864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18866 (eval $ac_try) 2>&5
18867 ac_status=$?
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); }; } &&
18870 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18872 (eval $ac_try) 2>&5
18873 ac_status=$?
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); }; }; then
18876 ac_hi=$ac_mid
18877else
18878 echo "$as_me: failed program was:" >&5
18879sed 's/^/| /' conftest.$ac_ext >&5
18880
18881ac_lo=`expr '(' $ac_mid ')' + 1`
18882fi
ac1cb8d3 18883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18884done
18885case $ac_lo in
18886?*) ac_cv_sizeof_void_p=$ac_lo;;
18887'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18888See \`config.log' for more details." >&5
18889echo "$as_me: error: cannot compute sizeof (void *), 77
18890See \`config.log' for more details." >&2;}
18891 { (exit 1); exit 1; }; } ;;
18892esac
18893else
18894 if test "$cross_compiling" = yes; then
c9a66001
VZ
18895 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18896echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18897 { (exit 1); exit 1; }; }
18898else
18899 cat >conftest.$ac_ext <<_ACEOF
18900/* confdefs.h. */
18901_ACEOF
18902cat confdefs.h >>conftest.$ac_ext
18903cat >>conftest.$ac_ext <<_ACEOF
18904/* end confdefs.h. */
18905$ac_includes_default
18906long longval () { return (long) (sizeof (void *)); }
18907unsigned long ulongval () { return (long) (sizeof (void *)); }
18908#include <stdio.h>
18909#include <stdlib.h>
18910int
18911main ()
18912{
18913
18914 FILE *f = fopen ("conftest.val", "w");
18915 if (! f)
18916 exit (1);
18917 if (((long) (sizeof (void *))) < 0)
18918 {
18919 long i = longval ();
18920 if (i != ((long) (sizeof (void *))))
18921 exit (1);
18922 fprintf (f, "%ld\n", i);
18923 }
18924 else
18925 {
18926 unsigned long i = ulongval ();
18927 if (i != ((long) (sizeof (void *))))
18928 exit (1);
18929 fprintf (f, "%lu\n", i);
18930 }
18931 exit (ferror (f) || fclose (f) != 0);
18932
18933 ;
18934 return 0;
18935}
18936_ACEOF
18937rm -f conftest$ac_exeext
18938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18939 (eval $ac_link) 2>&5
18940 ac_status=$?
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944 (eval $ac_try) 2>&5
18945 ac_status=$?
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; }; then
18948 ac_cv_sizeof_void_p=`cat conftest.val`
18949else
18950 echo "$as_me: program exited with status $ac_status" >&5
18951echo "$as_me: failed program was:" >&5
18952sed 's/^/| /' conftest.$ac_ext >&5
18953
18954( exit $ac_status )
18955{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18956See \`config.log' for more details." >&5
18957echo "$as_me: error: cannot compute sizeof (void *), 77
18958See \`config.log' for more details." >&2;}
18959 { (exit 1); exit 1; }; }
18960fi
ac1cb8d3 18961rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18962fi
18963fi
18964rm -f conftest.val
18965else
18966 ac_cv_sizeof_void_p=0
18967fi
18968fi
18969echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18970echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18971cat >>confdefs.h <<_ACEOF
18972#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18973_ACEOF
18974
18975
18976echo "$as_me:$LINENO: checking for int" >&5
18977echo $ECHO_N "checking for int... $ECHO_C" >&6
18978if test "${ac_cv_type_int+set}" = set; then
18979 echo $ECHO_N "(cached) $ECHO_C" >&6
18980else
18981 cat >conftest.$ac_ext <<_ACEOF
18982/* confdefs.h. */
18983_ACEOF
18984cat confdefs.h >>conftest.$ac_ext
18985cat >>conftest.$ac_ext <<_ACEOF
18986/* end confdefs.h. */
18987$ac_includes_default
18988int
18989main ()
18990{
18991if ((int *) 0)
18992 return 0;
18993if (sizeof (int))
18994 return 0;
18995 ;
18996 return 0;
18997}
18998_ACEOF
18999rm -f conftest.$ac_objext
19000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19001 (eval $ac_compile) 2>conftest.er1
a848cd7e 19002 ac_status=$?
ac1cb8d3
VS
19003 grep -v '^ *+' conftest.er1 >conftest.err
19004 rm -f conftest.er1
19005 cat conftest.err >&5
a848cd7e
SC
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); } &&
c9a66001 19008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19010 (eval $ac_try) 2>&5
19011 ac_status=$?
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; } &&
19014 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016 (eval $ac_try) 2>&5
19017 ac_status=$?
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; }; then
19020 ac_cv_type_int=yes
19021else
19022 echo "$as_me: failed program was:" >&5
19023sed 's/^/| /' conftest.$ac_ext >&5
19024
19025ac_cv_type_int=no
19026fi
ac1cb8d3 19027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19028fi
19029echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19030echo "${ECHO_T}$ac_cv_type_int" >&6
19031
19032echo "$as_me:$LINENO: checking size of int" >&5
19033echo $ECHO_N "checking size of int... $ECHO_C" >&6
19034if test "${ac_cv_sizeof_int+set}" = set; then
19035 echo $ECHO_N "(cached) $ECHO_C" >&6
19036else
19037 if test "$ac_cv_type_int" = yes; then
19038 # The cast to unsigned long works around a bug in the HP C Compiler
19039 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19040 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19041 # This bug is HP SR number 8606223364.
19042 if test "$cross_compiling" = yes; then
19043 # Depending upon the size, compute the lo and hi bounds.
19044cat >conftest.$ac_ext <<_ACEOF
19045/* confdefs.h. */
19046_ACEOF
19047cat confdefs.h >>conftest.$ac_ext
19048cat >>conftest.$ac_ext <<_ACEOF
19049/* end confdefs.h. */
19050$ac_includes_default
19051int
19052main ()
19053{
19054static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19055test_array [0] = 0
19056
19057 ;
19058 return 0;
19059}
19060_ACEOF
19061rm -f conftest.$ac_objext
19062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19063 (eval $ac_compile) 2>conftest.er1
a848cd7e 19064 ac_status=$?
ac1cb8d3
VS
19065 grep -v '^ *+' conftest.er1 >conftest.err
19066 rm -f conftest.er1
19067 cat conftest.err >&5
a848cd7e
SC
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } &&
c9a66001 19070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19073 ac_status=$?
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; } &&
19076 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19079 ac_status=$?
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; }; then
19082 ac_lo=0 ac_mid=0
19083 while :; do
19084 cat >conftest.$ac_ext <<_ACEOF
19085/* confdefs.h. */
19086_ACEOF
19087cat confdefs.h >>conftest.$ac_ext
19088cat >>conftest.$ac_ext <<_ACEOF
19089/* end confdefs.h. */
19090$ac_includes_default
19091int
19092main ()
19093{
19094static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19095test_array [0] = 0
19096
19097 ;
19098 return 0;
19099}
19100_ACEOF
19101rm -f conftest.$ac_objext
19102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19103 (eval $ac_compile) 2>conftest.er1
a848cd7e 19104 ac_status=$?
ac1cb8d3
VS
19105 grep -v '^ *+' conftest.er1 >conftest.err
19106 rm -f conftest.er1
19107 cat conftest.err >&5
a848cd7e
SC
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); } &&
c9a66001 19110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112 (eval $ac_try) 2>&5
19113 ac_status=$?
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; } &&
19116 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118 (eval $ac_try) 2>&5
19119 ac_status=$?
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); }; }; then
19122 ac_hi=$ac_mid; break
19123else
19124 echo "$as_me: failed program was:" >&5
19125sed 's/^/| /' conftest.$ac_ext >&5
19126
19127ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19128 if test $ac_lo -le $ac_mid; then
19129 ac_lo= ac_hi=
19130 break
19131 fi
19132 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19133fi
ac1cb8d3 19134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19135 done
19136else
19137 echo "$as_me: failed program was:" >&5
19138sed 's/^/| /' conftest.$ac_ext >&5
19139
19140cat >conftest.$ac_ext <<_ACEOF
19141/* confdefs.h. */
19142_ACEOF
19143cat confdefs.h >>conftest.$ac_ext
19144cat >>conftest.$ac_ext <<_ACEOF
19145/* end confdefs.h. */
19146$ac_includes_default
19147int
19148main ()
19149{
19150static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19151test_array [0] = 0
19152
19153 ;
19154 return 0;
19155}
19156_ACEOF
19157rm -f conftest.$ac_objext
19158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19159 (eval $ac_compile) 2>conftest.er1
a848cd7e 19160 ac_status=$?
ac1cb8d3
VS
19161 grep -v '^ *+' conftest.er1 >conftest.err
19162 rm -f conftest.er1
19163 cat conftest.err >&5
a848cd7e
SC
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } &&
c9a66001 19166 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168 (eval $ac_try) 2>&5
19169 ac_status=$?
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; } &&
19172 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174 (eval $ac_try) 2>&5
19175 ac_status=$?
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); }; }; then
19178 ac_hi=-1 ac_mid=-1
19179 while :; do
19180 cat >conftest.$ac_ext <<_ACEOF
19181/* confdefs.h. */
19182_ACEOF
19183cat confdefs.h >>conftest.$ac_ext
19184cat >>conftest.$ac_ext <<_ACEOF
19185/* end confdefs.h. */
19186$ac_includes_default
19187int
19188main ()
19189{
19190static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19191test_array [0] = 0
19192
19193 ;
19194 return 0;
19195}
19196_ACEOF
19197rm -f conftest.$ac_objext
19198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19199 (eval $ac_compile) 2>conftest.er1
a848cd7e 19200 ac_status=$?
ac1cb8d3
VS
19201 grep -v '^ *+' conftest.er1 >conftest.err
19202 rm -f conftest.er1
19203 cat conftest.err >&5
a848cd7e
SC
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); } &&
c9a66001 19206 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208 (eval $ac_try) 2>&5
19209 ac_status=$?
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); }; } &&
19212 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214 (eval $ac_try) 2>&5
19215 ac_status=$?
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); }; }; then
19218 ac_lo=$ac_mid; break
19219else
19220 echo "$as_me: failed program was:" >&5
19221sed 's/^/| /' conftest.$ac_ext >&5
19222
19223ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19224 if test $ac_mid -le $ac_hi; then
19225 ac_lo= ac_hi=
19226 break
19227 fi
19228 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19229fi
ac1cb8d3 19230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19231 done
19232else
19233 echo "$as_me: failed program was:" >&5
19234sed 's/^/| /' conftest.$ac_ext >&5
19235
19236ac_lo= ac_hi=
19237fi
ac1cb8d3 19238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19239fi
ac1cb8d3 19240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19241# Binary search between lo and hi bounds.
19242while test "x$ac_lo" != "x$ac_hi"; do
19243 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19244 cat >conftest.$ac_ext <<_ACEOF
19245/* confdefs.h. */
19246_ACEOF
19247cat confdefs.h >>conftest.$ac_ext
19248cat >>conftest.$ac_ext <<_ACEOF
19249/* end confdefs.h. */
19250$ac_includes_default
19251int
19252main ()
19253{
19254static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19255test_array [0] = 0
19256
19257 ;
19258 return 0;
19259}
19260_ACEOF
19261rm -f conftest.$ac_objext
19262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19263 (eval $ac_compile) 2>conftest.er1
a848cd7e 19264 ac_status=$?
ac1cb8d3
VS
19265 grep -v '^ *+' conftest.er1 >conftest.err
19266 rm -f conftest.er1
19267 cat conftest.err >&5
a848cd7e
SC
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); } &&
c9a66001 19270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19272 (eval $ac_try) 2>&5
19273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; } &&
19276 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19278 (eval $ac_try) 2>&5
19279 ac_status=$?
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); }; }; then
19282 ac_hi=$ac_mid
19283else
19284 echo "$as_me: failed program was:" >&5
19285sed 's/^/| /' conftest.$ac_ext >&5
19286
19287ac_lo=`expr '(' $ac_mid ')' + 1`
19288fi
ac1cb8d3 19289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19290done
19291case $ac_lo in
19292?*) ac_cv_sizeof_int=$ac_lo;;
19293'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19294See \`config.log' for more details." >&5
19295echo "$as_me: error: cannot compute sizeof (int), 77
19296See \`config.log' for more details." >&2;}
19297 { (exit 1); exit 1; }; } ;;
19298esac
19299else
19300 if test "$cross_compiling" = yes; then
c9a66001
VZ
19301 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19302echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19303 { (exit 1); exit 1; }; }
19304else
19305 cat >conftest.$ac_ext <<_ACEOF
19306/* confdefs.h. */
19307_ACEOF
19308cat confdefs.h >>conftest.$ac_ext
19309cat >>conftest.$ac_ext <<_ACEOF
19310/* end confdefs.h. */
19311$ac_includes_default
19312long longval () { return (long) (sizeof (int)); }
19313unsigned long ulongval () { return (long) (sizeof (int)); }
19314#include <stdio.h>
19315#include <stdlib.h>
19316int
19317main ()
19318{
19319
19320 FILE *f = fopen ("conftest.val", "w");
19321 if (! f)
19322 exit (1);
19323 if (((long) (sizeof (int))) < 0)
19324 {
19325 long i = longval ();
19326 if (i != ((long) (sizeof (int))))
19327 exit (1);
19328 fprintf (f, "%ld\n", i);
19329 }
19330 else
19331 {
19332 unsigned long i = ulongval ();
19333 if (i != ((long) (sizeof (int))))
19334 exit (1);
19335 fprintf (f, "%lu\n", i);
19336 }
19337 exit (ferror (f) || fclose (f) != 0);
19338
19339 ;
19340 return 0;
19341}
19342_ACEOF
19343rm -f conftest$ac_exeext
19344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19345 (eval $ac_link) 2>&5
19346 ac_status=$?
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19350 (eval $ac_try) 2>&5
19351 ac_status=$?
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); }; }; then
19354 ac_cv_sizeof_int=`cat conftest.val`
19355else
19356 echo "$as_me: program exited with status $ac_status" >&5
19357echo "$as_me: failed program was:" >&5
19358sed 's/^/| /' conftest.$ac_ext >&5
19359
19360( exit $ac_status )
19361{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19362See \`config.log' for more details." >&5
19363echo "$as_me: error: cannot compute sizeof (int), 77
19364See \`config.log' for more details." >&2;}
19365 { (exit 1); exit 1; }; }
19366fi
ac1cb8d3 19367rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19368fi
19369fi
19370rm -f conftest.val
19371else
19372 ac_cv_sizeof_int=0
19373fi
19374fi
19375echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19376echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19377cat >>confdefs.h <<_ACEOF
19378#define SIZEOF_INT $ac_cv_sizeof_int
19379_ACEOF
19380
19381
19382echo "$as_me:$LINENO: checking for long" >&5
19383echo $ECHO_N "checking for long... $ECHO_C" >&6
19384if test "${ac_cv_type_long+set}" = set; then
19385 echo $ECHO_N "(cached) $ECHO_C" >&6
19386else
19387 cat >conftest.$ac_ext <<_ACEOF
19388/* confdefs.h. */
19389_ACEOF
19390cat confdefs.h >>conftest.$ac_ext
19391cat >>conftest.$ac_ext <<_ACEOF
19392/* end confdefs.h. */
19393$ac_includes_default
19394int
19395main ()
19396{
19397if ((long *) 0)
19398 return 0;
19399if (sizeof (long))
19400 return 0;
19401 ;
19402 return 0;
19403}
19404_ACEOF
19405rm -f conftest.$ac_objext
19406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19407 (eval $ac_compile) 2>conftest.er1
a848cd7e 19408 ac_status=$?
ac1cb8d3
VS
19409 grep -v '^ *+' conftest.er1 >conftest.err
19410 rm -f conftest.er1
19411 cat conftest.err >&5
a848cd7e
SC
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } &&
c9a66001 19414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19416 (eval $ac_try) 2>&5
19417 ac_status=$?
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; } &&
19420 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422 (eval $ac_try) 2>&5
19423 ac_status=$?
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); }; }; then
19426 ac_cv_type_long=yes
19427else
19428 echo "$as_me: failed program was:" >&5
19429sed 's/^/| /' conftest.$ac_ext >&5
19430
19431ac_cv_type_long=no
19432fi
ac1cb8d3 19433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19434fi
19435echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19436echo "${ECHO_T}$ac_cv_type_long" >&6
19437
19438echo "$as_me:$LINENO: checking size of long" >&5
19439echo $ECHO_N "checking size of long... $ECHO_C" >&6
19440if test "${ac_cv_sizeof_long+set}" = set; then
19441 echo $ECHO_N "(cached) $ECHO_C" >&6
19442else
19443 if test "$ac_cv_type_long" = yes; then
19444 # The cast to unsigned long works around a bug in the HP C Compiler
19445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19447 # This bug is HP SR number 8606223364.
19448 if test "$cross_compiling" = yes; then
19449 # Depending upon the size, compute the lo and hi bounds.
19450cat >conftest.$ac_ext <<_ACEOF
19451/* confdefs.h. */
19452_ACEOF
19453cat confdefs.h >>conftest.$ac_ext
19454cat >>conftest.$ac_ext <<_ACEOF
19455/* end confdefs.h. */
19456$ac_includes_default
19457int
19458main ()
19459{
19460static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19461test_array [0] = 0
19462
19463 ;
19464 return 0;
19465}
19466_ACEOF
19467rm -f conftest.$ac_objext
19468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19469 (eval $ac_compile) 2>conftest.er1
a848cd7e 19470 ac_status=$?
ac1cb8d3
VS
19471 grep -v '^ *+' conftest.er1 >conftest.err
19472 rm -f conftest.er1
19473 cat conftest.err >&5
a848cd7e
SC
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); } &&
c9a66001 19476 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; } &&
19482 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484 (eval $ac_try) 2>&5
19485 ac_status=$?
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; }; then
19488 ac_lo=0 ac_mid=0
19489 while :; do
19490 cat >conftest.$ac_ext <<_ACEOF
19491/* confdefs.h. */
19492_ACEOF
19493cat confdefs.h >>conftest.$ac_ext
19494cat >>conftest.$ac_ext <<_ACEOF
19495/* end confdefs.h. */
19496$ac_includes_default
19497int
19498main ()
19499{
19500static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19501test_array [0] = 0
19502
19503 ;
19504 return 0;
19505}
19506_ACEOF
19507rm -f conftest.$ac_objext
19508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19509 (eval $ac_compile) 2>conftest.er1
a848cd7e 19510 ac_status=$?
ac1cb8d3
VS
19511 grep -v '^ *+' conftest.er1 >conftest.err
19512 rm -f conftest.er1
19513 cat conftest.err >&5
a848cd7e
SC
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); } &&
c9a66001 19516 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19518 (eval $ac_try) 2>&5
19519 ac_status=$?
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; } &&
19522 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524 (eval $ac_try) 2>&5
19525 ac_status=$?
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; }; then
19528 ac_hi=$ac_mid; break
19529else
19530 echo "$as_me: failed program was:" >&5
19531sed 's/^/| /' conftest.$ac_ext >&5
19532
19533ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19534 if test $ac_lo -le $ac_mid; then
19535 ac_lo= ac_hi=
19536 break
19537 fi
19538 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19539fi
ac1cb8d3 19540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19541 done
19542else
19543 echo "$as_me: failed program was:" >&5
19544sed 's/^/| /' conftest.$ac_ext >&5
19545
19546cat >conftest.$ac_ext <<_ACEOF
19547/* confdefs.h. */
19548_ACEOF
19549cat confdefs.h >>conftest.$ac_ext
19550cat >>conftest.$ac_ext <<_ACEOF
19551/* end confdefs.h. */
19552$ac_includes_default
19553int
19554main ()
19555{
19556static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19557test_array [0] = 0
19558
19559 ;
19560 return 0;
19561}
19562_ACEOF
19563rm -f conftest.$ac_objext
19564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19565 (eval $ac_compile) 2>conftest.er1
a848cd7e 19566 ac_status=$?
ac1cb8d3
VS
19567 grep -v '^ *+' conftest.er1 >conftest.err
19568 rm -f conftest.er1
19569 cat conftest.err >&5
a848cd7e
SC
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); } &&
c9a66001 19572 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19575 ac_status=$?
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; } &&
19578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580 (eval $ac_try) 2>&5
19581 ac_status=$?
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); }; }; then
19584 ac_hi=-1 ac_mid=-1
19585 while :; do
19586 cat >conftest.$ac_ext <<_ACEOF
19587/* confdefs.h. */
19588_ACEOF
19589cat confdefs.h >>conftest.$ac_ext
19590cat >>conftest.$ac_ext <<_ACEOF
19591/* end confdefs.h. */
19592$ac_includes_default
19593int
19594main ()
19595{
19596static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19597test_array [0] = 0
19598
19599 ;
19600 return 0;
19601}
19602_ACEOF
19603rm -f conftest.$ac_objext
19604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19605 (eval $ac_compile) 2>conftest.er1
a848cd7e 19606 ac_status=$?
ac1cb8d3
VS
19607 grep -v '^ *+' conftest.er1 >conftest.err
19608 rm -f conftest.er1
19609 cat conftest.err >&5
a848cd7e
SC
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } &&
c9a66001 19612 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19614 (eval $ac_try) 2>&5
19615 ac_status=$?
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); }; } &&
19618 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19620 (eval $ac_try) 2>&5
19621 ac_status=$?
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); }; }; then
19624 ac_lo=$ac_mid; break
19625else
19626 echo "$as_me: failed program was:" >&5
19627sed 's/^/| /' conftest.$ac_ext >&5
19628
19629ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19630 if test $ac_mid -le $ac_hi; then
19631 ac_lo= ac_hi=
19632 break
19633 fi
19634 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19635fi
ac1cb8d3 19636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19637 done
19638else
19639 echo "$as_me: failed program was:" >&5
19640sed 's/^/| /' conftest.$ac_ext >&5
19641
19642ac_lo= ac_hi=
19643fi
ac1cb8d3 19644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19645fi
ac1cb8d3 19646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19647# Binary search between lo and hi bounds.
19648while test "x$ac_lo" != "x$ac_hi"; do
19649 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19650 cat >conftest.$ac_ext <<_ACEOF
19651/* confdefs.h. */
19652_ACEOF
19653cat confdefs.h >>conftest.$ac_ext
19654cat >>conftest.$ac_ext <<_ACEOF
19655/* end confdefs.h. */
19656$ac_includes_default
19657int
19658main ()
19659{
19660static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19661test_array [0] = 0
19662
19663 ;
19664 return 0;
19665}
19666_ACEOF
19667rm -f conftest.$ac_objext
19668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19669 (eval $ac_compile) 2>conftest.er1
a848cd7e 19670 ac_status=$?
ac1cb8d3
VS
19671 grep -v '^ *+' conftest.er1 >conftest.err
19672 rm -f conftest.er1
19673 cat conftest.err >&5
a848cd7e
SC
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); } &&
c9a66001 19676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19678 (eval $ac_try) 2>&5
19679 ac_status=$?
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); }; } &&
19682 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19684 (eval $ac_try) 2>&5
19685 ac_status=$?
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); }; }; then
19688 ac_hi=$ac_mid
19689else
19690 echo "$as_me: failed program was:" >&5
19691sed 's/^/| /' conftest.$ac_ext >&5
19692
19693ac_lo=`expr '(' $ac_mid ')' + 1`
19694fi
ac1cb8d3 19695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19696done
19697case $ac_lo in
19698?*) ac_cv_sizeof_long=$ac_lo;;
19699'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19700See \`config.log' for more details." >&5
19701echo "$as_me: error: cannot compute sizeof (long), 77
19702See \`config.log' for more details." >&2;}
19703 { (exit 1); exit 1; }; } ;;
19704esac
19705else
19706 if test "$cross_compiling" = yes; then
c9a66001
VZ
19707 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19708echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19709 { (exit 1); exit 1; }; }
19710else
19711 cat >conftest.$ac_ext <<_ACEOF
19712/* confdefs.h. */
19713_ACEOF
19714cat confdefs.h >>conftest.$ac_ext
19715cat >>conftest.$ac_ext <<_ACEOF
19716/* end confdefs.h. */
19717$ac_includes_default
19718long longval () { return (long) (sizeof (long)); }
19719unsigned long ulongval () { return (long) (sizeof (long)); }
19720#include <stdio.h>
19721#include <stdlib.h>
19722int
19723main ()
19724{
19725
19726 FILE *f = fopen ("conftest.val", "w");
19727 if (! f)
19728 exit (1);
19729 if (((long) (sizeof (long))) < 0)
19730 {
19731 long i = longval ();
19732 if (i != ((long) (sizeof (long))))
19733 exit (1);
19734 fprintf (f, "%ld\n", i);
19735 }
19736 else
19737 {
19738 unsigned long i = ulongval ();
19739 if (i != ((long) (sizeof (long))))
19740 exit (1);
19741 fprintf (f, "%lu\n", i);
19742 }
19743 exit (ferror (f) || fclose (f) != 0);
19744
19745 ;
19746 return 0;
19747}
19748_ACEOF
19749rm -f conftest$ac_exeext
19750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19751 (eval $ac_link) 2>&5
19752 ac_status=$?
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19756 (eval $ac_try) 2>&5
19757 ac_status=$?
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); }; }; then
19760 ac_cv_sizeof_long=`cat conftest.val`
19761else
19762 echo "$as_me: program exited with status $ac_status" >&5
19763echo "$as_me: failed program was:" >&5
19764sed 's/^/| /' conftest.$ac_ext >&5
19765
19766( exit $ac_status )
19767{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19768See \`config.log' for more details." >&5
19769echo "$as_me: error: cannot compute sizeof (long), 77
19770See \`config.log' for more details." >&2;}
19771 { (exit 1); exit 1; }; }
19772fi
ac1cb8d3 19773rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19774fi
19775fi
19776rm -f conftest.val
19777else
19778 ac_cv_sizeof_long=0
19779fi
19780fi
19781echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19782echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19783cat >>confdefs.h <<_ACEOF
19784#define SIZEOF_LONG $ac_cv_sizeof_long
19785_ACEOF
19786
19787
19788echo "$as_me:$LINENO: checking for size_t" >&5
19789echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19790if test "${ac_cv_type_size_t+set}" = set; then
19791 echo $ECHO_N "(cached) $ECHO_C" >&6
19792else
19793 cat >conftest.$ac_ext <<_ACEOF
19794/* confdefs.h. */
19795_ACEOF
19796cat confdefs.h >>conftest.$ac_ext
19797cat >>conftest.$ac_ext <<_ACEOF
19798/* end confdefs.h. */
19799$ac_includes_default
19800int
19801main ()
19802{
19803if ((size_t *) 0)
19804 return 0;
19805if (sizeof (size_t))
19806 return 0;
19807 ;
19808 return 0;
19809}
19810_ACEOF
19811rm -f conftest.$ac_objext
19812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19813 (eval $ac_compile) 2>conftest.er1
a848cd7e 19814 ac_status=$?
ac1cb8d3
VS
19815 grep -v '^ *+' conftest.er1 >conftest.err
19816 rm -f conftest.er1
19817 cat conftest.err >&5
a848cd7e
SC
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); } &&
c9a66001 19820 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19823 ac_status=$?
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; } &&
19826 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828 (eval $ac_try) 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; }; then
19832 ac_cv_type_size_t=yes
19833else
19834 echo "$as_me: failed program was:" >&5
19835sed 's/^/| /' conftest.$ac_ext >&5
19836
19837ac_cv_type_size_t=no
19838fi
ac1cb8d3 19839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19840fi
19841echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19842echo "${ECHO_T}$ac_cv_type_size_t" >&6
19843
19844echo "$as_me:$LINENO: checking size of size_t" >&5
19845echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19846if test "${ac_cv_sizeof_size_t+set}" = set; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
19848else
19849 if test "$ac_cv_type_size_t" = yes; then
19850 # The cast to unsigned long works around a bug in the HP C Compiler
19851 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19852 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19853 # This bug is HP SR number 8606223364.
19854 if test "$cross_compiling" = yes; then
19855 # Depending upon the size, compute the lo and hi bounds.
19856cat >conftest.$ac_ext <<_ACEOF
19857/* confdefs.h. */
19858_ACEOF
19859cat confdefs.h >>conftest.$ac_ext
19860cat >>conftest.$ac_ext <<_ACEOF
19861/* end confdefs.h. */
19862$ac_includes_default
19863int
19864main ()
19865{
19866static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19867test_array [0] = 0
19868
19869 ;
19870 return 0;
19871}
19872_ACEOF
19873rm -f conftest.$ac_objext
19874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19875 (eval $ac_compile) 2>conftest.er1
a848cd7e 19876 ac_status=$?
ac1cb8d3
VS
19877 grep -v '^ *+' conftest.er1 >conftest.err
19878 rm -f conftest.er1
19879 cat conftest.err >&5
a848cd7e
SC
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); } &&
c9a66001 19882 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884 (eval $ac_try) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; } &&
19888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890 (eval $ac_try) 2>&5
19891 ac_status=$?
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; }; then
19894 ac_lo=0 ac_mid=0
19895 while :; do
19896 cat >conftest.$ac_ext <<_ACEOF
19897/* confdefs.h. */
19898_ACEOF
19899cat confdefs.h >>conftest.$ac_ext
19900cat >>conftest.$ac_ext <<_ACEOF
19901/* end confdefs.h. */
19902$ac_includes_default
19903int
19904main ()
19905{
19906static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19907test_array [0] = 0
19908
19909 ;
19910 return 0;
19911}
19912_ACEOF
19913rm -f conftest.$ac_objext
19914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19915 (eval $ac_compile) 2>conftest.er1
a848cd7e 19916 ac_status=$?
ac1cb8d3
VS
19917 grep -v '^ *+' conftest.er1 >conftest.err
19918 rm -f conftest.er1
19919 cat conftest.err >&5
a848cd7e
SC
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } &&
c9a66001 19922 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924 (eval $ac_try) 2>&5
19925 ac_status=$?
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); }; } &&
19928 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930 (eval $ac_try) 2>&5
19931 ac_status=$?
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); }; }; then
19934 ac_hi=$ac_mid; break
19935else
19936 echo "$as_me: failed program was:" >&5
19937sed 's/^/| /' conftest.$ac_ext >&5
19938
19939ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19940 if test $ac_lo -le $ac_mid; then
19941 ac_lo= ac_hi=
19942 break
19943 fi
19944 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19945fi
ac1cb8d3 19946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19947 done
19948else
19949 echo "$as_me: failed program was:" >&5
19950sed 's/^/| /' conftest.$ac_ext >&5
19951
19952cat >conftest.$ac_ext <<_ACEOF
19953/* confdefs.h. */
19954_ACEOF
19955cat confdefs.h >>conftest.$ac_ext
19956cat >>conftest.$ac_ext <<_ACEOF
19957/* end confdefs.h. */
19958$ac_includes_default
19959int
19960main ()
19961{
19962static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19963test_array [0] = 0
19964
19965 ;
19966 return 0;
19967}
19968_ACEOF
19969rm -f conftest.$ac_objext
19970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19971 (eval $ac_compile) 2>conftest.er1
a848cd7e 19972 ac_status=$?
ac1cb8d3
VS
19973 grep -v '^ *+' conftest.er1 >conftest.err
19974 rm -f conftest.er1
19975 cat conftest.err >&5
a848cd7e
SC
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); } &&
c9a66001 19978 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980 (eval $ac_try) 2>&5
19981 ac_status=$?
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; } &&
19984 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986 (eval $ac_try) 2>&5
19987 ac_status=$?
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; }; then
19990 ac_hi=-1 ac_mid=-1
19991 while :; do
19992 cat >conftest.$ac_ext <<_ACEOF
19993/* confdefs.h. */
19994_ACEOF
19995cat confdefs.h >>conftest.$ac_ext
19996cat >>conftest.$ac_ext <<_ACEOF
19997/* end confdefs.h. */
19998$ac_includes_default
19999int
20000main ()
20001{
20002static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20003test_array [0] = 0
20004
20005 ;
20006 return 0;
20007}
20008_ACEOF
20009rm -f conftest.$ac_objext
20010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20011 (eval $ac_compile) 2>conftest.er1
a848cd7e 20012 ac_status=$?
ac1cb8d3
VS
20013 grep -v '^ *+' conftest.er1 >conftest.err
20014 rm -f conftest.er1
20015 cat conftest.err >&5
a848cd7e
SC
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); } &&
c9a66001 20018 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020 (eval $ac_try) 2>&5
20021 ac_status=$?
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); }; } &&
20024 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026 (eval $ac_try) 2>&5
20027 ac_status=$?
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; }; then
20030 ac_lo=$ac_mid; break
20031else
20032 echo "$as_me: failed program was:" >&5
20033sed 's/^/| /' conftest.$ac_ext >&5
20034
20035ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20036 if test $ac_mid -le $ac_hi; then
20037 ac_lo= ac_hi=
20038 break
20039 fi
20040 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20041fi
ac1cb8d3 20042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20043 done
20044else
20045 echo "$as_me: failed program was:" >&5
20046sed 's/^/| /' conftest.$ac_ext >&5
20047
20048ac_lo= ac_hi=
20049fi
ac1cb8d3 20050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20051fi
ac1cb8d3 20052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20053# Binary search between lo and hi bounds.
20054while test "x$ac_lo" != "x$ac_hi"; do
20055 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20056 cat >conftest.$ac_ext <<_ACEOF
20057/* confdefs.h. */
20058_ACEOF
20059cat confdefs.h >>conftest.$ac_ext
20060cat >>conftest.$ac_ext <<_ACEOF
20061/* end confdefs.h. */
20062$ac_includes_default
20063int
20064main ()
20065{
20066static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20067test_array [0] = 0
20068
20069 ;
20070 return 0;
20071}
20072_ACEOF
20073rm -f conftest.$ac_objext
20074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20075 (eval $ac_compile) 2>conftest.er1
a848cd7e 20076 ac_status=$?
ac1cb8d3
VS
20077 grep -v '^ *+' conftest.er1 >conftest.err
20078 rm -f conftest.er1
20079 cat conftest.err >&5
a848cd7e
SC
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); } &&
c9a66001 20082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20084 (eval $ac_try) 2>&5
20085 ac_status=$?
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); }; } &&
20088 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090 (eval $ac_try) 2>&5
20091 ac_status=$?
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; }; then
20094 ac_hi=$ac_mid
20095else
20096 echo "$as_me: failed program was:" >&5
20097sed 's/^/| /' conftest.$ac_ext >&5
20098
20099ac_lo=`expr '(' $ac_mid ')' + 1`
20100fi
ac1cb8d3 20101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20102done
20103case $ac_lo in
20104?*) ac_cv_sizeof_size_t=$ac_lo;;
20105'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20106See \`config.log' for more details." >&5
20107echo "$as_me: error: cannot compute sizeof (size_t), 77
20108See \`config.log' for more details." >&2;}
20109 { (exit 1); exit 1; }; } ;;
20110esac
20111else
20112 if test "$cross_compiling" = yes; then
c9a66001
VZ
20113 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20114echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20115 { (exit 1); exit 1; }; }
20116else
20117 cat >conftest.$ac_ext <<_ACEOF
20118/* confdefs.h. */
20119_ACEOF
20120cat confdefs.h >>conftest.$ac_ext
20121cat >>conftest.$ac_ext <<_ACEOF
20122/* end confdefs.h. */
20123$ac_includes_default
20124long longval () { return (long) (sizeof (size_t)); }
20125unsigned long ulongval () { return (long) (sizeof (size_t)); }
20126#include <stdio.h>
20127#include <stdlib.h>
20128int
20129main ()
20130{
20131
20132 FILE *f = fopen ("conftest.val", "w");
20133 if (! f)
20134 exit (1);
20135 if (((long) (sizeof (size_t))) < 0)
20136 {
20137 long i = longval ();
20138 if (i != ((long) (sizeof (size_t))))
20139 exit (1);
20140 fprintf (f, "%ld\n", i);
20141 }
20142 else
20143 {
20144 unsigned long i = ulongval ();
20145 if (i != ((long) (sizeof (size_t))))
20146 exit (1);
20147 fprintf (f, "%lu\n", i);
20148 }
20149 exit (ferror (f) || fclose (f) != 0);
20150
20151 ;
20152 return 0;
20153}
20154_ACEOF
20155rm -f conftest$ac_exeext
20156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20157 (eval $ac_link) 2>&5
20158 ac_status=$?
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162 (eval $ac_try) 2>&5
20163 ac_status=$?
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; }; then
20166 ac_cv_sizeof_size_t=`cat conftest.val`
20167else
20168 echo "$as_me: program exited with status $ac_status" >&5
20169echo "$as_me: failed program was:" >&5
20170sed 's/^/| /' conftest.$ac_ext >&5
20171
20172( exit $ac_status )
20173{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20174See \`config.log' for more details." >&5
20175echo "$as_me: error: cannot compute sizeof (size_t), 77
20176See \`config.log' for more details." >&2;}
20177 { (exit 1); exit 1; }; }
20178fi
ac1cb8d3 20179rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20180fi
20181fi
20182rm -f conftest.val
20183else
20184 ac_cv_sizeof_size_t=0
20185fi
20186fi
20187echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20188echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20189cat >>confdefs.h <<_ACEOF
20190#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20191_ACEOF
20192
20193
20194
20195case "${host}" in
20196 arm-*-linux* )
20197 echo "$as_me:$LINENO: checking for long long" >&5
20198echo $ECHO_N "checking for long long... $ECHO_C" >&6
20199if test "${ac_cv_type_long_long+set}" = set; then
20200 echo $ECHO_N "(cached) $ECHO_C" >&6
20201else
20202 cat >conftest.$ac_ext <<_ACEOF
20203/* confdefs.h. */
20204_ACEOF
20205cat confdefs.h >>conftest.$ac_ext
20206cat >>conftest.$ac_ext <<_ACEOF
20207/* end confdefs.h. */
20208$ac_includes_default
20209int
20210main ()
20211{
20212if ((long long *) 0)
20213 return 0;
20214if (sizeof (long long))
20215 return 0;
20216 ;
20217 return 0;
20218}
20219_ACEOF
20220rm -f conftest.$ac_objext
20221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20222 (eval $ac_compile) 2>conftest.er1
a848cd7e 20223 ac_status=$?
ac1cb8d3
VS
20224 grep -v '^ *+' conftest.er1 >conftest.err
20225 rm -f conftest.er1
20226 cat conftest.err >&5
a848cd7e
SC
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); } &&
c9a66001 20229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20232 ac_status=$?
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; } &&
20235 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; }; then
20241 ac_cv_type_long_long=yes
20242else
20243 echo "$as_me: failed program was:" >&5
20244sed 's/^/| /' conftest.$ac_ext >&5
20245
20246ac_cv_type_long_long=no
20247fi
ac1cb8d3 20248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20249fi
20250echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20251echo "${ECHO_T}$ac_cv_type_long_long" >&6
20252
20253echo "$as_me:$LINENO: checking size of long long" >&5
20254echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20255if test "${ac_cv_sizeof_long_long+set}" = set; then
20256 echo $ECHO_N "(cached) $ECHO_C" >&6
20257else
20258 if test "$ac_cv_type_long_long" = yes; then
20259 # The cast to unsigned long works around a bug in the HP C Compiler
20260 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20261 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20262 # This bug is HP SR number 8606223364.
20263 if test "$cross_compiling" = yes; then
20264 # Depending upon the size, compute the lo and hi bounds.
20265cat >conftest.$ac_ext <<_ACEOF
20266/* confdefs.h. */
20267_ACEOF
20268cat confdefs.h >>conftest.$ac_ext
20269cat >>conftest.$ac_ext <<_ACEOF
20270/* end confdefs.h. */
20271$ac_includes_default
20272int
20273main ()
20274{
20275static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20276test_array [0] = 0
20277
20278 ;
20279 return 0;
20280}
20281_ACEOF
20282rm -f conftest.$ac_objext
20283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20284 (eval $ac_compile) 2>conftest.er1
a848cd7e 20285 ac_status=$?
ac1cb8d3
VS
20286 grep -v '^ *+' conftest.er1 >conftest.err
20287 rm -f conftest.er1
20288 cat conftest.err >&5
a848cd7e
SC
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); } &&
c9a66001 20291 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293 (eval $ac_try) 2>&5
20294 ac_status=$?
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; } &&
20297 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299 (eval $ac_try) 2>&5
20300 ac_status=$?
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); }; }; then
20303 ac_lo=0 ac_mid=0
20304 while :; do
20305 cat >conftest.$ac_ext <<_ACEOF
20306/* confdefs.h. */
20307_ACEOF
20308cat confdefs.h >>conftest.$ac_ext
20309cat >>conftest.$ac_ext <<_ACEOF
20310/* end confdefs.h. */
20311$ac_includes_default
20312int
20313main ()
20314{
20315static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20316test_array [0] = 0
20317
20318 ;
20319 return 0;
20320}
20321_ACEOF
20322rm -f conftest.$ac_objext
20323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20324 (eval $ac_compile) 2>conftest.er1
a848cd7e 20325 ac_status=$?
ac1cb8d3
VS
20326 grep -v '^ *+' conftest.er1 >conftest.err
20327 rm -f conftest.er1
20328 cat conftest.err >&5
a848cd7e
SC
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); } &&
c9a66001 20331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333 (eval $ac_try) 2>&5
20334 ac_status=$?
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); }; } &&
20337 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339 (eval $ac_try) 2>&5
20340 ac_status=$?
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; }; then
20343 ac_hi=$ac_mid; break
20344else
20345 echo "$as_me: failed program was:" >&5
20346sed 's/^/| /' conftest.$ac_ext >&5
20347
20348ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20349 if test $ac_lo -le $ac_mid; then
20350 ac_lo= ac_hi=
20351 break
20352 fi
20353 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20354fi
ac1cb8d3 20355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20356 done
20357else
20358 echo "$as_me: failed program was:" >&5
20359sed 's/^/| /' conftest.$ac_ext >&5
20360
20361cat >conftest.$ac_ext <<_ACEOF
20362/* confdefs.h. */
20363_ACEOF
20364cat confdefs.h >>conftest.$ac_ext
20365cat >>conftest.$ac_ext <<_ACEOF
20366/* end confdefs.h. */
20367$ac_includes_default
20368int
20369main ()
20370{
20371static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20372test_array [0] = 0
20373
20374 ;
20375 return 0;
20376}
20377_ACEOF
20378rm -f conftest.$ac_objext
20379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20380 (eval $ac_compile) 2>conftest.er1
a848cd7e 20381 ac_status=$?
ac1cb8d3
VS
20382 grep -v '^ *+' conftest.er1 >conftest.err
20383 rm -f conftest.er1
20384 cat conftest.err >&5
a848cd7e
SC
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); } &&
c9a66001 20387 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20389 (eval $ac_try) 2>&5
20390 ac_status=$?
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); }; } &&
20393 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20395 (eval $ac_try) 2>&5
20396 ac_status=$?
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); }; }; then
20399 ac_hi=-1 ac_mid=-1
20400 while :; do
20401 cat >conftest.$ac_ext <<_ACEOF
20402/* confdefs.h. */
20403_ACEOF
20404cat confdefs.h >>conftest.$ac_ext
20405cat >>conftest.$ac_ext <<_ACEOF
20406/* end confdefs.h. */
20407$ac_includes_default
20408int
20409main ()
20410{
20411static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20412test_array [0] = 0
20413
20414 ;
20415 return 0;
20416}
20417_ACEOF
20418rm -f conftest.$ac_objext
20419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20420 (eval $ac_compile) 2>conftest.er1
a848cd7e 20421 ac_status=$?
ac1cb8d3
VS
20422 grep -v '^ *+' conftest.er1 >conftest.err
20423 rm -f conftest.er1
20424 cat conftest.err >&5
a848cd7e
SC
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } &&
c9a66001 20427 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429 (eval $ac_try) 2>&5
20430 ac_status=$?
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; } &&
20433 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20435 (eval $ac_try) 2>&5
20436 ac_status=$?
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; }; then
20439 ac_lo=$ac_mid; break
20440else
20441 echo "$as_me: failed program was:" >&5
20442sed 's/^/| /' conftest.$ac_ext >&5
20443
20444ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20445 if test $ac_mid -le $ac_hi; then
20446 ac_lo= ac_hi=
20447 break
20448 fi
20449 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20450fi
ac1cb8d3 20451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20452 done
20453else
20454 echo "$as_me: failed program was:" >&5
20455sed 's/^/| /' conftest.$ac_ext >&5
20456
20457ac_lo= ac_hi=
20458fi
ac1cb8d3 20459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20460fi
ac1cb8d3 20461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20462# Binary search between lo and hi bounds.
20463while test "x$ac_lo" != "x$ac_hi"; do
20464 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20465 cat >conftest.$ac_ext <<_ACEOF
20466/* confdefs.h. */
20467_ACEOF
20468cat confdefs.h >>conftest.$ac_ext
20469cat >>conftest.$ac_ext <<_ACEOF
20470/* end confdefs.h. */
20471$ac_includes_default
20472int
20473main ()
20474{
20475static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20476test_array [0] = 0
20477
20478 ;
20479 return 0;
20480}
20481_ACEOF
20482rm -f conftest.$ac_objext
20483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20484 (eval $ac_compile) 2>conftest.er1
a848cd7e 20485 ac_status=$?
ac1cb8d3
VS
20486 grep -v '^ *+' conftest.er1 >conftest.err
20487 rm -f conftest.er1
20488 cat conftest.err >&5
a848cd7e
SC
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } &&
c9a66001 20491 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20493 (eval $ac_try) 2>&5
20494 ac_status=$?
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); }; } &&
20497 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20499 (eval $ac_try) 2>&5
20500 ac_status=$?
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); }; }; then
20503 ac_hi=$ac_mid
20504else
20505 echo "$as_me: failed program was:" >&5
20506sed 's/^/| /' conftest.$ac_ext >&5
20507
20508ac_lo=`expr '(' $ac_mid ')' + 1`
20509fi
ac1cb8d3 20510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20511done
20512case $ac_lo in
20513?*) ac_cv_sizeof_long_long=$ac_lo;;
20514'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20515See \`config.log' for more details." >&5
20516echo "$as_me: error: cannot compute sizeof (long long), 77
20517See \`config.log' for more details." >&2;}
20518 { (exit 1); exit 1; }; } ;;
20519esac
20520else
20521 if test "$cross_compiling" = yes; then
c9a66001
VZ
20522 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20523echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20524 { (exit 1); exit 1; }; }
20525else
20526 cat >conftest.$ac_ext <<_ACEOF
20527/* confdefs.h. */
20528_ACEOF
20529cat confdefs.h >>conftest.$ac_ext
20530cat >>conftest.$ac_ext <<_ACEOF
20531/* end confdefs.h. */
20532$ac_includes_default
20533long longval () { return (long) (sizeof (long long)); }
20534unsigned long ulongval () { return (long) (sizeof (long long)); }
20535#include <stdio.h>
20536#include <stdlib.h>
20537int
20538main ()
20539{
20540
20541 FILE *f = fopen ("conftest.val", "w");
20542 if (! f)
20543 exit (1);
20544 if (((long) (sizeof (long long))) < 0)
20545 {
20546 long i = longval ();
20547 if (i != ((long) (sizeof (long long))))
20548 exit (1);
20549 fprintf (f, "%ld\n", i);
20550 }
20551 else
20552 {
20553 unsigned long i = ulongval ();
20554 if (i != ((long) (sizeof (long long))))
20555 exit (1);
20556 fprintf (f, "%lu\n", i);
20557 }
20558 exit (ferror (f) || fclose (f) != 0);
20559
20560 ;
20561 return 0;
20562}
20563_ACEOF
20564rm -f conftest$ac_exeext
20565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20566 (eval $ac_link) 2>&5
20567 ac_status=$?
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20571 (eval $ac_try) 2>&5
20572 ac_status=$?
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); }; }; then
20575 ac_cv_sizeof_long_long=`cat conftest.val`
20576else
20577 echo "$as_me: program exited with status $ac_status" >&5
20578echo "$as_me: failed program was:" >&5
20579sed 's/^/| /' conftest.$ac_ext >&5
20580
20581( exit $ac_status )
20582{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20583See \`config.log' for more details." >&5
20584echo "$as_me: error: cannot compute sizeof (long long), 77
20585See \`config.log' for more details." >&2;}
20586 { (exit 1); exit 1; }; }
20587fi
ac1cb8d3 20588rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20589fi
20590fi
20591rm -f conftest.val
20592else
20593 ac_cv_sizeof_long_long=0
20594fi
20595fi
20596echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20597echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20598cat >>confdefs.h <<_ACEOF
20599#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20600_ACEOF
20601
20602
20603 ;;
20604 *-hp-hpux* )
20605 echo "$as_me:$LINENO: checking for long long" >&5
20606echo $ECHO_N "checking for long long... $ECHO_C" >&6
20607if test "${ac_cv_type_long_long+set}" = set; then
20608 echo $ECHO_N "(cached) $ECHO_C" >&6
20609else
20610 cat >conftest.$ac_ext <<_ACEOF
20611/* confdefs.h. */
20612_ACEOF
20613cat confdefs.h >>conftest.$ac_ext
20614cat >>conftest.$ac_ext <<_ACEOF
20615/* end confdefs.h. */
20616$ac_includes_default
20617int
20618main ()
20619{
20620if ((long long *) 0)
20621 return 0;
20622if (sizeof (long long))
20623 return 0;
20624 ;
20625 return 0;
20626}
20627_ACEOF
20628rm -f conftest.$ac_objext
20629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20630 (eval $ac_compile) 2>conftest.er1
a848cd7e 20631 ac_status=$?
ac1cb8d3
VS
20632 grep -v '^ *+' conftest.er1 >conftest.err
20633 rm -f conftest.er1
20634 cat conftest.err >&5
a848cd7e
SC
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); } &&
c9a66001 20637 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639 (eval $ac_try) 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; } &&
20643 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645 (eval $ac_try) 2>&5
20646 ac_status=$?
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; }; then
20649 ac_cv_type_long_long=yes
20650else
20651 echo "$as_me: failed program was:" >&5
20652sed 's/^/| /' conftest.$ac_ext >&5
20653
20654ac_cv_type_long_long=no
20655fi
ac1cb8d3 20656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20657fi
20658echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20659echo "${ECHO_T}$ac_cv_type_long_long" >&6
20660
20661echo "$as_me:$LINENO: checking size of long long" >&5
20662echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20663if test "${ac_cv_sizeof_long_long+set}" = set; then
20664 echo $ECHO_N "(cached) $ECHO_C" >&6
20665else
20666 if test "$ac_cv_type_long_long" = yes; then
20667 # The cast to unsigned long works around a bug in the HP C Compiler
20668 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20669 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20670 # This bug is HP SR number 8606223364.
20671 if test "$cross_compiling" = yes; then
20672 # Depending upon the size, compute the lo and hi bounds.
20673cat >conftest.$ac_ext <<_ACEOF
20674/* confdefs.h. */
20675_ACEOF
20676cat confdefs.h >>conftest.$ac_ext
20677cat >>conftest.$ac_ext <<_ACEOF
20678/* end confdefs.h. */
20679$ac_includes_default
20680int
20681main ()
20682{
20683static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20684test_array [0] = 0
20685
20686 ;
20687 return 0;
20688}
20689_ACEOF
20690rm -f conftest.$ac_objext
20691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20692 (eval $ac_compile) 2>conftest.er1
a848cd7e 20693 ac_status=$?
ac1cb8d3
VS
20694 grep -v '^ *+' conftest.er1 >conftest.err
20695 rm -f conftest.er1
20696 cat conftest.err >&5
a848cd7e
SC
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); } &&
c9a66001 20699 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701 (eval $ac_try) 2>&5
20702 ac_status=$?
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); }; } &&
20705 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20707 (eval $ac_try) 2>&5
20708 ac_status=$?
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); }; }; then
20711 ac_lo=0 ac_mid=0
20712 while :; do
20713 cat >conftest.$ac_ext <<_ACEOF
20714/* confdefs.h. */
20715_ACEOF
20716cat confdefs.h >>conftest.$ac_ext
20717cat >>conftest.$ac_ext <<_ACEOF
20718/* end confdefs.h. */
20719$ac_includes_default
20720int
20721main ()
20722{
20723static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20724test_array [0] = 0
20725
20726 ;
20727 return 0;
20728}
20729_ACEOF
20730rm -f conftest.$ac_objext
20731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20732 (eval $ac_compile) 2>conftest.er1
a848cd7e 20733 ac_status=$?
ac1cb8d3
VS
20734 grep -v '^ *+' conftest.er1 >conftest.err
20735 rm -f conftest.er1
20736 cat conftest.err >&5
a848cd7e
SC
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); } &&
c9a66001 20739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741 (eval $ac_try) 2>&5
20742 ac_status=$?
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; } &&
20745 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20747 (eval $ac_try) 2>&5
20748 ac_status=$?
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; }; then
20751 ac_hi=$ac_mid; break
20752else
20753 echo "$as_me: failed program was:" >&5
20754sed 's/^/| /' conftest.$ac_ext >&5
20755
20756ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20757 if test $ac_lo -le $ac_mid; then
20758 ac_lo= ac_hi=
20759 break
20760 fi
20761 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20762fi
ac1cb8d3 20763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20764 done
20765else
20766 echo "$as_me: failed program was:" >&5
20767sed 's/^/| /' conftest.$ac_ext >&5
20768
20769cat >conftest.$ac_ext <<_ACEOF
20770/* confdefs.h. */
20771_ACEOF
20772cat confdefs.h >>conftest.$ac_ext
20773cat >>conftest.$ac_ext <<_ACEOF
20774/* end confdefs.h. */
20775$ac_includes_default
20776int
20777main ()
20778{
20779static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20780test_array [0] = 0
20781
20782 ;
20783 return 0;
20784}
20785_ACEOF
20786rm -f conftest.$ac_objext
20787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20788 (eval $ac_compile) 2>conftest.er1
a848cd7e 20789 ac_status=$?
ac1cb8d3
VS
20790 grep -v '^ *+' conftest.er1 >conftest.err
20791 rm -f conftest.er1
20792 cat conftest.err >&5
a848cd7e
SC
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); } &&
c9a66001 20795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20797 (eval $ac_try) 2>&5
20798 ac_status=$?
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; } &&
20801 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803 (eval $ac_try) 2>&5
20804 ac_status=$?
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); }; }; then
20807 ac_hi=-1 ac_mid=-1
20808 while :; do
20809 cat >conftest.$ac_ext <<_ACEOF
20810/* confdefs.h. */
20811_ACEOF
20812cat confdefs.h >>conftest.$ac_ext
20813cat >>conftest.$ac_ext <<_ACEOF
20814/* end confdefs.h. */
20815$ac_includes_default
20816int
20817main ()
20818{
20819static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20820test_array [0] = 0
20821
20822 ;
20823 return 0;
20824}
20825_ACEOF
20826rm -f conftest.$ac_objext
20827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20828 (eval $ac_compile) 2>conftest.er1
a848cd7e 20829 ac_status=$?
ac1cb8d3
VS
20830 grep -v '^ *+' conftest.er1 >conftest.err
20831 rm -f conftest.er1
20832 cat conftest.err >&5
a848cd7e
SC
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); } &&
c9a66001 20835 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20837 (eval $ac_try) 2>&5
20838 ac_status=$?
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); }; } &&
20841 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20843 (eval $ac_try) 2>&5
20844 ac_status=$?
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); }; }; then
20847 ac_lo=$ac_mid; break
20848else
20849 echo "$as_me: failed program was:" >&5
20850sed 's/^/| /' conftest.$ac_ext >&5
20851
20852ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20853 if test $ac_mid -le $ac_hi; then
20854 ac_lo= ac_hi=
20855 break
20856 fi
20857 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20858fi
ac1cb8d3 20859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20860 done
20861else
20862 echo "$as_me: failed program was:" >&5
20863sed 's/^/| /' conftest.$ac_ext >&5
20864
20865ac_lo= ac_hi=
20866fi
ac1cb8d3 20867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20868fi
ac1cb8d3 20869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20870# Binary search between lo and hi bounds.
20871while test "x$ac_lo" != "x$ac_hi"; do
20872 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20873 cat >conftest.$ac_ext <<_ACEOF
20874/* confdefs.h. */
20875_ACEOF
20876cat confdefs.h >>conftest.$ac_ext
20877cat >>conftest.$ac_ext <<_ACEOF
20878/* end confdefs.h. */
20879$ac_includes_default
20880int
20881main ()
20882{
20883static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20884test_array [0] = 0
20885
20886 ;
20887 return 0;
20888}
20889_ACEOF
20890rm -f conftest.$ac_objext
20891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20892 (eval $ac_compile) 2>conftest.er1
a848cd7e 20893 ac_status=$?
ac1cb8d3
VS
20894 grep -v '^ *+' conftest.er1 >conftest.err
20895 rm -f conftest.er1
20896 cat conftest.err >&5
a848cd7e
SC
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } &&
c9a66001 20899 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20901 (eval $ac_try) 2>&5
20902 ac_status=$?
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); }; } &&
20905 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20907 (eval $ac_try) 2>&5
20908 ac_status=$?
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); }; }; then
20911 ac_hi=$ac_mid
20912else
20913 echo "$as_me: failed program was:" >&5
20914sed 's/^/| /' conftest.$ac_ext >&5
20915
20916ac_lo=`expr '(' $ac_mid ')' + 1`
20917fi
ac1cb8d3 20918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20919done
20920case $ac_lo in
20921?*) ac_cv_sizeof_long_long=$ac_lo;;
20922'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20923See \`config.log' for more details." >&5
20924echo "$as_me: error: cannot compute sizeof (long long), 77
20925See \`config.log' for more details." >&2;}
20926 { (exit 1); exit 1; }; } ;;
20927esac
20928else
20929 if test "$cross_compiling" = yes; then
c9a66001
VZ
20930 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20931echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20932 { (exit 1); exit 1; }; }
20933else
20934 cat >conftest.$ac_ext <<_ACEOF
20935/* confdefs.h. */
20936_ACEOF
20937cat confdefs.h >>conftest.$ac_ext
20938cat >>conftest.$ac_ext <<_ACEOF
20939/* end confdefs.h. */
20940$ac_includes_default
20941long longval () { return (long) (sizeof (long long)); }
20942unsigned long ulongval () { return (long) (sizeof (long long)); }
20943#include <stdio.h>
20944#include <stdlib.h>
20945int
20946main ()
20947{
20948
20949 FILE *f = fopen ("conftest.val", "w");
20950 if (! f)
20951 exit (1);
20952 if (((long) (sizeof (long long))) < 0)
20953 {
20954 long i = longval ();
20955 if (i != ((long) (sizeof (long long))))
20956 exit (1);
20957 fprintf (f, "%ld\n", i);
20958 }
20959 else
20960 {
20961 unsigned long i = ulongval ();
20962 if (i != ((long) (sizeof (long long))))
20963 exit (1);
20964 fprintf (f, "%lu\n", i);
20965 }
20966 exit (ferror (f) || fclose (f) != 0);
20967
20968 ;
20969 return 0;
20970}
20971_ACEOF
20972rm -f conftest$ac_exeext
20973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20974 (eval $ac_link) 2>&5
20975 ac_status=$?
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20979 (eval $ac_try) 2>&5
20980 ac_status=$?
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; }; then
20983 ac_cv_sizeof_long_long=`cat conftest.val`
20984else
20985 echo "$as_me: program exited with status $ac_status" >&5
20986echo "$as_me: failed program was:" >&5
20987sed 's/^/| /' conftest.$ac_ext >&5
20988
20989( exit $ac_status )
20990{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20991See \`config.log' for more details." >&5
20992echo "$as_me: error: cannot compute sizeof (long long), 77
20993See \`config.log' for more details." >&2;}
20994 { (exit 1); exit 1; }; }
20995fi
ac1cb8d3 20996rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20997fi
20998fi
20999rm -f conftest.val
21000else
21001 ac_cv_sizeof_long_long=0
21002fi
21003fi
21004echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21005echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21006cat >>confdefs.h <<_ACEOF
21007#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21008_ACEOF
21009
21010
21011 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 21012 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
21013 fi
21014 ;;
21015 * )
21016 echo "$as_me:$LINENO: checking for long long" >&5
21017echo $ECHO_N "checking for long long... $ECHO_C" >&6
21018if test "${ac_cv_type_long_long+set}" = set; then
21019 echo $ECHO_N "(cached) $ECHO_C" >&6
21020else
21021 cat >conftest.$ac_ext <<_ACEOF
21022/* confdefs.h. */
21023_ACEOF
21024cat confdefs.h >>conftest.$ac_ext
21025cat >>conftest.$ac_ext <<_ACEOF
21026/* end confdefs.h. */
21027$ac_includes_default
21028int
21029main ()
21030{
21031if ((long long *) 0)
21032 return 0;
21033if (sizeof (long long))
21034 return 0;
21035 ;
21036 return 0;
21037}
21038_ACEOF
21039rm -f conftest.$ac_objext
21040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21041 (eval $ac_compile) 2>conftest.er1
a848cd7e 21042 ac_status=$?
ac1cb8d3
VS
21043 grep -v '^ *+' conftest.er1 >conftest.err
21044 rm -f conftest.er1
21045 cat conftest.err >&5
a848cd7e
SC
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); } &&
c9a66001 21048 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050 (eval $ac_try) 2>&5
21051 ac_status=$?
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); }; } &&
21054 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056 (eval $ac_try) 2>&5
21057 ac_status=$?
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); }; }; then
21060 ac_cv_type_long_long=yes
21061else
21062 echo "$as_me: failed program was:" >&5
21063sed 's/^/| /' conftest.$ac_ext >&5
21064
21065ac_cv_type_long_long=no
21066fi
ac1cb8d3 21067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21068fi
21069echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21070echo "${ECHO_T}$ac_cv_type_long_long" >&6
21071
21072echo "$as_me:$LINENO: checking size of long long" >&5
21073echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21074if test "${ac_cv_sizeof_long_long+set}" = set; then
21075 echo $ECHO_N "(cached) $ECHO_C" >&6
21076else
21077 if test "$ac_cv_type_long_long" = yes; then
21078 # The cast to unsigned long works around a bug in the HP C Compiler
21079 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21080 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21081 # This bug is HP SR number 8606223364.
21082 if test "$cross_compiling" = yes; then
21083 # Depending upon the size, compute the lo and hi bounds.
21084cat >conftest.$ac_ext <<_ACEOF
21085/* confdefs.h. */
21086_ACEOF
21087cat confdefs.h >>conftest.$ac_ext
21088cat >>conftest.$ac_ext <<_ACEOF
21089/* end confdefs.h. */
21090$ac_includes_default
21091int
21092main ()
21093{
21094static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21095test_array [0] = 0
21096
21097 ;
21098 return 0;
21099}
21100_ACEOF
21101rm -f conftest.$ac_objext
21102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21103 (eval $ac_compile) 2>conftest.er1
a848cd7e 21104 ac_status=$?
ac1cb8d3
VS
21105 grep -v '^ *+' conftest.er1 >conftest.err
21106 rm -f conftest.er1
21107 cat conftest.err >&5
a848cd7e
SC
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); } &&
c9a66001 21110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112 (eval $ac_try) 2>&5
21113 ac_status=$?
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; } &&
21116 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21118 (eval $ac_try) 2>&5
21119 ac_status=$?
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); }; }; then
21122 ac_lo=0 ac_mid=0
21123 while :; do
21124 cat >conftest.$ac_ext <<_ACEOF
21125/* confdefs.h. */
21126_ACEOF
21127cat confdefs.h >>conftest.$ac_ext
21128cat >>conftest.$ac_ext <<_ACEOF
21129/* end confdefs.h. */
21130$ac_includes_default
21131int
21132main ()
21133{
21134static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21135test_array [0] = 0
21136
21137 ;
21138 return 0;
21139}
21140_ACEOF
21141rm -f conftest.$ac_objext
21142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21143 (eval $ac_compile) 2>conftest.er1
a848cd7e 21144 ac_status=$?
ac1cb8d3
VS
21145 grep -v '^ *+' conftest.er1 >conftest.err
21146 rm -f conftest.er1
21147 cat conftest.err >&5
a848cd7e
SC
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); } &&
c9a66001 21150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21152 (eval $ac_try) 2>&5
21153 ac_status=$?
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); }; } &&
21156 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21158 (eval $ac_try) 2>&5
21159 ac_status=$?
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); }; }; then
21162 ac_hi=$ac_mid; break
21163else
21164 echo "$as_me: failed program was:" >&5
21165sed 's/^/| /' conftest.$ac_ext >&5
21166
21167ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21168 if test $ac_lo -le $ac_mid; then
21169 ac_lo= ac_hi=
21170 break
21171 fi
21172 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21173fi
ac1cb8d3 21174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21175 done
21176else
21177 echo "$as_me: failed program was:" >&5
21178sed 's/^/| /' conftest.$ac_ext >&5
21179
21180cat >conftest.$ac_ext <<_ACEOF
21181/* confdefs.h. */
21182_ACEOF
21183cat confdefs.h >>conftest.$ac_ext
21184cat >>conftest.$ac_ext <<_ACEOF
21185/* end confdefs.h. */
21186$ac_includes_default
21187int
21188main ()
21189{
21190static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21191test_array [0] = 0
21192
21193 ;
21194 return 0;
21195}
21196_ACEOF
21197rm -f conftest.$ac_objext
21198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21199 (eval $ac_compile) 2>conftest.er1
a848cd7e 21200 ac_status=$?
ac1cb8d3
VS
21201 grep -v '^ *+' conftest.er1 >conftest.err
21202 rm -f conftest.er1
21203 cat conftest.err >&5
a848cd7e
SC
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); } &&
c9a66001 21206 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21208 (eval $ac_try) 2>&5
21209 ac_status=$?
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); }; } &&
21212 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21214 (eval $ac_try) 2>&5
21215 ac_status=$?
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); }; }; then
21218 ac_hi=-1 ac_mid=-1
21219 while :; do
21220 cat >conftest.$ac_ext <<_ACEOF
21221/* confdefs.h. */
21222_ACEOF
21223cat confdefs.h >>conftest.$ac_ext
21224cat >>conftest.$ac_ext <<_ACEOF
21225/* end confdefs.h. */
21226$ac_includes_default
21227int
21228main ()
21229{
21230static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21231test_array [0] = 0
21232
21233 ;
21234 return 0;
21235}
21236_ACEOF
21237rm -f conftest.$ac_objext
21238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21239 (eval $ac_compile) 2>conftest.er1
a848cd7e 21240 ac_status=$?
ac1cb8d3
VS
21241 grep -v '^ *+' conftest.er1 >conftest.err
21242 rm -f conftest.er1
21243 cat conftest.err >&5
a848cd7e
SC
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); } &&
c9a66001 21246 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21248 (eval $ac_try) 2>&5
21249 ac_status=$?
21250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); }; } &&
21252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21254 (eval $ac_try) 2>&5
21255 ac_status=$?
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); }; }; then
21258 ac_lo=$ac_mid; break
21259else
21260 echo "$as_me: failed program was:" >&5
21261sed 's/^/| /' conftest.$ac_ext >&5
21262
21263ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21264 if test $ac_mid -le $ac_hi; then
21265 ac_lo= ac_hi=
21266 break
21267 fi
21268 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21269fi
ac1cb8d3 21270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21271 done
21272else
21273 echo "$as_me: failed program was:" >&5
21274sed 's/^/| /' conftest.$ac_ext >&5
21275
21276ac_lo= ac_hi=
21277fi
ac1cb8d3 21278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21279fi
ac1cb8d3 21280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21281# Binary search between lo and hi bounds.
21282while test "x$ac_lo" != "x$ac_hi"; do
21283 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21284 cat >conftest.$ac_ext <<_ACEOF
21285/* confdefs.h. */
21286_ACEOF
21287cat confdefs.h >>conftest.$ac_ext
21288cat >>conftest.$ac_ext <<_ACEOF
21289/* end confdefs.h. */
21290$ac_includes_default
21291int
21292main ()
21293{
21294static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21295test_array [0] = 0
21296
21297 ;
21298 return 0;
21299}
21300_ACEOF
21301rm -f conftest.$ac_objext
21302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21303 (eval $ac_compile) 2>conftest.er1
a848cd7e 21304 ac_status=$?
ac1cb8d3
VS
21305 grep -v '^ *+' conftest.er1 >conftest.err
21306 rm -f conftest.er1
21307 cat conftest.err >&5
a848cd7e
SC
21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); } &&
c9a66001 21310 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21312 (eval $ac_try) 2>&5
21313 ac_status=$?
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); }; } &&
21316 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21318 (eval $ac_try) 2>&5
21319 ac_status=$?
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); }; }; then
21322 ac_hi=$ac_mid
21323else
21324 echo "$as_me: failed program was:" >&5
21325sed 's/^/| /' conftest.$ac_ext >&5
21326
21327ac_lo=`expr '(' $ac_mid ')' + 1`
21328fi
ac1cb8d3 21329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21330done
21331case $ac_lo in
21332?*) ac_cv_sizeof_long_long=$ac_lo;;
21333'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21334See \`config.log' for more details." >&5
21335echo "$as_me: error: cannot compute sizeof (long long), 77
21336See \`config.log' for more details." >&2;}
21337 { (exit 1); exit 1; }; } ;;
21338esac
21339else
21340 if test "$cross_compiling" = yes; then
c9a66001
VZ
21341 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21342echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21343 { (exit 1); exit 1; }; }
21344else
21345 cat >conftest.$ac_ext <<_ACEOF
21346/* confdefs.h. */
21347_ACEOF
21348cat confdefs.h >>conftest.$ac_ext
21349cat >>conftest.$ac_ext <<_ACEOF
21350/* end confdefs.h. */
21351$ac_includes_default
21352long longval () { return (long) (sizeof (long long)); }
21353unsigned long ulongval () { return (long) (sizeof (long long)); }
21354#include <stdio.h>
21355#include <stdlib.h>
21356int
21357main ()
21358{
21359
21360 FILE *f = fopen ("conftest.val", "w");
21361 if (! f)
21362 exit (1);
21363 if (((long) (sizeof (long long))) < 0)
21364 {
21365 long i = longval ();
21366 if (i != ((long) (sizeof (long long))))
21367 exit (1);
21368 fprintf (f, "%ld\n", i);
21369 }
21370 else
21371 {
21372 unsigned long i = ulongval ();
21373 if (i != ((long) (sizeof (long long))))
21374 exit (1);
21375 fprintf (f, "%lu\n", i);
21376 }
21377 exit (ferror (f) || fclose (f) != 0);
21378
21379 ;
21380 return 0;
21381}
21382_ACEOF
21383rm -f conftest$ac_exeext
21384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21385 (eval $ac_link) 2>&5
21386 ac_status=$?
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21390 (eval $ac_try) 2>&5
21391 ac_status=$?
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); }; }; then
21394 ac_cv_sizeof_long_long=`cat conftest.val`
21395else
21396 echo "$as_me: program exited with status $ac_status" >&5
21397echo "$as_me: failed program was:" >&5
21398sed 's/^/| /' conftest.$ac_ext >&5
21399
21400( exit $ac_status )
21401{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21402See \`config.log' for more details." >&5
21403echo "$as_me: error: cannot compute sizeof (long long), 77
21404See \`config.log' for more details." >&2;}
21405 { (exit 1); exit 1; }; }
21406fi
ac1cb8d3 21407rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21408fi
21409fi
21410rm -f conftest.val
21411else
21412 ac_cv_sizeof_long_long=0
21413fi
21414fi
21415echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21416echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21417cat >>confdefs.h <<_ACEOF
21418#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21419_ACEOF
21420
21421
21422esac
21423
238ecede
MW
21424echo "$as_me:$LINENO: checking for wchar_t" >&5
21425echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21426if test "${ac_cv_type_wchar_t+set}" = set; then
21427 echo $ECHO_N "(cached) $ECHO_C" >&6
21428else
21429 cat >conftest.$ac_ext <<_ACEOF
21430/* confdefs.h. */
21431_ACEOF
21432cat confdefs.h >>conftest.$ac_ext
21433cat >>conftest.$ac_ext <<_ACEOF
21434/* end confdefs.h. */
21435
83d8eb47
MW
21436 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21437 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21438 # error "fake wchar_t"
21439 #endif
21440 #ifdef HAVE_WCHAR_H
21441 # ifdef __CYGWIN__
21442 # include <stddef.h>
21443 # endif
21444 # include <wchar.h>
21445 #endif
21446 #ifdef HAVE_STDLIB_H
21447 # include <stdlib.h>
21448 #endif
21449 #include <stdio.h>
21450
21451
21452
21453int
21454main ()
21455{
21456if ((wchar_t *) 0)
21457 return 0;
21458if (sizeof (wchar_t))
21459 return 0;
21460 ;
21461 return 0;
21462}
21463_ACEOF
21464rm -f conftest.$ac_objext
21465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21466 (eval $ac_compile) 2>conftest.er1
21467 ac_status=$?
21468 grep -v '^ *+' conftest.er1 >conftest.err
21469 rm -f conftest.er1
21470 cat conftest.err >&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); } &&
c9a66001 21473 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21475 (eval $ac_try) 2>&5
21476 ac_status=$?
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); }; } &&
21479 { ac_try='test -s conftest.$ac_objext'
21480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21481 (eval $ac_try) 2>&5
21482 ac_status=$?
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); }; }; then
21485 ac_cv_type_wchar_t=yes
21486else
21487 echo "$as_me: failed program was:" >&5
21488sed 's/^/| /' conftest.$ac_ext >&5
21489
21490ac_cv_type_wchar_t=no
21491fi
21492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21493fi
21494echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21495echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21496
a848cd7e
SC
21497echo "$as_me:$LINENO: checking size of wchar_t" >&5
21498echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21499if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21500 echo $ECHO_N "(cached) $ECHO_C" >&6
21501else
238ecede
MW
21502 if test "$ac_cv_type_wchar_t" = yes; then
21503 # The cast to unsigned long works around a bug in the HP C Compiler
21504 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21505 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21506 # This bug is HP SR number 8606223364.
21507 if test "$cross_compiling" = yes; then
21508 # Depending upon the size, compute the lo and hi bounds.
21509cat >conftest.$ac_ext <<_ACEOF
21510/* confdefs.h. */
21511_ACEOF
21512cat confdefs.h >>conftest.$ac_ext
21513cat >>conftest.$ac_ext <<_ACEOF
21514/* end confdefs.h. */
21515
83d8eb47
MW
21516 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21517 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21518 # error "fake wchar_t"
21519 #endif
21520 #ifdef HAVE_WCHAR_H
21521 # ifdef __CYGWIN__
21522 # include <stddef.h>
21523 # endif
21524 # include <wchar.h>
21525 #endif
21526 #ifdef HAVE_STDLIB_H
21527 # include <stdlib.h>
21528 #endif
21529 #include <stdio.h>
21530
21531
21532
21533int
21534main ()
21535{
21536static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21537test_array [0] = 0
21538
21539 ;
21540 return 0;
21541}
21542_ACEOF
21543rm -f conftest.$ac_objext
21544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21545 (eval $ac_compile) 2>conftest.er1
21546 ac_status=$?
21547 grep -v '^ *+' conftest.er1 >conftest.err
21548 rm -f conftest.er1
21549 cat conftest.err >&5
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); } &&
c9a66001 21552 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21554 (eval $ac_try) 2>&5
21555 ac_status=$?
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); }; } &&
21558 { ac_try='test -s conftest.$ac_objext'
21559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560 (eval $ac_try) 2>&5
21561 ac_status=$?
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); }; }; then
21564 ac_lo=0 ac_mid=0
21565 while :; do
21566 cat >conftest.$ac_ext <<_ACEOF
21567/* confdefs.h. */
21568_ACEOF
21569cat confdefs.h >>conftest.$ac_ext
21570cat >>conftest.$ac_ext <<_ACEOF
21571/* end confdefs.h. */
21572
83d8eb47
MW
21573 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21574 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21575 # error "fake wchar_t"
21576 #endif
21577 #ifdef HAVE_WCHAR_H
21578 # ifdef __CYGWIN__
21579 # include <stddef.h>
21580 # endif
21581 # include <wchar.h>
21582 #endif
21583 #ifdef HAVE_STDLIB_H
21584 # include <stdlib.h>
21585 #endif
21586 #include <stdio.h>
21587
21588
21589
21590int
21591main ()
21592{
21593static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21594test_array [0] = 0
21595
21596 ;
21597 return 0;
21598}
21599_ACEOF
21600rm -f conftest.$ac_objext
21601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21602 (eval $ac_compile) 2>conftest.er1
21603 ac_status=$?
21604 grep -v '^ *+' conftest.er1 >conftest.err
21605 rm -f conftest.er1
21606 cat conftest.err >&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); } &&
c9a66001 21609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21611 (eval $ac_try) 2>&5
21612 ac_status=$?
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); }; } &&
21615 { ac_try='test -s conftest.$ac_objext'
21616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21617 (eval $ac_try) 2>&5
21618 ac_status=$?
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); }; }; then
21621 ac_hi=$ac_mid; break
21622else
21623 echo "$as_me: failed program was:" >&5
21624sed 's/^/| /' conftest.$ac_ext >&5
21625
21626ac_lo=`expr $ac_mid + 1`
21627 if test $ac_lo -le $ac_mid; then
21628 ac_lo= ac_hi=
21629 break
21630 fi
21631 ac_mid=`expr 2 '*' $ac_mid + 1`
21632fi
21633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21634 done
21635else
21636 echo "$as_me: failed program was:" >&5
21637sed 's/^/| /' conftest.$ac_ext >&5
21638
21639cat >conftest.$ac_ext <<_ACEOF
21640/* confdefs.h. */
21641_ACEOF
21642cat confdefs.h >>conftest.$ac_ext
21643cat >>conftest.$ac_ext <<_ACEOF
21644/* end confdefs.h. */
21645
83d8eb47
MW
21646 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21647 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21648 # error "fake wchar_t"
21649 #endif
21650 #ifdef HAVE_WCHAR_H
21651 # ifdef __CYGWIN__
21652 # include <stddef.h>
21653 # endif
21654 # include <wchar.h>
21655 #endif
21656 #ifdef HAVE_STDLIB_H
21657 # include <stdlib.h>
21658 #endif
21659 #include <stdio.h>
21660
21661
21662
21663int
21664main ()
21665{
21666static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21667test_array [0] = 0
21668
21669 ;
21670 return 0;
21671}
21672_ACEOF
21673rm -f conftest.$ac_objext
21674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21675 (eval $ac_compile) 2>conftest.er1
21676 ac_status=$?
21677 grep -v '^ *+' conftest.er1 >conftest.err
21678 rm -f conftest.er1
21679 cat conftest.err >&5
21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); } &&
c9a66001 21682 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21684 (eval $ac_try) 2>&5
21685 ac_status=$?
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); }; } &&
21688 { ac_try='test -s conftest.$ac_objext'
21689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690 (eval $ac_try) 2>&5
21691 ac_status=$?
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); }; }; then
21694 ac_hi=-1 ac_mid=-1
21695 while :; do
21696 cat >conftest.$ac_ext <<_ACEOF
21697/* confdefs.h. */
21698_ACEOF
21699cat confdefs.h >>conftest.$ac_ext
21700cat >>conftest.$ac_ext <<_ACEOF
21701/* end confdefs.h. */
21702
83d8eb47
MW
21703 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21704 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21705 # error "fake wchar_t"
21706 #endif
21707 #ifdef HAVE_WCHAR_H
21708 # ifdef __CYGWIN__
21709 # include <stddef.h>
21710 # endif
21711 # include <wchar.h>
21712 #endif
21713 #ifdef HAVE_STDLIB_H
21714 # include <stdlib.h>
21715 #endif
21716 #include <stdio.h>
21717
21718
21719
21720int
21721main ()
21722{
21723static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21724test_array [0] = 0
21725
21726 ;
21727 return 0;
21728}
21729_ACEOF
21730rm -f conftest.$ac_objext
21731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21732 (eval $ac_compile) 2>conftest.er1
21733 ac_status=$?
21734 grep -v '^ *+' conftest.er1 >conftest.err
21735 rm -f conftest.er1
21736 cat conftest.err >&5
21737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); } &&
c9a66001 21739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741 (eval $ac_try) 2>&5
21742 ac_status=$?
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); }; } &&
21745 { ac_try='test -s conftest.$ac_objext'
21746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747 (eval $ac_try) 2>&5
21748 ac_status=$?
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; }; then
21751 ac_lo=$ac_mid; break
21752else
21753 echo "$as_me: failed program was:" >&5
21754sed 's/^/| /' conftest.$ac_ext >&5
21755
21756ac_hi=`expr '(' $ac_mid ')' - 1`
21757 if test $ac_mid -le $ac_hi; then
21758 ac_lo= ac_hi=
21759 break
21760 fi
21761 ac_mid=`expr 2 '*' $ac_mid`
21762fi
21763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21764 done
21765else
21766 echo "$as_me: failed program was:" >&5
21767sed 's/^/| /' conftest.$ac_ext >&5
21768
21769ac_lo= ac_hi=
21770fi
21771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21772fi
21773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21774# Binary search between lo and hi bounds.
21775while test "x$ac_lo" != "x$ac_hi"; do
21776 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21777 cat >conftest.$ac_ext <<_ACEOF
21778/* confdefs.h. */
21779_ACEOF
21780cat confdefs.h >>conftest.$ac_ext
21781cat >>conftest.$ac_ext <<_ACEOF
21782/* end confdefs.h. */
21783
83d8eb47
MW
21784 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21785 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21786 # error "fake wchar_t"
21787 #endif
21788 #ifdef HAVE_WCHAR_H
21789 # ifdef __CYGWIN__
21790 # include <stddef.h>
21791 # endif
21792 # include <wchar.h>
21793 #endif
21794 #ifdef HAVE_STDLIB_H
21795 # include <stdlib.h>
21796 #endif
21797 #include <stdio.h>
a848cd7e 21798
a848cd7e 21799
a848cd7e 21800
238ecede
MW
21801int
21802main ()
21803{
21804static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21805test_array [0] = 0
a848cd7e 21806
238ecede
MW
21807 ;
21808 return 0;
21809}
21810_ACEOF
21811rm -f conftest.$ac_objext
21812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21813 (eval $ac_compile) 2>conftest.er1
21814 ac_status=$?
21815 grep -v '^ *+' conftest.er1 >conftest.err
21816 rm -f conftest.er1
21817 cat conftest.err >&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); } &&
c9a66001 21820 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21822 (eval $ac_try) 2>&5
21823 ac_status=$?
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); }; } &&
21826 { ac_try='test -s conftest.$ac_objext'
21827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21828 (eval $ac_try) 2>&5
21829 ac_status=$?
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); }; }; then
21832 ac_hi=$ac_mid
21833else
21834 echo "$as_me: failed program was:" >&5
21835sed 's/^/| /' conftest.$ac_ext >&5
21836
21837ac_lo=`expr '(' $ac_mid ')' + 1`
21838fi
21839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21840done
21841case $ac_lo in
21842?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21843'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21844See \`config.log' for more details." >&5
21845echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21846See \`config.log' for more details." >&2;}
21847 { (exit 1); exit 1; }; } ;;
21848esac
21849else
21850 if test "$cross_compiling" = yes; then
c9a66001
VZ
21851 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21852echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 21853 { (exit 1); exit 1; }; }
a848cd7e
SC
21854else
21855 cat >conftest.$ac_ext <<_ACEOF
21856/* confdefs.h. */
21857_ACEOF
21858cat confdefs.h >>conftest.$ac_ext
21859cat >>conftest.$ac_ext <<_ACEOF
21860/* end confdefs.h. */
21861
83d8eb47
MW
21862 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21863 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21864 # error "fake wchar_t"
21865 #endif
21866 #ifdef HAVE_WCHAR_H
21867 # ifdef __CYGWIN__
21868 # include <stddef.h>
21869 # endif
21870 # include <wchar.h>
21871 #endif
21872 #ifdef HAVE_STDLIB_H
21873 # include <stdlib.h>
21874 #endif
21875 #include <stdio.h>
21876
21877
21878
21879long longval () { return (long) (sizeof (wchar_t)); }
21880unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21881#include <stdio.h>
21882#include <stdlib.h>
21883int
21884main ()
21885{
a848cd7e 21886
238ecede
MW
21887 FILE *f = fopen ("conftest.val", "w");
21888 if (! f)
21889 exit (1);
21890 if (((long) (sizeof (wchar_t))) < 0)
21891 {
21892 long i = longval ();
21893 if (i != ((long) (sizeof (wchar_t))))
21894 exit (1);
21895 fprintf (f, "%ld\n", i);
21896 }
21897 else
21898 {
21899 unsigned long i = ulongval ();
21900 if (i != ((long) (sizeof (wchar_t))))
21901 exit (1);
21902 fprintf (f, "%lu\n", i);
21903 }
21904 exit (ferror (f) || fclose (f) != 0);
21905
21906 ;
21907 return 0;
21908}
a848cd7e
SC
21909_ACEOF
21910rm -f conftest$ac_exeext
21911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21912 (eval $ac_link) 2>&5
21913 ac_status=$?
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21917 (eval $ac_try) 2>&5
21918 ac_status=$?
21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); }; }; then
238ecede 21921 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21922else
21923 echo "$as_me: program exited with status $ac_status" >&5
21924echo "$as_me: failed program was:" >&5
21925sed 's/^/| /' conftest.$ac_ext >&5
21926
21927( exit $ac_status )
238ecede
MW
21928{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21929See \`config.log' for more details." >&5
21930echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21931See \`config.log' for more details." >&2;}
21932 { (exit 1); exit 1; }; }
a848cd7e 21933fi
ac1cb8d3 21934rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21935fi
a848cd7e 21936fi
238ecede
MW
21937rm -f conftest.val
21938else
21939 ac_cv_sizeof_wchar_t=0
21940fi
21941fi
21942echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21943echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21944cat >>confdefs.h <<_ACEOF
238ecede 21945#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21946_ACEOF
21947
21948
47a7e797
MW
21949if test "$ac_cv_sizeof_wchar_t" != "0"; then
21950 wxUSE_WCHAR_T=yes
21951else
21952 wxUSE_WCHAR_T=no
21953fi
238ecede 21954
ba3d13e1
VZ
21955echo "$as_me:$LINENO: checking for va_copy" >&5
21956echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21957if test "${wx_cv_func_va_copy+set}" = set; then
21958 echo $ECHO_N "(cached) $ECHO_C" >&6
21959else
21960
21961 cat >conftest.$ac_ext <<_ACEOF
21962
21963 #include <stdarg.h>
21964 void foo(char *f, ...)
21965 {
21966 va_list ap1, ap2;
21967 va_start(ap1, f);
21968 va_copy(ap2, ap1);
21969 va_end(ap2);
21970 va_end(ap1);
21971 }
5886b072
VZ
21972 int main()
21973 {
b902e639
VZ
21974 foo("hi", 17);
21975 return 0;
5886b072 21976 }
ba3d13e1
VZ
21977_ACEOF
21978rm -f conftest.$ac_objext conftest$ac_exeext
21979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21980 (eval $ac_link) 2>conftest.er1
21981 ac_status=$?
21982 grep -v '^ *+' conftest.er1 >conftest.err
21983 rm -f conftest.er1
21984 cat conftest.err >&5
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); } &&
c9a66001 21987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
21988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21989 (eval $ac_try) 2>&5
21990 ac_status=$?
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); }; } &&
21993 { ac_try='test -s conftest$ac_exeext'
21994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21995 (eval $ac_try) 2>&5
21996 ac_status=$?
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); }; }; then
21999 wx_cv_func_va_copy=yes
22000else
22001 echo "$as_me: failed program was:" >&5
22002sed 's/^/| /' conftest.$ac_ext >&5
22003
22004wx_cv_func_va_copy=no
22005
22006fi
22007rm -f conftest.err conftest.$ac_objext \
22008 conftest$ac_exeext conftest.$ac_ext
22009
22010
22011fi
22012echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22013echo "${ECHO_T}$wx_cv_func_va_copy" >&6
22014
22015if test $wx_cv_func_va_copy = "yes"; then
22016 cat >>confdefs.h <<\_ACEOF
22017#define HAVE_VA_COPY 1
22018_ACEOF
22019
22020else
22021 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22022echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
22023if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22024 echo $ECHO_N "(cached) $ECHO_C" >&6
22025else
22026
22027 if test "$cross_compiling" = yes; then
22028 wx_cv_type_va_list_lvalue=yes
22029
22030else
22031 cat >conftest.$ac_ext <<_ACEOF
22032
22033 #include <stdarg.h>
22034 int foo(char *f, ...)
22035 {
22036 va_list ap1, ap2;
22037 va_start(ap1, f);
22038 ap2 = ap1;
22039 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22040 return 1;
22041 va_end(ap2);
22042 va_end(ap1);
22043 return 0;
22044 }
22045 int main()
22046 {
22047 return foo("hi", 17);
22048 }
22049_ACEOF
22050rm -f conftest$ac_exeext
22051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22052 (eval $ac_link) 2>&5
22053 ac_status=$?
22054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22057 (eval $ac_try) 2>&5
22058 ac_status=$?
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); }; }; then
22061 wx_cv_type_va_list_lvalue=yes
22062else
22063 echo "$as_me: program exited with status $ac_status" >&5
22064echo "$as_me: failed program was:" >&5
22065sed 's/^/| /' conftest.$ac_ext >&5
22066
22067( exit $ac_status )
22068wx_cv_type_va_list_lvalue=no
22069fi
22070rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22071fi
22072
22073
22074fi
22075echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22076echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22077
22078 if test $wx_cv_type_va_list_lvalue != "yes"; then
22079 cat >>confdefs.h <<\_ACEOF
22080#define VA_LIST_IS_ARRAY 1
22081_ACEOF
22082
22083 fi
22084fi
22085
a848cd7e
SC
22086# Check whether --enable-largefile or --disable-largefile was given.
22087if test "${enable_largefile+set}" = set; then
22088 enableval="$enable_largefile"
22089
22090fi;
22091if test "$enable_largefile" != no; then
22092 wx_largefile=no
22093
22094 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22095echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22096if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22097 echo $ECHO_N "(cached) $ECHO_C" >&6
22098else
22099
22100 cat >conftest.$ac_ext <<_ACEOF
22101/* confdefs.h. */
22102_ACEOF
22103cat confdefs.h >>conftest.$ac_ext
22104cat >>conftest.$ac_ext <<_ACEOF
22105/* end confdefs.h. */
22106#define _FILE_OFFSET_BITS 64
22107 #include <sys/types.h>
22108int
22109main ()
22110{
22111typedef struct {
22112 unsigned int field: sizeof(off_t) == 8;
22113} wxlf;
22114
22115 ;
22116 return 0;
22117}
22118_ACEOF
22119rm -f conftest.$ac_objext
22120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22121 (eval $ac_compile) 2>conftest.er1
a848cd7e 22122 ac_status=$?
ac1cb8d3
VS
22123 grep -v '^ *+' conftest.er1 >conftest.err
22124 rm -f conftest.er1
22125 cat conftest.err >&5
a848cd7e
SC
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); } &&
c9a66001 22128 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22130 (eval $ac_try) 2>&5
22131 ac_status=$?
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); }; } &&
22134 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22136 (eval $ac_try) 2>&5
22137 ac_status=$?
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); }; }; then
22140 ac_cv_sys_file_offset_bits=64
22141else
22142 echo "$as_me: failed program was:" >&5
22143sed 's/^/| /' conftest.$ac_ext >&5
22144
22145ac_cv_sys_file_offset_bits=no
22146fi
ac1cb8d3 22147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22148
22149
22150fi
22151echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22152echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22153
22154 if test "$ac_cv_sys_file_offset_bits" != no; then
22155 wx_largefile=yes
22156 cat >>confdefs.h <<_ACEOF
22157#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22158_ACEOF
22159
22160 fi
22161
22162 if test "x$wx_largefile" != "xyes"; then
22163
22164 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22165echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22166if test "${ac_cv_sys_large_files+set}" = set; then
22167 echo $ECHO_N "(cached) $ECHO_C" >&6
22168else
22169
22170 cat >conftest.$ac_ext <<_ACEOF
22171/* confdefs.h. */
22172_ACEOF
22173cat confdefs.h >>conftest.$ac_ext
22174cat >>conftest.$ac_ext <<_ACEOF
22175/* end confdefs.h. */
22176#define _LARGE_FILES 1
22177 #include <sys/types.h>
22178int
22179main ()
22180{
22181typedef struct {
22182 unsigned int field: sizeof(off_t) == 8;
22183} wxlf;
22184
22185 ;
22186 return 0;
22187}
22188_ACEOF
22189rm -f conftest.$ac_objext
22190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22191 (eval $ac_compile) 2>conftest.er1
a848cd7e 22192 ac_status=$?
ac1cb8d3
VS
22193 grep -v '^ *+' conftest.er1 >conftest.err
22194 rm -f conftest.er1
22195 cat conftest.err >&5
a848cd7e
SC
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); } &&
c9a66001 22198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22200 (eval $ac_try) 2>&5
22201 ac_status=$?
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); }; } &&
22204 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22206 (eval $ac_try) 2>&5
22207 ac_status=$?
22208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22209 (exit $ac_status); }; }; then
22210 ac_cv_sys_large_files=1
22211else
22212 echo "$as_me: failed program was:" >&5
22213sed 's/^/| /' conftest.$ac_ext >&5
22214
22215ac_cv_sys_large_files=no
22216fi
ac1cb8d3 22217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22218
22219
22220fi
22221echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22222echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22223
22224 if test "$ac_cv_sys_large_files" != no; then
22225 wx_largefile=yes
22226 cat >>confdefs.h <<_ACEOF
22227#define _LARGE_FILES $ac_cv_sys_large_files
22228_ACEOF
22229
22230 fi
22231
22232 fi
22233
22234 echo "$as_me:$LINENO: checking if large file support is available" >&5
22235echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22236 if test "x$wx_largefile" = "xyes"; then
22237 cat >>confdefs.h <<\_ACEOF
22238#define HAVE_LARGEFILE_SUPPORT 1
22239_ACEOF
22240
22241 fi
22242 echo "$as_me:$LINENO: result: $wx_largefile" >&5
22243echo "${ECHO_T}$wx_largefile" >&6
22244fi
22245
5b674b9d
DE
22246
22247if test "x$wx_largefile" = "xyes"; then
22248 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 22249 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
22250
22251 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22252 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22253echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22254if test "${wx_cv_STDC_EXT_required+set}" = set; then
22255 echo $ECHO_N "(cached) $ECHO_C" >&6
22256else
22257
00421666
MW
22258 cat >conftest.$ac_ext <<_ACEOF
22259/* confdefs.h. */
22260_ACEOF
22261cat confdefs.h >>conftest.$ac_ext
22262cat >>conftest.$ac_ext <<_ACEOF
22263/* end confdefs.h. */
22264
22265int
22266main ()
22267{
22268
22269 #ifndef __STDC_EXT__
22270 choke me
22271 #endif
22272
22273 ;
22274 return 0;
22275}
22276_ACEOF
22277rm -f conftest.$ac_objext
22278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22279 (eval $ac_compile) 2>conftest.er1
22280 ac_status=$?
22281 grep -v '^ *+' conftest.er1 >conftest.err
22282 rm -f conftest.er1
22283 cat conftest.err >&5
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } &&
c9a66001 22286 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
22287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22288 (eval $ac_try) 2>&5
22289 ac_status=$?
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); }; } &&
22292 { ac_try='test -s conftest.$ac_objext'
22293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22294 (eval $ac_try) 2>&5
22295 ac_status=$?
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); }; }; then
22298 wx_cv_STDC_EXT_required=no
22299else
22300 echo "$as_me: failed program was:" >&5
22301sed 's/^/| /' conftest.$ac_ext >&5
22302
22303wx_cv_STDC_EXT_required=yes
22304
22305fi
22306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
22307
22308
22309fi
22310echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22311echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22312 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22313 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22314 fi
22315 fi
5b674b9d 22316 else
5ff751d6 22317 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
22318 fi
22319 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
22320echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22321if test "${ac_cv_sys_largefile_source+set}" = set; then
22322 echo $ECHO_N "(cached) $ECHO_C" >&6
22323else
22324 while :; do
22325 ac_cv_sys_largefile_source=no
22326 cat >conftest.$ac_ext <<_ACEOF
22327/* confdefs.h. */
22328_ACEOF
22329cat confdefs.h >>conftest.$ac_ext
22330cat >>conftest.$ac_ext <<_ACEOF
22331/* end confdefs.h. */
22332#include <stdio.h>
22333int
22334main ()
22335{
22336return !fseeko;
22337 ;
22338 return 0;
22339}
22340_ACEOF
22341rm -f conftest.$ac_objext
22342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22343 (eval $ac_compile) 2>conftest.er1
22344 ac_status=$?
22345 grep -v '^ *+' conftest.er1 >conftest.err
22346 rm -f conftest.er1
22347 cat conftest.err >&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } &&
c9a66001 22350 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22352 (eval $ac_try) 2>&5
22353 ac_status=$?
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); }; } &&
22356 { ac_try='test -s conftest.$ac_objext'
22357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22358 (eval $ac_try) 2>&5
22359 ac_status=$?
22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); }; }; then
22362 break
22363else
22364 echo "$as_me: failed program was:" >&5
22365sed 's/^/| /' conftest.$ac_ext >&5
22366
22367fi
22368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22369 cat >conftest.$ac_ext <<_ACEOF
22370/* confdefs.h. */
22371_ACEOF
22372cat confdefs.h >>conftest.$ac_ext
22373cat >>conftest.$ac_ext <<_ACEOF
22374/* end confdefs.h. */
22375#define _LARGEFILE_SOURCE 1
22376#include <stdio.h>
22377int
22378main ()
22379{
22380return !fseeko;
22381 ;
22382 return 0;
22383}
22384_ACEOF
22385rm -f conftest.$ac_objext
22386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22387 (eval $ac_compile) 2>conftest.er1
22388 ac_status=$?
22389 grep -v '^ *+' conftest.er1 >conftest.err
22390 rm -f conftest.er1
22391 cat conftest.err >&5
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); } &&
c9a66001 22394 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22396 (eval $ac_try) 2>&5
22397 ac_status=$?
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); }; } &&
22400 { ac_try='test -s conftest.$ac_objext'
22401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22402 (eval $ac_try) 2>&5
22403 ac_status=$?
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); }; }; then
22406 ac_cv_sys_largefile_source=1; break
22407else
22408 echo "$as_me: failed program was:" >&5
22409sed 's/^/| /' conftest.$ac_ext >&5
22410
22411fi
22412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22413 break
22414done
22415fi
22416echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22417echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22418if test "$ac_cv_sys_largefile_source" != no; then
22419
22420cat >>confdefs.h <<_ACEOF
22421#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22422_ACEOF
22423
22424fi
22425rm -f conftest*
22426
22427# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22428# in glibc 2.1.3, but that breaks too many other things.
22429# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22430echo "$as_me:$LINENO: checking for fseeko" >&5
22431echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22432if test "${ac_cv_func_fseeko+set}" = set; then
22433 echo $ECHO_N "(cached) $ECHO_C" >&6
22434else
22435 cat >conftest.$ac_ext <<_ACEOF
22436/* confdefs.h. */
22437_ACEOF
22438cat confdefs.h >>conftest.$ac_ext
22439cat >>conftest.$ac_ext <<_ACEOF
22440/* end confdefs.h. */
22441#include <stdio.h>
22442int
22443main ()
22444{
22445return fseeko && fseeko (stdin, 0, 0);
22446 ;
22447 return 0;
22448}
22449_ACEOF
22450rm -f conftest.$ac_objext conftest$ac_exeext
22451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22452 (eval $ac_link) 2>conftest.er1
22453 ac_status=$?
22454 grep -v '^ *+' conftest.er1 >conftest.err
22455 rm -f conftest.er1
22456 cat conftest.err >&5
22457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458 (exit $ac_status); } &&
c9a66001 22459 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22461 (eval $ac_try) 2>&5
22462 ac_status=$?
22463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464 (exit $ac_status); }; } &&
22465 { ac_try='test -s conftest$ac_exeext'
22466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22467 (eval $ac_try) 2>&5
22468 ac_status=$?
22469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); }; }; then
22471 ac_cv_func_fseeko=yes
22472else
22473 echo "$as_me: failed program was:" >&5
22474sed 's/^/| /' conftest.$ac_ext >&5
22475
22476ac_cv_func_fseeko=no
22477fi
22478rm -f conftest.err conftest.$ac_objext \
22479 conftest$ac_exeext conftest.$ac_ext
22480fi
22481echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22482echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22483if test $ac_cv_func_fseeko = yes; then
22484
22485cat >>confdefs.h <<\_ACEOF
22486#define HAVE_FSEEKO 1
22487_ACEOF
22488
22489fi
22490
5b674b9d 22491 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22492 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22493 fi
a848cd7e
SC
22494fi
22495
22496echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22497echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22498if test "${ac_cv_c_bigendian+set}" = set; then
22499 echo $ECHO_N "(cached) $ECHO_C" >&6
22500else
22501 ac_cv_c_bigendian=unknown
22502# See if sys/param.h defines the BYTE_ORDER macro.
22503cat >conftest.$ac_ext <<_ACEOF
22504/* confdefs.h. */
22505_ACEOF
22506cat confdefs.h >>conftest.$ac_ext
22507cat >>conftest.$ac_ext <<_ACEOF
22508/* end confdefs.h. */
22509#include <sys/types.h>
22510#include <sys/param.h>
22511int
22512main ()
22513{
22514
22515#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22516 bogus endian macros
22517#endif
22518 ;
22519 return 0;
22520}
22521_ACEOF
22522rm -f conftest.$ac_objext
22523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22524 (eval $ac_compile) 2>conftest.er1
a848cd7e 22525 ac_status=$?
ac1cb8d3
VS
22526 grep -v '^ *+' conftest.er1 >conftest.err
22527 rm -f conftest.er1
22528 cat conftest.err >&5
a848cd7e
SC
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); } &&
c9a66001 22531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22533 (eval $ac_try) 2>&5
22534 ac_status=$?
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); }; } &&
22537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22539 (eval $ac_try) 2>&5
22540 ac_status=$?
22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); }; }; then
22543 # It does; now see whether it defined to BIG_ENDIAN or not.
22544cat >conftest.$ac_ext <<_ACEOF
22545/* confdefs.h. */
22546_ACEOF
22547cat confdefs.h >>conftest.$ac_ext
22548cat >>conftest.$ac_ext <<_ACEOF
22549/* end confdefs.h. */
22550#include <sys/types.h>
22551#include <sys/param.h>
22552int
22553main ()
22554{
22555
22556#if BYTE_ORDER != BIG_ENDIAN
22557 not big endian
22558#endif
22559 ;
22560 return 0;
22561}
22562_ACEOF
22563rm -f conftest.$ac_objext
22564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22565 (eval $ac_compile) 2>conftest.er1
a848cd7e 22566 ac_status=$?
ac1cb8d3
VS
22567 grep -v '^ *+' conftest.er1 >conftest.err
22568 rm -f conftest.er1
22569 cat conftest.err >&5
a848cd7e
SC
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); } &&
c9a66001 22572 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574 (eval $ac_try) 2>&5
22575 ac_status=$?
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); }; } &&
22578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22580 (eval $ac_try) 2>&5
22581 ac_status=$?
22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); }; }; then
22584 ac_cv_c_bigendian=yes
22585else
22586 echo "$as_me: failed program was:" >&5
22587sed 's/^/| /' conftest.$ac_ext >&5
22588
22589ac_cv_c_bigendian=no
22590fi
ac1cb8d3 22591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22592else
22593 echo "$as_me: failed program was:" >&5
22594sed 's/^/| /' conftest.$ac_ext >&5
22595
22596fi
ac1cb8d3 22597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22598if test $ac_cv_c_bigendian = unknown; then
22599if test "$cross_compiling" = yes; then
22600 ac_cv_c_bigendian=unknown
22601else
22602 cat >conftest.$ac_ext <<_ACEOF
22603/* confdefs.h. */
22604_ACEOF
22605cat confdefs.h >>conftest.$ac_ext
22606cat >>conftest.$ac_ext <<_ACEOF
22607/* end confdefs.h. */
22608main () {
22609 /* Are we little or big endian? From Harbison&Steele. */
22610 union
22611 {
22612 long l;
22613 char c[sizeof (long)];
22614 } u;
22615 u.l = 1;
22616 exit (u.c[sizeof (long) - 1] == 1);
22617}
22618_ACEOF
22619rm -f conftest$ac_exeext
22620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22621 (eval $ac_link) 2>&5
22622 ac_status=$?
22623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22626 (eval $ac_try) 2>&5
22627 ac_status=$?
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); }; }; then
22630 ac_cv_c_bigendian=no
22631else
22632 echo "$as_me: program exited with status $ac_status" >&5
22633echo "$as_me: failed program was:" >&5
22634sed 's/^/| /' conftest.$ac_ext >&5
22635
22636( exit $ac_status )
22637ac_cv_c_bigendian=yes
22638fi
ac1cb8d3 22639rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22640fi
22641fi
22642fi
22643echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22644echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22645if test $ac_cv_c_bigendian = unknown; then
22646 { 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
22647echo "$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;}
22648fi
22649if test $ac_cv_c_bigendian = yes; then
22650 cat >>confdefs.h <<\_ACEOF
22651#define WORDS_BIGENDIAN 1
22652_ACEOF
22653
22654fi
22655
22656
a848cd7e
SC
22657
22658
22659
22660 ac_ext=cc
22661ac_cpp='$CXXCPP $CPPFLAGS'
22662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22665
22666
22667
22668for ac_header in iostream
22669do
22670as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22671if eval "test \"\${$as_ac_Header+set}\" = set"; then
22672 echo "$as_me:$LINENO: checking for $ac_header" >&5
22673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22674if eval "test \"\${$as_ac_Header+set}\" = set"; then
22675 echo $ECHO_N "(cached) $ECHO_C" >&6
22676fi
22677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22678echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22679else
22680 # Is the header compilable?
22681echo "$as_me:$LINENO: checking $ac_header usability" >&5
22682echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22683cat >conftest.$ac_ext <<_ACEOF
22684/* confdefs.h. */
22685_ACEOF
22686cat confdefs.h >>conftest.$ac_ext
22687cat >>conftest.$ac_ext <<_ACEOF
22688/* end confdefs.h. */
22689$ac_includes_default
22690#include <$ac_header>
22691_ACEOF
22692rm -f conftest.$ac_objext
22693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22694 (eval $ac_compile) 2>conftest.er1
a848cd7e 22695 ac_status=$?
ac1cb8d3
VS
22696 grep -v '^ *+' conftest.er1 >conftest.err
22697 rm -f conftest.er1
22698 cat conftest.err >&5
a848cd7e
SC
22699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22700 (exit $ac_status); } &&
c9a66001 22701 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22703 (eval $ac_try) 2>&5
22704 ac_status=$?
22705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706 (exit $ac_status); }; } &&
22707 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22709 (eval $ac_try) 2>&5
22710 ac_status=$?
22711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712 (exit $ac_status); }; }; then
22713 ac_header_compiler=yes
22714else
22715 echo "$as_me: failed program was:" >&5
22716sed 's/^/| /' conftest.$ac_ext >&5
22717
22718ac_header_compiler=no
22719fi
ac1cb8d3 22720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22721echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22722echo "${ECHO_T}$ac_header_compiler" >&6
22723
22724# Is the header present?
22725echo "$as_me:$LINENO: checking $ac_header presence" >&5
22726echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22727cat >conftest.$ac_ext <<_ACEOF
22728/* confdefs.h. */
22729_ACEOF
22730cat confdefs.h >>conftest.$ac_ext
22731cat >>conftest.$ac_ext <<_ACEOF
22732/* end confdefs.h. */
22733#include <$ac_header>
22734_ACEOF
22735if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22737 ac_status=$?
22738 grep -v '^ *+' conftest.er1 >conftest.err
22739 rm -f conftest.er1
22740 cat conftest.err >&5
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); } >/dev/null; then
22743 if test -s conftest.err; then
22744 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22745 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22746 else
22747 ac_cpp_err=
22748 fi
22749else
22750 ac_cpp_err=yes
22751fi
22752if test -z "$ac_cpp_err"; then
22753 ac_header_preproc=yes
22754else
22755 echo "$as_me: failed program was:" >&5
22756sed 's/^/| /' conftest.$ac_ext >&5
22757
22758 ac_header_preproc=no
22759fi
22760rm -f conftest.err conftest.$ac_ext
22761echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22762echo "${ECHO_T}$ac_header_preproc" >&6
22763
22764# So? What about this header?
ac1cb8d3
VS
22765case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22766 yes:no: )
a848cd7e
SC
22767 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22768echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22770echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22771 ac_header_preproc=yes
a848cd7e 22772 ;;
ac1cb8d3 22773 no:yes:* )
a848cd7e
SC
22774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22775echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22777echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22778 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22779echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22780 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22781echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22783echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22784 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22785echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22786 (
22787 cat <<\_ASBOX
ac1cb8d3
VS
22788## ----------------------------------------- ##
22789## Report this to wx-dev@lists.wxwidgets.org ##
22790## ----------------------------------------- ##
a848cd7e
SC
22791_ASBOX
22792 ) |
22793 sed "s/^/$as_me: WARNING: /" >&2
22794 ;;
22795esac
22796echo "$as_me:$LINENO: checking for $ac_header" >&5
22797echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22798if eval "test \"\${$as_ac_Header+set}\" = set"; then
22799 echo $ECHO_N "(cached) $ECHO_C" >&6
22800else
ac1cb8d3 22801 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22802fi
22803echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22804echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22805
22806fi
22807if test `eval echo '${'$as_ac_Header'}'` = yes; then
22808 cat >>confdefs.h <<_ACEOF
22809#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22810_ACEOF
22811
22812fi
22813
22814done
22815
22816
22817 if test "$ac_cv_header_iostream" = "yes" ; then
22818 :
22819 else
22820 cat >>confdefs.h <<\_ACEOF
22821#define wxUSE_IOSTREAMH 1
22822_ACEOF
22823
22824 fi
22825
5d7b7554
VZ
22826 ac_ext=cc
22827ac_cpp='$CXXCPP $CPPFLAGS'
22828ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22829ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22830ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22831
22832
22833
22834
22835 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22836echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22837if test "${wx_cv_cpp_bool+set}" = set; then
22838 echo $ECHO_N "(cached) $ECHO_C" >&6
22839else
22840
22841
22842
22843 ac_ext=cc
22844ac_cpp='$CXXCPP $CPPFLAGS'
22845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22848
22849
22850 cat >conftest.$ac_ext <<_ACEOF
22851/* confdefs.h. */
22852_ACEOF
22853cat confdefs.h >>conftest.$ac_ext
22854cat >>conftest.$ac_ext <<_ACEOF
22855/* end confdefs.h. */
22856
22857
22858int
22859main ()
22860{
22861
22862 bool b = true;
22863
22864 return 0;
22865
22866 ;
22867 return 0;
22868}
22869_ACEOF
22870rm -f conftest.$ac_objext
22871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22872 (eval $ac_compile) 2>conftest.er1
a848cd7e 22873 ac_status=$?
ac1cb8d3
VS
22874 grep -v '^ *+' conftest.er1 >conftest.err
22875 rm -f conftest.er1
22876 cat conftest.err >&5
a848cd7e
SC
22877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); } &&
c9a66001 22879 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22881 (eval $ac_try) 2>&5
22882 ac_status=$?
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); }; } &&
22885 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22887 (eval $ac_try) 2>&5
22888 ac_status=$?
22889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); }; }; then
22891
22892 wx_cv_cpp_bool=yes
22893
22894else
22895 echo "$as_me: failed program was:" >&5
22896sed 's/^/| /' conftest.$ac_ext >&5
22897
22898
22899 wx_cv_cpp_bool=no
22900
22901
22902fi
ac1cb8d3 22903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22904
5d7b7554
VZ
22905 ac_ext=cc
22906ac_cpp='$CXXCPP $CPPFLAGS'
22907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22910
22911
22912fi
22913echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22914echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22915
22916 if test "$wx_cv_cpp_bool" = "yes"; then
22917 cat >>confdefs.h <<\_ACEOF
22918#define HAVE_BOOL 1
22919_ACEOF
22920
22921 fi
22922
22923
22924
22925 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22926echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22927if test "${wx_cv_explicit+set}" = set; then
22928 echo $ECHO_N "(cached) $ECHO_C" >&6
22929else
22930
22931
22932
22933 ac_ext=cc
22934ac_cpp='$CXXCPP $CPPFLAGS'
22935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22938
22939
22940 cat >conftest.$ac_ext <<_ACEOF
22941/* confdefs.h. */
22942_ACEOF
22943cat confdefs.h >>conftest.$ac_ext
22944cat >>conftest.$ac_ext <<_ACEOF
22945/* end confdefs.h. */
22946
22947 class Foo { public: explicit Foo(int) {} };
22948
22949int
22950main ()
22951{
22952
22953 return 0;
22954
22955 ;
22956 return 0;
22957}
22958_ACEOF
22959rm -f conftest.$ac_objext
22960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22961 (eval $ac_compile) 2>conftest.er1
a848cd7e 22962 ac_status=$?
ac1cb8d3
VS
22963 grep -v '^ *+' conftest.er1 >conftest.err
22964 rm -f conftest.er1
22965 cat conftest.err >&5
a848cd7e
SC
22966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967 (exit $ac_status); } &&
c9a66001 22968 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22970 (eval $ac_try) 2>&5
22971 ac_status=$?
22972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); }; } &&
22974 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22976 (eval $ac_try) 2>&5
22977 ac_status=$?
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); }; }; then
22980
22981 cat >conftest.$ac_ext <<_ACEOF
22982/* confdefs.h. */
22983_ACEOF
22984cat confdefs.h >>conftest.$ac_ext
22985cat >>conftest.$ac_ext <<_ACEOF
22986/* end confdefs.h. */
22987
22988 class Foo { public: explicit Foo(int) {} };
22989 static void TakeFoo(const Foo& foo) { }
22990
22991int
22992main ()
22993{
22994
22995 TakeFoo(17);
22996 return 0;
22997
22998 ;
22999 return 0;
23000}
23001_ACEOF
23002rm -f conftest.$ac_objext
23003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23004 (eval $ac_compile) 2>conftest.er1
a848cd7e 23005 ac_status=$?
ac1cb8d3
VS
23006 grep -v '^ *+' conftest.er1 >conftest.err
23007 rm -f conftest.er1
23008 cat conftest.err >&5
a848cd7e
SC
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); } &&
c9a66001 23011 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23013 (eval $ac_try) 2>&5
23014 ac_status=$?
23015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016 (exit $ac_status); }; } &&
23017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23019 (eval $ac_try) 2>&5
23020 ac_status=$?
23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022 (exit $ac_status); }; }; then
23023 wx_cv_explicit=no
23024else
23025 echo "$as_me: failed program was:" >&5
23026sed 's/^/| /' conftest.$ac_ext >&5
23027
23028wx_cv_explicit=yes
23029
23030fi
ac1cb8d3 23031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23032
23033else
23034 echo "$as_me: failed program was:" >&5
23035sed 's/^/| /' conftest.$ac_ext >&5
23036
23037wx_cv_explicit=no
23038
23039fi
ac1cb8d3 23040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23041
5d7b7554
VZ
23042 ac_ext=cc
23043ac_cpp='$CXXCPP $CPPFLAGS'
23044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23047
23048
23049fi
23050echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23051echo "${ECHO_T}$wx_cv_explicit" >&6
23052
23053 if test "$wx_cv_explicit" = "yes"; then
23054 cat >>confdefs.h <<\_ACEOF
23055#define HAVE_EXPLICIT 1
23056_ACEOF
23057
23058 fi
23059
23060
23061echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23062echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23063if test "${ac_cv_cxx_const_cast+set}" = set; then
23064 echo $ECHO_N "(cached) $ECHO_C" >&6
23065else
23066
23067
23068 ac_ext=cc
23069ac_cpp='$CXXCPP $CPPFLAGS'
23070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23073
23074 cat >conftest.$ac_ext <<_ACEOF
23075/* confdefs.h. */
23076_ACEOF
23077cat confdefs.h >>conftest.$ac_ext
23078cat >>conftest.$ac_ext <<_ACEOF
23079/* end confdefs.h. */
23080
23081int
23082main ()
23083{
23084int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23085 ;
23086 return 0;
23087}
23088_ACEOF
23089rm -f conftest.$ac_objext
23090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23091 (eval $ac_compile) 2>conftest.er1
a848cd7e 23092 ac_status=$?
ac1cb8d3
VS
23093 grep -v '^ *+' conftest.er1 >conftest.err
23094 rm -f conftest.er1
23095 cat conftest.err >&5
a848cd7e
SC
23096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097 (exit $ac_status); } &&
c9a66001 23098 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23100 (eval $ac_try) 2>&5
23101 ac_status=$?
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); }; } &&
23104 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23106 (eval $ac_try) 2>&5
23107 ac_status=$?
23108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); }; }; then
23110 ac_cv_cxx_const_cast=yes
23111else
23112 echo "$as_me: failed program was:" >&5
23113sed 's/^/| /' conftest.$ac_ext >&5
23114
23115ac_cv_cxx_const_cast=no
23116fi
ac1cb8d3 23117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23118 ac_ext=cc
23119ac_cpp='$CXXCPP $CPPFLAGS'
23120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23123
23124
23125fi
23126echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23127echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23128if test "$ac_cv_cxx_const_cast" = yes; then
23129
23130cat >>confdefs.h <<\_ACEOF
23131#define HAVE_CONST_CAST
23132_ACEOF
23133
23134fi
23135
7714864e
RL
23136echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23137echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23138if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23139 echo $ECHO_N "(cached) $ECHO_C" >&6
23140else
23141
23142
23143 ac_ext=cc
23144ac_cpp='$CXXCPP $CPPFLAGS'
23145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23146ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23147ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23148
23149 cat >conftest.$ac_ext <<_ACEOF
23150/* confdefs.h. */
23151_ACEOF
23152cat confdefs.h >>conftest.$ac_ext
23153cat >>conftest.$ac_ext <<_ACEOF
23154/* end confdefs.h. */
23155#include <typeinfo>
23156class Base { public : Base () {} virtual void f () = 0;};
23157class Derived : public Base { public : Derived () {} virtual void f () {} };
23158class Unrelated { public : Unrelated () {} };
23159int g (Unrelated&) { return 0; }
23160int
23161main ()
23162{
23163
23164Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23165 ;
23166 return 0;
23167}
23168_ACEOF
23169rm -f conftest.$ac_objext
23170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23171 (eval $ac_compile) 2>conftest.er1
23172 ac_status=$?
23173 grep -v '^ *+' conftest.er1 >conftest.err
23174 rm -f conftest.er1
23175 cat conftest.err >&5
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); } &&
c9a66001 23178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
23179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180 (eval $ac_try) 2>&5
23181 ac_status=$?
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); }; } &&
23184 { ac_try='test -s conftest.$ac_objext'
23185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23186 (eval $ac_try) 2>&5
23187 ac_status=$?
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); }; }; then
23190 ac_cv_cxx_reinterpret_cast=yes
23191else
23192 echo "$as_me: failed program was:" >&5
23193sed 's/^/| /' conftest.$ac_ext >&5
23194
23195ac_cv_cxx_reinterpret_cast=no
23196fi
23197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23198 ac_ext=cc
23199ac_cpp='$CXXCPP $CPPFLAGS'
23200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
23203
23204
23205fi
23206echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23207echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23208if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23209
23210cat >>confdefs.h <<\_ACEOF
23211#define HAVE_REINTERPRET_CAST
23212_ACEOF
23213
23214fi
23215
a848cd7e
SC
23216echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23217echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23218if test "${ac_cv_cxx_static_cast+set}" = set; then
23219 echo $ECHO_N "(cached) $ECHO_C" >&6
23220else
23221
23222
23223 ac_ext=cc
23224ac_cpp='$CXXCPP $CPPFLAGS'
23225ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23226ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23228
23229 cat >conftest.$ac_ext <<_ACEOF
23230/* confdefs.h. */
23231_ACEOF
23232cat confdefs.h >>conftest.$ac_ext
23233cat >>conftest.$ac_ext <<_ACEOF
23234/* end confdefs.h. */
23235#include <typeinfo>
23236class Base { public : Base () {} virtual void f () = 0; };
23237class Derived : public Base { public : Derived () {} virtual void f () {} };
23238int g (Derived&) { return 0; }
23239int
23240main ()
23241{
23242
23243Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23244 ;
23245 return 0;
23246}
23247_ACEOF
23248rm -f conftest.$ac_objext
23249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23250 (eval $ac_compile) 2>conftest.er1
a848cd7e 23251 ac_status=$?
ac1cb8d3
VS
23252 grep -v '^ *+' conftest.er1 >conftest.err
23253 rm -f conftest.er1
23254 cat conftest.err >&5
a848cd7e
SC
23255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256 (exit $ac_status); } &&
c9a66001 23257 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23259 (eval $ac_try) 2>&5
23260 ac_status=$?
23261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262 (exit $ac_status); }; } &&
23263 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23265 (eval $ac_try) 2>&5
23266 ac_status=$?
23267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); }; }; then
23269 ac_cv_cxx_static_cast=yes
23270else
23271 echo "$as_me: failed program was:" >&5
23272sed 's/^/| /' conftest.$ac_ext >&5
23273
23274ac_cv_cxx_static_cast=no
23275fi
ac1cb8d3 23276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23277 ac_ext=cc
23278ac_cpp='$CXXCPP $CPPFLAGS'
23279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23282
23283
23284fi
23285echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23286echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23287if test "$ac_cv_cxx_static_cast" = yes; then
23288
23289cat >>confdefs.h <<\_ACEOF
23290#define HAVE_STATIC_CAST
23291_ACEOF
23292
23293fi
23294
23295
3c28b7cb 23296if test "x$SUNCXX" = xyes; then
c92ad099 23297 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23298fi
23299
9122d155 23300if test "x$SUNCC" = xyes; then
c92ad099 23301 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23302fi
23303
0ad5d837 23304if test "x$SGICC" = "xyes"; then
c92ad099 23305 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23306fi
23307if test "x$SGICXX" = "xyes"; then
c92ad099 23308 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23309fi
23310
2eef8513 23311if test "x$HPCC" = "xyes"; then
c92ad099 23312 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23313fi
23314if test "x$HPCXX" = "xyes"; then
c92ad099 23315 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23316fi
23317
23318if test "x$COMPAQCXX" = "xyes"; then
23319 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23320fi
23321
f56c22b4 23322if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23323 if test "$wxUSE_UNICODE" = "yes"; then
23324 std_string="std::wstring"
23325 char_type="wchar_t"
23326 else
23327 std_string="std::string"
23328 char_type="char"
23329 fi
23330
23331 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23332echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
23333 cat >conftest.$ac_ext <<_ACEOF
23334/* confdefs.h. */
23335_ACEOF
23336cat confdefs.h >>conftest.$ac_ext
23337cat >>conftest.$ac_ext <<_ACEOF
23338/* end confdefs.h. */
23339#include <string>
a848cd7e
SC
23340int
23341main ()
23342{
f56c22b4 23343$std_string foo;
a848cd7e
SC
23344 ;
23345 return 0;
23346}
23347_ACEOF
23348rm -f conftest.$ac_objext
23349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23350 (eval $ac_compile) 2>conftest.er1
a848cd7e 23351 ac_status=$?
ac1cb8d3
VS
23352 grep -v '^ *+' conftest.er1 >conftest.err
23353 rm -f conftest.er1
23354 cat conftest.err >&5
a848cd7e
SC
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); } &&
c9a66001 23357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23359 (eval $ac_try) 2>&5
23360 ac_status=$?
23361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362 (exit $ac_status); }; } &&
23363 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23365 (eval $ac_try) 2>&5
23366 ac_status=$?
23367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368 (exit $ac_status); }; }; then
23369 echo "$as_me:$LINENO: result: yes" >&5
23370echo "${ECHO_T}yes" >&6
0a08f02a
MB
23371 cat >>confdefs.h <<\_ACEOF
23372#define HAVE_STD_WSTRING 1
23373_ACEOF
23374
a848cd7e
SC
23375else
23376 echo "$as_me: failed program was:" >&5
23377sed 's/^/| /' conftest.$ac_ext >&5
23378
23379echo "$as_me:$LINENO: result: no" >&5
23380echo "${ECHO_T}no" >&6
f56c22b4
MW
23381 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23382echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23383 cat >conftest.$ac_ext <<_ACEOF
23384/* confdefs.h. */
23385_ACEOF
23386cat confdefs.h >>conftest.$ac_ext
23387cat >>conftest.$ac_ext <<_ACEOF
23388/* end confdefs.h. */
23389
23390 #ifdef HAVE_WCHAR_H
23391 # ifdef __CYGWIN__
23392 # include <stddef.h>
23393 # endif
23394 # include <wchar.h>
23395 #endif
23396 #ifdef HAVE_STDLIB_H
23397 # include <stdlib.h>
23398 #endif
23399 #include <stdio.h>
23400 #include <string>
23401
23402int
23403main ()
23404{
f56c22b4
MW
23405std::basic_string<$char_type> foo;
23406 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23407 ;
23408 return 0;
23409}
23410_ACEOF
23411rm -f conftest.$ac_objext
23412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23413 (eval $ac_compile) 2>conftest.er1
23414 ac_status=$?
23415 grep -v '^ *+' conftest.er1 >conftest.err
23416 rm -f conftest.er1
23417 cat conftest.err >&5
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); } &&
c9a66001 23420 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
23421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23422 (eval $ac_try) 2>&5
23423 ac_status=$?
23424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); }; } &&
23426 { ac_try='test -s conftest.$ac_objext'
23427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23428 (eval $ac_try) 2>&5
23429 ac_status=$?
23430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431 (exit $ac_status); }; }; then
23432 echo "$as_me:$LINENO: result: yes" >&5
23433echo "${ECHO_T}yes" >&6
23434else
23435 echo "$as_me: failed program was:" >&5
23436sed 's/^/| /' conftest.$ac_ext >&5
23437
23438echo "$as_me:$LINENO: result: no" >&5
23439echo "${ECHO_T}no" >&6
f56c22b4 23440 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23441 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23442echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23443 { (exit 1); exit 1; }; }
23444 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23445 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23446echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23447 { (exit 1); exit 1; }; }
f56c22b4
MW
23448 else
23449 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23450echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23451 wxUSE_STD_STRING=no
23452 fi
23453
0a08f02a 23454
a848cd7e 23455fi
ac1cb8d3 23456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23457
0a08f02a
MB
23458fi
23459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
23460fi
23461
23462if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23463 echo "$as_me:$LINENO: checking for std::istream" >&5
23464echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23465if test "${ac_cv_type_std__istream+set}" = set; then
23466 echo $ECHO_N "(cached) $ECHO_C" >&6
23467else
23468 cat >conftest.$ac_ext <<_ACEOF
23469/* confdefs.h. */
23470_ACEOF
23471cat confdefs.h >>conftest.$ac_ext
23472cat >>conftest.$ac_ext <<_ACEOF
23473/* end confdefs.h. */
23474#include <iostream>
23475
23476int
23477main ()
23478{
23479if ((std::istream *) 0)
23480 return 0;
23481if (sizeof (std::istream))
23482 return 0;
23483 ;
23484 return 0;
23485}
23486_ACEOF
23487rm -f conftest.$ac_objext
23488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23489 (eval $ac_compile) 2>conftest.er1
23490 ac_status=$?
23491 grep -v '^ *+' conftest.er1 >conftest.err
23492 rm -f conftest.er1
23493 cat conftest.err >&5
23494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495 (exit $ac_status); } &&
c9a66001 23496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23498 (eval $ac_try) 2>&5
23499 ac_status=$?
23500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23501 (exit $ac_status); }; } &&
23502 { ac_try='test -s conftest.$ac_objext'
23503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23504 (eval $ac_try) 2>&5
23505 ac_status=$?
23506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507 (exit $ac_status); }; }; then
23508 ac_cv_type_std__istream=yes
23509else
23510 echo "$as_me: failed program was:" >&5
23511sed 's/^/| /' conftest.$ac_ext >&5
23512
23513ac_cv_type_std__istream=no
23514fi
23515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23516fi
23517echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23518echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23519if test $ac_cv_type_std__istream = yes; then
23520
23521cat >>confdefs.h <<_ACEOF
23522#define HAVE_STD__ISTREAM 1
23523_ACEOF
23524
23525
23526else
23527 wxUSE_STD_IOSTREAM=no
23528fi
23529echo "$as_me:$LINENO: checking for std::ostream" >&5
23530echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23531if test "${ac_cv_type_std__ostream+set}" = set; then
23532 echo $ECHO_N "(cached) $ECHO_C" >&6
23533else
23534 cat >conftest.$ac_ext <<_ACEOF
23535/* confdefs.h. */
23536_ACEOF
23537cat confdefs.h >>conftest.$ac_ext
23538cat >>conftest.$ac_ext <<_ACEOF
23539/* end confdefs.h. */
23540#include <iostream>
23541
23542int
23543main ()
23544{
23545if ((std::ostream *) 0)
23546 return 0;
23547if (sizeof (std::ostream))
23548 return 0;
23549 ;
23550 return 0;
23551}
23552_ACEOF
23553rm -f conftest.$ac_objext
23554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23555 (eval $ac_compile) 2>conftest.er1
23556 ac_status=$?
23557 grep -v '^ *+' conftest.er1 >conftest.err
23558 rm -f conftest.er1
23559 cat conftest.err >&5
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); } &&
c9a66001 23562 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23564 (eval $ac_try) 2>&5
23565 ac_status=$?
23566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567 (exit $ac_status); }; } &&
23568 { ac_try='test -s conftest.$ac_objext'
23569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23570 (eval $ac_try) 2>&5
23571 ac_status=$?
23572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573 (exit $ac_status); }; }; then
23574 ac_cv_type_std__ostream=yes
23575else
23576 echo "$as_me: failed program was:" >&5
23577sed 's/^/| /' conftest.$ac_ext >&5
23578
23579ac_cv_type_std__ostream=no
23580fi
23581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23582fi
23583echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23584echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23585if test $ac_cv_type_std__ostream = yes; then
23586
23587cat >>confdefs.h <<_ACEOF
23588#define HAVE_STD__OSTREAM 1
23589_ACEOF
23590
23591
23592else
23593 wxUSE_STD_IOSTREAM=no
23594fi
23595
23596
23597 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23598 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23599 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23600echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23601 { (exit 1); exit 1; }; }
23602 else
23603 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23604echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23605 fi
f56c22b4 23606 fi
0a08f02a
MB
23607fi
23608
23609if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23610 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23611echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23612 cat >conftest.$ac_ext <<_ACEOF
23613/* confdefs.h. */
23614_ACEOF
23615cat confdefs.h >>conftest.$ac_ext
23616cat >>conftest.$ac_ext <<_ACEOF
23617/* end confdefs.h. */
23618#include <string>
0a08f02a
MB
23619 #include <functional>
23620 #include <algorithm>
23621 #include <vector>
23622 #include <list>
a848cd7e
SC
23623int
23624main ()
23625{
0a08f02a
MB
23626std::vector<int> moo;
23627 std::list<int> foo;
23628 std::vector<int>::iterator it =
23629 std::find_if(moo.begin(), moo.end(),
23630 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23631 ;
23632 return 0;
23633}
23634_ACEOF
23635rm -f conftest.$ac_objext
23636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23637 (eval $ac_compile) 2>conftest.er1
a848cd7e 23638 ac_status=$?
ac1cb8d3
VS
23639 grep -v '^ *+' conftest.er1 >conftest.err
23640 rm -f conftest.er1
23641 cat conftest.err >&5
a848cd7e
SC
23642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643 (exit $ac_status); } &&
c9a66001 23644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23646 (eval $ac_try) 2>&5
23647 ac_status=$?
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); }; } &&
23650 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23652 (eval $ac_try) 2>&5
23653 ac_status=$?
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); }; }; then
23656 echo "$as_me:$LINENO: result: yes" >&5
23657echo "${ECHO_T}yes" >&6
a848cd7e
SC
23658else
23659 echo "$as_me: failed program was:" >&5
23660sed 's/^/| /' conftest.$ac_ext >&5
23661
23662echo "$as_me:$LINENO: result: no" >&5
23663echo "${ECHO_T}no" >&6
0a08f02a
MB
23664 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23665echo "$as_me: error: Basic STL functionality missing" >&2;}
23666 { (exit 1); exit 1; }; }
a848cd7e 23667fi
ac1cb8d3 23668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23669
23670 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23671echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23672 cat >conftest.$ac_ext <<_ACEOF
23673/* confdefs.h. */
23674_ACEOF
23675cat confdefs.h >>conftest.$ac_ext
23676cat >>conftest.$ac_ext <<_ACEOF
23677/* end confdefs.h. */
23678#include <string>
23679int
23680main ()
23681{
23682std::string foo, bar;
23683 foo.compare(bar);
23684 foo.compare(1, 1, bar);
23685 foo.compare(1, 1, bar, 1, 1);
23686 foo.compare("");
23687 foo.compare(1, 1, "");
23688 foo.compare(1, 1, "", 2);
23689 ;
23690 return 0;
23691}
23692_ACEOF
23693rm -f conftest.$ac_objext
23694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23695 (eval $ac_compile) 2>conftest.er1
a848cd7e 23696 ac_status=$?
ac1cb8d3
VS
23697 grep -v '^ *+' conftest.er1 >conftest.err
23698 rm -f conftest.er1
23699 cat conftest.err >&5
a848cd7e
SC
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); } &&
c9a66001 23702 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23704 (eval $ac_try) 2>&5
23705 ac_status=$?
23706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707 (exit $ac_status); }; } &&
23708 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
23714 echo "$as_me:$LINENO: result: yes" >&5
23715echo "${ECHO_T}yes" >&6
23716 cat >>confdefs.h <<\_ACEOF
23717#define HAVE_STD_STRING_COMPARE 1
23718_ACEOF
23719
23720else
23721 echo "$as_me: failed program was:" >&5
23722sed 's/^/| /' conftest.$ac_ext >&5
23723
23724echo "$as_me:$LINENO: result: no" >&5
23725echo "${ECHO_T}no" >&6
23726fi
ac1cb8d3 23727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23728
23729 if test "${ac_cv_header_hash_map+set}" = set; then
23730 echo "$as_me:$LINENO: checking for hash_map" >&5
23731echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23732if test "${ac_cv_header_hash_map+set}" = set; then
23733 echo $ECHO_N "(cached) $ECHO_C" >&6
23734fi
23735echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23736echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23737else
23738 # Is the header compilable?
23739echo "$as_me:$LINENO: checking hash_map usability" >&5
23740echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23741cat >conftest.$ac_ext <<_ACEOF
23742/* confdefs.h. */
23743_ACEOF
23744cat confdefs.h >>conftest.$ac_ext
23745cat >>conftest.$ac_ext <<_ACEOF
23746/* end confdefs.h. */
23747$ac_includes_default
23748#include <hash_map>
23749_ACEOF
23750rm -f conftest.$ac_objext
23751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23752 (eval $ac_compile) 2>conftest.er1
bdcade0a 23753 ac_status=$?
ac1cb8d3
VS
23754 grep -v '^ *+' conftest.er1 >conftest.err
23755 rm -f conftest.er1
23756 cat conftest.err >&5
bdcade0a
MB
23757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758 (exit $ac_status); } &&
c9a66001 23759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23761 (eval $ac_try) 2>&5
23762 ac_status=$?
23763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23764 (exit $ac_status); }; } &&
23765 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23767 (eval $ac_try) 2>&5
23768 ac_status=$?
23769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770 (exit $ac_status); }; }; then
23771 ac_header_compiler=yes
23772else
23773 echo "$as_me: failed program was:" >&5
23774sed 's/^/| /' conftest.$ac_ext >&5
23775
23776ac_header_compiler=no
23777fi
ac1cb8d3 23778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23779echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23780echo "${ECHO_T}$ac_header_compiler" >&6
23781
23782# Is the header present?
23783echo "$as_me:$LINENO: checking hash_map presence" >&5
23784echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23785cat >conftest.$ac_ext <<_ACEOF
23786/* confdefs.h. */
23787_ACEOF
23788cat confdefs.h >>conftest.$ac_ext
23789cat >>conftest.$ac_ext <<_ACEOF
23790/* end confdefs.h. */
23791#include <hash_map>
23792_ACEOF
23793if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23795 ac_status=$?
23796 grep -v '^ *+' conftest.er1 >conftest.err
23797 rm -f conftest.er1
23798 cat conftest.err >&5
23799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800 (exit $ac_status); } >/dev/null; then
23801 if test -s conftest.err; then
23802 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23803 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23804 else
23805 ac_cpp_err=
23806 fi
23807else
23808 ac_cpp_err=yes
23809fi
23810if test -z "$ac_cpp_err"; then
23811 ac_header_preproc=yes
23812else
23813 echo "$as_me: failed program was:" >&5
23814sed 's/^/| /' conftest.$ac_ext >&5
23815
23816 ac_header_preproc=no
23817fi
23818rm -f conftest.err conftest.$ac_ext
23819echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23820echo "${ECHO_T}$ac_header_preproc" >&6
23821
23822# So? What about this header?
ac1cb8d3
VS
23823case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23824 yes:no: )
bdcade0a
MB
23825 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23826echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23827 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23828echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23829 ac_header_preproc=yes
bdcade0a 23830 ;;
ac1cb8d3 23831 no:yes:* )
bdcade0a
MB
23832 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23833echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23834 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23835echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23836 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23837echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23838 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23839echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23840 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23841echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23842 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23843echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23844 (
23845 cat <<\_ASBOX
ac1cb8d3
VS
23846## ----------------------------------------- ##
23847## Report this to wx-dev@lists.wxwidgets.org ##
23848## ----------------------------------------- ##
bdcade0a
MB
23849_ASBOX
23850 ) |
23851 sed "s/^/$as_me: WARNING: /" >&2
23852 ;;
23853esac
23854echo "$as_me:$LINENO: checking for hash_map" >&5
23855echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23856if test "${ac_cv_header_hash_map+set}" = set; then
23857 echo $ECHO_N "(cached) $ECHO_C" >&6
23858else
23859 ac_cv_header_hash_map=$ac_header_preproc
23860fi
23861echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23862echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23863
23864fi
23865if test $ac_cv_header_hash_map = yes; then
23866 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23867echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23868 cat >conftest.$ac_ext <<_ACEOF
23869/* confdefs.h. */
23870_ACEOF
23871cat confdefs.h >>conftest.$ac_ext
23872cat >>conftest.$ac_ext <<_ACEOF
23873/* end confdefs.h. */
23874#include <hash_map>
23875 #include <hash_set>
23876int
23877main ()
23878{
23879std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23880 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23881 ;
23882 return 0;
23883}
23884_ACEOF
23885rm -f conftest.$ac_objext
23886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23887 (eval $ac_compile) 2>conftest.er1
bdcade0a 23888 ac_status=$?
ac1cb8d3
VS
23889 grep -v '^ *+' conftest.er1 >conftest.err
23890 rm -f conftest.er1
23891 cat conftest.err >&5
bdcade0a
MB
23892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23893 (exit $ac_status); } &&
c9a66001 23894 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23896 (eval $ac_try) 2>&5
23897 ac_status=$?
23898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899 (exit $ac_status); }; } &&
23900 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23902 (eval $ac_try) 2>&5
23903 ac_status=$?
23904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); }; }; then
23906 echo "$as_me:$LINENO: result: yes" >&5
23907echo "${ECHO_T}yes" >&6
23908 cat >>confdefs.h <<\_ACEOF
23909#define HAVE_HASH_MAP 1
23910_ACEOF
23911
23912 cat >>confdefs.h <<\_ACEOF
23913#define HAVE_STD_HASH_MAP 1
23914_ACEOF
23915
23916else
23917 echo "$as_me: failed program was:" >&5
23918sed 's/^/| /' conftest.$ac_ext >&5
23919
23920echo "$as_me:$LINENO: result: no" >&5
23921echo "${ECHO_T}no" >&6
23922fi
ac1cb8d3 23923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23924
23925fi
23926
23927
23928
23929 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23930 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23931echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23932if test "${ac_cv_header_ext_hash_map+set}" = set; then
23933 echo $ECHO_N "(cached) $ECHO_C" >&6
23934fi
23935echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23936echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23937else
23938 # Is the header compilable?
23939echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23940echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23941cat >conftest.$ac_ext <<_ACEOF
23942/* confdefs.h. */
23943_ACEOF
23944cat confdefs.h >>conftest.$ac_ext
23945cat >>conftest.$ac_ext <<_ACEOF
23946/* end confdefs.h. */
23947$ac_includes_default
23948#include <ext/hash_map>
23949_ACEOF
23950rm -f conftest.$ac_objext
23951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23952 (eval $ac_compile) 2>conftest.er1
bdcade0a 23953 ac_status=$?
ac1cb8d3
VS
23954 grep -v '^ *+' conftest.er1 >conftest.err
23955 rm -f conftest.er1
23956 cat conftest.err >&5
bdcade0a
MB
23957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958 (exit $ac_status); } &&
c9a66001 23959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23961 (eval $ac_try) 2>&5
23962 ac_status=$?
23963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); }; } &&
23965 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23967 (eval $ac_try) 2>&5
23968 ac_status=$?
23969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970 (exit $ac_status); }; }; then
23971 ac_header_compiler=yes
23972else
23973 echo "$as_me: failed program was:" >&5
23974sed 's/^/| /' conftest.$ac_ext >&5
23975
23976ac_header_compiler=no
23977fi
ac1cb8d3 23978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23979echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23980echo "${ECHO_T}$ac_header_compiler" >&6
23981
23982# Is the header present?
23983echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23984echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23985cat >conftest.$ac_ext <<_ACEOF
23986/* confdefs.h. */
23987_ACEOF
23988cat confdefs.h >>conftest.$ac_ext
23989cat >>conftest.$ac_ext <<_ACEOF
23990/* end confdefs.h. */
23991#include <ext/hash_map>
23992_ACEOF
23993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23995 ac_status=$?
23996 grep -v '^ *+' conftest.er1 >conftest.err
23997 rm -f conftest.er1
23998 cat conftest.err >&5
23999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000 (exit $ac_status); } >/dev/null; then
24001 if test -s conftest.err; then
24002 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24003 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24004 else
24005 ac_cpp_err=
24006 fi
24007else
24008 ac_cpp_err=yes
24009fi
24010if test -z "$ac_cpp_err"; then
24011 ac_header_preproc=yes
24012else
24013 echo "$as_me: failed program was:" >&5
24014sed 's/^/| /' conftest.$ac_ext >&5
24015
24016 ac_header_preproc=no
24017fi
24018rm -f conftest.err conftest.$ac_ext
24019echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24020echo "${ECHO_T}$ac_header_preproc" >&6
24021
24022# So? What about this header?
ac1cb8d3
VS
24023case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24024 yes:no: )
bdcade0a
MB
24025 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24026echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24027 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
24028echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
24029 ac_header_preproc=yes
bdcade0a 24030 ;;
ac1cb8d3 24031 no:yes:* )
bdcade0a
MB
24032 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
24033echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24034 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
24035echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
24036 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
24037echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
24038 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
24039echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24040 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
24041echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24042 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
24043echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24044 (
24045 cat <<\_ASBOX
ac1cb8d3
VS
24046## ----------------------------------------- ##
24047## Report this to wx-dev@lists.wxwidgets.org ##
24048## ----------------------------------------- ##
bdcade0a
MB
24049_ASBOX
24050 ) |
24051 sed "s/^/$as_me: WARNING: /" >&2
24052 ;;
24053esac
24054echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24055echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24056if test "${ac_cv_header_ext_hash_map+set}" = set; then
24057 echo $ECHO_N "(cached) $ECHO_C" >&6
24058else
24059 ac_cv_header_ext_hash_map=$ac_header_preproc
24060fi
24061echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24062echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24063
24064fi
24065if test $ac_cv_header_ext_hash_map = yes; then
24066 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24067echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24068 cat >conftest.$ac_ext <<_ACEOF
24069/* confdefs.h. */
24070_ACEOF
24071cat confdefs.h >>conftest.$ac_ext
24072cat >>conftest.$ac_ext <<_ACEOF
24073/* end confdefs.h. */
24074#include <ext/hash_map>
24075 #include <ext/hash_set>
24076int
24077main ()
24078{
24079__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24080 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24081 ;
24082 return 0;
24083}
24084_ACEOF
24085rm -f conftest.$ac_objext
24086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24087 (eval $ac_compile) 2>conftest.er1
bdcade0a 24088 ac_status=$?
ac1cb8d3
VS
24089 grep -v '^ *+' conftest.er1 >conftest.err
24090 rm -f conftest.er1
24091 cat conftest.err >&5
bdcade0a
MB
24092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093 (exit $ac_status); } &&
c9a66001 24094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24096 (eval $ac_try) 2>&5
24097 ac_status=$?
24098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099 (exit $ac_status); }; } &&
24100 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24102 (eval $ac_try) 2>&5
24103 ac_status=$?
24104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24105 (exit $ac_status); }; }; then
24106 echo "$as_me:$LINENO: result: yes" >&5
24107echo "${ECHO_T}yes" >&6
24108 cat >>confdefs.h <<\_ACEOF
24109#define HAVE_EXT_HASH_MAP 1
24110_ACEOF
24111
24112 cat >>confdefs.h <<\_ACEOF
24113#define HAVE_GNU_CXX_HASH_MAP 1
24114_ACEOF
24115
24116else
24117 echo "$as_me: failed program was:" >&5
24118sed 's/^/| /' conftest.$ac_ext >&5
24119
24120echo "$as_me:$LINENO: result: no" >&5
24121echo "${ECHO_T}no" >&6
24122fi
ac1cb8d3 24123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24124
24125fi
24126
24127
a848cd7e
SC
24128fi
24129
24130
24131SEARCH_INCLUDE="\
24132 /usr/local/include \
24133 \
24134 /usr/Motif-2.1/include \
24135 /usr/Motif-1.2/include \
24136 /usr/include/Motif1.2 \
a848cd7e
SC
24137 \
24138 /usr/dt/include \
24139 /usr/openwin/include \
24140 \
24141 /usr/include/Xm \
24142 \
24143 /usr/X11R6/include \
24144 /usr/X11R6.4/include \
24145 /usr/X11R5/include \
24146 /usr/X11R4/include \
24147 \
24148 /usr/include/X11R6 \
24149 /usr/include/X11R5 \
24150 /usr/include/X11R4 \
24151 \
24152 /usr/local/X11R6/include \
24153 /usr/local/X11R5/include \
24154 /usr/local/X11R4/include \
24155 \
24156 /usr/local/include/X11R6 \
24157 /usr/local/include/X11R5 \
24158 /usr/local/include/X11R4 \
24159 \
24160 /usr/X11/include \
24161 /usr/include/X11 \
24162 /usr/local/X11/include \
24163 /usr/local/include/X11 \
24164 \
a848cd7e 24165 /usr/XFree86/include/X11 \
e051b34e
MW
24166 /usr/pkg/include \
24167 \
a848cd7e
SC
24168 /usr/openwin/share/include"
24169
6f9cf1e6 24170echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 24171echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24172
24173case "${host}" in
24174 *-*-irix6* )
24175 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24176 echo $ECHO_N "(cached) $ECHO_C" >&6
24177else
24178
c687b303
VZ
24179 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24180 for e in a so sl dylib dll.a; do
24181 libc="$d/libc.$e"
24182 if test -f $libc; then
24183 save_LIBS="$LIBS"
24184 LIBS="$libc"
24185 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24186int main() { return 0; }
24187_ACEOF
24188rm -f conftest.$ac_objext conftest$ac_exeext
24189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24190 (eval $ac_link) 2>conftest.er1
24191 ac_status=$?
24192 grep -v '^ *+' conftest.er1 >conftest.err
24193 rm -f conftest.er1
24194 cat conftest.err >&5
24195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24196 (exit $ac_status); } &&
c9a66001 24197 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
24198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24199 (eval $ac_try) 2>&5
24200 ac_status=$?
24201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202 (exit $ac_status); }; } &&
24203 { ac_try='test -s conftest$ac_exeext'
24204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24205 (eval $ac_try) 2>&5
24206 ac_status=$?
24207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208 (exit $ac_status); }; }; then
24209 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24210else
24211 echo "$as_me: failed program was:" >&5
24212sed 's/^/| /' conftest.$ac_ext >&5
24213
24214fi
24215rm -f conftest.err conftest.$ac_objext \
24216 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24217 LIBS="$save_LIBS"
24218 if test "x$wx_cv_std_libpath" != "x"; then
24219 break 2
24220 fi
24221 fi
24222 done
24223 done
24224 if test "x$wx_cv_std_libpath" = "x"; then
24225 wx_cv_std_libpath="lib"
0ad5d837 24226 fi
0ad5d837
VZ
24227
24228
24229fi
6f9cf1e6
MW
24230
24231 ;;
24232
24233 *-*-solaris2* )
24234 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24235 wx_cv_std_libpath="lib/64"
24236 else
24237 wx_cv_std_libpath="lib"
24238 fi
24239 ;;
24240
24241 *-*-linux* )
24242 if test "$ac_cv_sizeof_void_p" = 8 -a \
24243 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24244 wx_cv_std_libpath="lib64"
24245 else
24246 wx_cv_std_libpath="lib"
24247 fi
c687b303
VZ
24248 ;;
24249
24250 *)
24251 wx_cv_std_libpath="lib";
24252 ;;
24253esac
0ad5d837 24254
6f9cf1e6
MW
24255echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24256echo "${ECHO_T}$wx_cv_std_libpath" >&6
24257
24258SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24259
3eca31dc
MW
24260if test "$build" != "$host" -a "$GCC" = yes; then
24261 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24262 cross_root=`dirname $cross_root`
24263 cross_root=`dirname $cross_root`
24264
24265 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24266 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24267 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24268
24269 if test -z "$PKG_CONFIG_PATH"; then
24270 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24271 export PKG_CONFIG_PATH
24272 fi
24273
24274 if test -z "$x_includes" -o "$x_includes" = NONE; then
24275
24276ac_find_includes=
24277for ac_dir in $SEARCH_INCLUDE /usr/include;
24278 do
24279 if test -f "$ac_dir/X11/Intrinsic.h"; then
24280 ac_find_includes=$ac_dir
24281 break
24282 fi
24283 done
24284
24285 x_includes=$ac_find_includes
24286 fi
24287 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24288
0ad5d837
VZ
24289 ac_find_libraries=
24290 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24291 do
24292 for ac_extension in a so sl dylib dll.a; do
24293 if test -f "$ac_dir/libXt.$ac_extension"; then
24294 ac_find_libraries=$ac_dir
24295 break 2
24296 fi
24297 done
24298 done
24299
24300 x_libraries=$ac_find_libraries
24301 fi
24302 fi
24303fi
24304
a848cd7e
SC
24305
24306cat >confcache <<\_ACEOF
24307# This file is a shell script that caches the results of configure
24308# tests run on this system so they can be shared between configure
24309# scripts and configure runs, see configure's option --config-cache.
24310# It is not useful on other systems. If it contains results you don't
24311# want to keep, you may remove or edit it.
24312#
24313# config.status only pays attention to the cache file if you give it
24314# the --recheck option to rerun configure.
24315#
24316# `ac_cv_env_foo' variables (set or unset) will be overridden when
24317# loading this file, other *unset* `ac_cv_foo' will be assigned the
24318# following values.
24319
24320_ACEOF
24321
24322# The following way of writing the cache mishandles newlines in values,
24323# but we know of no workaround that is simple, portable, and efficient.
24324# So, don't put newlines in cache variables' values.
24325# Ultrix sh set writes to stderr and can't be redirected directly,
24326# and sets the high bit in the cache file unless we assign to the vars.
24327{
24328 (set) 2>&1 |
24329 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24330 *ac_space=\ *)
24331 # `set' does not quote correctly, so add quotes (double-quote
24332 # substitution turns \\\\ into \\, and sed turns \\ into \).
24333 sed -n \
ac1cb8d3
VS
24334 "s/'/'\\\\''/g;
24335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24336 ;;
24337 *)
24338 # `set' quotes correctly as required by POSIX, so do not add quotes.
24339 sed -n \
ac1cb8d3 24340 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24341 ;;
24342 esac;
24343} |
24344 sed '
24345 t clear
24346 : clear
24347 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24348 t end
24349 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24350 : end' >>confcache
24351if diff $cache_file confcache >/dev/null 2>&1; then :; else
24352 if test -w $cache_file; then
24353 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24354 cat confcache >$cache_file
24355 else
24356 echo "not updating unwritable cache $cache_file"
24357 fi
24358fi
24359rm -f confcache
24360
24361if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24362 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24363echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24364if test "${wx_cv_lib_glibc21+set}" = set; then
24365 echo $ECHO_N "(cached) $ECHO_C" >&6
24366else
24367
24368 cat >conftest.$ac_ext <<_ACEOF
24369/* confdefs.h. */
24370_ACEOF
24371cat confdefs.h >>conftest.$ac_ext
24372cat >>conftest.$ac_ext <<_ACEOF
24373/* end confdefs.h. */
24374#include <features.h>
24375int
24376main ()
24377{
24378
24379 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24380 not glibc 2.1
a848cd7e
SC
24381 #endif
24382
24383 ;
24384 return 0;
24385}
24386_ACEOF
24387rm -f conftest.$ac_objext
24388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24389 (eval $ac_compile) 2>conftest.er1
a848cd7e 24390 ac_status=$?
ac1cb8d3
VS
24391 grep -v '^ *+' conftest.er1 >conftest.err
24392 rm -f conftest.er1
24393 cat conftest.err >&5
a848cd7e
SC
24394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395 (exit $ac_status); } &&
c9a66001 24396 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24398 (eval $ac_try) 2>&5
24399 ac_status=$?
24400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401 (exit $ac_status); }; } &&
24402 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24404 (eval $ac_try) 2>&5
24405 ac_status=$?
24406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407 (exit $ac_status); }; }; then
24408
24409 wx_cv_lib_glibc21=yes
24410
24411else
24412 echo "$as_me: failed program was:" >&5
24413sed 's/^/| /' conftest.$ac_ext >&5
24414
24415
24416 wx_cv_lib_glibc21=no
24417
24418
24419fi
ac1cb8d3 24420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24421
24422fi
24423echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24424echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24425 if test "$wx_cv_lib_glibc21" = "yes"; then
24426 cat >>confdefs.h <<\_ACEOF
24427#define wxHAVE_GLIBC2 1
24428_ACEOF
24429
24430 fi
24431fi
24432
24433if test "x$wx_cv_lib_glibc21" = "xyes"; then
24434 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24435 cat >>confdefs.h <<\_ACEOF
24436#define _GNU_SOURCE 1
24437_ACEOF
24438
24439 fi
24440fi
24441
5d7b7554
VZ
24442have_cos=0
24443have_floor=0
a848cd7e 24444
5d7b7554
VZ
24445for ac_func in cos
24446do
24447as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24448echo "$as_me:$LINENO: checking for $ac_func" >&5
24449echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24450if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24451 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24452else
5d7b7554 24453 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24454/* confdefs.h. */
24455_ACEOF
24456cat confdefs.h >>conftest.$ac_ext
24457cat >>conftest.$ac_ext <<_ACEOF
24458/* end confdefs.h. */
5d7b7554
VZ
24459/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24461#define $ac_func innocuous_$ac_func
24462
24463/* System header to define __stub macros and hopefully few prototypes,
24464 which can conflict with char $ac_func (); below.
24465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24466 <limits.h> exists even on freestanding compilers. */
24467
24468#ifdef __STDC__
24469# include <limits.h>
24470#else
24471# include <assert.h>
24472#endif
24473
24474#undef $ac_func
24475
24476/* Override any gcc2 internal prototype to avoid an error. */
24477#ifdef __cplusplus
24478extern "C"
24479{
24480#endif
24481/* We use char because int might match the return type of a gcc2
24482 builtin and then its argument prototype would still apply. */
24483char $ac_func ();
24484/* The GNU C library defines this for functions which it implements
24485 to always fail with ENOSYS. Some functions are actually named
24486 something starting with __ and the normal name is an alias. */
24487#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24488choke me
24489#else
24490char (*f) () = $ac_func;
24491#endif
24492#ifdef __cplusplus
24493}
24494#endif
24495
24496int
24497main ()
24498{
24499return f != $ac_func;
24500 ;
24501 return 0;
24502}
a848cd7e 24503_ACEOF
5d7b7554
VZ
24504rm -f conftest.$ac_objext conftest$ac_exeext
24505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24506 (eval $ac_link) 2>conftest.er1
a848cd7e 24507 ac_status=$?
ac1cb8d3
VS
24508 grep -v '^ *+' conftest.er1 >conftest.err
24509 rm -f conftest.er1
24510 cat conftest.err >&5
a848cd7e
SC
24511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512 (exit $ac_status); } &&
c9a66001 24513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24515 (eval $ac_try) 2>&5
24516 ac_status=$?
24517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518 (exit $ac_status); }; } &&
5d7b7554 24519 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24521 (eval $ac_try) 2>&5
24522 ac_status=$?
24523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24524 (exit $ac_status); }; }; then
5d7b7554 24525 eval "$as_ac_var=yes"
a848cd7e
SC
24526else
24527 echo "$as_me: failed program was:" >&5
24528sed 's/^/| /' conftest.$ac_ext >&5
24529
5d7b7554 24530eval "$as_ac_var=no"
a848cd7e 24531fi
5d7b7554
VZ
24532rm -f conftest.err conftest.$ac_objext \
24533 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24534fi
5d7b7554
VZ
24535echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24536echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24537if test `eval echo '${'$as_ac_var'}'` = yes; then
24538 cat >>confdefs.h <<_ACEOF
24539#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24540_ACEOF
24541 have_cos=1
a848cd7e 24542fi
5d7b7554 24543done
a848cd7e 24544
ab0f0edd 24545
5d7b7554 24546for ac_func in floor
a848cd7e
SC
24547do
24548as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24549echo "$as_me:$LINENO: checking for $ac_func" >&5
24550echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24551if eval "test \"\${$as_ac_var+set}\" = set"; then
24552 echo $ECHO_N "(cached) $ECHO_C" >&6
24553else
24554 cat >conftest.$ac_ext <<_ACEOF
24555/* confdefs.h. */
24556_ACEOF
24557cat confdefs.h >>conftest.$ac_ext
24558cat >>conftest.$ac_ext <<_ACEOF
24559/* end confdefs.h. */
ac1cb8d3
VS
24560/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24562#define $ac_func innocuous_$ac_func
24563
a848cd7e
SC
24564/* System header to define __stub macros and hopefully few prototypes,
24565 which can conflict with char $ac_func (); below.
24566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24567 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24568
a848cd7e
SC
24569#ifdef __STDC__
24570# include <limits.h>
24571#else
24572# include <assert.h>
24573#endif
ac1cb8d3
VS
24574
24575#undef $ac_func
24576
a848cd7e
SC
24577/* Override any gcc2 internal prototype to avoid an error. */
24578#ifdef __cplusplus
24579extern "C"
24580{
24581#endif
24582/* We use char because int might match the return type of a gcc2
24583 builtin and then its argument prototype would still apply. */
24584char $ac_func ();
24585/* The GNU C library defines this for functions which it implements
24586 to always fail with ENOSYS. Some functions are actually named
24587 something starting with __ and the normal name is an alias. */
24588#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24589choke me
24590#else
24591char (*f) () = $ac_func;
24592#endif
24593#ifdef __cplusplus
24594}
24595#endif
24596
24597int
24598main ()
24599{
24600return f != $ac_func;
24601 ;
24602 return 0;
24603}
24604_ACEOF
24605rm -f conftest.$ac_objext conftest$ac_exeext
24606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24607 (eval $ac_link) 2>conftest.er1
a848cd7e 24608 ac_status=$?
ac1cb8d3
VS
24609 grep -v '^ *+' conftest.er1 >conftest.err
24610 rm -f conftest.er1
24611 cat conftest.err >&5
a848cd7e
SC
24612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613 (exit $ac_status); } &&
c9a66001 24614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24616 (eval $ac_try) 2>&5
24617 ac_status=$?
24618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619 (exit $ac_status); }; } &&
24620 { ac_try='test -s conftest$ac_exeext'
24621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24622 (eval $ac_try) 2>&5
24623 ac_status=$?
24624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24625 (exit $ac_status); }; }; then
24626 eval "$as_ac_var=yes"
24627else
24628 echo "$as_me: failed program was:" >&5
24629sed 's/^/| /' conftest.$ac_ext >&5
24630
24631eval "$as_ac_var=no"
24632fi
24633rm -f conftest.err conftest.$ac_objext \
24634 conftest$ac_exeext conftest.$ac_ext
24635fi
24636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24637echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24638if test `eval echo '${'$as_ac_var'}'` = yes; then
24639 cat >>confdefs.h <<_ACEOF
24640#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24641_ACEOF
24642 have_floor=1
24643fi
24644done
24645
24646echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24647echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24648if test "$have_cos" = 1 -a "$have_floor" = 1; then
24649 echo "$as_me:$LINENO: result: yes" >&5
24650echo "${ECHO_T}yes" >&6
24651else
24652 echo "$as_me:$LINENO: result: no" >&5
24653echo "${ECHO_T}no" >&6
24654 LIBS="$LIBS -lm"
24655 # use different functions to avoid configure caching
24656 have_sin=0
24657 have_ceil=0
24658
24659for ac_func in sin
24660do
24661as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24662echo "$as_me:$LINENO: checking for $ac_func" >&5
24663echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24664if eval "test \"\${$as_ac_var+set}\" = set"; then
24665 echo $ECHO_N "(cached) $ECHO_C" >&6
24666else
24667 cat >conftest.$ac_ext <<_ACEOF
24668/* confdefs.h. */
24669_ACEOF
24670cat confdefs.h >>conftest.$ac_ext
24671cat >>conftest.$ac_ext <<_ACEOF
24672/* end confdefs.h. */
24673/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24675#define $ac_func innocuous_$ac_func
24676
24677/* System header to define __stub macros and hopefully few prototypes,
24678 which can conflict with char $ac_func (); below.
24679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24680 <limits.h> exists even on freestanding compilers. */
24681
24682#ifdef __STDC__
24683# include <limits.h>
24684#else
24685# include <assert.h>
24686#endif
24687
24688#undef $ac_func
24689
24690/* Override any gcc2 internal prototype to avoid an error. */
24691#ifdef __cplusplus
24692extern "C"
24693{
24694#endif
24695/* We use char because int might match the return type of a gcc2
24696 builtin and then its argument prototype would still apply. */
24697char $ac_func ();
24698/* The GNU C library defines this for functions which it implements
24699 to always fail with ENOSYS. Some functions are actually named
24700 something starting with __ and the normal name is an alias. */
24701#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24702choke me
24703#else
24704char (*f) () = $ac_func;
24705#endif
24706#ifdef __cplusplus
24707}
24708#endif
24709
24710int
24711main ()
24712{
24713return f != $ac_func;
24714 ;
24715 return 0;
24716}
24717_ACEOF
24718rm -f conftest.$ac_objext conftest$ac_exeext
24719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24720 (eval $ac_link) 2>conftest.er1
24721 ac_status=$?
24722 grep -v '^ *+' conftest.er1 >conftest.err
24723 rm -f conftest.er1
24724 cat conftest.err >&5
24725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726 (exit $ac_status); } &&
c9a66001 24727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24729 (eval $ac_try) 2>&5
24730 ac_status=$?
24731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732 (exit $ac_status); }; } &&
24733 { ac_try='test -s conftest$ac_exeext'
24734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24735 (eval $ac_try) 2>&5
24736 ac_status=$?
24737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738 (exit $ac_status); }; }; then
24739 eval "$as_ac_var=yes"
24740else
24741 echo "$as_me: failed program was:" >&5
24742sed 's/^/| /' conftest.$ac_ext >&5
24743
24744eval "$as_ac_var=no"
24745fi
24746rm -f conftest.err conftest.$ac_objext \
24747 conftest$ac_exeext conftest.$ac_ext
24748fi
24749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24750echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24751if test `eval echo '${'$as_ac_var'}'` = yes; then
24752 cat >>confdefs.h <<_ACEOF
24753#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24754_ACEOF
24755 have_sin=1
24756fi
24757done
24758
24759
24760for ac_func in ceil
24761do
24762as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24763echo "$as_me:$LINENO: checking for $ac_func" >&5
24764echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24765if eval "test \"\${$as_ac_var+set}\" = set"; then
24766 echo $ECHO_N "(cached) $ECHO_C" >&6
24767else
24768 cat >conftest.$ac_ext <<_ACEOF
24769/* confdefs.h. */
24770_ACEOF
24771cat confdefs.h >>conftest.$ac_ext
24772cat >>conftest.$ac_ext <<_ACEOF
24773/* end confdefs.h. */
24774/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24776#define $ac_func innocuous_$ac_func
24777
24778/* System header to define __stub macros and hopefully few prototypes,
24779 which can conflict with char $ac_func (); below.
24780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24781 <limits.h> exists even on freestanding compilers. */
24782
24783#ifdef __STDC__
24784# include <limits.h>
24785#else
24786# include <assert.h>
24787#endif
24788
24789#undef $ac_func
24790
24791/* Override any gcc2 internal prototype to avoid an error. */
24792#ifdef __cplusplus
24793extern "C"
24794{
24795#endif
24796/* We use char because int might match the return type of a gcc2
24797 builtin and then its argument prototype would still apply. */
24798char $ac_func ();
24799/* The GNU C library defines this for functions which it implements
24800 to always fail with ENOSYS. Some functions are actually named
24801 something starting with __ and the normal name is an alias. */
24802#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24803choke me
24804#else
24805char (*f) () = $ac_func;
24806#endif
24807#ifdef __cplusplus
24808}
24809#endif
24810
24811int
24812main ()
24813{
24814return f != $ac_func;
24815 ;
24816 return 0;
24817}
24818_ACEOF
24819rm -f conftest.$ac_objext conftest$ac_exeext
24820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24821 (eval $ac_link) 2>conftest.er1
24822 ac_status=$?
24823 grep -v '^ *+' conftest.er1 >conftest.err
24824 rm -f conftest.er1
24825 cat conftest.err >&5
24826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827 (exit $ac_status); } &&
c9a66001 24828 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24830 (eval $ac_try) 2>&5
24831 ac_status=$?
24832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24833 (exit $ac_status); }; } &&
24834 { ac_try='test -s conftest$ac_exeext'
24835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24836 (eval $ac_try) 2>&5
24837 ac_status=$?
24838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); }; }; then
24840 eval "$as_ac_var=yes"
24841else
24842 echo "$as_me: failed program was:" >&5
24843sed 's/^/| /' conftest.$ac_ext >&5
24844
24845eval "$as_ac_var=no"
24846fi
24847rm -f conftest.err conftest.$ac_objext \
24848 conftest$ac_exeext conftest.$ac_ext
24849fi
24850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24851echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24852if test `eval echo '${'$as_ac_var'}'` = yes; then
24853 cat >>confdefs.h <<_ACEOF
24854#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24855_ACEOF
24856 have_ceil=1
24857fi
24858done
24859
24860 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24861echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24862 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24863 echo "$as_me:$LINENO: result: yes" >&5
24864echo "${ECHO_T}yes" >&6
24865 else
24866 echo "$as_me:$LINENO: result: no" >&5
24867echo "${ECHO_T}no" >&6
24868 # not sure we should warn the user, crash, etc.
24869 fi
24870fi
24871
24872
24873
24874if test "$wxUSE_REGEX" != "no"; then
24875 cat >>confdefs.h <<\_ACEOF
24876#define wxUSE_REGEX 1
24877_ACEOF
24878
24879
24880 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
24881 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
24882echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
24883 wxUSE_REGEX=builtin
24884 fi
24885
24886 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
24887 if test "${ac_cv_header_regex_h+set}" = set; then
24888 echo "$as_me:$LINENO: checking for regex.h" >&5
24889echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24890if test "${ac_cv_header_regex_h+set}" = set; then
24891 echo $ECHO_N "(cached) $ECHO_C" >&6
24892fi
24893echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24894echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24895else
24896 # Is the header compilable?
24897echo "$as_me:$LINENO: checking regex.h usability" >&5
24898echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
24899cat >conftest.$ac_ext <<_ACEOF
24900/* confdefs.h. */
24901_ACEOF
24902cat confdefs.h >>conftest.$ac_ext
24903cat >>conftest.$ac_ext <<_ACEOF
24904/* end confdefs.h. */
24905$ac_includes_default
24906#include <regex.h>
24907_ACEOF
24908rm -f conftest.$ac_objext
24909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24910 (eval $ac_compile) 2>conftest.er1
24911 ac_status=$?
24912 grep -v '^ *+' conftest.er1 >conftest.err
24913 rm -f conftest.er1
24914 cat conftest.err >&5
24915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916 (exit $ac_status); } &&
c9a66001 24917 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24919 (eval $ac_try) 2>&5
24920 ac_status=$?
24921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922 (exit $ac_status); }; } &&
24923 { ac_try='test -s conftest.$ac_objext'
24924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24925 (eval $ac_try) 2>&5
24926 ac_status=$?
24927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928 (exit $ac_status); }; }; then
24929 ac_header_compiler=yes
24930else
24931 echo "$as_me: failed program was:" >&5
24932sed 's/^/| /' conftest.$ac_ext >&5
24933
24934ac_header_compiler=no
24935fi
24936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24937echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24938echo "${ECHO_T}$ac_header_compiler" >&6
24939
24940# Is the header present?
24941echo "$as_me:$LINENO: checking regex.h presence" >&5
24942echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
24943cat >conftest.$ac_ext <<_ACEOF
24944/* confdefs.h. */
24945_ACEOF
24946cat confdefs.h >>conftest.$ac_ext
24947cat >>conftest.$ac_ext <<_ACEOF
24948/* end confdefs.h. */
24949#include <regex.h>
24950_ACEOF
24951if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24953 ac_status=$?
24954 grep -v '^ *+' conftest.er1 >conftest.err
24955 rm -f conftest.er1
24956 cat conftest.err >&5
24957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958 (exit $ac_status); } >/dev/null; then
24959 if test -s conftest.err; then
24960 ac_cpp_err=$ac_cxx_preproc_warn_flag
24961 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24962 else
24963 ac_cpp_err=
24964 fi
24965else
24966 ac_cpp_err=yes
24967fi
24968if test -z "$ac_cpp_err"; then
24969 ac_header_preproc=yes
24970else
24971 echo "$as_me: failed program was:" >&5
24972sed 's/^/| /' conftest.$ac_ext >&5
24973
24974 ac_header_preproc=no
24975fi
24976rm -f conftest.err conftest.$ac_ext
24977echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24978echo "${ECHO_T}$ac_header_preproc" >&6
24979
24980# So? What about this header?
24981case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24982 yes:no: )
24983 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24984echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24985 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24986echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24987 ac_header_preproc=yes
24988 ;;
24989 no:yes:* )
24990 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24991echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
24992 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
24993echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
24994 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24995echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24996 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
24997echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24998 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24999echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
25000 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
25001echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
25002 (
25003 cat <<\_ASBOX
25004## ----------------------------------------- ##
25005## Report this to wx-dev@lists.wxwidgets.org ##
25006## ----------------------------------------- ##
25007_ASBOX
25008 ) |
25009 sed "s/^/$as_me: WARNING: /" >&2
25010 ;;
25011esac
25012echo "$as_me:$LINENO: checking for regex.h" >&5
25013echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25014if test "${ac_cv_header_regex_h+set}" = set; then
25015 echo $ECHO_N "(cached) $ECHO_C" >&6
25016else
25017 ac_cv_header_regex_h=$ac_header_preproc
25018fi
25019echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25020echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25021
25022fi
25023if test $ac_cv_header_regex_h = yes; then
25024
25025
25026for ac_func in regcomp re_search
25027do
25028as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25029echo "$as_me:$LINENO: checking for $ac_func" >&5
25030echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25031if eval "test \"\${$as_ac_var+set}\" = set"; then
25032 echo $ECHO_N "(cached) $ECHO_C" >&6
25033else
25034 cat >conftest.$ac_ext <<_ACEOF
25035/* confdefs.h. */
25036_ACEOF
25037cat confdefs.h >>conftest.$ac_ext
25038cat >>conftest.$ac_ext <<_ACEOF
25039/* end confdefs.h. */
25040/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25042#define $ac_func innocuous_$ac_func
25043
25044/* System header to define __stub macros and hopefully few prototypes,
25045 which can conflict with char $ac_func (); below.
25046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25047 <limits.h> exists even on freestanding compilers. */
25048
25049#ifdef __STDC__
25050# include <limits.h>
25051#else
25052# include <assert.h>
25053#endif
25054
25055#undef $ac_func
25056
25057/* Override any gcc2 internal prototype to avoid an error. */
25058#ifdef __cplusplus
25059extern "C"
25060{
25061#endif
25062/* We use char because int might match the return type of a gcc2
25063 builtin and then its argument prototype would still apply. */
25064char $ac_func ();
25065/* The GNU C library defines this for functions which it implements
25066 to always fail with ENOSYS. Some functions are actually named
25067 something starting with __ and the normal name is an alias. */
25068#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25069choke me
25070#else
25071char (*f) () = $ac_func;
25072#endif
25073#ifdef __cplusplus
25074}
25075#endif
25076
25077int
25078main ()
25079{
25080return f != $ac_func;
25081 ;
25082 return 0;
25083}
25084_ACEOF
25085rm -f conftest.$ac_objext conftest$ac_exeext
25086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25087 (eval $ac_link) 2>conftest.er1
25088 ac_status=$?
25089 grep -v '^ *+' conftest.er1 >conftest.err
25090 rm -f conftest.er1
25091 cat conftest.err >&5
25092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093 (exit $ac_status); } &&
c9a66001 25094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25096 (eval $ac_try) 2>&5
25097 ac_status=$?
25098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099 (exit $ac_status); }; } &&
25100 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25102 (eval $ac_try) 2>&5
25103 ac_status=$?
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); }; }; then
25106 eval "$as_ac_var=yes"
25107else
25108 echo "$as_me: failed program was:" >&5
25109sed 's/^/| /' conftest.$ac_ext >&5
25110
25111eval "$as_ac_var=no"
25112fi
ac1cb8d3
VS
25113rm -f conftest.err conftest.$ac_objext \
25114 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25115fi
25116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25117echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25118if test `eval echo '${'$as_ac_var'}'` = yes; then
25119 cat >>confdefs.h <<_ACEOF
25120#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25121_ACEOF
25122
25123fi
25124done
25125
25126fi
25127
25128
25129
25130 if test "x$ac_cv_func_regcomp" != "xyes"; then
25131 if test "$wxUSE_REGEX" = "sys" ; then
25132 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25133echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25134 { (exit 1); exit 1; }; }
25135 else
25136 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25137echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25138 wxUSE_REGEX=builtin
25139 fi
25140 else
25141 wxUSE_REGEX=sys
25142 cat >>confdefs.h <<\_ACEOF
25143#define WX_NO_REGEX_ADVANCED 1
25144_ACEOF
25145
25146 fi
25147 fi
25148fi
25149
25150
25151ZLIB_LINK=
25152if test "$wxUSE_ZLIB" != "no" ; then
25153 cat >>confdefs.h <<\_ACEOF
25154#define wxUSE_ZLIB 1
25155_ACEOF
25156
25157
25158 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25159 if test "$USE_DARWIN" = 1; then
25160 system_zlib_h_ok="yes"
25161 else
25162 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25163echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25164if test "${ac_cv_header_zlib_h+set}" = set; then
25165 echo $ECHO_N "(cached) $ECHO_C" >&6
25166else
25167 if test "$cross_compiling" = yes; then
25168 unset ac_cv_header_zlib_h
25169
25170else
25171 cat >conftest.$ac_ext <<_ACEOF
25172/* confdefs.h. */
25173_ACEOF
25174cat confdefs.h >>conftest.$ac_ext
25175cat >>conftest.$ac_ext <<_ACEOF
25176/* end confdefs.h. */
25177
25178 #include <zlib.h>
25179 #include <stdio.h>
25180
25181 int main()
25182 {
25183 FILE *f=fopen("conftestval", "w");
25184 if (!f) exit(1);
25185 fprintf(f, "%s",
25186 ZLIB_VERSION[0] == '1' &&
25187 (ZLIB_VERSION[2] > '1' ||
25188 (ZLIB_VERSION[2] == '1' &&
25189 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25190 exit(0);
25191 }
25192
25193_ACEOF
25194rm -f conftest$ac_exeext
25195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25196 (eval $ac_link) 2>&5
25197 ac_status=$?
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25201 (eval $ac_try) 2>&5
25202 ac_status=$?
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); }; }; then
25205 ac_cv_header_zlib_h=`cat conftestval`
25206else
25207 echo "$as_me: program exited with status $ac_status" >&5
25208echo "$as_me: failed program was:" >&5
25209sed 's/^/| /' conftest.$ac_ext >&5
25210
25211( exit $ac_status )
25212ac_cv_header_zlib_h=no
25213fi
ac1cb8d3 25214rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25215fi
25216
25217fi
25218echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25219echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25220 if test "${ac_cv_header_zlib_h+set}" = set; then
25221 echo "$as_me:$LINENO: checking for zlib.h" >&5
25222echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25223if test "${ac_cv_header_zlib_h+set}" = set; then
25224 echo $ECHO_N "(cached) $ECHO_C" >&6
25225fi
25226echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25227echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25228else
25229 # Is the header compilable?
25230echo "$as_me:$LINENO: checking zlib.h usability" >&5
25231echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25232cat >conftest.$ac_ext <<_ACEOF
25233/* confdefs.h. */
25234_ACEOF
25235cat confdefs.h >>conftest.$ac_ext
25236cat >>conftest.$ac_ext <<_ACEOF
25237/* end confdefs.h. */
25238$ac_includes_default
25239#include <zlib.h>
25240_ACEOF
25241rm -f conftest.$ac_objext
25242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25243 (eval $ac_compile) 2>conftest.er1
a848cd7e 25244 ac_status=$?
ac1cb8d3
VS
25245 grep -v '^ *+' conftest.er1 >conftest.err
25246 rm -f conftest.er1
25247 cat conftest.err >&5
a848cd7e
SC
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); } &&
c9a66001 25250 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25252 (eval $ac_try) 2>&5
25253 ac_status=$?
25254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255 (exit $ac_status); }; } &&
25256 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25258 (eval $ac_try) 2>&5
25259 ac_status=$?
25260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); }; }; then
25262 ac_header_compiler=yes
25263else
25264 echo "$as_me: failed program was:" >&5
25265sed 's/^/| /' conftest.$ac_ext >&5
25266
25267ac_header_compiler=no
25268fi
ac1cb8d3 25269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25270echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25271echo "${ECHO_T}$ac_header_compiler" >&6
25272
25273# Is the header present?
25274echo "$as_me:$LINENO: checking zlib.h presence" >&5
25275echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25276cat >conftest.$ac_ext <<_ACEOF
25277/* confdefs.h. */
25278_ACEOF
25279cat confdefs.h >>conftest.$ac_ext
25280cat >>conftest.$ac_ext <<_ACEOF
25281/* end confdefs.h. */
25282#include <zlib.h>
25283_ACEOF
25284if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25286 ac_status=$?
25287 grep -v '^ *+' conftest.er1 >conftest.err
25288 rm -f conftest.er1
25289 cat conftest.err >&5
25290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291 (exit $ac_status); } >/dev/null; then
25292 if test -s conftest.err; then
5d7b7554
VZ
25293 ac_cpp_err=$ac_cxx_preproc_warn_flag
25294 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25295 else
25296 ac_cpp_err=
25297 fi
25298else
25299 ac_cpp_err=yes
25300fi
25301if test -z "$ac_cpp_err"; then
25302 ac_header_preproc=yes
25303else
25304 echo "$as_me: failed program was:" >&5
25305sed 's/^/| /' conftest.$ac_ext >&5
25306
25307 ac_header_preproc=no
25308fi
25309rm -f conftest.err conftest.$ac_ext
25310echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25311echo "${ECHO_T}$ac_header_preproc" >&6
25312
25313# So? What about this header?
5d7b7554 25314case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25315 yes:no: )
a848cd7e
SC
25316 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25317echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25318 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25319echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25320 ac_header_preproc=yes
a848cd7e 25321 ;;
ac1cb8d3 25322 no:yes:* )
a848cd7e
SC
25323 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25324echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25325 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25326echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25327 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25328echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25329 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25330echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25331 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25332echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25333 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25334echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25335 (
25336 cat <<\_ASBOX
ac1cb8d3
VS
25337## ----------------------------------------- ##
25338## Report this to wx-dev@lists.wxwidgets.org ##
25339## ----------------------------------------- ##
a848cd7e
SC
25340_ASBOX
25341 ) |
25342 sed "s/^/$as_me: WARNING: /" >&2
25343 ;;
25344esac
25345echo "$as_me:$LINENO: checking for zlib.h" >&5
25346echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25347if test "${ac_cv_header_zlib_h+set}" = set; then
25348 echo $ECHO_N "(cached) $ECHO_C" >&6
25349else
25350 ac_cv_header_zlib_h=$ac_header_preproc
25351fi
25352echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25353echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25354
25355fi
25356
25357
25358
25359 system_zlib_h_ok=$ac_cv_header_zlib_h
25360 fi
25361
25362 if test "$system_zlib_h_ok" = "yes"; then
25363 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25364echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25365if test "${ac_cv_lib_z_deflate+set}" = set; then
25366 echo $ECHO_N "(cached) $ECHO_C" >&6
25367else
25368 ac_check_lib_save_LIBS=$LIBS
25369LIBS="-lz $LIBS"
25370cat >conftest.$ac_ext <<_ACEOF
25371/* confdefs.h. */
25372_ACEOF
25373cat confdefs.h >>conftest.$ac_ext
25374cat >>conftest.$ac_ext <<_ACEOF
25375/* end confdefs.h. */
25376
25377/* Override any gcc2 internal prototype to avoid an error. */
25378#ifdef __cplusplus
25379extern "C"
25380#endif
25381/* We use char because int might match the return type of a gcc2
25382 builtin and then its argument prototype would still apply. */
25383char deflate ();
25384int
25385main ()
25386{
25387deflate ();
25388 ;
25389 return 0;
25390}
25391_ACEOF
25392rm -f conftest.$ac_objext conftest$ac_exeext
25393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25394 (eval $ac_link) 2>conftest.er1
a848cd7e 25395 ac_status=$?
ac1cb8d3
VS
25396 grep -v '^ *+' conftest.er1 >conftest.err
25397 rm -f conftest.er1
25398 cat conftest.err >&5
a848cd7e
SC
25399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400 (exit $ac_status); } &&
c9a66001 25401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25403 (eval $ac_try) 2>&5
25404 ac_status=$?
25405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406 (exit $ac_status); }; } &&
25407 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25409 (eval $ac_try) 2>&5
25410 ac_status=$?
25411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412 (exit $ac_status); }; }; then
25413 ac_cv_lib_z_deflate=yes
25414else
25415 echo "$as_me: failed program was:" >&5
25416sed 's/^/| /' conftest.$ac_ext >&5
25417
25418ac_cv_lib_z_deflate=no
25419fi
ac1cb8d3
VS
25420rm -f conftest.err conftest.$ac_objext \
25421 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25422LIBS=$ac_check_lib_save_LIBS
25423fi
25424echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25425echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25426if test $ac_cv_lib_z_deflate = yes; then
25427 ZLIB_LINK=" -lz"
25428fi
25429
25430 fi
25431
25432 if test "x$ZLIB_LINK" = "x" ; then
25433 if test "$wxUSE_ZLIB" = "sys" ; then
25434 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25435echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25436 { (exit 1); exit 1; }; }
25437 else
25438 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25439echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25440 wxUSE_ZLIB=builtin
25441 fi
25442 else
25443 wxUSE_ZLIB=sys
25444 fi
25445 fi
25446fi
25447
25448
25449PNG_LINK=
25450if test "$wxUSE_LIBPNG" != "no" ; then
25451 cat >>confdefs.h <<\_ACEOF
25452#define wxUSE_LIBPNG 1
25453_ACEOF
25454
25455
25456 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25457 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25458echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25459 wxUSE_LIBPNG=sys
25460 fi
25461
25462 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25463 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25464echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25465 wxUSE_LIBPNG=builtin
25466 fi
25467
25468 if test "$wxUSE_MGL" != 1 ; then
25469 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25470 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25471echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25472if test "${ac_cv_header_png_h+set}" = set; then
25473 echo $ECHO_N "(cached) $ECHO_C" >&6
25474else
25475 if test "$cross_compiling" = yes; then
25476 unset ac_cv_header_png_h
25477
25478else
25479 cat >conftest.$ac_ext <<_ACEOF
25480/* confdefs.h. */
25481_ACEOF
25482cat confdefs.h >>conftest.$ac_ext
25483cat >>conftest.$ac_ext <<_ACEOF
25484/* end confdefs.h. */
25485
25486 #include <png.h>
25487 #include <stdio.h>
25488
25489 int main()
25490 {
25491 FILE *f=fopen("conftestval", "w");
25492 if (!f) exit(1);
25493 fprintf(f, "%s",
25494 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25495 exit(0);
25496 }
25497
25498_ACEOF
25499rm -f conftest$ac_exeext
25500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25501 (eval $ac_link) 2>&5
25502 ac_status=$?
25503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25506 (eval $ac_try) 2>&5
25507 ac_status=$?
25508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509 (exit $ac_status); }; }; then
25510 ac_cv_header_png_h=`cat conftestval`
25511else
25512 echo "$as_me: program exited with status $ac_status" >&5
25513echo "$as_me: failed program was:" >&5
25514sed 's/^/| /' conftest.$ac_ext >&5
25515
25516( exit $ac_status )
25517ac_cv_header_png_h=no
25518fi
ac1cb8d3 25519rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25520fi
25521
25522fi
25523echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25524echo "${ECHO_T}$ac_cv_header_png_h" >&6
25525 if test "${ac_cv_header_png_h+set}" = set; then
25526 echo "$as_me:$LINENO: checking for png.h" >&5
25527echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25528if test "${ac_cv_header_png_h+set}" = set; then
25529 echo $ECHO_N "(cached) $ECHO_C" >&6
25530fi
25531echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25532echo "${ECHO_T}$ac_cv_header_png_h" >&6
25533else
25534 # Is the header compilable?
25535echo "$as_me:$LINENO: checking png.h usability" >&5
25536echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25537cat >conftest.$ac_ext <<_ACEOF
25538/* confdefs.h. */
25539_ACEOF
25540cat confdefs.h >>conftest.$ac_ext
25541cat >>conftest.$ac_ext <<_ACEOF
25542/* end confdefs.h. */
25543$ac_includes_default
25544#include <png.h>
25545_ACEOF
25546rm -f conftest.$ac_objext
25547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25548 (eval $ac_compile) 2>conftest.er1
a848cd7e 25549 ac_status=$?
ac1cb8d3
VS
25550 grep -v '^ *+' conftest.er1 >conftest.err
25551 rm -f conftest.er1
25552 cat conftest.err >&5
a848cd7e
SC
25553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554 (exit $ac_status); } &&
c9a66001 25555 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25557 (eval $ac_try) 2>&5
25558 ac_status=$?
25559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25560 (exit $ac_status); }; } &&
25561 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25563 (eval $ac_try) 2>&5
25564 ac_status=$?
25565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566 (exit $ac_status); }; }; then
25567 ac_header_compiler=yes
25568else
25569 echo "$as_me: failed program was:" >&5
25570sed 's/^/| /' conftest.$ac_ext >&5
25571
25572ac_header_compiler=no
25573fi
ac1cb8d3 25574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25575echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25576echo "${ECHO_T}$ac_header_compiler" >&6
25577
25578# Is the header present?
25579echo "$as_me:$LINENO: checking png.h presence" >&5
25580echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25581cat >conftest.$ac_ext <<_ACEOF
25582/* confdefs.h. */
25583_ACEOF
25584cat confdefs.h >>conftest.$ac_ext
25585cat >>conftest.$ac_ext <<_ACEOF
25586/* end confdefs.h. */
25587#include <png.h>
25588_ACEOF
25589if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25591 ac_status=$?
25592 grep -v '^ *+' conftest.er1 >conftest.err
25593 rm -f conftest.er1
25594 cat conftest.err >&5
25595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596 (exit $ac_status); } >/dev/null; then
25597 if test -s conftest.err; then
5d7b7554
VZ
25598 ac_cpp_err=$ac_cxx_preproc_warn_flag
25599 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25600 else
25601 ac_cpp_err=
25602 fi
25603else
25604 ac_cpp_err=yes
25605fi
25606if test -z "$ac_cpp_err"; then
25607 ac_header_preproc=yes
25608else
25609 echo "$as_me: failed program was:" >&5
25610sed 's/^/| /' conftest.$ac_ext >&5
25611
25612 ac_header_preproc=no
25613fi
25614rm -f conftest.err conftest.$ac_ext
25615echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25616echo "${ECHO_T}$ac_header_preproc" >&6
25617
25618# So? What about this header?
5d7b7554 25619case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25620 yes:no: )
a848cd7e
SC
25621 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25622echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25623 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25624echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25625 ac_header_preproc=yes
a848cd7e 25626 ;;
ac1cb8d3 25627 no:yes:* )
a848cd7e
SC
25628 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25629echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25630 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25631echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25632 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25633echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25634 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25635echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25636 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25637echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25638 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25639echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25640 (
25641 cat <<\_ASBOX
ac1cb8d3
VS
25642## ----------------------------------------- ##
25643## Report this to wx-dev@lists.wxwidgets.org ##
25644## ----------------------------------------- ##
a848cd7e
SC
25645_ASBOX
25646 ) |
25647 sed "s/^/$as_me: WARNING: /" >&2
25648 ;;
25649esac
25650echo "$as_me:$LINENO: checking for png.h" >&5
25651echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25652if test "${ac_cv_header_png_h+set}" = set; then
25653 echo $ECHO_N "(cached) $ECHO_C" >&6
25654else
25655 ac_cv_header_png_h=$ac_header_preproc
25656fi
25657echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25658echo "${ECHO_T}$ac_cv_header_png_h" >&6
25659
25660fi
25661
25662
25663
25664 if test "$ac_cv_header_png_h" = "yes"; then
25665 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25666echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25667if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25668 echo $ECHO_N "(cached) $ECHO_C" >&6
25669else
25670 ac_check_lib_save_LIBS=$LIBS
25671LIBS="-lpng -lz -lm $LIBS"
25672cat >conftest.$ac_ext <<_ACEOF
25673/* confdefs.h. */
25674_ACEOF
25675cat confdefs.h >>conftest.$ac_ext
25676cat >>conftest.$ac_ext <<_ACEOF
25677/* end confdefs.h. */
25678
25679/* Override any gcc2 internal prototype to avoid an error. */
25680#ifdef __cplusplus
25681extern "C"
25682#endif
25683/* We use char because int might match the return type of a gcc2
25684 builtin and then its argument prototype would still apply. */
25685char png_check_sig ();
25686int
25687main ()
25688{
25689png_check_sig ();
25690 ;
25691 return 0;
25692}
25693_ACEOF
25694rm -f conftest.$ac_objext conftest$ac_exeext
25695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25696 (eval $ac_link) 2>conftest.er1
a848cd7e 25697 ac_status=$?
ac1cb8d3
VS
25698 grep -v '^ *+' conftest.er1 >conftest.err
25699 rm -f conftest.er1
25700 cat conftest.err >&5
a848cd7e
SC
25701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702 (exit $ac_status); } &&
c9a66001 25703 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25705 (eval $ac_try) 2>&5
25706 ac_status=$?
25707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708 (exit $ac_status); }; } &&
25709 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25711 (eval $ac_try) 2>&5
25712 ac_status=$?
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); }; }; then
25715 ac_cv_lib_png_png_check_sig=yes
25716else
25717 echo "$as_me: failed program was:" >&5
25718sed 's/^/| /' conftest.$ac_ext >&5
25719
25720ac_cv_lib_png_png_check_sig=no
25721fi
ac1cb8d3
VS
25722rm -f conftest.err conftest.$ac_objext \
25723 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25724LIBS=$ac_check_lib_save_LIBS
25725fi
25726echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25727echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25728if test $ac_cv_lib_png_png_check_sig = yes; then
25729 PNG_LINK=" -lpng -lz"
25730fi
25731
25732 fi
25733
25734 if test "x$PNG_LINK" = "x" ; then
25735 if test "$wxUSE_LIBPNG" = "sys" ; then
25736 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25737echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25738 { (exit 1); exit 1; }; }
25739 else
25740 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25741echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25742 wxUSE_LIBPNG=builtin
25743 fi
25744 else
25745 wxUSE_LIBPNG=sys
25746 fi
25747 fi
25748 fi
25749
25750 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25751fi
25752
25753
25754JPEG_LINK=
25755if test "$wxUSE_LIBJPEG" != "no" ; then
25756 cat >>confdefs.h <<\_ACEOF
25757#define wxUSE_LIBJPEG 1
25758_ACEOF
25759
25760
25761 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25762 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25763echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25764 wxUSE_LIBJPEG=sys
25765 fi
25766
25767 if test "$wxUSE_MGL" != 1 ; then
25768 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25769 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25770echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25771 if test "${ac_cv_header_jpeglib_h+set}" = set; then
25772 echo $ECHO_N "(cached) $ECHO_C" >&6
25773else
25774 cat >conftest.$ac_ext <<_ACEOF
25775/* confdefs.h. */
25776_ACEOF
25777cat confdefs.h >>conftest.$ac_ext
25778cat >>conftest.$ac_ext <<_ACEOF
25779/* end confdefs.h. */
25780
25781 #undef HAVE_STDLIB_H
25782 #include <stdio.h>
25783 #include <jpeglib.h>
25784
25785int
25786main ()
25787{
25788
25789
25790 ;
25791 return 0;
25792}
25793_ACEOF
25794rm -f conftest.$ac_objext
25795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25796 (eval $ac_compile) 2>conftest.er1
a848cd7e 25797 ac_status=$?
ac1cb8d3
VS
25798 grep -v '^ *+' conftest.er1 >conftest.err
25799 rm -f conftest.er1
25800 cat conftest.err >&5
a848cd7e
SC
25801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25802 (exit $ac_status); } &&
c9a66001 25803 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25805 (eval $ac_try) 2>&5
25806 ac_status=$?
25807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25808 (exit $ac_status); }; } &&
25809 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25811 (eval $ac_try) 2>&5
25812 ac_status=$?
25813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814 (exit $ac_status); }; }; then
25815 ac_cv_header_jpeglib_h=yes
25816else
25817 echo "$as_me: failed program was:" >&5
25818sed 's/^/| /' conftest.$ac_ext >&5
25819
25820ac_cv_header_jpeglib_h=no
25821
25822fi
ac1cb8d3 25823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25824
25825fi
25826
25827 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25828echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25829
25830 if test "$ac_cv_header_jpeglib_h" = "yes"; then
25831 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25832echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25833if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25834 echo $ECHO_N "(cached) $ECHO_C" >&6
25835else
25836 ac_check_lib_save_LIBS=$LIBS
25837LIBS="-ljpeg $LIBS"
25838cat >conftest.$ac_ext <<_ACEOF
25839/* confdefs.h. */
25840_ACEOF
25841cat confdefs.h >>conftest.$ac_ext
25842cat >>conftest.$ac_ext <<_ACEOF
25843/* end confdefs.h. */
25844
25845/* Override any gcc2 internal prototype to avoid an error. */
25846#ifdef __cplusplus
25847extern "C"
25848#endif
25849/* We use char because int might match the return type of a gcc2
25850 builtin and then its argument prototype would still apply. */
25851char jpeg_read_header ();
25852int
25853main ()
25854{
25855jpeg_read_header ();
25856 ;
25857 return 0;
25858}
25859_ACEOF
25860rm -f conftest.$ac_objext conftest$ac_exeext
25861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25862 (eval $ac_link) 2>conftest.er1
a848cd7e 25863 ac_status=$?
ac1cb8d3
VS
25864 grep -v '^ *+' conftest.er1 >conftest.err
25865 rm -f conftest.er1
25866 cat conftest.err >&5
a848cd7e
SC
25867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868 (exit $ac_status); } &&
c9a66001 25869 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25871 (eval $ac_try) 2>&5
25872 ac_status=$?
25873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); }; } &&
25875 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25877 (eval $ac_try) 2>&5
25878 ac_status=$?
25879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880 (exit $ac_status); }; }; then
25881 ac_cv_lib_jpeg_jpeg_read_header=yes
25882else
25883 echo "$as_me: failed program was:" >&5
25884sed 's/^/| /' conftest.$ac_ext >&5
25885
25886ac_cv_lib_jpeg_jpeg_read_header=no
25887fi
ac1cb8d3
VS
25888rm -f conftest.err conftest.$ac_objext \
25889 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25890LIBS=$ac_check_lib_save_LIBS
25891fi
25892echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
25893echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
25894if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
25895 JPEG_LINK=" -ljpeg"
25896fi
25897
25898 fi
25899
25900 if test "x$JPEG_LINK" = "x" ; then
25901 if test "$wxUSE_LIBJPEG" = "sys" ; then
25902 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25903echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25904 { (exit 1); exit 1; }; }
25905 else
25906 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25907echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25908 wxUSE_LIBJPEG=builtin
25909 fi
25910 else
25911 wxUSE_LIBJPEG=sys
25912 fi
25913 fi
25914 fi
25915fi
25916
25917
25918TIFF_LINK=
25919TIFF_PREREQ_LINKS=-lm
25920if test "$wxUSE_LIBTIFF" != "no" ; then
25921 cat >>confdefs.h <<\_ACEOF
25922#define wxUSE_LIBTIFF 1
25923_ACEOF
25924
25925
25926 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
25927 if test "$wxUSE_LIBJPEG" = "sys"; then
25928 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
25929 fi
25930 if test "$wxUSE_ZLIB" = "sys"; then
25931 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
25932 fi
25933 if test "${ac_cv_header_tiffio_h+set}" = set; then
25934 echo "$as_me:$LINENO: checking for tiffio.h" >&5
25935echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25936if test "${ac_cv_header_tiffio_h+set}" = set; then
25937 echo $ECHO_N "(cached) $ECHO_C" >&6
25938fi
25939echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25940echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25941else
25942 # Is the header compilable?
25943echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25944echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25945cat >conftest.$ac_ext <<_ACEOF
25946/* confdefs.h. */
25947_ACEOF
25948cat confdefs.h >>conftest.$ac_ext
25949cat >>conftest.$ac_ext <<_ACEOF
25950/* end confdefs.h. */
25951$ac_includes_default
25952#include <tiffio.h>
25953_ACEOF
25954rm -f conftest.$ac_objext
25955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25956 (eval $ac_compile) 2>conftest.er1
a848cd7e 25957 ac_status=$?
ac1cb8d3
VS
25958 grep -v '^ *+' conftest.er1 >conftest.err
25959 rm -f conftest.er1
25960 cat conftest.err >&5
a848cd7e
SC
25961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962 (exit $ac_status); } &&
c9a66001 25963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965 (eval $ac_try) 2>&5
25966 ac_status=$?
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); }; } &&
25969 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971 (eval $ac_try) 2>&5
25972 ac_status=$?
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); }; }; then
25975 ac_header_compiler=yes
25976else
25977 echo "$as_me: failed program was:" >&5
25978sed 's/^/| /' conftest.$ac_ext >&5
25979
25980ac_header_compiler=no
25981fi
ac1cb8d3 25982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25983echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25984echo "${ECHO_T}$ac_header_compiler" >&6
25985
25986# Is the header present?
25987echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25988echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25989cat >conftest.$ac_ext <<_ACEOF
25990/* confdefs.h. */
25991_ACEOF
25992cat confdefs.h >>conftest.$ac_ext
25993cat >>conftest.$ac_ext <<_ACEOF
25994/* end confdefs.h. */
25995#include <tiffio.h>
25996_ACEOF
25997if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25999 ac_status=$?
26000 grep -v '^ *+' conftest.er1 >conftest.err
26001 rm -f conftest.er1
26002 cat conftest.err >&5
26003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26004 (exit $ac_status); } >/dev/null; then
26005 if test -s conftest.err; then
5d7b7554
VZ
26006 ac_cpp_err=$ac_cxx_preproc_warn_flag
26007 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26008 else
26009 ac_cpp_err=
26010 fi
26011else
26012 ac_cpp_err=yes
26013fi
26014if test -z "$ac_cpp_err"; then
26015 ac_header_preproc=yes
26016else
26017 echo "$as_me: failed program was:" >&5
26018sed 's/^/| /' conftest.$ac_ext >&5
26019
26020 ac_header_preproc=no
26021fi
26022rm -f conftest.err conftest.$ac_ext
26023echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26024echo "${ECHO_T}$ac_header_preproc" >&6
26025
26026# So? What about this header?
5d7b7554 26027case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26028 yes:no: )
a848cd7e
SC
26029 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26030echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26031 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26032echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26033 ac_header_preproc=yes
a848cd7e 26034 ;;
ac1cb8d3 26035 no:yes:* )
a848cd7e
SC
26036 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26037echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26038 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
26039echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
26040 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26041echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26042 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
26043echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26044 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26045echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26046 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26047echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26048 (
26049 cat <<\_ASBOX
ac1cb8d3
VS
26050## ----------------------------------------- ##
26051## Report this to wx-dev@lists.wxwidgets.org ##
26052## ----------------------------------------- ##
a848cd7e
SC
26053_ASBOX
26054 ) |
26055 sed "s/^/$as_me: WARNING: /" >&2
26056 ;;
26057esac
26058echo "$as_me:$LINENO: checking for tiffio.h" >&5
26059echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26060if test "${ac_cv_header_tiffio_h+set}" = set; then
26061 echo $ECHO_N "(cached) $ECHO_C" >&6
26062else
26063 ac_cv_header_tiffio_h=$ac_header_preproc
26064fi
26065echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26066echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26067
26068fi
26069if test $ac_cv_header_tiffio_h = yes; then
26070
26071 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26072echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26073if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26074 echo $ECHO_N "(cached) $ECHO_C" >&6
26075else
26076 ac_check_lib_save_LIBS=$LIBS
26077LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26078cat >conftest.$ac_ext <<_ACEOF
26079/* confdefs.h. */
26080_ACEOF
26081cat confdefs.h >>conftest.$ac_ext
26082cat >>conftest.$ac_ext <<_ACEOF
26083/* end confdefs.h. */
26084
26085/* Override any gcc2 internal prototype to avoid an error. */
26086#ifdef __cplusplus
26087extern "C"
26088#endif
26089/* We use char because int might match the return type of a gcc2
26090 builtin and then its argument prototype would still apply. */
26091char TIFFError ();
26092int
26093main ()
26094{
26095TIFFError ();
26096 ;
26097 return 0;
26098}
26099_ACEOF
26100rm -f conftest.$ac_objext conftest$ac_exeext
26101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26102 (eval $ac_link) 2>conftest.er1
a848cd7e 26103 ac_status=$?
ac1cb8d3
VS
26104 grep -v '^ *+' conftest.er1 >conftest.err
26105 rm -f conftest.er1
26106 cat conftest.err >&5
a848cd7e
SC
26107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); } &&
c9a66001 26109 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26111 (eval $ac_try) 2>&5
26112 ac_status=$?
26113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114 (exit $ac_status); }; } &&
26115 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26117 (eval $ac_try) 2>&5
26118 ac_status=$?
26119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120 (exit $ac_status); }; }; then
26121 ac_cv_lib_tiff_TIFFError=yes
26122else
26123 echo "$as_me: failed program was:" >&5
26124sed 's/^/| /' conftest.$ac_ext >&5
26125
26126ac_cv_lib_tiff_TIFFError=no
26127fi
ac1cb8d3
VS
26128rm -f conftest.err conftest.$ac_objext \
26129 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26130LIBS=$ac_check_lib_save_LIBS
26131fi
26132echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26133echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26134if test $ac_cv_lib_tiff_TIFFError = yes; then
26135 TIFF_LINK=" -ltiff"
26136fi
26137
26138
26139
26140fi
26141
26142
26143
26144 if test "x$TIFF_LINK" = "x" ; then
26145 if test "$wxUSE_LIBTIFF" = "sys" ; then
26146 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26147echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26148 { (exit 1); exit 1; }; }
26149 else
26150 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26151echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26152 wxUSE_LIBTIFF=builtin
26153 fi
26154 else
26155 wxUSE_LIBTIFF=sys
26156 fi
26157 fi
26158fi
26159
26160
47a7e797
MW
26161if test "$wxUSE_WCHAR_T" != "yes"; then
26162 if test "$wxUSE_EXPAT" != "no"; then
26163 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26164echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26165 wxUSE_EXPAT=no
26166 fi
26167 if test "$wxUSE_XML" != "no"; then
26168 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26169echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26170 wxUSE_XML=no
26171 fi
26172fi
26173
a848cd7e
SC
26174if test "$wxUSE_EXPAT" != "no"; then
26175 wxUSE_XML=yes
26176 cat >>confdefs.h <<\_ACEOF
26177#define wxUSE_EXPAT 1
26178_ACEOF
26179
26180 cat >>confdefs.h <<\_ACEOF
26181#define wxUSE_XML 1
26182_ACEOF
26183
26184
26185 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26186 if test "${ac_cv_header_expat_h+set}" = set; then
26187 echo "$as_me:$LINENO: checking for expat.h" >&5
26188echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26189if test "${ac_cv_header_expat_h+set}" = set; then
26190 echo $ECHO_N "(cached) $ECHO_C" >&6
26191fi
26192echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26193echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26194else
26195 # Is the header compilable?
26196echo "$as_me:$LINENO: checking expat.h usability" >&5
26197echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26198cat >conftest.$ac_ext <<_ACEOF
26199/* confdefs.h. */
26200_ACEOF
26201cat confdefs.h >>conftest.$ac_ext
26202cat >>conftest.$ac_ext <<_ACEOF
26203/* end confdefs.h. */
26204$ac_includes_default
26205#include <expat.h>
26206_ACEOF
26207rm -f conftest.$ac_objext
26208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26209 (eval $ac_compile) 2>conftest.er1
a848cd7e 26210 ac_status=$?
ac1cb8d3
VS
26211 grep -v '^ *+' conftest.er1 >conftest.err
26212 rm -f conftest.er1
26213 cat conftest.err >&5
a848cd7e
SC
26214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26215 (exit $ac_status); } &&
c9a66001 26216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26218 (eval $ac_try) 2>&5
26219 ac_status=$?
26220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26221 (exit $ac_status); }; } &&
26222 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26224 (eval $ac_try) 2>&5
26225 ac_status=$?
26226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227 (exit $ac_status); }; }; then
26228 ac_header_compiler=yes
26229else
26230 echo "$as_me: failed program was:" >&5
26231sed 's/^/| /' conftest.$ac_ext >&5
26232
26233ac_header_compiler=no
26234fi
ac1cb8d3 26235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26236echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26237echo "${ECHO_T}$ac_header_compiler" >&6
26238
26239# Is the header present?
26240echo "$as_me:$LINENO: checking expat.h presence" >&5
26241echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26242cat >conftest.$ac_ext <<_ACEOF
26243/* confdefs.h. */
26244_ACEOF
26245cat confdefs.h >>conftest.$ac_ext
26246cat >>conftest.$ac_ext <<_ACEOF
26247/* end confdefs.h. */
26248#include <expat.h>
26249_ACEOF
26250if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26252 ac_status=$?
26253 grep -v '^ *+' conftest.er1 >conftest.err
26254 rm -f conftest.er1
26255 cat conftest.err >&5
26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); } >/dev/null; then
26258 if test -s conftest.err; then
5d7b7554
VZ
26259 ac_cpp_err=$ac_cxx_preproc_warn_flag
26260 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26261 else
26262 ac_cpp_err=
26263 fi
26264else
26265 ac_cpp_err=yes
26266fi
26267if test -z "$ac_cpp_err"; then
26268 ac_header_preproc=yes
26269else
26270 echo "$as_me: failed program was:" >&5
26271sed 's/^/| /' conftest.$ac_ext >&5
26272
26273 ac_header_preproc=no
26274fi
26275rm -f conftest.err conftest.$ac_ext
26276echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26277echo "${ECHO_T}$ac_header_preproc" >&6
26278
26279# So? What about this header?
5d7b7554 26280case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26281 yes:no: )
a848cd7e
SC
26282 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26283echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26284 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26285echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26286 ac_header_preproc=yes
a848cd7e 26287 ;;
ac1cb8d3 26288 no:yes:* )
a848cd7e
SC
26289 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26290echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26291 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
26292echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
26293 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26294echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26295 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
26296echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26297 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26298echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26299 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26300echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26301 (
26302 cat <<\_ASBOX
ac1cb8d3
VS
26303## ----------------------------------------- ##
26304## Report this to wx-dev@lists.wxwidgets.org ##
26305## ----------------------------------------- ##
a848cd7e
SC
26306_ASBOX
26307 ) |
26308 sed "s/^/$as_me: WARNING: /" >&2
26309 ;;
26310esac
26311echo "$as_me:$LINENO: checking for expat.h" >&5
26312echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26313if test "${ac_cv_header_expat_h+set}" = set; then
26314 echo $ECHO_N "(cached) $ECHO_C" >&6
26315else
26316 ac_cv_header_expat_h=$ac_header_preproc
26317fi
26318echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26319echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26320
26321fi
26322if test $ac_cv_header_expat_h = yes; then
26323 found_expat_h=1
26324fi
26325
26326
26327 if test "x$found_expat_h" = "x1"; then
26328 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26329echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26330if test "${wx_cv_expat_is_not_broken+set}" = set; then
26331 echo $ECHO_N "(cached) $ECHO_C" >&6
26332else
26333
a848cd7e
SC
26334 cat >conftest.$ac_ext <<_ACEOF
26335/* confdefs.h. */
26336_ACEOF
26337cat confdefs.h >>conftest.$ac_ext
26338cat >>conftest.$ac_ext <<_ACEOF
26339/* end confdefs.h. */
26340#include <expat.h>
26341int
26342main ()
26343{
26344
26345 ;
26346 return 0;
26347}
26348_ACEOF
26349rm -f conftest.$ac_objext
26350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26351 (eval $ac_compile) 2>conftest.er1
a848cd7e 26352 ac_status=$?
ac1cb8d3
VS
26353 grep -v '^ *+' conftest.er1 >conftest.err
26354 rm -f conftest.er1
26355 cat conftest.err >&5
a848cd7e
SC
26356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357 (exit $ac_status); } &&
c9a66001 26358 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26360 (eval $ac_try) 2>&5
26361 ac_status=$?
26362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26363 (exit $ac_status); }; } &&
26364 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26366 (eval $ac_try) 2>&5
26367 ac_status=$?
26368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369 (exit $ac_status); }; }; then
26370 wx_cv_expat_is_not_broken=yes
26371else
26372 echo "$as_me: failed program was:" >&5
26373sed 's/^/| /' conftest.$ac_ext >&5
26374
26375wx_cv_expat_is_not_broken=no
26376
26377fi
ac1cb8d3 26378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26379
26380
26381fi
26382echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26383echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26384 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26385 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26386echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26387if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26388 echo $ECHO_N "(cached) $ECHO_C" >&6
26389else
26390 ac_check_lib_save_LIBS=$LIBS
26391LIBS="-lexpat $LIBS"
26392cat >conftest.$ac_ext <<_ACEOF
26393/* confdefs.h. */
26394_ACEOF
26395cat confdefs.h >>conftest.$ac_ext
26396cat >>conftest.$ac_ext <<_ACEOF
26397/* end confdefs.h. */
26398
26399/* Override any gcc2 internal prototype to avoid an error. */
26400#ifdef __cplusplus
26401extern "C"
26402#endif
26403/* We use char because int might match the return type of a gcc2
26404 builtin and then its argument prototype would still apply. */
26405char XML_ParserCreate ();
26406int
26407main ()
26408{
26409XML_ParserCreate ();
26410 ;
26411 return 0;
26412}
26413_ACEOF
26414rm -f conftest.$ac_objext conftest$ac_exeext
26415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26416 (eval $ac_link) 2>conftest.er1
a848cd7e 26417 ac_status=$?
ac1cb8d3
VS
26418 grep -v '^ *+' conftest.er1 >conftest.err
26419 rm -f conftest.er1
26420 cat conftest.err >&5
a848cd7e
SC
26421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26422 (exit $ac_status); } &&
c9a66001 26423 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26425 (eval $ac_try) 2>&5
26426 ac_status=$?
26427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428 (exit $ac_status); }; } &&
26429 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26431 (eval $ac_try) 2>&5
26432 ac_status=$?
26433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434 (exit $ac_status); }; }; then
26435 ac_cv_lib_expat_XML_ParserCreate=yes
26436else
26437 echo "$as_me: failed program was:" >&5
26438sed 's/^/| /' conftest.$ac_ext >&5
26439
26440ac_cv_lib_expat_XML_ParserCreate=no
26441fi
ac1cb8d3
VS
26442rm -f conftest.err conftest.$ac_objext \
26443 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26444LIBS=$ac_check_lib_save_LIBS
26445fi
26446echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26447echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26448if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26449 EXPAT_LINK=" -lexpat"
26450fi
26451
26452 fi
26453 fi
26454 if test "x$EXPAT_LINK" = "x" ; then
26455 if test "$wxUSE_EXPAT" = "sys" ; then
26456 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26457echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26458 { (exit 1); exit 1; }; }
26459 else
26460 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26461echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26462 wxUSE_EXPAT=builtin
26463 fi
26464 else
26465 wxUSE_EXPAT=sys
26466 fi
26467 fi
26468 if test "$wxUSE_EXPAT" = "builtin" ; then
26469
26470
26471subdirs="$subdirs src/expat"
26472
26473 fi
26474fi
26475
26476
26477
26478if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
26479 if test "${ac_cv_header_mspack_h+set}" = set; then
26480 echo "$as_me:$LINENO: checking for mspack.h" >&5
26481echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26482if test "${ac_cv_header_mspack_h+set}" = set; then
26483 echo $ECHO_N "(cached) $ECHO_C" >&6
26484fi
26485echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26486echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26487else
26488 # Is the header compilable?
26489echo "$as_me:$LINENO: checking mspack.h usability" >&5
26490echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26491cat >conftest.$ac_ext <<_ACEOF
26492/* confdefs.h. */
26493_ACEOF
26494cat confdefs.h >>conftest.$ac_ext
26495cat >>conftest.$ac_ext <<_ACEOF
26496/* end confdefs.h. */
26497$ac_includes_default
26498#include <mspack.h>
26499_ACEOF
26500rm -f conftest.$ac_objext
26501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26502 (eval $ac_compile) 2>conftest.er1
a848cd7e 26503 ac_status=$?
ac1cb8d3
VS
26504 grep -v '^ *+' conftest.er1 >conftest.err
26505 rm -f conftest.er1
26506 cat conftest.err >&5
a848cd7e
SC
26507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); } &&
c9a66001 26509 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26511 (eval $ac_try) 2>&5
26512 ac_status=$?
26513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26514 (exit $ac_status); }; } &&
26515 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26517 (eval $ac_try) 2>&5
26518 ac_status=$?
26519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26520 (exit $ac_status); }; }; then
26521 ac_header_compiler=yes
26522else
26523 echo "$as_me: failed program was:" >&5
26524sed 's/^/| /' conftest.$ac_ext >&5
26525
26526ac_header_compiler=no
26527fi
ac1cb8d3 26528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26529echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26530echo "${ECHO_T}$ac_header_compiler" >&6
26531
26532# Is the header present?
26533echo "$as_me:$LINENO: checking mspack.h presence" >&5
26534echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26535cat >conftest.$ac_ext <<_ACEOF
26536/* confdefs.h. */
26537_ACEOF
26538cat confdefs.h >>conftest.$ac_ext
26539cat >>conftest.$ac_ext <<_ACEOF
26540/* end confdefs.h. */
26541#include <mspack.h>
26542_ACEOF
26543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26545 ac_status=$?
26546 grep -v '^ *+' conftest.er1 >conftest.err
26547 rm -f conftest.er1
26548 cat conftest.err >&5
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); } >/dev/null; then
26551 if test -s conftest.err; then
5d7b7554
VZ
26552 ac_cpp_err=$ac_cxx_preproc_warn_flag
26553 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26554 else
26555 ac_cpp_err=
26556 fi
26557else
26558 ac_cpp_err=yes
26559fi
26560if test -z "$ac_cpp_err"; then
26561 ac_header_preproc=yes
26562else
26563 echo "$as_me: failed program was:" >&5
26564sed 's/^/| /' conftest.$ac_ext >&5
26565
26566 ac_header_preproc=no
26567fi
26568rm -f conftest.err conftest.$ac_ext
26569echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26570echo "${ECHO_T}$ac_header_preproc" >&6
26571
26572# So? What about this header?
5d7b7554 26573case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26574 yes:no: )
a848cd7e
SC
26575 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26576echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26577 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26578echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26579 ac_header_preproc=yes
a848cd7e 26580 ;;
ac1cb8d3 26581 no:yes:* )
a848cd7e
SC
26582 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26583echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26584 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
26585echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
26586 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26587echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26588 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
26589echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26590 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26591echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26592 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26593echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26594 (
26595 cat <<\_ASBOX
ac1cb8d3
VS
26596## ----------------------------------------- ##
26597## Report this to wx-dev@lists.wxwidgets.org ##
26598## ----------------------------------------- ##
a848cd7e
SC
26599_ASBOX
26600 ) |
26601 sed "s/^/$as_me: WARNING: /" >&2
26602 ;;
26603esac
26604echo "$as_me:$LINENO: checking for mspack.h" >&5
26605echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26606if test "${ac_cv_header_mspack_h+set}" = set; then
26607 echo $ECHO_N "(cached) $ECHO_C" >&6
26608else
26609 ac_cv_header_mspack_h=$ac_header_preproc
26610fi
26611echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26612echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26613
26614fi
26615if test $ac_cv_header_mspack_h = yes; then
26616 found_mspack_h=1
26617fi
26618
26619
26620 if test "x$found_mspack_h" = "x1"; then
26621 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26622echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26623if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26624 echo $ECHO_N "(cached) $ECHO_C" >&6
26625else
26626 ac_check_lib_save_LIBS=$LIBS
26627LIBS="-lmspack $LIBS"
26628cat >conftest.$ac_ext <<_ACEOF
26629/* confdefs.h. */
26630_ACEOF
26631cat confdefs.h >>conftest.$ac_ext
26632cat >>conftest.$ac_ext <<_ACEOF
26633/* end confdefs.h. */
26634
26635/* Override any gcc2 internal prototype to avoid an error. */
26636#ifdef __cplusplus
26637extern "C"
26638#endif
26639/* We use char because int might match the return type of a gcc2
26640 builtin and then its argument prototype would still apply. */
26641char mspack_create_chm_decompressor ();
26642int
26643main ()
26644{
26645mspack_create_chm_decompressor ();
26646 ;
26647 return 0;
26648}
26649_ACEOF
26650rm -f conftest.$ac_objext conftest$ac_exeext
26651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26652 (eval $ac_link) 2>conftest.er1
a848cd7e 26653 ac_status=$?
ac1cb8d3
VS
26654 grep -v '^ *+' conftest.er1 >conftest.err
26655 rm -f conftest.er1
26656 cat conftest.err >&5
a848cd7e
SC
26657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658 (exit $ac_status); } &&
c9a66001 26659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26661 (eval $ac_try) 2>&5
26662 ac_status=$?
26663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664 (exit $ac_status); }; } &&
26665 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26667 (eval $ac_try) 2>&5
26668 ac_status=$?
26669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670 (exit $ac_status); }; }; then
26671 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26672else
26673 echo "$as_me: failed program was:" >&5
26674sed 's/^/| /' conftest.$ac_ext >&5
26675
26676ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26677fi
ac1cb8d3
VS
26678rm -f conftest.err conftest.$ac_objext \
26679 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26680LIBS=$ac_check_lib_save_LIBS
26681fi
26682echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26683echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26684if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26685 MSPACK_LINK=" -lmspack"
26686fi
26687
26688 fi
26689 if test "x$MSPACK_LINK" = "x" ; then
26690 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
26691 fi
26692fi
26693
26694if test "$wxUSE_LIBMSPACK" != "no"; then
26695 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
26696#define wxUSE_LIBMSPACK 1
26697_ACEOF
26698
a848cd7e
SC
26699fi
26700
26701
26702
26703AFMINSTALL=
26704WIN32INSTALL=
26705
26706TOOLKIT=
26707TOOLKIT_INCLUDE=
26708WIDGET_SET=
26709
26710if test "$USE_WIN32" = 1 ; then
26711
26712for ac_header in w32api.h
26713do
26714as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26715if eval "test \"\${$as_ac_Header+set}\" = set"; then
26716 echo "$as_me:$LINENO: checking for $ac_header" >&5
26717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26718if eval "test \"\${$as_ac_Header+set}\" = set"; then
26719 echo $ECHO_N "(cached) $ECHO_C" >&6
26720fi
26721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26722echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26723else
26724 # Is the header compilable?
26725echo "$as_me:$LINENO: checking $ac_header usability" >&5
26726echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26727cat >conftest.$ac_ext <<_ACEOF
26728/* confdefs.h. */
26729_ACEOF
26730cat confdefs.h >>conftest.$ac_ext
26731cat >>conftest.$ac_ext <<_ACEOF
26732/* end confdefs.h. */
26733$ac_includes_default
26734#include <$ac_header>
26735_ACEOF
26736rm -f conftest.$ac_objext
26737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26738 (eval $ac_compile) 2>conftest.er1
a848cd7e 26739 ac_status=$?
ac1cb8d3
VS
26740 grep -v '^ *+' conftest.er1 >conftest.err
26741 rm -f conftest.er1
26742 cat conftest.err >&5
a848cd7e
SC
26743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744 (exit $ac_status); } &&
c9a66001 26745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26747 (eval $ac_try) 2>&5
26748 ac_status=$?
26749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750 (exit $ac_status); }; } &&
26751 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26753 (eval $ac_try) 2>&5
26754 ac_status=$?
26755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756 (exit $ac_status); }; }; then
26757 ac_header_compiler=yes
26758else
26759 echo "$as_me: failed program was:" >&5
26760sed 's/^/| /' conftest.$ac_ext >&5
26761
26762ac_header_compiler=no
26763fi
ac1cb8d3 26764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26765echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26766echo "${ECHO_T}$ac_header_compiler" >&6
26767
26768# Is the header present?
26769echo "$as_me:$LINENO: checking $ac_header presence" >&5
26770echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26771cat >conftest.$ac_ext <<_ACEOF
26772/* confdefs.h. */
26773_ACEOF
26774cat confdefs.h >>conftest.$ac_ext
26775cat >>conftest.$ac_ext <<_ACEOF
26776/* end confdefs.h. */
26777#include <$ac_header>
26778_ACEOF
26779if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26781 ac_status=$?
26782 grep -v '^ *+' conftest.er1 >conftest.err
26783 rm -f conftest.er1
26784 cat conftest.err >&5
26785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26786 (exit $ac_status); } >/dev/null; then
26787 if test -s conftest.err; then
5d7b7554
VZ
26788 ac_cpp_err=$ac_cxx_preproc_warn_flag
26789 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26790 else
26791 ac_cpp_err=
26792 fi
26793else
26794 ac_cpp_err=yes
26795fi
26796if test -z "$ac_cpp_err"; then
26797 ac_header_preproc=yes
26798else
26799 echo "$as_me: failed program was:" >&5
26800sed 's/^/| /' conftest.$ac_ext >&5
26801
26802 ac_header_preproc=no
26803fi
26804rm -f conftest.err conftest.$ac_ext
26805echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26806echo "${ECHO_T}$ac_header_preproc" >&6
26807
26808# So? What about this header?
5d7b7554 26809case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26810 yes:no: )
a848cd7e
SC
26811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26812echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26814echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26815 ac_header_preproc=yes
a848cd7e 26816 ;;
ac1cb8d3 26817 no:yes:* )
a848cd7e
SC
26818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26819echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26821echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26823echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26825echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26827echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26829echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26830 (
26831 cat <<\_ASBOX
ac1cb8d3
VS
26832## ----------------------------------------- ##
26833## Report this to wx-dev@lists.wxwidgets.org ##
26834## ----------------------------------------- ##
a848cd7e
SC
26835_ASBOX
26836 ) |
26837 sed "s/^/$as_me: WARNING: /" >&2
26838 ;;
26839esac
26840echo "$as_me:$LINENO: checking for $ac_header" >&5
26841echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26842if eval "test \"\${$as_ac_Header+set}\" = set"; then
26843 echo $ECHO_N "(cached) $ECHO_C" >&6
26844else
ac1cb8d3 26845 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
26846fi
26847echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26848echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26849
26850fi
26851if test `eval echo '${'$as_ac_Header'}'` = yes; then
26852 cat >>confdefs.h <<_ACEOF
26853#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26854_ACEOF
26855
26856fi
26857
26858done
26859
26860 if test "${ac_cv_header_windows_h+set}" = set; then
26861 echo "$as_me:$LINENO: checking for windows.h" >&5
26862echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26863if test "${ac_cv_header_windows_h+set}" = set; then
26864 echo $ECHO_N "(cached) $ECHO_C" >&6
26865fi
26866echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26867echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26868else
26869 # Is the header compilable?
26870echo "$as_me:$LINENO: checking windows.h usability" >&5
26871echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
26872cat >conftest.$ac_ext <<_ACEOF
26873/* confdefs.h. */
26874_ACEOF
26875cat confdefs.h >>conftest.$ac_ext
26876cat >>conftest.$ac_ext <<_ACEOF
26877/* end confdefs.h. */
26878$ac_includes_default
26879#include <windows.h>
26880_ACEOF
26881rm -f conftest.$ac_objext
26882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26883 (eval $ac_compile) 2>conftest.er1
a848cd7e 26884 ac_status=$?
ac1cb8d3
VS
26885 grep -v '^ *+' conftest.er1 >conftest.err
26886 rm -f conftest.er1
26887 cat conftest.err >&5
a848cd7e
SC
26888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889 (exit $ac_status); } &&
c9a66001 26890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26892 (eval $ac_try) 2>&5
26893 ac_status=$?
26894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895 (exit $ac_status); }; } &&
26896 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26898 (eval $ac_try) 2>&5
26899 ac_status=$?
26900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26901 (exit $ac_status); }; }; then
26902 ac_header_compiler=yes
26903else
26904 echo "$as_me: failed program was:" >&5
26905sed 's/^/| /' conftest.$ac_ext >&5
26906
26907ac_header_compiler=no
26908fi
ac1cb8d3 26909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26910echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26911echo "${ECHO_T}$ac_header_compiler" >&6
26912
26913# Is the header present?
26914echo "$as_me:$LINENO: checking windows.h presence" >&5
26915echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
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#include <windows.h>
26923_ACEOF
26924if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26926 ac_status=$?
26927 grep -v '^ *+' conftest.er1 >conftest.err
26928 rm -f conftest.er1
26929 cat conftest.err >&5
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); } >/dev/null; then
26932 if test -s conftest.err; then
5d7b7554
VZ
26933 ac_cpp_err=$ac_cxx_preproc_warn_flag
26934 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26935 else
26936 ac_cpp_err=
26937 fi
26938else
26939 ac_cpp_err=yes
26940fi
26941if test -z "$ac_cpp_err"; then
26942 ac_header_preproc=yes
26943else
26944 echo "$as_me: failed program was:" >&5
26945sed 's/^/| /' conftest.$ac_ext >&5
26946
26947 ac_header_preproc=no
26948fi
26949rm -f conftest.err conftest.$ac_ext
26950echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26951echo "${ECHO_T}$ac_header_preproc" >&6
26952
26953# So? What about this header?
5d7b7554 26954case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26955 yes:no: )
a848cd7e
SC
26956 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26957echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26958 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26959echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26960 ac_header_preproc=yes
a848cd7e 26961 ;;
ac1cb8d3 26962 no:yes:* )
a848cd7e
SC
26963 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26964echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26965 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
26966echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
26967 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26968echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26969 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
26970echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26971 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26972echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26973 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26974echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26975 (
26976 cat <<\_ASBOX
ac1cb8d3
VS
26977## ----------------------------------------- ##
26978## Report this to wx-dev@lists.wxwidgets.org ##
26979## ----------------------------------------- ##
a848cd7e
SC
26980_ASBOX
26981 ) |
26982 sed "s/^/$as_me: WARNING: /" >&2
26983 ;;
26984esac
26985echo "$as_me:$LINENO: checking for windows.h" >&5
26986echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26987if test "${ac_cv_header_windows_h+set}" = set; then
26988 echo $ECHO_N "(cached) $ECHO_C" >&6
26989else
26990 ac_cv_header_windows_h=$ac_header_preproc
26991fi
26992echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26993echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26994
26995fi
26996if test $ac_cv_header_windows_h = yes; then
26997 :
26998else
26999
27000 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27001echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27002 { (exit 1); exit 1; }; }
27003
27004fi
27005
27006
27007
27008 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27009
27010 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27011 LIBS="$LIBS -loleacc"
27012 fi
27013
27014 case "${host}" in
27015 *-*-cygwin* )
27016 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
27017 esac
27018
27019 if test "$wxUSE_ODBC" = "sys" ; then
27020 wxUSE_ODBC = "yes"
27021 fi
27022 if test "$wxUSE_ODBC" = "yes" ; then
27023 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27024 cat >>confdefs.h <<\_ACEOF
27025#define wxUSE_ODBC 1
27026_ACEOF
27027
27028 fi
27029
370d2fd7 27030 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
27031 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27032
004ee6da 27033 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 27034
a848cd7e
SC
27035 WIN32INSTALL=win32install
27036fi
27037
27038if test "$wxUSE_GUI" = "yes"; then
27039 USE_GUI=1
27040
27041 GUI_TK_LIBRARY=
27042
27043 WXGTK12=
27044 WXGTK127=
27045 WXGTK20=
27046 WXGPE=
27047
207bc66c
RN
27048 if test "$wxUSE_COCOA" = 1 ; then
27049 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27050 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27051echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27052 wxUSE_PRINTING_ARCHITECTURE=no
27053 fi
27054 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27055 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27056echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27057 wxUSE_DRAG_AND_DROP=no
27058 fi
27059 if test "$wxUSE_DRAGIMAGE" = "yes"; then
27060 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27061echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27062 wxUSE_DRAGIMAGE=no
27063 fi
27064 fi
27065
a848cd7e
SC
27066 if test "$wxUSE_MSW" = 1 ; then
27067 TOOLKIT=MSW
27068 GUIDIST=MSW_DIST
27069
ceec2216 27070 case "${host}" in
a848cd7e
SC
27071 *-*-mingw32* )
27072 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27073 esac
27074 fi
27075
27076 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
27077 ac_ext=c
27078ac_cpp='$CPP $CPPFLAGS'
27079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27081ac_compiler_gnu=$ac_cv_c_compiler_gnu
27082
27083
a848cd7e
SC
27084 echo "$as_me:$LINENO: checking for GTK+ version" >&5
27085echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27086
27087 gtk_version_cached=1
27088 if test "${wx_cv_lib_gtk+set}" = set; then
27089 echo $ECHO_N "(cached) $ECHO_C" >&6
27090else
27091
27092 gtk_version_cached=0
27093 echo "$as_me:$LINENO: result: " >&5
27094echo "${ECHO_T}" >&6
27095
27096 GTK_MODULES=
27097 if test "$wxUSE_THREADS" = "yes"; then
27098 GTK_MODULES=gthread
27099 fi
27100
f597b41c 27101 wx_cv_lib_gtk=
5001df0d
MW
27102 if test "x$wxGTK_VERSION" != "x1"
27103 then
27104 case "${host}" in
27105 *-*-solaris2* )
27106 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 27107 enable_gtktest=no
5001df0d
MW
27108 fi
27109 esac
27110
a848cd7e
SC
27111 # Check whether --enable-gtktest or --disable-gtktest was given.
27112if test "${enable_gtktest+set}" = set; then
27113 enableval="$enable_gtktest"
27114
27115else
27116 enable_gtktest=yes
27117fi;
27118
27119 pkg_config_args=gtk+-2.0
27120 for module in . $GTK_MODULES
27121 do
27122 case "$module" in
27123 gthread)
27124 pkg_config_args="$pkg_config_args gthread-2.0"
27125 ;;
27126 esac
27127 done
27128
27129 no_gtk=""
27130
27131 # Extract the first word of "pkg-config", so it can be a program name with args.
27132set dummy pkg-config; ac_word=$2
27133echo "$as_me:$LINENO: checking for $ac_word" >&5
27134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27135if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27136 echo $ECHO_N "(cached) $ECHO_C" >&6
27137else
27138 case $PKG_CONFIG in
27139 [\\/]* | ?:[\\/]*)
27140 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27141 ;;
27142 *)
27143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27144for as_dir in $PATH
27145do
27146 IFS=$as_save_IFS
27147 test -z "$as_dir" && as_dir=.
27148 for ac_exec_ext in '' $ac_executable_extensions; do
27149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27150 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27152 break 2
27153 fi
27154done
27155done
27156
27157 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27158 ;;
27159esac
27160fi
27161PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27162
27163if test -n "$PKG_CONFIG"; then
27164 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27165echo "${ECHO_T}$PKG_CONFIG" >&6
27166else
27167 echo "$as_me:$LINENO: result: no" >&5
27168echo "${ECHO_T}no" >&6
27169fi
27170
27171
27172 if test x$PKG_CONFIG != xno ; then
27173 if pkg-config --atleast-pkgconfig-version 0.7 ; then
27174 :
27175 else
c2218763 27176 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
27177 no_gtk=yes
27178 PKG_CONFIG=no
27179 fi
27180 else
27181 no_gtk=yes
27182 fi
27183
27184 min_gtk_version=2.0.0
27185 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27186echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27187
27188 if test x$PKG_CONFIG != xno ; then
27189 ## don't try to run the test against uninstalled libtool libs
27190 if $PKG_CONFIG --uninstalled $pkg_config_args; then
27191 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27192 enable_gtktest=no
27193 fi
27194
27195 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27196 :
27197 else
27198 no_gtk=yes
27199 fi
27200 fi
27201
27202 if test x"$no_gtk" = x ; then
27203 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27204 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27205 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27206 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27207 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27208 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27209 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27210 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27211 if test "x$enable_gtktest" = "xyes" ; then
27212 ac_save_CFLAGS="$CFLAGS"
27213 ac_save_LIBS="$LIBS"
27214 CFLAGS="$CFLAGS $GTK_CFLAGS"
27215 LIBS="$GTK_LIBS $LIBS"
27216 rm -f conf.gtktest
27217 if test "$cross_compiling" = yes; then
27218 echo $ac_n "cross compiling; assumed OK... $ac_c"
27219else
27220 cat >conftest.$ac_ext <<_ACEOF
27221/* confdefs.h. */
27222_ACEOF
27223cat confdefs.h >>conftest.$ac_ext
27224cat >>conftest.$ac_ext <<_ACEOF
27225/* end confdefs.h. */
27226
27227#include <gtk/gtk.h>
27228#include <stdio.h>
27229#include <stdlib.h>
27230
27231int
27232main ()
27233{
27234 int major, minor, micro;
27235 char *tmp_version;
27236
27237 system ("touch conf.gtktest");
27238
27239 /* HP/UX 9 (%@#!) writes to sscanf strings */
27240 tmp_version = g_strdup("$min_gtk_version");
27241 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27242 printf("%s, bad version string\n", "$min_gtk_version");
27243 exit(1);
27244 }
27245
27246 if ((gtk_major_version != $gtk_config_major_version) ||
27247 (gtk_minor_version != $gtk_config_minor_version) ||
27248 (gtk_micro_version != $gtk_config_micro_version))
27249 {
27250 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27251 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27252 gtk_major_version, gtk_minor_version, gtk_micro_version);
27253 printf ("*** was found! If pkg-config was correct, then it is best\n");
27254 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27255 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27256 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27257 printf("*** required on your system.\n");
27258 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27259 printf("*** to point to the correct configuration files\n");
27260 }
27261 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27262 (gtk_minor_version != GTK_MINOR_VERSION) ||
27263 (gtk_micro_version != GTK_MICRO_VERSION))
27264 {
27265 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27266 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27267 printf("*** library (version %d.%d.%d)\n",
27268 gtk_major_version, gtk_minor_version, gtk_micro_version);
27269 }
27270 else
27271 {
27272 if ((gtk_major_version > major) ||
27273 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27274 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27275 {
27276 return 0;
27277 }
27278 else
27279 {
27280 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27281 gtk_major_version, gtk_minor_version, gtk_micro_version);
27282 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27283 major, minor, micro);
27284 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27285 printf("***\n");
27286 printf("*** If you have already installed a sufficiently new version, this error\n");
27287 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27288 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27289 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27290 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27291 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27292 printf("*** so that the correct libraries are found at run-time))\n");
27293 }
27294 }
27295 return 1;
27296}
27297
27298_ACEOF
27299rm -f conftest$ac_exeext
27300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27301 (eval $ac_link) 2>&5
27302 ac_status=$?
27303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27306 (eval $ac_try) 2>&5
27307 ac_status=$?
27308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309 (exit $ac_status); }; }; then
27310 :
27311else
27312 echo "$as_me: program exited with status $ac_status" >&5
27313echo "$as_me: failed program was:" >&5
27314sed 's/^/| /' conftest.$ac_ext >&5
27315
27316( exit $ac_status )
27317no_gtk=yes
27318fi
ac1cb8d3 27319rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27320fi
27321 CFLAGS="$ac_save_CFLAGS"
27322 LIBS="$ac_save_LIBS"
27323 fi
27324 fi
27325 if test "x$no_gtk" = x ; then
27326 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27327echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27328 wx_cv_lib_gtk=2.0
27329 else
27330 echo "$as_me:$LINENO: result: no" >&5
27331echo "${ECHO_T}no" >&6
27332 if test "$PKG_CONFIG" = "no" ; then
27333 echo "*** A new enough version of pkg-config was not found."
27334 echo "*** See http://pkgconfig.sourceforge.net"
27335 else
27336 if test -f conf.gtktest ; then
27337 :
27338 else
27339 echo "*** Could not run GTK+ test program, checking why..."
27340 ac_save_CFLAGS="$CFLAGS"
27341 ac_save_LIBS="$LIBS"
27342 CFLAGS="$CFLAGS $GTK_CFLAGS"
27343 LIBS="$LIBS $GTK_LIBS"
27344 cat >conftest.$ac_ext <<_ACEOF
27345/* confdefs.h. */
27346_ACEOF
27347cat confdefs.h >>conftest.$ac_ext
27348cat >>conftest.$ac_ext <<_ACEOF
27349/* end confdefs.h. */
27350
27351#include <gtk/gtk.h>
27352#include <stdio.h>
27353
27354int
27355main ()
27356{
27357 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27358 ;
27359 return 0;
27360}
27361_ACEOF
27362rm -f conftest.$ac_objext conftest$ac_exeext
27363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27364 (eval $ac_link) 2>conftest.er1
a848cd7e 27365 ac_status=$?
ac1cb8d3
VS
27366 grep -v '^ *+' conftest.er1 >conftest.err
27367 rm -f conftest.er1
27368 cat conftest.err >&5
a848cd7e
SC
27369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370 (exit $ac_status); } &&
c9a66001 27371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27373 (eval $ac_try) 2>&5
27374 ac_status=$?
27375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376 (exit $ac_status); }; } &&
27377 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27379 (eval $ac_try) 2>&5
27380 ac_status=$?
27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382 (exit $ac_status); }; }; then
27383 echo "*** The test program compiled, but did not run. This usually means"
27384 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27385 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27386 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27387 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27388 echo "*** is required on your system"
27389 echo "***"
27390 echo "*** If you have an old version installed, it is best to remove it, although"
27391 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27392else
27393 echo "$as_me: failed program was:" >&5
27394sed 's/^/| /' conftest.$ac_ext >&5
27395
27396 echo "*** The test program failed to compile or link. See the file config.log for the"
27397 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27398fi
ac1cb8d3
VS
27399rm -f conftest.err conftest.$ac_objext \
27400 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27401 CFLAGS="$ac_save_CFLAGS"
27402 LIBS="$ac_save_LIBS"
27403 fi
27404 fi
27405 GTK_CFLAGS=""
27406 GTK_LIBS=""
27407 :
27408 fi
27409
27410
27411 rm -f conf.gtktest
27412
5001df0d
MW
27413
27414 case "${host}" in
27415 *-*-solaris2* )
27416 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27417 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27418 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27419 fi
27420 if test "$wxUSE_SHARED" != "yes"; then
27421 GTK_LIBS="$GTK_LIBS -lX11"
27422 fi
27423 esac
f597b41c
MW
27424 fi
27425
f34ca037
MW
27426 if test -z "$wx_cv_lib_gtk"; then
27427 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
27428
27429# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27430if test "${with_gtk_prefix+set}" = set; then
27431 withval="$with_gtk_prefix"
27432 gtk_config_prefix="$withval"
27433else
27434 gtk_config_prefix=""
27435fi;
27436
27437# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27438if test "${with_gtk_exec_prefix+set}" = set; then
27439 withval="$with_gtk_exec_prefix"
27440 gtk_config_exec_prefix="$withval"
27441else
27442 gtk_config_exec_prefix=""
27443fi;
27444# Check whether --enable-gtktest or --disable-gtktest was given.
27445if test "${enable_gtktest+set}" = set; then
27446 enableval="$enable_gtktest"
27447
27448else
27449 enable_gtktest=yes
27450fi;
27451
27452 for module in . $GTK_MODULES
27453 do
27454 case "$module" in
27455 gthread)
27456 gtk_config_args="$gtk_config_args gthread"
27457 ;;
27458 esac
27459 done
27460
27461 if test x$gtk_config_exec_prefix != x ; then
27462 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27463 if test x${GTK_CONFIG+set} != xset ; then
27464 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27465 fi
27466 fi
27467 if test x$gtk_config_prefix != x ; then
27468 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27469 if test x${GTK_CONFIG+set} != xset ; then
27470 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27471 fi
27472 fi
27473
27474 # Extract the first word of "gtk-config", so it can be a program name with args.
27475set dummy gtk-config; ac_word=$2
27476echo "$as_me:$LINENO: checking for $ac_word" >&5
27477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27478if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27479 echo $ECHO_N "(cached) $ECHO_C" >&6
27480else
27481 case $GTK_CONFIG in
27482 [\\/]* | ?:[\\/]*)
27483 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27484 ;;
27485 *)
27486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27487for as_dir in $PATH
27488do
27489 IFS=$as_save_IFS
27490 test -z "$as_dir" && as_dir=.
27491 for ac_exec_ext in '' $ac_executable_extensions; do
27492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27493 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27495 break 2
27496 fi
27497done
27498done
27499
27500 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27501 ;;
27502esac
27503fi
27504GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27505
27506if test -n "$GTK_CONFIG"; then
27507 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27508echo "${ECHO_T}$GTK_CONFIG" >&6
27509else
27510 echo "$as_me:$LINENO: result: no" >&5
27511echo "${ECHO_T}no" >&6
27512fi
27513
27514 min_gtk_version=1.2.7
27515 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27516echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27517 no_gtk=""
27518 if test "$GTK_CONFIG" = "no" ; then
27519 no_gtk=yes
27520 else
27521 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27522 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27523 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27524 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27525 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27526 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27527 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27528 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27529 if test "x$enable_gtktest" = "xyes" ; then
27530 ac_save_CFLAGS="$CFLAGS"
27531 ac_save_LIBS="$LIBS"
27532 CFLAGS="$CFLAGS $GTK_CFLAGS"
27533 LIBS="$GTK_LIBS $LIBS"
27534 rm -f conf.gtktest
27535 if test "$cross_compiling" = yes; then
27536 echo $ac_n "cross compiling; assumed OK... $ac_c"
27537else
27538 cat >conftest.$ac_ext <<_ACEOF
27539/* confdefs.h. */
27540_ACEOF
27541cat confdefs.h >>conftest.$ac_ext
27542cat >>conftest.$ac_ext <<_ACEOF
27543/* end confdefs.h. */
27544
27545#include <gtk/gtk.h>
27546#include <stdio.h>
27547#include <stdlib.h>
27548
27549int
27550main ()
27551{
27552 int major, minor, micro;
27553 char *tmp_version;
27554
27555 system ("touch conf.gtktest");
27556
27557 /* HP/UX 9 (%@#!) writes to sscanf strings */
27558 tmp_version = g_strdup("$min_gtk_version");
27559 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27560 printf("%s, bad version string\n", "$min_gtk_version");
27561 exit(1);
27562 }
27563
27564 if ((gtk_major_version != $gtk_config_major_version) ||
27565 (gtk_minor_version != $gtk_config_minor_version) ||
27566 (gtk_micro_version != $gtk_config_micro_version))
27567 {
27568 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27569 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27570 gtk_major_version, gtk_minor_version, gtk_micro_version);
27571 printf ("*** was found! If gtk-config was correct, then it is best\n");
27572 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27573 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27574 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27575 printf("*** required on your system.\n");
27576 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27577 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27578 printf("*** before re-running configure\n");
27579 }
27580#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27581 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27582 (gtk_minor_version != GTK_MINOR_VERSION) ||
27583 (gtk_micro_version != GTK_MICRO_VERSION))
27584 {
27585 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27586 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27587 printf("*** library (version %d.%d.%d)\n",
27588 gtk_major_version, gtk_minor_version, gtk_micro_version);
27589 }
27590#endif /* defined (GTK_MAJOR_VERSION) ... */
27591 else
27592 {
27593 if ((gtk_major_version > major) ||
27594 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27595 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27596 {
27597 return 0;
27598 }
27599 else
27600 {
27601 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27602 gtk_major_version, gtk_minor_version, gtk_micro_version);
27603 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27604 major, minor, micro);
27605 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27606 printf("***\n");
27607 printf("*** If you have already installed a sufficiently new version, this error\n");
27608 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27609 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27610 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27611 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27612 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27613 printf("*** so that the correct libraries are found at run-time))\n");
27614 }
27615 }
27616 return 1;
27617}
27618
27619_ACEOF
27620rm -f conftest$ac_exeext
27621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27622 (eval $ac_link) 2>&5
27623 ac_status=$?
27624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27627 (eval $ac_try) 2>&5
27628 ac_status=$?
27629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630 (exit $ac_status); }; }; then
27631 :
27632else
27633 echo "$as_me: program exited with status $ac_status" >&5
27634echo "$as_me: failed program was:" >&5
27635sed 's/^/| /' conftest.$ac_ext >&5
27636
27637( exit $ac_status )
27638no_gtk=yes
27639fi
ac1cb8d3 27640rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27641fi
27642 CFLAGS="$ac_save_CFLAGS"
27643 LIBS="$ac_save_LIBS"
27644 fi
27645 fi
27646 if test "x$no_gtk" = x ; then
27647 echo "$as_me:$LINENO: result: yes" >&5
27648echo "${ECHO_T}yes" >&6
27649 wx_cv_lib_gtk=1.2.7
27650 else
27651 echo "$as_me:$LINENO: result: no" >&5
27652echo "${ECHO_T}no" >&6
27653 if test "$GTK_CONFIG" = "no" ; then
27654 echo "*** The gtk-config script installed by GTK could not be found"
27655 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27656 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27657 echo "*** full path to gtk-config."
27658 else
27659 if test -f conf.gtktest ; then
27660 :
27661 else
27662 echo "*** Could not run GTK test program, checking why..."
27663 CFLAGS="$CFLAGS $GTK_CFLAGS"
27664 LIBS="$LIBS $GTK_LIBS"
27665 cat >conftest.$ac_ext <<_ACEOF
27666/* confdefs.h. */
27667_ACEOF
27668cat confdefs.h >>conftest.$ac_ext
27669cat >>conftest.$ac_ext <<_ACEOF
27670/* end confdefs.h. */
27671
27672#include <gtk/gtk.h>
27673#include <stdio.h>
27674
27675int
27676main ()
27677{
27678 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27679 ;
27680 return 0;
27681}
27682_ACEOF
27683rm -f conftest.$ac_objext conftest$ac_exeext
27684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27685 (eval $ac_link) 2>conftest.er1
a848cd7e 27686 ac_status=$?
ac1cb8d3
VS
27687 grep -v '^ *+' conftest.er1 >conftest.err
27688 rm -f conftest.er1
27689 cat conftest.err >&5
a848cd7e
SC
27690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691 (exit $ac_status); } &&
c9a66001 27692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27694 (eval $ac_try) 2>&5
27695 ac_status=$?
27696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697 (exit $ac_status); }; } &&
27698 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27700 (eval $ac_try) 2>&5
27701 ac_status=$?
27702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703 (exit $ac_status); }; }; then
27704 echo "*** The test program compiled, but did not run. This usually means"
27705 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27706 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27707 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27708 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27709 echo "*** is required on your system"
27710 echo "***"
27711 echo "*** If you have an old version installed, it is best to remove it, although"
27712 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27713 echo "***"
27714 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27715 echo "*** came with the system with the command"
27716 echo "***"
27717 echo "*** rpm --erase --nodeps gtk gtk-devel"
27718else
27719 echo "$as_me: failed program was:" >&5
27720sed 's/^/| /' conftest.$ac_ext >&5
27721
27722 echo "*** The test program failed to compile or link. See the file config.log for the"
27723 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27724 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27725 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27726fi
ac1cb8d3
VS
27727rm -f conftest.err conftest.$ac_objext \
27728 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27729 CFLAGS="$ac_save_CFLAGS"
27730 LIBS="$ac_save_LIBS"
27731 fi
27732 fi
27733 GTK_CFLAGS=""
27734 GTK_LIBS=""
27735 :
27736 fi
27737
27738
27739 rm -f conf.gtktest
27740
27741
f34ca037 27742 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
27743
27744# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27745if test "${with_gtk_prefix+set}" = set; then
27746 withval="$with_gtk_prefix"
27747 gtk_config_prefix="$withval"
27748else
27749 gtk_config_prefix=""
27750fi;
27751
27752# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27753if test "${with_gtk_exec_prefix+set}" = set; then
27754 withval="$with_gtk_exec_prefix"
27755 gtk_config_exec_prefix="$withval"
27756else
27757 gtk_config_exec_prefix=""
27758fi;
27759# Check whether --enable-gtktest or --disable-gtktest was given.
27760if test "${enable_gtktest+set}" = set; then
27761 enableval="$enable_gtktest"
27762
27763else
27764 enable_gtktest=yes
27765fi;
27766
27767 for module in . $GTK_MODULES
27768 do
27769 case "$module" in
27770 gthread)
27771 gtk_config_args="$gtk_config_args gthread"
27772 ;;
27773 esac
27774 done
27775
27776 if test x$gtk_config_exec_prefix != x ; then
27777 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27778 if test x${GTK_CONFIG+set} != xset ; then
27779 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27780 fi
27781 fi
27782 if test x$gtk_config_prefix != x ; then
27783 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27784 if test x${GTK_CONFIG+set} != xset ; then
27785 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27786 fi
27787 fi
27788
27789 # Extract the first word of "gtk-config", so it can be a program name with args.
27790set dummy gtk-config; ac_word=$2
27791echo "$as_me:$LINENO: checking for $ac_word" >&5
27792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27793if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27794 echo $ECHO_N "(cached) $ECHO_C" >&6
27795else
27796 case $GTK_CONFIG in
27797 [\\/]* | ?:[\\/]*)
27798 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27799 ;;
27800 *)
27801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27802for as_dir in $PATH
27803do
27804 IFS=$as_save_IFS
27805 test -z "$as_dir" && as_dir=.
27806 for ac_exec_ext in '' $ac_executable_extensions; do
27807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27808 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27810 break 2
27811 fi
27812done
27813done
27814
27815 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27816 ;;
27817esac
27818fi
27819GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27820
27821if test -n "$GTK_CONFIG"; then
27822 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27823echo "${ECHO_T}$GTK_CONFIG" >&6
27824else
27825 echo "$as_me:$LINENO: result: no" >&5
27826echo "${ECHO_T}no" >&6
27827fi
27828
27829 min_gtk_version=1.2.3
27830 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27831echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27832 no_gtk=""
27833 if test "$GTK_CONFIG" = "no" ; then
27834 no_gtk=yes
27835 else
27836 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27837 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27838 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27839 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27840 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27841 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27842 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27843 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27844 if test "x$enable_gtktest" = "xyes" ; then
27845 ac_save_CFLAGS="$CFLAGS"
27846 ac_save_LIBS="$LIBS"
27847 CFLAGS="$CFLAGS $GTK_CFLAGS"
27848 LIBS="$GTK_LIBS $LIBS"
27849 rm -f conf.gtktest
27850 if test "$cross_compiling" = yes; then
27851 echo $ac_n "cross compiling; assumed OK... $ac_c"
27852else
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#include <stdlib.h>
27863
27864int
27865main ()
27866{
27867 int major, minor, micro;
27868 char *tmp_version;
27869
27870 system ("touch conf.gtktest");
27871
27872 /* HP/UX 9 (%@#!) writes to sscanf strings */
27873 tmp_version = g_strdup("$min_gtk_version");
27874 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27875 printf("%s, bad version string\n", "$min_gtk_version");
27876 exit(1);
27877 }
27878
27879 if ((gtk_major_version != $gtk_config_major_version) ||
27880 (gtk_minor_version != $gtk_config_minor_version) ||
27881 (gtk_micro_version != $gtk_config_micro_version))
27882 {
27883 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27884 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27885 gtk_major_version, gtk_minor_version, gtk_micro_version);
27886 printf ("*** was found! If gtk-config was correct, then it is best\n");
27887 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27888 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27889 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27890 printf("*** required on your system.\n");
27891 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27892 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27893 printf("*** before re-running configure\n");
27894 }
27895#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27896 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27897 (gtk_minor_version != GTK_MINOR_VERSION) ||
27898 (gtk_micro_version != GTK_MICRO_VERSION))
27899 {
27900 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27901 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27902 printf("*** library (version %d.%d.%d)\n",
27903 gtk_major_version, gtk_minor_version, gtk_micro_version);
27904 }
27905#endif /* defined (GTK_MAJOR_VERSION) ... */
27906 else
27907 {
27908 if ((gtk_major_version > major) ||
27909 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27910 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27911 {
27912 return 0;
27913 }
27914 else
27915 {
27916 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27917 gtk_major_version, gtk_minor_version, gtk_micro_version);
27918 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27919 major, minor, micro);
27920 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27921 printf("***\n");
27922 printf("*** If you have already installed a sufficiently new version, this error\n");
27923 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27924 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27925 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27926 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27927 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27928 printf("*** so that the correct libraries are found at run-time))\n");
27929 }
27930 }
27931 return 1;
27932}
27933
27934_ACEOF
27935rm -f conftest$ac_exeext
27936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27937 (eval $ac_link) 2>&5
27938 ac_status=$?
27939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27942 (eval $ac_try) 2>&5
27943 ac_status=$?
27944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27945 (exit $ac_status); }; }; then
27946 :
27947else
27948 echo "$as_me: program exited with status $ac_status" >&5
27949echo "$as_me: failed program was:" >&5
27950sed 's/^/| /' conftest.$ac_ext >&5
27951
27952( exit $ac_status )
27953no_gtk=yes
27954fi
ac1cb8d3 27955rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27956fi
27957 CFLAGS="$ac_save_CFLAGS"
27958 LIBS="$ac_save_LIBS"
27959 fi
27960 fi
27961 if test "x$no_gtk" = x ; then
27962 echo "$as_me:$LINENO: result: yes" >&5
27963echo "${ECHO_T}yes" >&6
27964 wx_cv_lib_gtk=1.2.3
27965 else
27966 echo "$as_me:$LINENO: result: no" >&5
27967echo "${ECHO_T}no" >&6
27968 if test "$GTK_CONFIG" = "no" ; then
27969 echo "*** The gtk-config script installed by GTK could not be found"
27970 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27971 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27972 echo "*** full path to gtk-config."
27973 else
27974 if test -f conf.gtktest ; then
27975 :
27976 else
27977 echo "*** Could not run GTK test program, checking why..."
27978 CFLAGS="$CFLAGS $GTK_CFLAGS"
27979 LIBS="$LIBS $GTK_LIBS"
27980 cat >conftest.$ac_ext <<_ACEOF
27981/* confdefs.h. */
27982_ACEOF
27983cat confdefs.h >>conftest.$ac_ext
27984cat >>conftest.$ac_ext <<_ACEOF
27985/* end confdefs.h. */
27986
27987#include <gtk/gtk.h>
27988#include <stdio.h>
27989
27990int
27991main ()
27992{
27993 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27994 ;
27995 return 0;
27996}
27997_ACEOF
27998rm -f conftest.$ac_objext conftest$ac_exeext
27999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28000 (eval $ac_link) 2>conftest.er1
a848cd7e 28001 ac_status=$?
ac1cb8d3
VS
28002 grep -v '^ *+' conftest.er1 >conftest.err
28003 rm -f conftest.er1
28004 cat conftest.err >&5
a848cd7e
SC
28005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006 (exit $ac_status); } &&
c9a66001 28007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28009 (eval $ac_try) 2>&5
28010 ac_status=$?
28011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012 (exit $ac_status); }; } &&
28013 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28015 (eval $ac_try) 2>&5
28016 ac_status=$?
28017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28018 (exit $ac_status); }; }; then
28019 echo "*** The test program compiled, but did not run. This usually means"
28020 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28021 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28022 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28023 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28024 echo "*** is required on your system"
28025 echo "***"
28026 echo "*** If you have an old version installed, it is best to remove it, although"
28027 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28028 echo "***"
28029 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28030 echo "*** came with the system with the command"
28031 echo "***"
28032 echo "*** rpm --erase --nodeps gtk gtk-devel"
28033else
28034 echo "$as_me: failed program was:" >&5
28035sed 's/^/| /' conftest.$ac_ext >&5
28036
28037 echo "*** The test program failed to compile or link. See the file config.log for the"
28038 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28039 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28040 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28041fi
ac1cb8d3
VS
28042rm -f conftest.err conftest.$ac_objext \
28043 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28044 CFLAGS="$ac_save_CFLAGS"
28045 LIBS="$ac_save_LIBS"
28046 fi
28047 fi
28048 GTK_CFLAGS=""
28049 GTK_LIBS=""
28050 :
28051 fi
28052
28053
28054 rm -f conf.gtktest
28055
f34ca037 28056 fi
a848cd7e
SC
28057 fi
28058 fi
28059
28060 if test -z "$wx_cv_lib_gtk"; then
28061 wx_cv_lib_gtk=none
28062 else
28063 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 28064 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
28065 fi
28066
28067
28068fi
28069
28070
28071 if test "$gtk_version_cached" = 1; then
28072 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28073echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28074 fi
28075
28076 case "$wx_cv_lib_gtk" in
28077 2.0) WXGTK20=1
28078 TOOLKIT_VERSION=2
28079 ;;
28080 1.2.7) WXGTK127=1
28081 WXGTK12=1
28082 ;;
28083 1.2.3) WXGTK12=1
28084 ;;
28085 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
28086The development files for GTK+ were not found. For GTK+ 2, please
28087ensure that pkg-config is in the path and that gtk+-2.0.pc is
28088installed. For GTK+ 1.2 please check that gtk-config is in the path,
28089and that the version is 1.2.3 or above. Also check that the
28090libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28091--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28092 " >&5
28093echo "$as_me: error:
f597b41c
MW
28094The development files for GTK+ were not found. For GTK+ 2, please
28095ensure that pkg-config is in the path and that gtk+-2.0.pc is
28096installed. For GTK+ 1.2 please check that gtk-config is in the path,
28097and that the version is 1.2.3 or above. Also check that the
28098libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28099--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28100 " >&2;}
28101 { (exit 1); exit 1; }; }
28102 ;;
28103 esac
28104
28105 if test "$WXGTK20" = 1; then
6954625c 28106 save_CFLAGS="$CFLAGS"
304205f1 28107 save_LIBS="$LIBS"
6954625c 28108 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 28109 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 28110
d12aef51
VZ
28111 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
28112echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
28113 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
28114/* confdefs.h. */
28115_ACEOF
28116cat confdefs.h >>conftest.$ac_ext
28117cat >>conftest.$ac_ext <<_ACEOF
28118/* end confdefs.h. */
304205f1 28119
d12aef51 28120 #include <gtk/gtk.h>
304205f1 28121
d12aef51
VZ
28122int
28123main ()
28124{
304205f1 28125
d12aef51 28126 void *f = gtk_icon_size_lookup;
abc736fd
MW
28127
28128 ;
28129 return 0;
28130}
28131_ACEOF
28132rm -f conftest.$ac_objext
28133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28134 (eval $ac_compile) 2>conftest.er1
28135 ac_status=$?
28136 grep -v '^ *+' conftest.er1 >conftest.err
28137 rm -f conftest.er1
28138 cat conftest.err >&5
28139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28140 (exit $ac_status); } &&
c9a66001 28141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
28142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28143 (eval $ac_try) 2>&5
28144 ac_status=$?
28145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146 (exit $ac_status); }; } &&
28147 { ac_try='test -s conftest.$ac_objext'
28148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28149 (eval $ac_try) 2>&5
28150 ac_status=$?
28151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); }; }; then
28153
28154 echo "$as_me:$LINENO: result: no" >&5
28155echo "${ECHO_T}no" >&6
28156
28157else
28158 echo "$as_me: failed program was:" >&5
28159sed 's/^/| /' conftest.$ac_ext >&5
28160
28161
28162 cat >>confdefs.h <<\_ACEOF
28163#define NEED_GTK_ICON_SIZE_LOOKUP 1
28164_ACEOF
28165
28166 echo "$as_me:$LINENO: result: yes" >&5
28167echo "${ECHO_T}yes" >&6
28168
28169fi
28170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28171
e9263684
VZ
28172 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28173echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
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
28183int
28184main ()
28185{
28186
28187 #if !GTK_CHECK_VERSION(2,6,0)
28188 Not GTK+ 2.6
28189 #endif
28190
28191 ;
28192 return 0;
28193}
28194_ACEOF
28195rm -f conftest.$ac_objext
28196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28197 (eval $ac_compile) 2>conftest.er1
28198 ac_status=$?
28199 grep -v '^ *+' conftest.er1 >conftest.err
28200 rm -f conftest.er1
28201 cat conftest.err >&5
28202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); } &&
c9a66001 28204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e9263684
VZ
28205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28206 (eval $ac_try) 2>&5
28207 ac_status=$?
28208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209 (exit $ac_status); }; } &&
28210 { ac_try='test -s conftest.$ac_objext'
28211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28212 (eval $ac_try) 2>&5
28213 ac_status=$?
28214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215 (exit $ac_status); }; }; then
28216
28217 cat >>confdefs.h <<\_ACEOF
28218#define __WXGTK26__ 1
28219_ACEOF
28220
28221 cat >>confdefs.h <<\_ACEOF
28222#define __WXGTK24__ 1
28223_ACEOF
28224
28225 echo "$as_me:$LINENO: result: yes" >&5
28226echo "${ECHO_T}yes" >&6
28227 ac_wxgtk26=1
28228
28229else
28230 echo "$as_me: failed program was:" >&5
28231sed 's/^/| /' conftest.$ac_ext >&5
28232
28233
28234 echo "$as_me:$LINENO: result: no" >&5
28235echo "${ECHO_T}no" >&6
28236 ac_wxgtk26=0
28237
28238fi
28239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28240
28241 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
28242 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28243echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28244 cat >conftest.$ac_ext <<_ACEOF
28245/* confdefs.h. */
28246_ACEOF
28247cat confdefs.h >>conftest.$ac_ext
28248cat >>conftest.$ac_ext <<_ACEOF
28249/* end confdefs.h. */
28250
28251 #include <gtk/gtk.h>
28252
28253int
28254main ()
28255{
28256
28257 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 28258 Not GTK+ 2.4
9755e73b
VS
28259 #endif
28260
28261 ;
28262 return 0;
28263}
28264_ACEOF
28265rm -f conftest.$ac_objext
28266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28267 (eval $ac_compile) 2>conftest.er1
28268 ac_status=$?
28269 grep -v '^ *+' conftest.er1 >conftest.err
28270 rm -f conftest.er1
28271 cat conftest.err >&5
28272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273 (exit $ac_status); } &&
c9a66001 28274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
28275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28276 (eval $ac_try) 2>&5
28277 ac_status=$?
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); }; } &&
28280 { ac_try='test -s conftest.$ac_objext'
28281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28282 (eval $ac_try) 2>&5
28283 ac_status=$?
28284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285 (exit $ac_status); }; }; then
28286
28287 cat >>confdefs.h <<\_ACEOF
28288#define __WXGTK24__ 1
28289_ACEOF
28290
28291 echo "$as_me:$LINENO: result: yes" >&5
28292echo "${ECHO_T}yes" >&6
28293
28294else
28295 echo "$as_me: failed program was:" >&5
28296sed 's/^/| /' conftest.$ac_ext >&5
28297
28298
28299 echo "$as_me:$LINENO: result: no" >&5
28300echo "${ECHO_T}no" >&6
28301
28302fi
28303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 28304 fi
9755e73b 28305
6954625c 28306 CFLAGS="$save_CFLAGS"
304205f1 28307 LIBS="$save_LIBS"
a848cd7e
SC
28308 else
28309 if test "$wxUSE_UNICODE" = "yes"; then
28310 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28311echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28312 wxUSE_UNICODE=no
28313 fi
28314 fi
28315
e56f4f9e
VZ
28316 ac_ext=cc
28317ac_cpp='$CXXCPP $CPPFLAGS'
28318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28321
28322
a848cd7e
SC
28323 if test "$USE_DARWIN" != 1; then
28324
28325for ac_func in poll
28326do
28327as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28328echo "$as_me:$LINENO: checking for $ac_func" >&5
28329echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28330if eval "test \"\${$as_ac_var+set}\" = set"; then
28331 echo $ECHO_N "(cached) $ECHO_C" >&6
28332else
28333 cat >conftest.$ac_ext <<_ACEOF
28334/* confdefs.h. */
28335_ACEOF
28336cat confdefs.h >>conftest.$ac_ext
28337cat >>conftest.$ac_ext <<_ACEOF
28338/* end confdefs.h. */
ac1cb8d3
VS
28339/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28341#define $ac_func innocuous_$ac_func
28342
a848cd7e
SC
28343/* System header to define __stub macros and hopefully few prototypes,
28344 which can conflict with char $ac_func (); below.
28345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28346 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28347
a848cd7e
SC
28348#ifdef __STDC__
28349# include <limits.h>
28350#else
28351# include <assert.h>
28352#endif
ac1cb8d3
VS
28353
28354#undef $ac_func
28355
a848cd7e
SC
28356/* Override any gcc2 internal prototype to avoid an error. */
28357#ifdef __cplusplus
28358extern "C"
28359{
28360#endif
28361/* We use char because int might match the return type of a gcc2
28362 builtin and then its argument prototype would still apply. */
28363char $ac_func ();
28364/* The GNU C library defines this for functions which it implements
28365 to always fail with ENOSYS. Some functions are actually named
28366 something starting with __ and the normal name is an alias. */
28367#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28368choke me
28369#else
28370char (*f) () = $ac_func;
28371#endif
28372#ifdef __cplusplus
28373}
28374#endif
28375
28376int
28377main ()
28378{
28379return f != $ac_func;
28380 ;
28381 return 0;
28382}
28383_ACEOF
28384rm -f conftest.$ac_objext conftest$ac_exeext
28385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28386 (eval $ac_link) 2>conftest.er1
a848cd7e 28387 ac_status=$?
ac1cb8d3
VS
28388 grep -v '^ *+' conftest.er1 >conftest.err
28389 rm -f conftest.er1
28390 cat conftest.err >&5
a848cd7e
SC
28391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28392 (exit $ac_status); } &&
c9a66001 28393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28395 (eval $ac_try) 2>&5
28396 ac_status=$?
28397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); }; } &&
28399 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28401 (eval $ac_try) 2>&5
28402 ac_status=$?
28403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404 (exit $ac_status); }; }; then
28405 eval "$as_ac_var=yes"
28406else
28407 echo "$as_me: failed program was:" >&5
28408sed 's/^/| /' conftest.$ac_ext >&5
28409
28410eval "$as_ac_var=no"
28411fi
ac1cb8d3
VS
28412rm -f conftest.err conftest.$ac_objext \
28413 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28414fi
28415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28416echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28417if test `eval echo '${'$as_ac_var'}'` = yes; then
28418 cat >>confdefs.h <<_ACEOF
28419#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28420_ACEOF
28421
28422fi
28423done
28424
28425 fi
28426
28427 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28428 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28429
28430 AFMINSTALL=afminstall
28431 TOOLKIT=GTK
28432 GUIDIST=GTK_DIST
28433
28434 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28435echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28436if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28437 echo $ECHO_N "(cached) $ECHO_C" >&6
28438else
28439 ac_check_lib_save_LIBS=$LIBS
28440LIBS="-lgdk $LIBS"
28441cat >conftest.$ac_ext <<_ACEOF
28442/* confdefs.h. */
28443_ACEOF
28444cat confdefs.h >>conftest.$ac_ext
28445cat >>conftest.$ac_ext <<_ACEOF
28446/* end confdefs.h. */
28447
28448/* Override any gcc2 internal prototype to avoid an error. */
28449#ifdef __cplusplus
28450extern "C"
28451#endif
28452/* We use char because int might match the return type of a gcc2
28453 builtin and then its argument prototype would still apply. */
28454char gdk_im_open ();
28455int
28456main ()
28457{
28458gdk_im_open ();
28459 ;
28460 return 0;
28461}
28462_ACEOF
28463rm -f conftest.$ac_objext conftest$ac_exeext
28464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28465 (eval $ac_link) 2>conftest.er1
a848cd7e 28466 ac_status=$?
ac1cb8d3
VS
28467 grep -v '^ *+' conftest.er1 >conftest.err
28468 rm -f conftest.er1
28469 cat conftest.err >&5
a848cd7e
SC
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); } &&
c9a66001 28472 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28474 (eval $ac_try) 2>&5
28475 ac_status=$?
28476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477 (exit $ac_status); }; } &&
28478 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28480 (eval $ac_try) 2>&5
28481 ac_status=$?
28482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28483 (exit $ac_status); }; }; then
28484 ac_cv_lib_gdk_gdk_im_open=yes
28485else
28486 echo "$as_me: failed program was:" >&5
28487sed 's/^/| /' conftest.$ac_ext >&5
28488
28489ac_cv_lib_gdk_gdk_im_open=no
28490fi
ac1cb8d3
VS
28491rm -f conftest.err conftest.$ac_objext \
28492 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28493LIBS=$ac_check_lib_save_LIBS
28494fi
28495echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28496echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28497if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28498 cat >>confdefs.h <<\_ACEOF
28499#define HAVE_XIM 1
28500_ACEOF
28501
28502fi
28503
28504
28505
28506 if test "$wxUSE_GPE" = "yes"; then
28507 echo "$as_me:$LINENO: checking for gpewidget library" >&5
28508echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
28509
0ad5d837
VZ
28510 ac_find_libraries=
28511 for ac_dir in $SEARCH_LIB;
a848cd7e 28512 do
3eca31dc 28513 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28514 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
28515 ac_find_libraries=$ac_dir
28516 break 2
28517 fi
28518 done
28519 done
28520
28521 if test "$ac_find_libraries" != "" ; then
28522
0ad5d837 28523 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
28524 ac_path_to_link=""
28525 else
0ad5d837
VZ
28526 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28527 result=$?
28528 if test $result = 0; then
28529 ac_path_to_link=""
28530 else
28531 ac_path_to_link=" -L$ac_find_libraries"
28532 fi
a848cd7e
SC
28533 fi
28534
28535 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
28536 WXGPE=1
0ad5d837
VZ
28537 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28538echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
28539 else
28540 echo "$as_me:$LINENO: result: not found" >&5
28541echo "${ECHO_T}not found" >&6
28542 fi
28543
28544 fi
28545 fi
28546
28547 if test "$wxUSE_MGL" = 1; then
28548 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28549echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
28550 if test "x$MGL_ROOT" = x ; then
28551 echo "$as_me:$LINENO: result: not found" >&5
28552echo "${ECHO_T}not found" >&6
28553 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28554echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28555 { (exit 1); exit 1; }; }
28556 else
28557 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28558echo "${ECHO_T}$MGL_ROOT" >&6
28559 fi
28560
28561 echo "$as_me:$LINENO: checking for libmgl location" >&5
28562echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
28563 case "${host}" in
28564 *-*-linux* )
28565 if test "x$wxUSE_SHARED" = xyes ; then
28566 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28567 else
28568 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28569 fi
28570 ;;
28571 *-pc-msdosdjgpp )
28572 mgl_os_candidates="dos32/dj2"
28573 ;;
28574 *)
28575 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28576echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
28577 { (exit 1); exit 1; }; }
28578 esac
28579
28580 mgl_lib_type=""
28581 mgl_os=""
28582
28583 for mgl_os_i in $mgl_os_candidates ; do
28584 if test "x$mgl_os" = x ; then
28585 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28586 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28587 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28588 mgl_lib_type=debug
28589 mgl_os=$mgl_os_i
28590 fi
28591 fi
28592 if test "x$mgl_lib_type" = x ; then
28593 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28594 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
28595 mgl_lib_type=release
28596 mgl_os=$mgl_os_i
28597 fi
28598 fi
28599 fi
28600 done
28601
28602 if test "x$mgl_os" = x ; then
28603 echo "$as_me:$LINENO: result: not found" >&5
28604echo "${ECHO_T}not found" >&6
28605 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
28606echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
28607 { (exit 1); exit 1; }; }
28608 fi
28609 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
28610echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
28611
28612 wxUSE_UNIVERSAL="yes"
28613
28614 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
28615 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
28616
28617 AFMINSTALL=afminstall
28618 TOOLKIT=MGL
28619 GUIDIST=MGL_DIST
28620 fi
28621
28622 if test "$wxUSE_MICROWIN" = 1; then
28623 echo "$as_me:$LINENO: checking for MicroWindows" >&5
28624echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
28625 if test "x$MICROWINDOWS" = x ; then
28626 echo "$as_me:$LINENO: result: not found" >&5
28627echo "${ECHO_T}not found" >&6
28628 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
28629echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
28630 { (exit 1); exit 1; }; }
28631 else
28632 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
28633echo "${ECHO_T}$MICROWINDOWS" >&6
28634 fi
28635
28636 if test -f $MICROWINDOWS/lib/libmwin.a; then
28637 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
28638echo "${ECHO_T}MicroWindows' libraries found." >&6
28639 else
28640 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
28641echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
28642 { (exit 1); exit 1; }; }
28643 fi
28644
28645 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
28646 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
28647
28648 wxUSE_UNIVERSAL="yes"
28649
28650 AFMINSTALL=afminstall
28651 TOOLKIT=MICROWIN
28652 GUIDIST=MICROWIN_DIST
28653
28654 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
28655 fi
28656
74b84332 28657 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
c9a66001
VZ
28658
28659if test "x$ac_path_x_has_been_run" != xyes; then
28660 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
28661echo $ECHO_N "checking for X... $ECHO_C" >&6
28662
c9a66001 28663ac_path_x_has_been_run=yes
a848cd7e
SC
28664
28665# Check whether --with-x or --without-x was given.
28666if test "${with_x+set}" = set; then
28667 withval="$with_x"
28668
28669fi;
28670# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28671if test "x$with_x" = xno; then
28672 # The user explicitly disabled X.
28673 have_x=disabled
28674else
28675 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28676 # Both variables are already set.
28677 have_x=yes
28678 else
28679 if test "${ac_cv_have_x+set}" = set; then
28680 echo $ECHO_N "(cached) $ECHO_C" >&6
28681else
28682 # One or both of the vars are not set, and there is no cached value.
28683ac_x_includes=no ac_x_libraries=no
28684rm -fr conftest.dir
28685if mkdir conftest.dir; then
28686 cd conftest.dir
28687 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28688 cat >Imakefile <<'_ACEOF'
28689acfindx:
28690 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28691_ACEOF
28692 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28693 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28694 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28695 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28696 for ac_extension in a so sl; do
28697 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
28698 test -f $ac_im_libdir/libX11.$ac_extension; then
28699 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
28700 fi
28701 done
28702 # Screen out bogus values from the imake configuration. They are
28703 # bogus both because they are the default anyway, and because
28704 # using them would break gcc on systems where it needs fixed includes.
28705 case $ac_im_incroot in
28706 /usr/include) ;;
28707 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28708 esac
28709 case $ac_im_usrlibdir in
28710 /usr/lib | /lib) ;;
28711 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28712 esac
28713 fi
28714 cd ..
28715 rm -fr conftest.dir
28716fi
28717
28718# Standard set of common directories for X headers.
28719# Check X11 before X11Rn because it is often a symlink to the current release.
28720ac_x_header_dirs='
28721/usr/X11/include
28722/usr/X11R6/include
28723/usr/X11R5/include
28724/usr/X11R4/include
28725
28726/usr/include/X11
28727/usr/include/X11R6
28728/usr/include/X11R5
28729/usr/include/X11R4
28730
28731/usr/local/X11/include
28732/usr/local/X11R6/include
28733/usr/local/X11R5/include
28734/usr/local/X11R4/include
28735
28736/usr/local/include/X11
28737/usr/local/include/X11R6
28738/usr/local/include/X11R5
28739/usr/local/include/X11R4
28740
28741/usr/X386/include
28742/usr/x386/include
28743/usr/XFree86/include/X11
28744
28745/usr/include
28746/usr/local/include
28747/usr/unsupported/include
28748/usr/athena/include
28749/usr/local/x11r5/include
28750/usr/lpp/Xamples/include
28751
28752/usr/openwin/include
28753/usr/openwin/share/include'
28754
28755if test "$ac_x_includes" = no; then
c9a66001 28756 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
28757 # First, try using that file with no special directory specified.
28758 cat >conftest.$ac_ext <<_ACEOF
28759/* confdefs.h. */
28760_ACEOF
28761cat confdefs.h >>conftest.$ac_ext
28762cat >>conftest.$ac_ext <<_ACEOF
28763/* end confdefs.h. */
5acfd58d 28764#include <X11/Intrinsic.h>
a848cd7e
SC
28765_ACEOF
28766if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28768 ac_status=$?
28769 grep -v '^ *+' conftest.er1 >conftest.err
28770 rm -f conftest.er1
28771 cat conftest.err >&5
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); } >/dev/null; then
28774 if test -s conftest.err; then
5d7b7554
VZ
28775 ac_cpp_err=$ac_cxx_preproc_warn_flag
28776 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
28777 else
28778 ac_cpp_err=
28779 fi
28780else
28781 ac_cpp_err=yes
28782fi
28783if test -z "$ac_cpp_err"; then
28784 # We can compile using X headers with no special include directory.
28785ac_x_includes=
28786else
28787 echo "$as_me: failed program was:" >&5
28788sed 's/^/| /' conftest.$ac_ext >&5
28789
28790 for ac_dir in $ac_x_header_dirs; do
5acfd58d 28791 if test -r "$ac_dir/X11/Intrinsic.h"; then
a848cd7e
SC
28792 ac_x_includes=$ac_dir
28793 break
28794 fi
28795done
28796fi
28797rm -f conftest.err conftest.$ac_ext
28798fi # $ac_x_includes = no
28799
28800if test "$ac_x_libraries" = no; then
28801 # Check for the libraries.
28802 # See if we find them without any special options.
28803 # Don't add to $LIBS permanently.
28804 ac_save_LIBS=$LIBS
5acfd58d 28805 LIBS="-lXt $LIBS"
a848cd7e
SC
28806 cat >conftest.$ac_ext <<_ACEOF
28807/* confdefs.h. */
28808_ACEOF
28809cat confdefs.h >>conftest.$ac_ext
28810cat >>conftest.$ac_ext <<_ACEOF
28811/* end confdefs.h. */
5acfd58d 28812#include <X11/Intrinsic.h>
a848cd7e
SC
28813int
28814main ()
28815{
5acfd58d 28816XtMalloc (0)
a848cd7e
SC
28817 ;
28818 return 0;
28819}
28820_ACEOF
28821rm -f conftest.$ac_objext conftest$ac_exeext
28822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28823 (eval $ac_link) 2>conftest.er1
a848cd7e 28824 ac_status=$?
ac1cb8d3
VS
28825 grep -v '^ *+' conftest.er1 >conftest.err
28826 rm -f conftest.er1
28827 cat conftest.err >&5
a848cd7e
SC
28828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829 (exit $ac_status); } &&
c9a66001 28830 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28832 (eval $ac_try) 2>&5
28833 ac_status=$?
28834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835 (exit $ac_status); }; } &&
28836 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28838 (eval $ac_try) 2>&5
28839 ac_status=$?
28840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28841 (exit $ac_status); }; }; then
28842 LIBS=$ac_save_LIBS
28843# We can link X programs with no special library path.
28844ac_x_libraries=
28845else
28846 echo "$as_me: failed program was:" >&5
28847sed 's/^/| /' conftest.$ac_ext >&5
28848
28849LIBS=$ac_save_LIBS
28850for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28851do
28852 # Don't even attempt the hair of trying to link an X program!
28853 for ac_extension in a so sl; do
5acfd58d 28854 if test -r $ac_dir/libXt.$ac_extension; then
a848cd7e
SC
28855 ac_x_libraries=$ac_dir
28856 break 2
28857 fi
28858 done
28859done
28860fi
ac1cb8d3
VS
28861rm -f conftest.err conftest.$ac_objext \
28862 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28863fi # $ac_x_libraries = no
28864
28865if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
28866 # Didn't find X anywhere. Cache the known absence of X.
28867 ac_cv_have_x="have_x=no"
28868else
28869 # Record where we found X for the cache.
28870 ac_cv_have_x="have_x=yes \
ac1cb8d3 28871 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
28872fi
28873fi
28874
28875 fi
28876 eval "$ac_cv_have_x"
28877fi # $with_x != no
28878
28879if test "$have_x" != yes; then
28880 echo "$as_me:$LINENO: result: $have_x" >&5
28881echo "${ECHO_T}$have_x" >&6
28882 no_x=yes
28883else
28884 # If each of the values was on the command line, it overrides each guess.
28885 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28886 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28887 # Update the cache value to reflect the command line values.
28888 ac_cv_have_x="have_x=yes \
28889 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
c9a66001
VZ
28890 # It might be that x_includes is empty (headers are found in the
28891 # standard search path. Then output the corresponding message
28892 ac_out_x_includes=$x_includes
28893 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
28894 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
28895echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
28896fi
28897
c9a66001 28898fi
a848cd7e
SC
28899if test "$no_x" = yes; then
28900 # Not all programs may use this symbol, but it does not hurt to define it.
28901
28902cat >>confdefs.h <<\_ACEOF
28903#define X_DISPLAY_MISSING 1
28904_ACEOF
28905
28906 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28907else
28908 if test -n "$x_includes"; then
28909 X_CFLAGS="$X_CFLAGS -I$x_includes"
28910 fi
28911
28912 # It would also be nice to do this for all -L options, not just this one.
28913 if test -n "$x_libraries"; then
28914 X_LIBS="$X_LIBS -L$x_libraries"
28915 # For Solaris; some versions of Sun CC require a space after -R and
28916 # others require no space. Words are not sufficient . . . .
28917 case `(uname -sr) 2>/dev/null` in
28918 "SunOS 5"*)
28919 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
28920echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
28921 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28922 cat >conftest.$ac_ext <<_ACEOF
28923/* confdefs.h. */
28924_ACEOF
28925cat confdefs.h >>conftest.$ac_ext
28926cat >>conftest.$ac_ext <<_ACEOF
28927/* end confdefs.h. */
28928
28929int
28930main ()
28931{
28932
28933 ;
28934 return 0;
28935}
28936_ACEOF
28937rm -f conftest.$ac_objext conftest$ac_exeext
28938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28939 (eval $ac_link) 2>conftest.er1
a848cd7e 28940 ac_status=$?
ac1cb8d3
VS
28941 grep -v '^ *+' conftest.er1 >conftest.err
28942 rm -f conftest.er1
28943 cat conftest.err >&5
a848cd7e
SC
28944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); } &&
c9a66001 28946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28948 (eval $ac_try) 2>&5
28949 ac_status=$?
28950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951 (exit $ac_status); }; } &&
28952 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28954 (eval $ac_try) 2>&5
28955 ac_status=$?
28956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957 (exit $ac_status); }; }; then
28958 ac_R_nospace=yes
28959else
28960 echo "$as_me: failed program was:" >&5
28961sed 's/^/| /' conftest.$ac_ext >&5
28962
28963ac_R_nospace=no
28964fi
ac1cb8d3
VS
28965rm -f conftest.err conftest.$ac_objext \
28966 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28967 if test $ac_R_nospace = yes; then
28968 echo "$as_me:$LINENO: result: no" >&5
28969echo "${ECHO_T}no" >&6
28970 X_LIBS="$X_LIBS -R$x_libraries"
28971 else
28972 LIBS="$ac_xsave_LIBS -R $x_libraries"
28973 cat >conftest.$ac_ext <<_ACEOF
28974/* confdefs.h. */
28975_ACEOF
28976cat confdefs.h >>conftest.$ac_ext
28977cat >>conftest.$ac_ext <<_ACEOF
28978/* end confdefs.h. */
28979
28980int
28981main ()
28982{
28983
28984 ;
28985 return 0;
28986}
28987_ACEOF
28988rm -f conftest.$ac_objext conftest$ac_exeext
28989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28990 (eval $ac_link) 2>conftest.er1
a848cd7e 28991 ac_status=$?
ac1cb8d3
VS
28992 grep -v '^ *+' conftest.er1 >conftest.err
28993 rm -f conftest.er1
28994 cat conftest.err >&5
a848cd7e
SC
28995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996 (exit $ac_status); } &&
c9a66001 28997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28999 (eval $ac_try) 2>&5
29000 ac_status=$?
29001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002 (exit $ac_status); }; } &&
29003 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29005 (eval $ac_try) 2>&5
29006 ac_status=$?
29007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008 (exit $ac_status); }; }; then
29009 ac_R_space=yes
29010else
29011 echo "$as_me: failed program was:" >&5
29012sed 's/^/| /' conftest.$ac_ext >&5
29013
29014ac_R_space=no
29015fi
ac1cb8d3
VS
29016rm -f conftest.err conftest.$ac_objext \
29017 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29018 if test $ac_R_space = yes; then
29019 echo "$as_me:$LINENO: result: yes" >&5
29020echo "${ECHO_T}yes" >&6
29021 X_LIBS="$X_LIBS -R $x_libraries"
29022 else
29023 echo "$as_me:$LINENO: result: neither works" >&5
29024echo "${ECHO_T}neither works" >&6
29025 fi
29026 fi
29027 LIBS=$ac_xsave_LIBS
29028 esac
29029 fi
29030
29031 # Check for system-dependent libraries X programs must link with.
29032 # Do this before checking for the system-independent R6 libraries
29033 # (-lICE), since we may need -lsocket or whatever for X linking.
29034
29035 if test "$ISC" = yes; then
29036 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29037 else
29038 # Martyn Johnson says this is needed for Ultrix, if the X
29039 # libraries were built with DECnet support. And Karl Berry says
29040 # the Alpha needs dnet_stub (dnet does not exist).
29041 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29042 cat >conftest.$ac_ext <<_ACEOF
29043/* confdefs.h. */
29044_ACEOF
29045cat confdefs.h >>conftest.$ac_ext
29046cat >>conftest.$ac_ext <<_ACEOF
29047/* end confdefs.h. */
29048
29049/* Override any gcc2 internal prototype to avoid an error. */
29050#ifdef __cplusplus
29051extern "C"
29052#endif
29053/* We use char because int might match the return type of a gcc2
29054 builtin and then its argument prototype would still apply. */
29055char XOpenDisplay ();
29056int
29057main ()
29058{
29059XOpenDisplay ();
29060 ;
29061 return 0;
29062}
29063_ACEOF
29064rm -f conftest.$ac_objext conftest$ac_exeext
29065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29066 (eval $ac_link) 2>conftest.er1
a848cd7e 29067 ac_status=$?
ac1cb8d3
VS
29068 grep -v '^ *+' conftest.er1 >conftest.err
29069 rm -f conftest.er1
29070 cat conftest.err >&5
a848cd7e
SC
29071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29072 (exit $ac_status); } &&
c9a66001 29073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29075 (eval $ac_try) 2>&5
29076 ac_status=$?
29077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078 (exit $ac_status); }; } &&
29079 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29081 (eval $ac_try) 2>&5
29082 ac_status=$?
29083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084 (exit $ac_status); }; }; then
29085 :
29086else
29087 echo "$as_me: failed program was:" >&5
29088sed 's/^/| /' conftest.$ac_ext >&5
29089
29090echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29091echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29092if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29093 echo $ECHO_N "(cached) $ECHO_C" >&6
29094else
29095 ac_check_lib_save_LIBS=$LIBS
29096LIBS="-ldnet $LIBS"
29097cat >conftest.$ac_ext <<_ACEOF
29098/* confdefs.h. */
29099_ACEOF
29100cat confdefs.h >>conftest.$ac_ext
29101cat >>conftest.$ac_ext <<_ACEOF
29102/* end confdefs.h. */
29103
29104/* Override any gcc2 internal prototype to avoid an error. */
29105#ifdef __cplusplus
29106extern "C"
29107#endif
29108/* We use char because int might match the return type of a gcc2
29109 builtin and then its argument prototype would still apply. */
29110char dnet_ntoa ();
29111int
29112main ()
29113{
29114dnet_ntoa ();
29115 ;
29116 return 0;
29117}
29118_ACEOF
29119rm -f conftest.$ac_objext conftest$ac_exeext
29120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29121 (eval $ac_link) 2>conftest.er1
a848cd7e 29122 ac_status=$?
ac1cb8d3
VS
29123 grep -v '^ *+' conftest.er1 >conftest.err
29124 rm -f conftest.er1
29125 cat conftest.err >&5
a848cd7e
SC
29126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127 (exit $ac_status); } &&
c9a66001 29128 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29130 (eval $ac_try) 2>&5
29131 ac_status=$?
29132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29133 (exit $ac_status); }; } &&
29134 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29136 (eval $ac_try) 2>&5
29137 ac_status=$?
29138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29139 (exit $ac_status); }; }; then
29140 ac_cv_lib_dnet_dnet_ntoa=yes
29141else
29142 echo "$as_me: failed program was:" >&5
29143sed 's/^/| /' conftest.$ac_ext >&5
29144
29145ac_cv_lib_dnet_dnet_ntoa=no
29146fi
ac1cb8d3
VS
29147rm -f conftest.err conftest.$ac_objext \
29148 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29149LIBS=$ac_check_lib_save_LIBS
29150fi
29151echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29152echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29153if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29154 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29155fi
29156
29157 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29158 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29159echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29160if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29161 echo $ECHO_N "(cached) $ECHO_C" >&6
29162else
29163 ac_check_lib_save_LIBS=$LIBS
29164LIBS="-ldnet_stub $LIBS"
29165cat >conftest.$ac_ext <<_ACEOF
29166/* confdefs.h. */
29167_ACEOF
29168cat confdefs.h >>conftest.$ac_ext
29169cat >>conftest.$ac_ext <<_ACEOF
29170/* end confdefs.h. */
29171
29172/* Override any gcc2 internal prototype to avoid an error. */
29173#ifdef __cplusplus
29174extern "C"
29175#endif
29176/* We use char because int might match the return type of a gcc2
29177 builtin and then its argument prototype would still apply. */
29178char dnet_ntoa ();
29179int
29180main ()
29181{
29182dnet_ntoa ();
29183 ;
29184 return 0;
29185}
29186_ACEOF
29187rm -f conftest.$ac_objext conftest$ac_exeext
29188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29189 (eval $ac_link) 2>conftest.er1
a848cd7e 29190 ac_status=$?
ac1cb8d3
VS
29191 grep -v '^ *+' conftest.er1 >conftest.err
29192 rm -f conftest.er1
29193 cat conftest.err >&5
a848cd7e
SC
29194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195 (exit $ac_status); } &&
c9a66001 29196 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29198 (eval $ac_try) 2>&5
29199 ac_status=$?
29200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29201 (exit $ac_status); }; } &&
29202 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29204 (eval $ac_try) 2>&5
29205 ac_status=$?
29206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207 (exit $ac_status); }; }; then
29208 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29209else
29210 echo "$as_me: failed program was:" >&5
29211sed 's/^/| /' conftest.$ac_ext >&5
29212
29213ac_cv_lib_dnet_stub_dnet_ntoa=no
29214fi
ac1cb8d3
VS
29215rm -f conftest.err conftest.$ac_objext \
29216 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29217LIBS=$ac_check_lib_save_LIBS
29218fi
29219echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29220echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29221if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29222 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29223fi
29224
29225 fi
29226fi
ac1cb8d3
VS
29227rm -f conftest.err conftest.$ac_objext \
29228 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29229 LIBS="$ac_xsave_LIBS"
29230
29231 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29232 # to get the SysV transport functions.
29233 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29234 # needs -lnsl.
29235 # The nsl library prevents programs from opening the X display
29236 # on Irix 5.2, according to T.E. Dickey.
29237 # The functions gethostbyname, getservbyname, and inet_addr are
29238 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29239 echo "$as_me:$LINENO: checking for gethostbyname" >&5
29240echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29241if test "${ac_cv_func_gethostbyname+set}" = set; then
29242 echo $ECHO_N "(cached) $ECHO_C" >&6
29243else
29244 cat >conftest.$ac_ext <<_ACEOF
29245/* confdefs.h. */
29246_ACEOF
29247cat confdefs.h >>conftest.$ac_ext
29248cat >>conftest.$ac_ext <<_ACEOF
29249/* end confdefs.h. */
ac1cb8d3
VS
29250/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29252#define gethostbyname innocuous_gethostbyname
29253
a848cd7e
SC
29254/* System header to define __stub macros and hopefully few prototypes,
29255 which can conflict with char gethostbyname (); below.
29256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29257 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29258
a848cd7e
SC
29259#ifdef __STDC__
29260# include <limits.h>
29261#else
29262# include <assert.h>
29263#endif
ac1cb8d3
VS
29264
29265#undef gethostbyname
29266
a848cd7e
SC
29267/* Override any gcc2 internal prototype to avoid an error. */
29268#ifdef __cplusplus
29269extern "C"
29270{
29271#endif
29272/* We use char because int might match the return type of a gcc2
29273 builtin and then its argument prototype would still apply. */
29274char gethostbyname ();
29275/* The GNU C library defines this for functions which it implements
29276 to always fail with ENOSYS. Some functions are actually named
29277 something starting with __ and the normal name is an alias. */
29278#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29279choke me
29280#else
29281char (*f) () = gethostbyname;
29282#endif
29283#ifdef __cplusplus
29284}
29285#endif
29286
29287int
29288main ()
29289{
29290return f != gethostbyname;
29291 ;
29292 return 0;
29293}
29294_ACEOF
29295rm -f conftest.$ac_objext conftest$ac_exeext
29296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29297 (eval $ac_link) 2>conftest.er1
a848cd7e 29298 ac_status=$?
ac1cb8d3
VS
29299 grep -v '^ *+' conftest.er1 >conftest.err
29300 rm -f conftest.er1
29301 cat conftest.err >&5
a848cd7e
SC
29302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303 (exit $ac_status); } &&
c9a66001 29304 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29306 (eval $ac_try) 2>&5
29307 ac_status=$?
29308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309 (exit $ac_status); }; } &&
29310 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29312 (eval $ac_try) 2>&5
29313 ac_status=$?
29314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315 (exit $ac_status); }; }; then
29316 ac_cv_func_gethostbyname=yes
29317else
29318 echo "$as_me: failed program was:" >&5
29319sed 's/^/| /' conftest.$ac_ext >&5
29320
29321ac_cv_func_gethostbyname=no
29322fi
ac1cb8d3
VS
29323rm -f conftest.err conftest.$ac_objext \
29324 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29325fi
29326echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29327echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29328
29329 if test $ac_cv_func_gethostbyname = no; then
29330 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29331echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29332if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29333 echo $ECHO_N "(cached) $ECHO_C" >&6
29334else
29335 ac_check_lib_save_LIBS=$LIBS
29336LIBS="-lnsl $LIBS"
29337cat >conftest.$ac_ext <<_ACEOF
29338/* confdefs.h. */
29339_ACEOF
29340cat confdefs.h >>conftest.$ac_ext
29341cat >>conftest.$ac_ext <<_ACEOF
29342/* end confdefs.h. */
29343
29344/* Override any gcc2 internal prototype to avoid an error. */
29345#ifdef __cplusplus
29346extern "C"
29347#endif
29348/* We use char because int might match the return type of a gcc2
29349 builtin and then its argument prototype would still apply. */
29350char gethostbyname ();
29351int
29352main ()
29353{
29354gethostbyname ();
29355 ;
29356 return 0;
29357}
29358_ACEOF
29359rm -f conftest.$ac_objext conftest$ac_exeext
29360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
29361 (eval $ac_link) 2>conftest.er1
29362 ac_status=$?
29363 grep -v '^ *+' conftest.er1 >conftest.err
29364 rm -f conftest.er1
29365 cat conftest.err >&5
29366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29367 (exit $ac_status); } &&
c9a66001 29368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29370 (eval $ac_try) 2>&5
29371 ac_status=$?
29372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29373 (exit $ac_status); }; } &&
29374 { ac_try='test -s conftest$ac_exeext'
29375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29376 (eval $ac_try) 2>&5
29377 ac_status=$?
29378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379 (exit $ac_status); }; }; then
29380 ac_cv_lib_nsl_gethostbyname=yes
29381else
29382 echo "$as_me: failed program was:" >&5
29383sed 's/^/| /' conftest.$ac_ext >&5
29384
29385ac_cv_lib_nsl_gethostbyname=no
29386fi
29387rm -f conftest.err conftest.$ac_objext \
29388 conftest$ac_exeext conftest.$ac_ext
29389LIBS=$ac_check_lib_save_LIBS
29390fi
29391echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29392echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
29393if test $ac_cv_lib_nsl_gethostbyname = yes; then
29394 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29395fi
29396
29397 if test $ac_cv_lib_nsl_gethostbyname = no; then
29398 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29399echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
29400if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29401 echo $ECHO_N "(cached) $ECHO_C" >&6
29402else
29403 ac_check_lib_save_LIBS=$LIBS
29404LIBS="-lbsd $LIBS"
29405cat >conftest.$ac_ext <<_ACEOF
29406/* confdefs.h. */
29407_ACEOF
29408cat confdefs.h >>conftest.$ac_ext
29409cat >>conftest.$ac_ext <<_ACEOF
29410/* end confdefs.h. */
29411
29412/* Override any gcc2 internal prototype to avoid an error. */
29413#ifdef __cplusplus
29414extern "C"
29415#endif
29416/* We use char because int might match the return type of a gcc2
29417 builtin and then its argument prototype would still apply. */
29418char gethostbyname ();
29419int
29420main ()
29421{
29422gethostbyname ();
29423 ;
29424 return 0;
29425}
29426_ACEOF
29427rm -f conftest.$ac_objext conftest$ac_exeext
29428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29429 (eval $ac_link) 2>conftest.er1
a848cd7e 29430 ac_status=$?
ac1cb8d3
VS
29431 grep -v '^ *+' conftest.er1 >conftest.err
29432 rm -f conftest.er1
29433 cat conftest.err >&5
a848cd7e
SC
29434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435 (exit $ac_status); } &&
c9a66001 29436 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
29437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29438 (eval $ac_try) 2>&5
29439 ac_status=$?
29440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
29441 (exit $ac_status); }; } &&
29442 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29444 (eval $ac_try) 2>&5
29445 ac_status=$?
29446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29447 (exit $ac_status); }; }; then
29448 ac_cv_lib_bsd_gethostbyname=yes
29449else
29450 echo "$as_me: failed program was:" >&5
29451sed 's/^/| /' conftest.$ac_ext >&5
29452
29453ac_cv_lib_bsd_gethostbyname=no
29454fi
ac1cb8d3
VS
29455rm -f conftest.err conftest.$ac_objext \
29456 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29457LIBS=$ac_check_lib_save_LIBS
29458fi
29459echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29460echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
29461if test $ac_cv_lib_bsd_gethostbyname = yes; then
29462 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29463fi
29464
29465 fi
29466 fi
29467
29468 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29469 # socket/setsockopt and other routines are undefined under SCO ODT
29470 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29471 # on later versions), says Simon Leinen: it contains gethostby*
29472 # variants that don't use the name server (or something). -lsocket
29473 # must be given before -lnsl if both are needed. We assume that
29474 # if connect needs -lnsl, so does gethostbyname.
29475 echo "$as_me:$LINENO: checking for connect" >&5
29476echo $ECHO_N "checking for connect... $ECHO_C" >&6
29477if test "${ac_cv_func_connect+set}" = set; then
29478 echo $ECHO_N "(cached) $ECHO_C" >&6
29479else
29480 cat >conftest.$ac_ext <<_ACEOF
29481/* confdefs.h. */
29482_ACEOF
29483cat confdefs.h >>conftest.$ac_ext
29484cat >>conftest.$ac_ext <<_ACEOF
29485/* end confdefs.h. */
ac1cb8d3
VS
29486/* Define connect to an innocuous variant, in case <limits.h> declares connect.
29487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29488#define connect innocuous_connect
29489
a848cd7e
SC
29490/* System header to define __stub macros and hopefully few prototypes,
29491 which can conflict with char connect (); below.
29492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29493 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29494
a848cd7e
SC
29495#ifdef __STDC__
29496# include <limits.h>
29497#else
29498# include <assert.h>
29499#endif
ac1cb8d3
VS
29500
29501#undef connect
29502
a848cd7e
SC
29503/* Override any gcc2 internal prototype to avoid an error. */
29504#ifdef __cplusplus
29505extern "C"
29506{
29507#endif
29508/* We use char because int might match the return type of a gcc2
29509 builtin and then its argument prototype would still apply. */
29510char connect ();
29511/* The GNU C library defines this for functions which it implements
29512 to always fail with ENOSYS. Some functions are actually named
29513 something starting with __ and the normal name is an alias. */
29514#if defined (__stub_connect) || defined (__stub___connect)
29515choke me
29516#else
29517char (*f) () = connect;
29518#endif
29519#ifdef __cplusplus
29520}
29521#endif
29522
29523int
29524main ()
29525{
29526return f != connect;
29527 ;
29528 return 0;
29529}
29530_ACEOF
29531rm -f conftest.$ac_objext conftest$ac_exeext
29532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29533 (eval $ac_link) 2>conftest.er1
a848cd7e 29534 ac_status=$?
ac1cb8d3
VS
29535 grep -v '^ *+' conftest.er1 >conftest.err
29536 rm -f conftest.er1
29537 cat conftest.err >&5
a848cd7e
SC
29538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29539 (exit $ac_status); } &&
c9a66001 29540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29542 (eval $ac_try) 2>&5
29543 ac_status=$?
29544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545 (exit $ac_status); }; } &&
29546 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
29552 ac_cv_func_connect=yes
29553else
29554 echo "$as_me: failed program was:" >&5
29555sed 's/^/| /' conftest.$ac_ext >&5
29556
29557ac_cv_func_connect=no
29558fi
ac1cb8d3
VS
29559rm -f conftest.err conftest.$ac_objext \
29560 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29561fi
29562echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29563echo "${ECHO_T}$ac_cv_func_connect" >&6
29564
29565 if test $ac_cv_func_connect = no; then
29566 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29567echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
29568if test "${ac_cv_lib_socket_connect+set}" = set; then
29569 echo $ECHO_N "(cached) $ECHO_C" >&6
29570else
29571 ac_check_lib_save_LIBS=$LIBS
29572LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29573cat >conftest.$ac_ext <<_ACEOF
29574/* confdefs.h. */
29575_ACEOF
29576cat confdefs.h >>conftest.$ac_ext
29577cat >>conftest.$ac_ext <<_ACEOF
29578/* end confdefs.h. */
29579
29580/* Override any gcc2 internal prototype to avoid an error. */
29581#ifdef __cplusplus
29582extern "C"
29583#endif
29584/* We use char because int might match the return type of a gcc2
29585 builtin and then its argument prototype would still apply. */
29586char connect ();
29587int
29588main ()
29589{
29590connect ();
29591 ;
29592 return 0;
29593}
29594_ACEOF
29595rm -f conftest.$ac_objext conftest$ac_exeext
29596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29597 (eval $ac_link) 2>conftest.er1
a848cd7e 29598 ac_status=$?
ac1cb8d3
VS
29599 grep -v '^ *+' conftest.er1 >conftest.err
29600 rm -f conftest.er1
29601 cat conftest.err >&5
a848cd7e
SC
29602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603 (exit $ac_status); } &&
c9a66001 29604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29606 (eval $ac_try) 2>&5
29607 ac_status=$?
29608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29609 (exit $ac_status); }; } &&
29610 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29612 (eval $ac_try) 2>&5
29613 ac_status=$?
29614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615 (exit $ac_status); }; }; then
29616 ac_cv_lib_socket_connect=yes
29617else
29618 echo "$as_me: failed program was:" >&5
29619sed 's/^/| /' conftest.$ac_ext >&5
29620
29621ac_cv_lib_socket_connect=no
29622fi
ac1cb8d3
VS
29623rm -f conftest.err conftest.$ac_objext \
29624 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29625LIBS=$ac_check_lib_save_LIBS
29626fi
29627echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
29628echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
29629if test $ac_cv_lib_socket_connect = yes; then
29630 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29631fi
29632
29633 fi
29634
29635 # Guillermo Gomez says -lposix is necessary on A/UX.
29636 echo "$as_me:$LINENO: checking for remove" >&5
29637echo $ECHO_N "checking for remove... $ECHO_C" >&6
29638if test "${ac_cv_func_remove+set}" = set; then
29639 echo $ECHO_N "(cached) $ECHO_C" >&6
29640else
29641 cat >conftest.$ac_ext <<_ACEOF
29642/* confdefs.h. */
29643_ACEOF
29644cat confdefs.h >>conftest.$ac_ext
29645cat >>conftest.$ac_ext <<_ACEOF
29646/* end confdefs.h. */
ac1cb8d3
VS
29647/* Define remove to an innocuous variant, in case <limits.h> declares remove.
29648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29649#define remove innocuous_remove
29650
a848cd7e
SC
29651/* System header to define __stub macros and hopefully few prototypes,
29652 which can conflict with char remove (); below.
29653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29654 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29655
a848cd7e
SC
29656#ifdef __STDC__
29657# include <limits.h>
29658#else
29659# include <assert.h>
29660#endif
ac1cb8d3
VS
29661
29662#undef remove
29663
a848cd7e
SC
29664/* Override any gcc2 internal prototype to avoid an error. */
29665#ifdef __cplusplus
29666extern "C"
29667{
29668#endif
29669/* We use char because int might match the return type of a gcc2
29670 builtin and then its argument prototype would still apply. */
29671char remove ();
29672/* The GNU C library defines this for functions which it implements
29673 to always fail with ENOSYS. Some functions are actually named
29674 something starting with __ and the normal name is an alias. */
29675#if defined (__stub_remove) || defined (__stub___remove)
29676choke me
29677#else
29678char (*f) () = remove;
29679#endif
29680#ifdef __cplusplus
29681}
29682#endif
29683
29684int
29685main ()
29686{
29687return f != remove;
29688 ;
29689 return 0;
29690}
29691_ACEOF
29692rm -f conftest.$ac_objext conftest$ac_exeext
29693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29694 (eval $ac_link) 2>conftest.er1
a848cd7e 29695 ac_status=$?
ac1cb8d3
VS
29696 grep -v '^ *+' conftest.er1 >conftest.err
29697 rm -f conftest.er1
29698 cat conftest.err >&5
a848cd7e
SC
29699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700 (exit $ac_status); } &&
c9a66001 29701 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29703 (eval $ac_try) 2>&5
29704 ac_status=$?
29705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29706 (exit $ac_status); }; } &&
29707 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29709 (eval $ac_try) 2>&5
29710 ac_status=$?
29711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29712 (exit $ac_status); }; }; then
29713 ac_cv_func_remove=yes
29714else
29715 echo "$as_me: failed program was:" >&5
29716sed 's/^/| /' conftest.$ac_ext >&5
29717
29718ac_cv_func_remove=no
29719fi
ac1cb8d3
VS
29720rm -f conftest.err conftest.$ac_objext \
29721 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29722fi
29723echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
29724echo "${ECHO_T}$ac_cv_func_remove" >&6
29725
29726 if test $ac_cv_func_remove = no; then
29727 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
29728echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
29729if test "${ac_cv_lib_posix_remove+set}" = set; then
29730 echo $ECHO_N "(cached) $ECHO_C" >&6
29731else
29732 ac_check_lib_save_LIBS=$LIBS
29733LIBS="-lposix $LIBS"
29734cat >conftest.$ac_ext <<_ACEOF
29735/* confdefs.h. */
29736_ACEOF
29737cat confdefs.h >>conftest.$ac_ext
29738cat >>conftest.$ac_ext <<_ACEOF
29739/* end confdefs.h. */
29740
29741/* Override any gcc2 internal prototype to avoid an error. */
29742#ifdef __cplusplus
29743extern "C"
29744#endif
29745/* We use char because int might match the return type of a gcc2
29746 builtin and then its argument prototype would still apply. */
29747char remove ();
29748int
29749main ()
29750{
29751remove ();
29752 ;
29753 return 0;
29754}
29755_ACEOF
29756rm -f conftest.$ac_objext conftest$ac_exeext
29757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29758 (eval $ac_link) 2>conftest.er1
a848cd7e 29759 ac_status=$?
ac1cb8d3
VS
29760 grep -v '^ *+' conftest.er1 >conftest.err
29761 rm -f conftest.er1
29762 cat conftest.err >&5
a848cd7e
SC
29763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764 (exit $ac_status); } &&
c9a66001 29765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29767 (eval $ac_try) 2>&5
29768 ac_status=$?
29769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29770 (exit $ac_status); }; } &&
29771 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29773 (eval $ac_try) 2>&5
29774 ac_status=$?
29775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29776 (exit $ac_status); }; }; then
29777 ac_cv_lib_posix_remove=yes
29778else
29779 echo "$as_me: failed program was:" >&5
29780sed 's/^/| /' conftest.$ac_ext >&5
29781
29782ac_cv_lib_posix_remove=no
29783fi
ac1cb8d3
VS
29784rm -f conftest.err conftest.$ac_objext \
29785 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29786LIBS=$ac_check_lib_save_LIBS
29787fi
29788echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
29789echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
29790if test $ac_cv_lib_posix_remove = yes; then
29791 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29792fi
29793
29794 fi
29795
29796 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29797 echo "$as_me:$LINENO: checking for shmat" >&5
29798echo $ECHO_N "checking for shmat... $ECHO_C" >&6
29799if test "${ac_cv_func_shmat+set}" = set; then
29800 echo $ECHO_N "(cached) $ECHO_C" >&6
29801else
29802 cat >conftest.$ac_ext <<_ACEOF
29803/* confdefs.h. */
29804_ACEOF
29805cat confdefs.h >>conftest.$ac_ext
29806cat >>conftest.$ac_ext <<_ACEOF
29807/* end confdefs.h. */
ac1cb8d3
VS
29808/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
29809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29810#define shmat innocuous_shmat
29811
a848cd7e
SC
29812/* System header to define __stub macros and hopefully few prototypes,
29813 which can conflict with char shmat (); below.
29814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29815 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29816
a848cd7e
SC
29817#ifdef __STDC__
29818# include <limits.h>
29819#else
29820# include <assert.h>
29821#endif
ac1cb8d3
VS
29822
29823#undef shmat
29824
a848cd7e
SC
29825/* Override any gcc2 internal prototype to avoid an error. */
29826#ifdef __cplusplus
29827extern "C"
29828{
29829#endif
29830/* We use char because int might match the return type of a gcc2
29831 builtin and then its argument prototype would still apply. */
29832char shmat ();
29833/* The GNU C library defines this for functions which it implements
29834 to always fail with ENOSYS. Some functions are actually named
29835 something starting with __ and the normal name is an alias. */
29836#if defined (__stub_shmat) || defined (__stub___shmat)
29837choke me
29838#else
29839char (*f) () = shmat;
29840#endif
29841#ifdef __cplusplus
29842}
29843#endif
29844
29845int
29846main ()
29847{
29848return f != shmat;
29849 ;
29850 return 0;
29851}
29852_ACEOF
29853rm -f conftest.$ac_objext conftest$ac_exeext
29854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29855 (eval $ac_link) 2>conftest.er1
a848cd7e 29856 ac_status=$?
ac1cb8d3
VS
29857 grep -v '^ *+' conftest.er1 >conftest.err
29858 rm -f conftest.er1
29859 cat conftest.err >&5
a848cd7e
SC
29860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861 (exit $ac_status); } &&
c9a66001 29862 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29864 (eval $ac_try) 2>&5
29865 ac_status=$?
29866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867 (exit $ac_status); }; } &&
29868 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29870 (eval $ac_try) 2>&5
29871 ac_status=$?
29872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873 (exit $ac_status); }; }; then
29874 ac_cv_func_shmat=yes
29875else
29876 echo "$as_me: failed program was:" >&5
29877sed 's/^/| /' conftest.$ac_ext >&5
29878
29879ac_cv_func_shmat=no
29880fi
ac1cb8d3
VS
29881rm -f conftest.err conftest.$ac_objext \
29882 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29883fi
29884echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
29885echo "${ECHO_T}$ac_cv_func_shmat" >&6
29886
29887 if test $ac_cv_func_shmat = no; then
29888 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
29889echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
29890if test "${ac_cv_lib_ipc_shmat+set}" = set; then
29891 echo $ECHO_N "(cached) $ECHO_C" >&6
29892else
29893 ac_check_lib_save_LIBS=$LIBS
29894LIBS="-lipc $LIBS"
29895cat >conftest.$ac_ext <<_ACEOF
29896/* confdefs.h. */
29897_ACEOF
29898cat confdefs.h >>conftest.$ac_ext
29899cat >>conftest.$ac_ext <<_ACEOF
29900/* end confdefs.h. */
29901
29902/* Override any gcc2 internal prototype to avoid an error. */
29903#ifdef __cplusplus
29904extern "C"
29905#endif
29906/* We use char because int might match the return type of a gcc2
29907 builtin and then its argument prototype would still apply. */
29908char shmat ();
29909int
29910main ()
29911{
29912shmat ();
29913 ;
29914 return 0;
29915}
29916_ACEOF
29917rm -f conftest.$ac_objext conftest$ac_exeext
29918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29919 (eval $ac_link) 2>conftest.er1
a848cd7e 29920 ac_status=$?
ac1cb8d3
VS
29921 grep -v '^ *+' conftest.er1 >conftest.err
29922 rm -f conftest.er1
29923 cat conftest.err >&5
a848cd7e
SC
29924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925 (exit $ac_status); } &&
c9a66001 29926 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29928 (eval $ac_try) 2>&5
29929 ac_status=$?
29930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29931 (exit $ac_status); }; } &&
29932 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29934 (eval $ac_try) 2>&5
29935 ac_status=$?
29936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937 (exit $ac_status); }; }; then
29938 ac_cv_lib_ipc_shmat=yes
29939else
29940 echo "$as_me: failed program was:" >&5
29941sed 's/^/| /' conftest.$ac_ext >&5
29942
29943ac_cv_lib_ipc_shmat=no
29944fi
ac1cb8d3
VS
29945rm -f conftest.err conftest.$ac_objext \
29946 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29947LIBS=$ac_check_lib_save_LIBS
29948fi
29949echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
29950echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
29951if test $ac_cv_lib_ipc_shmat = yes; then
29952 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29953fi
29954
29955 fi
29956 fi
29957
29958 # Check for libraries that X11R6 Xt/Xaw programs need.
29959 ac_save_LDFLAGS=$LDFLAGS
29960 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29961 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29962 # check for ICE first), but we must link in the order -lSM -lICE or
29963 # we get undefined symbols. So assume we have SM if we have ICE.
29964 # These have to be linked with before -lX11, unlike the other
29965 # libraries we check for below, so use a different variable.
29966 # John Interrante, Karl Berry
29967 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29968echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
29969if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
29970 echo $ECHO_N "(cached) $ECHO_C" >&6
29971else
29972 ac_check_lib_save_LIBS=$LIBS
29973LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29974cat >conftest.$ac_ext <<_ACEOF
29975/* confdefs.h. */
29976_ACEOF
29977cat confdefs.h >>conftest.$ac_ext
29978cat >>conftest.$ac_ext <<_ACEOF
29979/* end confdefs.h. */
29980
29981/* Override any gcc2 internal prototype to avoid an error. */
29982#ifdef __cplusplus
29983extern "C"
29984#endif
29985/* We use char because int might match the return type of a gcc2
29986 builtin and then its argument prototype would still apply. */
29987char IceConnectionNumber ();
29988int
29989main ()
29990{
29991IceConnectionNumber ();
29992 ;
29993 return 0;
29994}
29995_ACEOF
29996rm -f conftest.$ac_objext conftest$ac_exeext
29997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29998 (eval $ac_link) 2>conftest.er1
a848cd7e 29999 ac_status=$?
ac1cb8d3
VS
30000 grep -v '^ *+' conftest.er1 >conftest.err
30001 rm -f conftest.er1
30002 cat conftest.err >&5
a848cd7e
SC
30003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30004 (exit $ac_status); } &&
c9a66001 30005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30007 (eval $ac_try) 2>&5
30008 ac_status=$?
30009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30010 (exit $ac_status); }; } &&
30011 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30013 (eval $ac_try) 2>&5
30014 ac_status=$?
30015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016 (exit $ac_status); }; }; then
30017 ac_cv_lib_ICE_IceConnectionNumber=yes
30018else
30019 echo "$as_me: failed program was:" >&5
30020sed 's/^/| /' conftest.$ac_ext >&5
30021
30022ac_cv_lib_ICE_IceConnectionNumber=no
30023fi
ac1cb8d3
VS
30024rm -f conftest.err conftest.$ac_objext \
30025 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30026LIBS=$ac_check_lib_save_LIBS
30027fi
30028echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30029echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30030if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30031 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30032fi
30033
30034 LDFLAGS=$ac_save_LDFLAGS
30035
30036fi
30037
30038
30039 if test "$no_x" = "yes"; then
89d90d6d
VZ
30040 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30041echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30042 { (exit 1); exit 1; }; }
a848cd7e
SC
30043 fi
30044
74b84332
VS
30045 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30046 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
30047 AFMINSTALL=afminstall
30048 COMPILED_X_PROGRAM=0
30049
74b84332
VS
30050 fi
30051
30052 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
30053 if test "$wxUSE_NANOX" = "yes"; then
30054 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30055echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
30056 if test "x$MICROWIN" = x ; then
30057 echo "$as_me:$LINENO: result: not found" >&5
30058echo "${ECHO_T}not found" >&6
30059 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30060echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30061 { (exit 1); exit 1; }; }
30062 else
30063 echo "$as_me:$LINENO: result: $MICROWIN" >&5
30064echo "${ECHO_T}$MICROWIN" >&6
30065 cat >>confdefs.h <<\_ACEOF
30066#define wxUSE_NANOX 1
30067_ACEOF
30068
30069 fi
30070 fi
30071
30072 if test "$wxUSE_UNICODE" = "yes"; then
30073
a848cd7e 30074
3ecd9f92
MW
30075if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
30076 if test -n "$ac_tool_prefix"; then
30077 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30078set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
a848cd7e
SC
30079echo "$as_me:$LINENO: checking for $ac_word" >&5
30080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30081if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30082 echo $ECHO_N "(cached) $ECHO_C" >&6
30083else
30084 case $PKG_CONFIG in
30085 [\\/]* | ?:[\\/]*)
30086 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30087 ;;
30088 *)
30089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30090for as_dir in $PATH
30091do
30092 IFS=$as_save_IFS
30093 test -z "$as_dir" && as_dir=.
30094 for ac_exec_ext in '' $ac_executable_extensions; do
30095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30096 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30098 break 2
30099 fi
30100done
30101done
30102
a848cd7e
SC
30103 ;;
30104esac
30105fi
30106PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30107
30108if test -n "$PKG_CONFIG"; then
30109 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30110echo "${ECHO_T}$PKG_CONFIG" >&6
30111else
30112 echo "$as_me:$LINENO: result: no" >&5
30113echo "${ECHO_T}no" >&6
30114fi
30115
3ecd9f92
MW
30116fi
30117if test -z "$ac_cv_path_PKG_CONFIG"; then
30118 ac_pt_PKG_CONFIG=$PKG_CONFIG
30119 # Extract the first word of "pkg-config", so it can be a program name with args.
a848cd7e
SC
30120set dummy pkg-config; ac_word=$2
30121echo "$as_me:$LINENO: checking for $ac_word" >&5
30122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3ecd9f92 30123if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
a848cd7e
SC
30124 echo $ECHO_N "(cached) $ECHO_C" >&6
30125else
3ecd9f92 30126 case $ac_pt_PKG_CONFIG in
a848cd7e 30127 [\\/]* | ?:[\\/]*)
3ecd9f92 30128 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
a848cd7e
SC
30129 ;;
30130 *)
30131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30132for as_dir in $PATH
30133do
30134 IFS=$as_save_IFS
30135 test -z "$as_dir" && as_dir=.
30136 for ac_exec_ext in '' $ac_executable_extensions; do
30137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3ecd9f92 30138 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
a848cd7e
SC
30139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30140 break 2
30141 fi
30142done
30143done
30144
a848cd7e
SC
30145 ;;
30146esac
30147fi
3ecd9f92 30148ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
a848cd7e 30149
3ecd9f92
MW
30150if test -n "$ac_pt_PKG_CONFIG"; then
30151 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
30152echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
a848cd7e
SC
30153else
30154 echo "$as_me:$LINENO: result: no" >&5
30155echo "${ECHO_T}no" >&6
30156fi
30157
3ecd9f92
MW
30158 PKG_CONFIG=$ac_pt_PKG_CONFIG
30159else
30160 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
30161fi
a848cd7e 30162
3ecd9f92
MW
30163fi
30164if test -n "$PKG_CONFIG"; then
30165 _pkg_min_version=0.9.0
30166 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
30167echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
30168 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
30169 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 30170echo "${ECHO_T}yes" >&6
3ecd9f92
MW
30171 else
30172 echo "$as_me:$LINENO: result: no" >&5
30173echo "${ECHO_T}no" >&6
30174 PKG_CONFIG=""
30175 fi
30176
30177fi
30178
30179pkg_failed=no
30180echo "$as_me:$LINENO: checking for PANGOX" >&5
30181echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
a848cd7e 30182
3ecd9f92
MW
30183if test -n "$PKG_CONFIG"; then
30184 if test -n "$PANGOX_CFLAGS"; then
30185 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
30186 else
30187 if test -n "$PKG_CONFIG" && \
30188 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30189 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30190 ac_status=$?
30191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30192 (exit $ac_status); }; then
30193 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
30194else
30195 pkg_failed=yes
30196fi
30197 fi
30198else
30199 pkg_failed=untried
30200fi
30201if test -n "$PKG_CONFIG"; then
30202 if test -n "$PANGOX_LIBS"; then
30203 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
30204 else
30205 if test -n "$PKG_CONFIG" && \
30206 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30207 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30208 ac_status=$?
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); }; then
30211 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
30212else
30213 pkg_failed=yes
30214fi
30215 fi
30216else
30217 pkg_failed=untried
30218fi
30219
30220
30221
30222if test $pkg_failed = yes; then
30223
30224if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30225 _pkg_short_errors_supported=yes
30226else
30227 _pkg_short_errors_supported=no
30228fi
30229 if test $_pkg_short_errors_supported = yes; then
30230 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
30231 else
30232 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
a848cd7e 30233 fi
3ecd9f92
MW
30234 # Put the nasty error message in config.log where it belongs
30235 echo "$PANGOX_PKG_ERRORS" >&5
a848cd7e
SC
30236
30237
3ecd9f92
MW
30238 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30239echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30240 { (exit 1); exit 1; }; }
a848cd7e 30241
a848cd7e 30242
3ecd9f92 30243elif test $pkg_failed = untried; then
a848cd7e 30244
3ecd9f92
MW
30245 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30246echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30247 { (exit 1); exit 1; }; }
30248
30249
30250else
30251 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
30252 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
30253 echo "$as_me:$LINENO: result: yes" >&5
30254echo "${ECHO_T}yes" >&6
30255
30256 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
30257 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
30258
30259fi
30260
30261pkg_failed=no
30262echo "$as_me:$LINENO: checking for PANGOFT2" >&5
30263echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
30264
30265if test -n "$PKG_CONFIG"; then
30266 if test -n "$PANGOFT2_CFLAGS"; then
30267 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
30268 else
30269 if test -n "$PKG_CONFIG" && \
30270 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30271 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30272 ac_status=$?
30273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274 (exit $ac_status); }; then
30275 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30276else
30277 pkg_failed=yes
30278fi
30279 fi
30280else
30281 pkg_failed=untried
30282fi
30283if test -n "$PKG_CONFIG"; then
30284 if test -n "$PANGOFT2_LIBS"; then
30285 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
30286 else
30287 if test -n "$PKG_CONFIG" && \
30288 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30289 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30290 ac_status=$?
30291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30292 (exit $ac_status); }; then
30293 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30294else
30295 pkg_failed=yes
30296fi
30297 fi
30298else
30299 pkg_failed=untried
30300fi
30301
30302
30303
30304if test $pkg_failed = yes; then
30305
30306if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30307 _pkg_short_errors_supported=yes
30308else
30309 _pkg_short_errors_supported=no
30310fi
30311 if test $_pkg_short_errors_supported = yes; then
30312 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
30313 else
30314 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
30315 fi
30316 # Put the nasty error message in config.log where it belongs
30317 echo "$PANGOFT2_PKG_ERRORS" >&5
a848cd7e 30318
a848cd7e
SC
30319
30320 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30321echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30322 wxUSE_PRINTING_ARCHITECTURE="no"
30323
30324
3ecd9f92 30325elif test $pkg_failed = untried; then
a848cd7e 30326
3ecd9f92
MW
30327 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30328echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30329 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e 30330
a848cd7e 30331
a848cd7e 30332else
3ecd9f92
MW
30333 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
30334 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
30335 echo "$as_me:$LINENO: result: yes" >&5
30336echo "${ECHO_T}yes" >&6
30337
30338 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
30339 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
a848cd7e 30340
a848cd7e 30341fi
3ecd9f92
MW
30342
30343pkg_failed=no
30344echo "$as_me:$LINENO: checking for PANGOXFT" >&5
30345echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
a848cd7e
SC
30346
30347if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
30348 if test -n "$PANGOXFT_CFLAGS"; then
30349 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
30350 else
30351 if test -n "$PKG_CONFIG" && \
30352 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30353 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30354 ac_status=$?
30355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356 (exit $ac_status); }; then
30357 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
a848cd7e 30358else
3ecd9f92
MW
30359 pkg_failed=yes
30360fi
30361 fi
30362else
30363 pkg_failed=untried
30364fi
30365if test -n "$PKG_CONFIG"; then
30366 if test -n "$PANGOXFT_LIBS"; then
30367 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
30368 else
30369 if test -n "$PKG_CONFIG" && \
30370 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30371 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30372 ac_status=$?
30373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374 (exit $ac_status); }; then
30375 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
30376else
30377 pkg_failed=yes
30378fi
30379 fi
30380else
30381 pkg_failed=untried
a848cd7e
SC
30382fi
30383
a848cd7e 30384
a848cd7e 30385
3ecd9f92 30386if test $pkg_failed = yes; then
a848cd7e 30387
3ecd9f92
MW
30388if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30389 _pkg_short_errors_supported=yes
30390else
30391 _pkg_short_errors_supported=no
30392fi
30393 if test $_pkg_short_errors_supported = yes; then
30394 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
30395 else
30396 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
a848cd7e 30397 fi
3ecd9f92
MW
30398 # Put the nasty error message in config.log where it belongs
30399 echo "$PANGOXFT_PKG_ERRORS" >&5
a848cd7e
SC
30400
30401
3ecd9f92
MW
30402 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30403echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30404
a848cd7e 30405
3ecd9f92 30406elif test $pkg_failed = untried; then
a848cd7e 30407
3ecd9f92
MW
30408 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30409echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30410
30411
30412else
30413 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
30414 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
30415 echo "$as_me:$LINENO: result: yes" >&5
30416echo "${ECHO_T}yes" >&6
a848cd7e 30417
4ae1af05
MB
30418 cat >>confdefs.h <<\_ACEOF
30419#define HAVE_PANGO_XFT 1
30420_ACEOF
30421
c92ad099 30422 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
30423 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
30424
3ecd9f92 30425fi
e56f4f9e 30426 save_CXXFLAGS="$CXXFLAGS"
304205f1 30427 save_LIBS="$LIBS"
e56f4f9e 30428 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
304205f1
VS
30429 LIBS="$LIBS $PANGOX_LIBS"
30430
30431for ac_func in pango_font_family_is_monospace
30432do
30433as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30434echo "$as_me:$LINENO: checking for $ac_func" >&5
30435echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30436if eval "test \"\${$as_ac_var+set}\" = set"; then
30437 echo $ECHO_N "(cached) $ECHO_C" >&6
30438else
30439 cat >conftest.$ac_ext <<_ACEOF
30440/* confdefs.h. */
30441_ACEOF
30442cat confdefs.h >>conftest.$ac_ext
30443cat >>conftest.$ac_ext <<_ACEOF
30444/* end confdefs.h. */
30445/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30447#define $ac_func innocuous_$ac_func
30448
30449/* System header to define __stub macros and hopefully few prototypes,
30450 which can conflict with char $ac_func (); below.
30451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30452 <limits.h> exists even on freestanding compilers. */
30453
30454#ifdef __STDC__
30455# include <limits.h>
30456#else
30457# include <assert.h>
30458#endif
30459
30460#undef $ac_func
30461
30462/* Override any gcc2 internal prototype to avoid an error. */
30463#ifdef __cplusplus
30464extern "C"
30465{
30466#endif
30467/* We use char because int might match the return type of a gcc2
30468 builtin and then its argument prototype would still apply. */
30469char $ac_func ();
30470/* The GNU C library defines this for functions which it implements
30471 to always fail with ENOSYS. Some functions are actually named
30472 something starting with __ and the normal name is an alias. */
30473#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30474choke me
30475#else
30476char (*f) () = $ac_func;
30477#endif
30478#ifdef __cplusplus
30479}
30480#endif
30481
30482int
30483main ()
30484{
30485return f != $ac_func;
30486 ;
30487 return 0;
30488}
30489_ACEOF
30490rm -f conftest.$ac_objext conftest$ac_exeext
30491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30492 (eval $ac_link) 2>conftest.er1
30493 ac_status=$?
30494 grep -v '^ *+' conftest.er1 >conftest.err
30495 rm -f conftest.er1
30496 cat conftest.err >&5
30497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30498 (exit $ac_status); } &&
c9a66001 30499 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
304205f1
VS
30500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30501 (eval $ac_try) 2>&5
30502 ac_status=$?
30503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30504 (exit $ac_status); }; } &&
30505 { ac_try='test -s conftest$ac_exeext'
30506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30507 (eval $ac_try) 2>&5
30508 ac_status=$?
30509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30510 (exit $ac_status); }; }; then
30511 eval "$as_ac_var=yes"
30512else
30513 echo "$as_me: failed program was:" >&5
30514sed 's/^/| /' conftest.$ac_ext >&5
30515
30516eval "$as_ac_var=no"
30517fi
30518rm -f conftest.err conftest.$ac_objext \
30519 conftest$ac_exeext conftest.$ac_ext
30520fi
30521echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30522echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30523if test `eval echo '${'$as_ac_var'}'` = yes; then
30524 cat >>confdefs.h <<_ACEOF
30525#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30526_ACEOF
30527
30528fi
30529done
30530
e56f4f9e 30531 CXXFLAGS="$save_CXXFLAGS"
304205f1 30532 LIBS="$save_LIBS"
a848cd7e
SC
30533 fi
30534
30535 wxUSE_UNIVERSAL="yes"
30536
30537 if test "$wxUSE_NANOX" = "yes"; then
30538 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
30539 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"
30540 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
30541 else
30542 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
30543 fi
30544
a848cd7e
SC
30545 TOOLKIT=X11
30546 GUIDIST=X11_DIST
30547 fi
30548
30549 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
30550 if test "$wxUSE_UNICODE" = "yes"; then
30551 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
30552echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
30553 { (exit 1); exit 1; }; }
30554 fi
30555
74b84332
VS
30556 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
30557echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 30558
74b84332
VS
30559ac_find_includes=
30560for ac_dir in $SEARCH_INCLUDE /usr/include;
30561 do
30562 if test -f "$ac_dir/Xm/Xm.h"; then
30563 ac_find_includes=$ac_dir
30564 break
30565 fi
30566 done
a848cd7e 30567
74b84332
VS
30568 if test "$ac_find_includes" != "" ; then
30569 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30570echo "${ECHO_T}found in $ac_find_includes" >&6
30571
30572 if test "x$ac_find_includes" = "x/usr/include"; then
30573 ac_path_to_include=""
30574 else
30575 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
30576 result=$?
30577 if test $result = 0; then
30578 ac_path_to_include=""
30579 else
30580 ac_path_to_include=" -I$ac_find_includes"
30581 fi
a848cd7e
SC
30582 fi
30583
74b84332
VS
30584 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
30585 else
e56f4f9e
VZ
30586 save_CXXFLAGS=$CXXFLAGS
30587 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 30588
74b84332 30589 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30590/* confdefs.h. */
30591_ACEOF
30592cat confdefs.h >>conftest.$ac_ext
30593cat >>conftest.$ac_ext <<_ACEOF
30594/* end confdefs.h. */
30595
74b84332
VS
30596 #include <Xm/Xm.h>
30597
a848cd7e
SC
30598int
30599main ()
30600{
30601
74b84332
VS
30602 int version;
30603 version = xmUseVersion;
30604
a848cd7e
SC
30605 ;
30606 return 0;
30607}
30608_ACEOF
74b84332
VS
30609rm -f conftest.$ac_objext
30610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30611 (eval $ac_compile) 2>conftest.er1
a848cd7e 30612 ac_status=$?
ac1cb8d3
VS
30613 grep -v '^ *+' conftest.er1 >conftest.err
30614 rm -f conftest.er1
30615 cat conftest.err >&5
a848cd7e
SC
30616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617 (exit $ac_status); } &&
c9a66001 30618 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30620 (eval $ac_try) 2>&5
30621 ac_status=$?
30622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623 (exit $ac_status); }; } &&
74b84332 30624 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30626 (eval $ac_try) 2>&5
30627 ac_status=$?
30628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629 (exit $ac_status); }; }; then
74b84332
VS
30630
30631 echo "$as_me:$LINENO: result: found in default search path" >&5
30632echo "${ECHO_T}found in default search path" >&6
30633 COMPILED_X_PROGRAM=1
30634
a848cd7e
SC
30635else
30636 echo "$as_me: failed program was:" >&5
30637sed 's/^/| /' conftest.$ac_ext >&5
30638
a848cd7e 30639
74b84332
VS
30640 echo "$as_me:$LINENO: result: no" >&5
30641echo "${ECHO_T}no" >&6
e051b34e
MW
30642 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
30643echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 30644 { (exit 1); exit 1; }; }
a848cd7e 30645
a848cd7e 30646
a848cd7e 30647fi
74b84332 30648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 30649
e56f4f9e 30650 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
30651 fi
30652
0ad5d837
VZ
30653
30654 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
30655echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
30656
0ad5d837
VZ
30657 ac_find_libraries=
30658 for ac_dir in $SEARCH_LIB;
74b84332 30659 do
3eca31dc 30660 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
30661 if test -f "$ac_dir/libXm.$ac_extension"; then
30662 ac_find_libraries=$ac_dir
30663 break 2
a848cd7e 30664 fi
74b84332
VS
30665 done
30666 done
a848cd7e 30667
0ad5d837
VZ
30668
30669 if test "x$ac_find_libraries" != "x" ; then
30670 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30671echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 30672
74b84332 30673
0ad5d837 30674 if test "$ac_find_libraries" = "default location"; then
74b84332 30675 ac_path_to_link=""
a848cd7e 30676 else
0ad5d837
VZ
30677 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30678 result=$?
30679 if test $result = 0; then
30680 ac_path_to_link=""
30681 else
30682 ac_path_to_link=" -L$ac_find_libraries"
30683 fi
74b84332
VS
30684 fi
30685
0ad5d837
VZ
30686 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
30687 else
e56f4f9e
VZ
30688 save_CXXFLAGS=$CXXFLAGS
30689 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
30690 save_LIBS="$LIBS"
30691 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 30692
0ad5d837 30693 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30694/* confdefs.h. */
30695_ACEOF
30696cat confdefs.h >>conftest.$ac_ext
30697cat >>conftest.$ac_ext <<_ACEOF
30698/* end confdefs.h. */
30699
0ad5d837 30700 #include <Xm/Xm.h>
74b84332 30701
a848cd7e
SC
30702int
30703main ()
30704{
74b84332 30705
0ad5d837
VZ
30706 int version;
30707 version = xmUseVersion;
74b84332 30708
a848cd7e
SC
30709 ;
30710 return 0;
30711}
30712_ACEOF
0ad5d837
VZ
30713rm -f conftest.$ac_objext conftest$ac_exeext
30714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30715 (eval $ac_link) 2>conftest.er1
a848cd7e 30716 ac_status=$?
ac1cb8d3
VS
30717 grep -v '^ *+' conftest.er1 >conftest.err
30718 rm -f conftest.er1
30719 cat conftest.err >&5
a848cd7e
SC
30720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30721 (exit $ac_status); } &&
c9a66001 30722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30724 (eval $ac_try) 2>&5
30725 ac_status=$?
30726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727 (exit $ac_status); }; } &&
0ad5d837 30728 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30730 (eval $ac_try) 2>&5
30731 ac_status=$?
30732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30733 (exit $ac_status); }; }; then
74b84332 30734
0ad5d837 30735 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 30736echo "${ECHO_T}found in default search path" >&6
0ad5d837 30737 COMPILED_X_PROGRAM=1
74b84332 30738
a848cd7e
SC
30739else
30740 echo "$as_me: failed program was:" >&5
30741sed 's/^/| /' conftest.$ac_ext >&5
30742
74b84332 30743
6f9cf1e6 30744 echo "$as_me:$LINENO: result: no" >&5
74b84332 30745echo "${ECHO_T}no" >&6
6f9cf1e6 30746 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
30747echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
30748 { (exit 1); exit 1; }; }
30749
30750
30751fi
0ad5d837
VZ
30752rm -f conftest.err conftest.$ac_objext \
30753 conftest$ac_exeext conftest.$ac_ext
74b84332 30754
e56f4f9e 30755 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 30756 LIBS="$save_LIBS"
74b84332
VS
30757 fi
30758
30759 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
30760echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
30761 libp_link=""
30762 libsm_ice_link=""
30763 libs_found=0
30764 for libp in "" " -lXp"; do
30765 if test "$libs_found" = "0"; then
30766 for libsm_ice in "" " -lSM -lICE"; do
30767 if test "$libs_found" = "0"; then
30768 save_LIBS="$LIBS"
30769 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
30770 save_CXXFLAGS=$CXXFLAGS
30771 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
30772
30773 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30774/* confdefs.h. */
30775_ACEOF
30776cat confdefs.h >>conftest.$ac_ext
30777cat >>conftest.$ac_ext <<_ACEOF
30778/* end confdefs.h. */
30779
74b84332
VS
30780 #include <Xm/Xm.h>
30781 #include <Xm/List.h>
30782
a848cd7e
SC
30783int
30784main ()
30785{
74b84332
VS
30786
30787 XmString string = NULL;
30788 Widget w = NULL;
30789 int position = 0;
30790 XmListAddItem(w, string, position);
30791
a848cd7e
SC
30792 ;
30793 return 0;
30794}
30795_ACEOF
30796rm -f conftest.$ac_objext conftest$ac_exeext
30797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30798 (eval $ac_link) 2>conftest.er1
a848cd7e 30799 ac_status=$?
ac1cb8d3
VS
30800 grep -v '^ *+' conftest.er1 >conftest.err
30801 rm -f conftest.er1
30802 cat conftest.err >&5
a848cd7e
SC
30803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30804 (exit $ac_status); } &&
c9a66001 30805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30807 (eval $ac_try) 2>&5
30808 ac_status=$?
30809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30810 (exit $ac_status); }; } &&
30811 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30813 (eval $ac_try) 2>&5
30814 ac_status=$?
30815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816 (exit $ac_status); }; }; then
30817
30818 libp_link="$libp"
30819 libsm_ice_link="$libsm_ice"
30820 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
30821echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
30822 libs_found=1
30823
30824else
30825 echo "$as_me: failed program was:" >&5
30826sed 's/^/| /' conftest.$ac_ext >&5
30827
30828
30829
30830fi
ac1cb8d3
VS
30831rm -f conftest.err conftest.$ac_objext \
30832 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30833
30834 LIBS="$save_LIBS"
e56f4f9e 30835 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
30836 fi
30837 done
30838 fi
30839 done
30840
30841 if test "$libs_found" = "0"; then
30842 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
30843echo "${ECHO_T}can't find the right libraries" >&6
30844 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
30845echo "$as_me: error: can't link a simple motif program" >&2;}
30846 { (exit 1); exit 1; }; }
30847 fi
30848
62fa8b3a
MW
30849 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
30850echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
30851if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
30852 echo $ECHO_N "(cached) $ECHO_C" >&6
30853else
30854 ac_check_lib_save_LIBS=$LIBS
30855LIBS="-lSgm $LIBS"
30856cat >conftest.$ac_ext <<_ACEOF
30857/* confdefs.h. */
30858_ACEOF
30859cat confdefs.h >>conftest.$ac_ext
30860cat >>conftest.$ac_ext <<_ACEOF
30861/* end confdefs.h. */
30862
30863/* Override any gcc2 internal prototype to avoid an error. */
30864#ifdef __cplusplus
30865extern "C"
30866#endif
30867/* We use char because int might match the return type of a gcc2
30868 builtin and then its argument prototype would still apply. */
30869char SgCreateList ();
30870int
30871main ()
30872{
30873SgCreateList ();
30874 ;
30875 return 0;
30876}
30877_ACEOF
30878rm -f conftest.$ac_objext conftest$ac_exeext
30879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30880 (eval $ac_link) 2>conftest.er1
30881 ac_status=$?
30882 grep -v '^ *+' conftest.er1 >conftest.err
30883 rm -f conftest.er1
30884 cat conftest.err >&5
30885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886 (exit $ac_status); } &&
c9a66001 30887 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
30888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30889 (eval $ac_try) 2>&5
30890 ac_status=$?
30891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892 (exit $ac_status); }; } &&
30893 { ac_try='test -s conftest$ac_exeext'
30894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30895 (eval $ac_try) 2>&5
30896 ac_status=$?
30897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30898 (exit $ac_status); }; }; then
30899 ac_cv_lib_Sgm_SgCreateList=yes
30900else
30901 echo "$as_me: failed program was:" >&5
30902sed 's/^/| /' conftest.$ac_ext >&5
30903
30904ac_cv_lib_Sgm_SgCreateList=no
30905fi
30906rm -f conftest.err conftest.$ac_objext \
30907 conftest$ac_exeext conftest.$ac_ext
30908LIBS=$ac_check_lib_save_LIBS
30909fi
30910echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
30911echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
30912if test $ac_cv_lib_Sgm_SgCreateList = yes; then
30913 libsgm_link=" -lSgm"
30914fi
30915
30916
e56f4f9e
VZ
30917 save_CXXFLAGS=$CXXFLAGS
30918 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 30919
a848cd7e
SC
30920 echo "$as_me:$LINENO: checking for Motif 2" >&5
30921echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
30922if test "${wx_cv_lib_motif2+set}" = set; then
30923 echo $ECHO_N "(cached) $ECHO_C" >&6
30924else
30925 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30926/* confdefs.h. */
30927_ACEOF
30928cat confdefs.h >>conftest.$ac_ext
30929cat >>conftest.$ac_ext <<_ACEOF
30930/* end confdefs.h. */
30931
0ad5d837 30932 #include <Xm/Xm.h>
a848cd7e
SC
30933
30934int
30935main ()
30936{
30937
0ad5d837
VZ
30938 #if XmVersion < 2000
30939 Not Motif 2
30940 #endif
a848cd7e
SC
30941
30942 ;
30943 return 0;
30944}
30945_ACEOF
30946rm -f conftest.$ac_objext
30947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30948 (eval $ac_compile) 2>conftest.er1
a848cd7e 30949 ac_status=$?
ac1cb8d3
VS
30950 grep -v '^ *+' conftest.er1 >conftest.err
30951 rm -f conftest.er1
30952 cat conftest.err >&5
a848cd7e
SC
30953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30954 (exit $ac_status); } &&
c9a66001 30955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30957 (eval $ac_try) 2>&5
30958 ac_status=$?
30959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960 (exit $ac_status); }; } &&
30961 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30963 (eval $ac_try) 2>&5
30964 ac_status=$?
30965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966 (exit $ac_status); }; }; then
0ad5d837 30967 wx_cv_lib_motif2="yes"
a848cd7e
SC
30968else
30969 echo "$as_me: failed program was:" >&5
30970sed 's/^/| /' conftest.$ac_ext >&5
30971
0ad5d837
VZ
30972wx_cv_lib_motif2="no"
30973fi
30974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30975fi
30976echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
30977echo "${ECHO_T}$wx_cv_lib_motif2" >&6
30978 if test "$wx_cv_lib_motif2" = "yes"; then
30979 cat >>confdefs.h <<\_ACEOF
30980#define __WXMOTIF20__ 1
30981_ACEOF
a848cd7e 30982
0ad5d837
VZ
30983 else
30984 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30985#define __WXMOTIF20__ 0
30986_ACEOF
30987
0ad5d837 30988 fi
2113bc77
MW
30989
30990 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
30991echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
30992if test "${wx_cv_lib_lesstif+set}" = set; then
30993 echo $ECHO_N "(cached) $ECHO_C" >&6
30994else
30995 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
30996/* confdefs.h. */
30997_ACEOF
30998cat confdefs.h >>conftest.$ac_ext
30999cat >>conftest.$ac_ext <<_ACEOF
31000/* end confdefs.h. */
31001
0ad5d837 31002 #include <Xm/Xm.h>
2113bc77
MW
31003
31004int
31005main ()
31006{
31007
0ad5d837
VZ
31008 #if !defined(LesstifVersion) || LesstifVersion <= 0
31009 Not Lesstif
31010 #endif
2113bc77
MW
31011
31012 ;
31013 return 0;
31014}
31015_ACEOF
31016rm -f conftest.$ac_objext
31017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31018 (eval $ac_compile) 2>conftest.er1
31019 ac_status=$?
31020 grep -v '^ *+' conftest.er1 >conftest.err
31021 rm -f conftest.er1
31022 cat conftest.err >&5
31023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31024 (exit $ac_status); } &&
c9a66001 31025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2113bc77
MW
31026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31027 (eval $ac_try) 2>&5
31028 ac_status=$?
31029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31030 (exit $ac_status); }; } &&
31031 { ac_try='test -s conftest.$ac_objext'
31032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31033 (eval $ac_try) 2>&5
31034 ac_status=$?
31035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31036 (exit $ac_status); }; }; then
0ad5d837 31037 wx_cv_lib_lesstif="yes"
2113bc77
MW
31038else
31039 echo "$as_me: failed program was:" >&5
31040sed 's/^/| /' conftest.$ac_ext >&5
31041
0ad5d837
VZ
31042wx_cv_lib_lesstif="no"
31043fi
31044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 31045
0ad5d837
VZ
31046fi
31047echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31048echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
31049 if test "$wx_cv_lib_lesstif" = "yes"; then
31050 cat >>confdefs.h <<\_ACEOF
31051#define __WXLESSTIF__ 1
31052_ACEOF
31053
31054 else
31055 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
31056#define __WXLESSTIF__ 0
31057_ACEOF
31058
0ad5d837 31059 fi
2113bc77 31060
e56f4f9e 31061 CXXFLAGS=$save_CXXFLAGS
a848cd7e 31062
62fa8b3a 31063 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
31064 TOOLKIT=MOTIF
31065 GUIDIST=MOTIF_DIST
31066 fi
31067
74b84332 31068 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
31069 if test "$wxUSE_LIBXPM" = "sys"; then
31070 echo "$as_me:$LINENO: checking for Xpm library" >&5
31071echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
31072
0ad5d837
VZ
31073 ac_find_libraries=
31074 for ac_dir in $SEARCH_LIB;
a848cd7e 31075 do
3eca31dc 31076 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31077 if test -f "$ac_dir/libXpm.$ac_extension"; then
31078 ac_find_libraries=$ac_dir
31079 break 2
31080 fi
31081 done
31082 done
31083
31084 if test "$ac_find_libraries" != "" ; then
31085
0ad5d837 31086 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31087 ac_path_to_link=""
31088 else
0ad5d837
VZ
31089 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31090 result=$?
31091 if test $result = 0; then
31092 ac_path_to_link=""
31093 else
31094 ac_path_to_link=" -L$ac_find_libraries"
31095 fi
a848cd7e
SC
31096 fi
31097
31098 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
31099 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31100echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
31101
31102 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31103echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31104if test "${wx_cv_x11_xpm_h+set}" = set; then
31105 echo $ECHO_N "(cached) $ECHO_C" >&6
31106else
31107
e56f4f9e
VZ
31108 save_CXXFLAGS=$CXXFLAGS
31109 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31110
31111 cat >conftest.$ac_ext <<_ACEOF
31112/* confdefs.h. */
31113_ACEOF
31114cat confdefs.h >>conftest.$ac_ext
31115cat >>conftest.$ac_ext <<_ACEOF
31116/* end confdefs.h. */
31117
31118 #include <X11/xpm.h>
31119
31120int
31121main ()
31122{
31123
31124 int version;
31125 version = XpmLibraryVersion();
31126
31127 ;
31128 return 0;
31129}
31130_ACEOF
31131rm -f conftest.$ac_objext
31132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31133 (eval $ac_compile) 2>conftest.er1
a848cd7e 31134 ac_status=$?
ac1cb8d3
VS
31135 grep -v '^ *+' conftest.er1 >conftest.err
31136 rm -f conftest.er1
31137 cat conftest.err >&5
a848cd7e
SC
31138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139 (exit $ac_status); } &&
c9a66001 31140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31142 (eval $ac_try) 2>&5
31143 ac_status=$?
31144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145 (exit $ac_status); }; } &&
31146 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31148 (eval $ac_try) 2>&5
31149 ac_status=$?
31150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151 (exit $ac_status); }; }; then
31152 wx_cv_x11_xpm_h=yes
31153else
31154 echo "$as_me: failed program was:" >&5
31155sed 's/^/| /' conftest.$ac_ext >&5
31156
31157wx_cv_x11_xpm_h=no
31158
31159fi
ac1cb8d3 31160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 31161
e56f4f9e 31162 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31163
31164
31165fi
31166echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31167echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31168
31169 if test $wx_cv_x11_xpm_h = "yes"; then
31170 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31171 cat >>confdefs.h <<\_ACEOF
31172#define wxHAVE_LIB_XPM 1
31173_ACEOF
31174
31175 else
31176 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31177echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31178 fi
31179 fi
31180
31181 fi
31182
31183 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31184echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31185if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31186 echo $ECHO_N "(cached) $ECHO_C" >&6
31187else
31188 ac_check_lib_save_LIBS=$LIBS
31189LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31190cat >conftest.$ac_ext <<_ACEOF
31191/* confdefs.h. */
31192_ACEOF
31193cat confdefs.h >>conftest.$ac_ext
31194cat >>conftest.$ac_ext <<_ACEOF
31195/* end confdefs.h. */
31196
31197/* Override any gcc2 internal prototype to avoid an error. */
31198#ifdef __cplusplus
31199extern "C"
31200#endif
31201/* We use char because int might match the return type of a gcc2
31202 builtin and then its argument prototype would still apply. */
31203char XShapeQueryExtension ();
31204int
31205main ()
31206{
31207XShapeQueryExtension ();
31208 ;
31209 return 0;
31210}
31211_ACEOF
31212rm -f conftest.$ac_objext conftest$ac_exeext
31213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31214 (eval $ac_link) 2>conftest.er1
a848cd7e 31215 ac_status=$?
ac1cb8d3
VS
31216 grep -v '^ *+' conftest.er1 >conftest.err
31217 rm -f conftest.er1
31218 cat conftest.err >&5
a848cd7e
SC
31219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31220 (exit $ac_status); } &&
c9a66001 31221 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31223 (eval $ac_try) 2>&5
31224 ac_status=$?
31225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31226 (exit $ac_status); }; } &&
31227 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31229 (eval $ac_try) 2>&5
31230 ac_status=$?
31231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232 (exit $ac_status); }; }; then
31233 ac_cv_lib_Xext_XShapeQueryExtension=yes
31234else
31235 echo "$as_me: failed program was:" >&5
31236sed 's/^/| /' conftest.$ac_ext >&5
31237
31238ac_cv_lib_Xext_XShapeQueryExtension=no
31239fi
ac1cb8d3
VS
31240rm -f conftest.err conftest.$ac_objext \
31241 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31242LIBS=$ac_check_lib_save_LIBS
31243fi
31244echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
31245echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
31246if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
31247
31248 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
31249 wxHAVE_XEXT_LIB=1
31250
31251fi
31252
31253
31254 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
31255 save_CXXFLAGS="$CXXFLAGS"
31256 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31257
31258 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
31259echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
31260 cat >conftest.$ac_ext <<_ACEOF
31261/* confdefs.h. */
31262_ACEOF
31263cat confdefs.h >>conftest.$ac_ext
31264cat >>conftest.$ac_ext <<_ACEOF
31265/* end confdefs.h. */
31266
31267 #include <X11/Xlib.h>
31268 #include <X11/extensions/shape.h>
31269
31270int
31271main ()
31272{
31273
31274 int dummy1, dummy2;
31275 XShapeQueryExtension((Display*)NULL,
31276 (int*)NULL, (int*)NULL);
31277
31278 ;
31279 return 0;
31280}
31281_ACEOF
31282rm -f conftest.$ac_objext
31283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31284 (eval $ac_compile) 2>conftest.er1
a848cd7e 31285 ac_status=$?
ac1cb8d3
VS
31286 grep -v '^ *+' conftest.er1 >conftest.err
31287 rm -f conftest.er1
31288 cat conftest.err >&5
a848cd7e
SC
31289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31290 (exit $ac_status); } &&
c9a66001 31291 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31293 (eval $ac_try) 2>&5
31294 ac_status=$?
31295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31296 (exit $ac_status); }; } &&
31297 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31299 (eval $ac_try) 2>&5
31300 ac_status=$?
31301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31302 (exit $ac_status); }; }; then
31303
31304 cat >>confdefs.h <<\_ACEOF
31305#define HAVE_XSHAPE 1
31306_ACEOF
31307
31308 echo "$as_me:$LINENO: result: found" >&5
31309echo "${ECHO_T}found" >&6
31310
31311else
31312 echo "$as_me: failed program was:" >&5
31313sed 's/^/| /' conftest.$ac_ext >&5
31314
31315
31316 echo "$as_me:$LINENO: result: not found" >&5
31317echo "${ECHO_T}not found" >&6
31318
31319fi
ac1cb8d3 31320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 31321 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
31322
31323 fi
31324 fi
31325
31326 if test "$wxUSE_MAC" = 1; then
31327 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31328echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31329 if test "$GCC" = yes; then
31330 echo "$as_me:$LINENO: result: gcc" >&5
31331echo "${ECHO_T}gcc" >&6
31332 CPPFLAGS_PASCAL="-fpascal-strings"
31333 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31334 echo "$as_me:$LINENO: result: xlc" >&5
31335echo "${ECHO_T}xlc" >&6
31336 CPPFLAGS_PASCAL="-qmacpstr"
31337 else
31338 echo "$as_me:$LINENO: result: none" >&5
31339echo "${ECHO_T}none" >&6
31340 fi
31341
1e9e8aba 31342 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 31343 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 31344 else
c92ad099 31345 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 31346 fi
a848cd7e 31347
a848cd7e
SC
31348 TOOLKIT=MAC
31349 GUIDIST=MACX_DIST
dd21ced8 31350 WXBASEPORT="_carbon"
a848cd7e
SC
31351 fi
31352
31353 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
31354 TOOLKIT=COCOA
31355 GUIDIST=COCOA_DIST
31356 fi
31357
31358 if test "$wxUSE_PM" = 1; then
31359 TOOLKIT=PM
de59c161
RD
31360 GUIDIST=PM_DIST
31361 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31362echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31363if test "${wx_cv_spbcdata+set}" = set; then
31364 echo $ECHO_N "(cached) $ECHO_C" >&6
31365else
31366
31367 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
31368/* confdefs.h. */
31369_ACEOF
31370cat confdefs.h >>conftest.$ac_ext
31371cat >>conftest.$ac_ext <<_ACEOF
31372/* end confdefs.h. */
31373
31374 #define INCL_PM
31375 #include <os2.h>
31376
31377int
31378main ()
31379{
31380
31381 SPBCDATA test;
31382
31383 ;
31384 return 0;
31385}
31386_ACEOF
31387rm -f conftest.$ac_objext
31388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31389 (eval $ac_compile) 2>conftest.er1
de59c161 31390 ac_status=$?
ac1cb8d3
VS
31391 grep -v '^ *+' conftest.er1 >conftest.err
31392 rm -f conftest.er1
31393 cat conftest.err >&5
de59c161
RD
31394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395 (exit $ac_status); } &&
c9a66001 31396 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31398 (eval $ac_try) 2>&5
31399 ac_status=$?
31400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401 (exit $ac_status); }; } &&
31402 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
31403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31404 (eval $ac_try) 2>&5
31405 ac_status=$?
31406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31407 (exit $ac_status); }; }; then
31408 wx_cv_spbcdata=yes
31409else
31410 echo "$as_me: failed program was:" >&5
31411sed 's/^/| /' conftest.$ac_ext >&5
31412
31413wx_cv_spbcdata=no
31414
31415fi
ac1cb8d3 31416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
31417
31418
31419fi
31420echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
31421echo "${ECHO_T}$wx_cv_spbcdata" >&6
31422
31423 if test $wx_cv_spbcdata = "yes"; then
31424 cat >>confdefs.h <<\_ACEOF
31425#define HAVE_SPBCDATA 1
31426_ACEOF
31427
31428 fi
a848cd7e
SC
31429 fi
31430
31431 if test "$TOOLKIT" = "PM" ; then
31432 TOOLKIT_DIR="os2"
31433 else
31434 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
31435 fi
31436
a848cd7e 31437 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
31438 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
31439 WIDGET_SET=univ
a848cd7e
SC
31440 fi
31441
31442 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
31443 DISTDIR="wx\$(TOOLKIT)"
31444else
31445 USE_GUI=0
31446
31447 TOOLKIT_DIR="base"
31448
31449 if test "$USE_WIN32" = 1 ; then
a848cd7e 31450 TOOLKIT="MSW"
a848cd7e
SC
31451 fi
31452
a848cd7e
SC
31453 GUIDIST="BASE_DIST"
31454 DISTDIR="wxBase"
31455fi
31456
31457
d12aef51
VZ
31458if test "$wxUSE_GUI" = "yes"; then
31459 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
31460
31461for ac_header in X11/Xlib.h
31462do
31463as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31464if eval "test \"\${$as_ac_Header+set}\" = set"; then
31465 echo "$as_me:$LINENO: checking for $ac_header" >&5
31466echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31467if eval "test \"\${$as_ac_Header+set}\" = set"; then
31468 echo $ECHO_N "(cached) $ECHO_C" >&6
31469fi
31470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31471echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31472else
31473 # Is the header compilable?
31474echo "$as_me:$LINENO: checking $ac_header usability" >&5
31475echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31476cat >conftest.$ac_ext <<_ACEOF
31477/* confdefs.h. */
31478_ACEOF
31479cat confdefs.h >>conftest.$ac_ext
31480cat >>conftest.$ac_ext <<_ACEOF
31481/* end confdefs.h. */
31482$ac_includes_default
31483#include <$ac_header>
31484_ACEOF
31485rm -f conftest.$ac_objext
31486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31487 (eval $ac_compile) 2>conftest.er1
31488 ac_status=$?
31489 grep -v '^ *+' conftest.er1 >conftest.err
31490 rm -f conftest.er1
31491 cat conftest.err >&5
31492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31493 (exit $ac_status); } &&
c9a66001 31494 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
31495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31496 (eval $ac_try) 2>&5
31497 ac_status=$?
31498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31499 (exit $ac_status); }; } &&
31500 { ac_try='test -s conftest.$ac_objext'
31501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31502 (eval $ac_try) 2>&5
31503 ac_status=$?
31504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31505 (exit $ac_status); }; }; then
31506 ac_header_compiler=yes
31507else
31508 echo "$as_me: failed program was:" >&5
31509sed 's/^/| /' conftest.$ac_ext >&5
31510
31511ac_header_compiler=no
31512fi
31513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31514echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31515echo "${ECHO_T}$ac_header_compiler" >&6
31516
31517# Is the header present?
31518echo "$as_me:$LINENO: checking $ac_header presence" >&5
31519echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31520cat >conftest.$ac_ext <<_ACEOF
31521/* confdefs.h. */
31522_ACEOF
31523cat confdefs.h >>conftest.$ac_ext
31524cat >>conftest.$ac_ext <<_ACEOF
31525/* end confdefs.h. */
31526#include <$ac_header>
31527_ACEOF
31528if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31530 ac_status=$?
31531 grep -v '^ *+' conftest.er1 >conftest.err
31532 rm -f conftest.er1
31533 cat conftest.err >&5
31534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535 (exit $ac_status); } >/dev/null; then
31536 if test -s conftest.err; then
5d7b7554
VZ
31537 ac_cpp_err=$ac_cxx_preproc_warn_flag
31538 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
31539 else
31540 ac_cpp_err=
31541 fi
31542else
31543 ac_cpp_err=yes
31544fi
31545if test -z "$ac_cpp_err"; then
31546 ac_header_preproc=yes
31547else
31548 echo "$as_me: failed program was:" >&5
31549sed 's/^/| /' conftest.$ac_ext >&5
31550
31551 ac_header_preproc=no
31552fi
31553rm -f conftest.err conftest.$ac_ext
31554echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31555echo "${ECHO_T}$ac_header_preproc" >&6
31556
31557# So? What about this header?
5d7b7554 31558case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
31559 yes:no: )
31560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31561echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31563echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31564 ac_header_preproc=yes
31565 ;;
31566 no:yes:* )
31567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31568echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31570echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31572echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31574echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31576echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31578echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31579 (
31580 cat <<\_ASBOX
31581## ----------------------------------------- ##
31582## Report this to wx-dev@lists.wxwidgets.org ##
31583## ----------------------------------------- ##
31584_ASBOX
31585 ) |
31586 sed "s/^/$as_me: WARNING: /" >&2
31587 ;;
31588esac
31589echo "$as_me:$LINENO: checking for $ac_header" >&5
31590echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31591if eval "test \"\${$as_ac_Header+set}\" = set"; then
31592 echo $ECHO_N "(cached) $ECHO_C" >&6
31593else
31594 eval "$as_ac_Header=\$ac_header_preproc"
31595fi
31596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31597echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31598
31599fi
31600if test `eval echo '${'$as_ac_Header'}'` = yes; then
31601 cat >>confdefs.h <<_ACEOF
31602#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31603_ACEOF
31604
31605fi
31606
31607done
31608
31609
31610for ac_header in X11/XKBlib.h
31611do
31612as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31613echo "$as_me:$LINENO: checking for $ac_header" >&5
31614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31615if eval "test \"\${$as_ac_Header+set}\" = set"; then
31616 echo $ECHO_N "(cached) $ECHO_C" >&6
31617else
31618 cat >conftest.$ac_ext <<_ACEOF
31619/* confdefs.h. */
31620_ACEOF
31621cat confdefs.h >>conftest.$ac_ext
31622cat >>conftest.$ac_ext <<_ACEOF
31623/* end confdefs.h. */
31624
31625 #if HAVE_X11_XLIB_H
31626 #include <X11/Xlib.h>
31627 #endif
31628
31629
31630#include <$ac_header>
31631_ACEOF
31632rm -f conftest.$ac_objext
31633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31634 (eval $ac_compile) 2>conftest.er1
31635 ac_status=$?
31636 grep -v '^ *+' conftest.er1 >conftest.err
31637 rm -f conftest.er1
31638 cat conftest.err >&5
31639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640 (exit $ac_status); } &&
c9a66001 31641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
31642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31643 (eval $ac_try) 2>&5
31644 ac_status=$?
31645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646 (exit $ac_status); }; } &&
31647 { ac_try='test -s conftest.$ac_objext'
31648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31649 (eval $ac_try) 2>&5
31650 ac_status=$?
31651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31652 (exit $ac_status); }; }; then
31653 eval "$as_ac_Header=yes"
31654else
31655 echo "$as_me: failed program was:" >&5
31656sed 's/^/| /' conftest.$ac_ext >&5
31657
31658eval "$as_ac_Header=no"
31659fi
31660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31661fi
31662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31663echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31664if test `eval echo '${'$as_ac_Header'}'` = yes; then
31665 cat >>confdefs.h <<_ACEOF
31666#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31667_ACEOF
31668
31669fi
31670
31671done
31672
31673 fi
31674fi
31675
a848cd7e
SC
31676
31677
31678IODBC_C_SRC=""
31679
31680
31681if test "$TOOLKIT" != "MSW" ; then
31682
31683 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
31684
31685 if test "${ac_cv_header_sql_h+set}" = set; then
31686 echo "$as_me:$LINENO: checking for sql.h" >&5
31687echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31688if test "${ac_cv_header_sql_h+set}" = set; then
31689 echo $ECHO_N "(cached) $ECHO_C" >&6
31690fi
31691echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31692echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31693else
31694 # Is the header compilable?
31695echo "$as_me:$LINENO: checking sql.h usability" >&5
31696echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
31697cat >conftest.$ac_ext <<_ACEOF
31698/* confdefs.h. */
31699_ACEOF
31700cat confdefs.h >>conftest.$ac_ext
31701cat >>conftest.$ac_ext <<_ACEOF
31702/* end confdefs.h. */
31703$ac_includes_default
31704#include <sql.h>
31705_ACEOF
31706rm -f conftest.$ac_objext
31707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31708 (eval $ac_compile) 2>conftest.er1
a848cd7e 31709 ac_status=$?
ac1cb8d3
VS
31710 grep -v '^ *+' conftest.er1 >conftest.err
31711 rm -f conftest.er1
31712 cat conftest.err >&5
a848cd7e
SC
31713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714 (exit $ac_status); } &&
c9a66001 31715 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31717 (eval $ac_try) 2>&5
31718 ac_status=$?
31719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31720 (exit $ac_status); }; } &&
31721 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31723 (eval $ac_try) 2>&5
31724 ac_status=$?
31725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726 (exit $ac_status); }; }; then
31727 ac_header_compiler=yes
31728else
31729 echo "$as_me: failed program was:" >&5
31730sed 's/^/| /' conftest.$ac_ext >&5
31731
31732ac_header_compiler=no
31733fi
ac1cb8d3 31734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31735echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31736echo "${ECHO_T}$ac_header_compiler" >&6
31737
31738# Is the header present?
31739echo "$as_me:$LINENO: checking sql.h presence" >&5
31740echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
31741cat >conftest.$ac_ext <<_ACEOF
31742/* confdefs.h. */
31743_ACEOF
31744cat confdefs.h >>conftest.$ac_ext
31745cat >>conftest.$ac_ext <<_ACEOF
31746/* end confdefs.h. */
31747#include <sql.h>
31748_ACEOF
31749if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31751 ac_status=$?
31752 grep -v '^ *+' conftest.er1 >conftest.err
31753 rm -f conftest.er1
31754 cat conftest.err >&5
31755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31756 (exit $ac_status); } >/dev/null; then
31757 if test -s conftest.err; then
5d7b7554
VZ
31758 ac_cpp_err=$ac_cxx_preproc_warn_flag
31759 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
31760 else
31761 ac_cpp_err=
31762 fi
31763else
31764 ac_cpp_err=yes
31765fi
31766if test -z "$ac_cpp_err"; then
31767 ac_header_preproc=yes
31768else
31769 echo "$as_me: failed program was:" >&5
31770sed 's/^/| /' conftest.$ac_ext >&5
31771
31772 ac_header_preproc=no
31773fi
31774rm -f conftest.err conftest.$ac_ext
31775echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31776echo "${ECHO_T}$ac_header_preproc" >&6
31777
31778# So? What about this header?
5d7b7554 31779case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 31780 yes:no: )
a848cd7e
SC
31781 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
31782echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31783 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
31784echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
31785 ac_header_preproc=yes
a848cd7e 31786 ;;
ac1cb8d3 31787 no:yes:* )
a848cd7e
SC
31788 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
31789echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31790 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
31791echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
31792 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
31793echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
31794 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
31795echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31796 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
31797echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31798 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
31799echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31800 (
31801 cat <<\_ASBOX
ac1cb8d3
VS
31802## ----------------------------------------- ##
31803## Report this to wx-dev@lists.wxwidgets.org ##
31804## ----------------------------------------- ##
a848cd7e
SC
31805_ASBOX
31806 ) |
31807 sed "s/^/$as_me: WARNING: /" >&2
31808 ;;
31809esac
31810echo "$as_me:$LINENO: checking for sql.h" >&5
31811echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31812if test "${ac_cv_header_sql_h+set}" = set; then
31813 echo $ECHO_N "(cached) $ECHO_C" >&6
31814else
31815 ac_cv_header_sql_h=$ac_header_preproc
31816fi
31817echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31818echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31819
31820fi
31821if test $ac_cv_header_sql_h = yes; then
31822 found_sql_h=1
31823fi
31824
31825
31826 if test "x$found_sql_h" = "x1" ; then
31827 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
31828echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
31829if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
31830 echo $ECHO_N "(cached) $ECHO_C" >&6
31831else
31832 ac_check_lib_save_LIBS=$LIBS
31833LIBS="-liodbc $LIBS"
31834cat >conftest.$ac_ext <<_ACEOF
31835/* confdefs.h. */
31836_ACEOF
31837cat confdefs.h >>conftest.$ac_ext
31838cat >>conftest.$ac_ext <<_ACEOF
31839/* end confdefs.h. */
31840
31841/* Override any gcc2 internal prototype to avoid an error. */
31842#ifdef __cplusplus
31843extern "C"
31844#endif
31845/* We use char because int might match the return type of a gcc2
31846 builtin and then its argument prototype would still apply. */
31847char SQLAllocEnv ();
31848int
31849main ()
31850{
31851SQLAllocEnv ();
31852 ;
31853 return 0;
31854}
31855_ACEOF
31856rm -f conftest.$ac_objext conftest$ac_exeext
31857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31858 (eval $ac_link) 2>conftest.er1
a848cd7e 31859 ac_status=$?
ac1cb8d3
VS
31860 grep -v '^ *+' conftest.er1 >conftest.err
31861 rm -f conftest.er1
31862 cat conftest.err >&5
a848cd7e
SC
31863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31864 (exit $ac_status); } &&
c9a66001 31865 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31867 (eval $ac_try) 2>&5
31868 ac_status=$?
31869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31870 (exit $ac_status); }; } &&
31871 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31873 (eval $ac_try) 2>&5
31874 ac_status=$?
31875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31876 (exit $ac_status); }; }; then
31877 ac_cv_lib_iodbc_SQLAllocEnv=yes
31878else
31879 echo "$as_me: failed program was:" >&5
31880sed 's/^/| /' conftest.$ac_ext >&5
31881
31882ac_cv_lib_iodbc_SQLAllocEnv=no
31883fi
ac1cb8d3
VS
31884rm -f conftest.err conftest.$ac_objext \
31885 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31886LIBS=$ac_check_lib_save_LIBS
31887fi
31888echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
31889echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
31890if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
31891 ODBC_LINK=" -liodbc"
31892else
31893
31894 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
31895echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
31896if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
31897 echo $ECHO_N "(cached) $ECHO_C" >&6
31898else
31899 ac_check_lib_save_LIBS=$LIBS
31900LIBS="-lunixodbc $LIBS"
31901cat >conftest.$ac_ext <<_ACEOF
31902/* confdefs.h. */
31903_ACEOF
31904cat confdefs.h >>conftest.$ac_ext
31905cat >>conftest.$ac_ext <<_ACEOF
31906/* end confdefs.h. */
31907
31908/* Override any gcc2 internal prototype to avoid an error. */
31909#ifdef __cplusplus
31910extern "C"
31911#endif
31912/* We use char because int might match the return type of a gcc2
31913 builtin and then its argument prototype would still apply. */
31914char SQLAllocEnv ();
31915int
31916main ()
31917{
31918SQLAllocEnv ();
31919 ;
31920 return 0;
31921}
31922_ACEOF
31923rm -f conftest.$ac_objext conftest$ac_exeext
31924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31925 (eval $ac_link) 2>conftest.er1
a848cd7e 31926 ac_status=$?
ac1cb8d3
VS
31927 grep -v '^ *+' conftest.er1 >conftest.err
31928 rm -f conftest.er1
31929 cat conftest.err >&5
a848cd7e
SC
31930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931 (exit $ac_status); } &&
c9a66001 31932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31934 (eval $ac_try) 2>&5
31935 ac_status=$?
31936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31937 (exit $ac_status); }; } &&
31938 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31940 (eval $ac_try) 2>&5
31941 ac_status=$?
31942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943 (exit $ac_status); }; }; then
31944 ac_cv_lib_unixodbc_SQLAllocEnv=yes
31945else
31946 echo "$as_me: failed program was:" >&5
31947sed 's/^/| /' conftest.$ac_ext >&5
31948
31949ac_cv_lib_unixodbc_SQLAllocEnv=no
31950fi
ac1cb8d3
VS
31951rm -f conftest.err conftest.$ac_objext \
31952 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31953LIBS=$ac_check_lib_save_LIBS
31954fi
31955echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
31956echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
31957if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
31958 ODBC_LINK=" -lunixodbc"
31959else
31960
31961 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
31962echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
31963if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
31964 echo $ECHO_N "(cached) $ECHO_C" >&6
31965else
31966 ac_check_lib_save_LIBS=$LIBS
31967LIBS="-lodbc $LIBS"
31968cat >conftest.$ac_ext <<_ACEOF
31969/* confdefs.h. */
31970_ACEOF
31971cat confdefs.h >>conftest.$ac_ext
31972cat >>conftest.$ac_ext <<_ACEOF
31973/* end confdefs.h. */
31974
31975/* Override any gcc2 internal prototype to avoid an error. */
31976#ifdef __cplusplus
31977extern "C"
31978#endif
31979/* We use char because int might match the return type of a gcc2
31980 builtin and then its argument prototype would still apply. */
31981char SQLAllocEnv ();
31982int
31983main ()
31984{
31985SQLAllocEnv ();
31986 ;
31987 return 0;
31988}
31989_ACEOF
31990rm -f conftest.$ac_objext conftest$ac_exeext
31991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31992 (eval $ac_link) 2>conftest.er1
a848cd7e 31993 ac_status=$?
ac1cb8d3
VS
31994 grep -v '^ *+' conftest.er1 >conftest.err
31995 rm -f conftest.er1
31996 cat conftest.err >&5
a848cd7e
SC
31997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31998 (exit $ac_status); } &&
c9a66001 31999 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32001 (eval $ac_try) 2>&5
32002 ac_status=$?
32003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004 (exit $ac_status); }; } &&
32005 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32007 (eval $ac_try) 2>&5
32008 ac_status=$?
32009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010 (exit $ac_status); }; }; then
32011 ac_cv_lib_odbc_SQLAllocEnv=yes
32012else
32013 echo "$as_me: failed program was:" >&5
32014sed 's/^/| /' conftest.$ac_ext >&5
32015
32016ac_cv_lib_odbc_SQLAllocEnv=no
32017fi
ac1cb8d3
VS
32018rm -f conftest.err conftest.$ac_objext \
32019 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32020LIBS=$ac_check_lib_save_LIBS
32021fi
32022echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
32023echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
32024if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
32025 ODBC_LINK=" -lodbc"
32026fi
32027
32028
32029fi
32030
32031
32032fi
32033
32034 fi
32035 if test "x$ODBC_LINK" = "x" ; then
32036 if test "$wxUSE_ODBC" = "sys" ; then
32037 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
32038echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
32039 { (exit 1); exit 1; }; }
32040 else
32041 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
32042echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
32043 wxUSE_ODBC=builtin
32044 fi
32045 else
32046 wxUSE_ODBC=sys
32047 fi
32048 fi
a848cd7e 32049
2da0c077
RD
32050 if test "$wxUSE_ODBC" = "builtin" ; then
32051 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
32052#define wxUSE_BUILTIN_IODBC 1
32053_ACEOF
32054
a848cd7e
SC
32055 fi
32056fi
32057
2da0c077
RD
32058if test "$wxUSE_ODBC" != "no" ; then
32059 cat >>confdefs.h <<\_ACEOF
32060#define wxUSE_ODBC 1
32061_ACEOF
32062
32063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32064
5ff751d6 32065 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 32066fi
a848cd7e 32067
01cb68df 32068
a848cd7e 32069if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 32070 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
32071 echo "$as_me:$LINENO: checking for Xinerama" >&5
32072echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32073
0ad5d837
VZ
32074 ac_find_libraries=
32075 for ac_dir in $SEARCH_LIB;
32076 do
32077 for ac_extension in a so sl dylib dll.a; do
32078 if test -f "$ac_dir/libXinerama.$ac_extension"; then
32079 ac_find_libraries=$ac_dir
32080 break 2
32081 fi
32082 done
32083 done
32084
a848cd7e
SC
32085 if test "$ac_find_libraries" != "" ; then
32086
0ad5d837 32087 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32088 ac_path_to_link=""
32089 else
0ad5d837
VZ
32090 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32091 result=$?
32092 if test $result = 0; then
32093 ac_path_to_link=""
32094 else
32095 ac_path_to_link=" -L$ac_find_libraries"
32096 fi
a848cd7e
SC
32097 fi
32098
32099 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32100 LDFLAGS="$LDFLAGS $ac_path_to_link"
32101 fi
32102 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32103 echo "$as_me:$LINENO: result: yes" >&5
32104echo "${ECHO_T}yes" >&6
32105
32106 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32107echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32108
0ad5d837
VZ
32109 ac_find_libraries=
32110 for ac_dir in $SEARCH_LIB;
a848cd7e 32111 do
3eca31dc 32112 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32113 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32114 ac_find_libraries=$ac_dir
32115 break 2
32116 fi
32117 done
32118 done
32119
32120 if test "$ac_find_libraries" != "" ; then
32121 echo "$as_me:$LINENO: result: yes" >&5
32122echo "${ECHO_T}yes" >&6
32123
32124for ac_header in X11/extensions/xf86vmode.h
32125do
32126as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32127echo "$as_me:$LINENO: checking for $ac_header" >&5
32128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32129if eval "test \"\${$as_ac_Header+set}\" = set"; then
32130 echo $ECHO_N "(cached) $ECHO_C" >&6
32131else
32132 cat >conftest.$ac_ext <<_ACEOF
32133/* confdefs.h. */
32134_ACEOF
32135cat confdefs.h >>conftest.$ac_ext
32136cat >>conftest.$ac_ext <<_ACEOF
32137/* end confdefs.h. */
32138
32139 #if HAVE_X11_XLIB_H
32140 #include <X11/Xlib.h>
32141 #endif
32142
32143
32144#include <$ac_header>
32145_ACEOF
32146rm -f conftest.$ac_objext
32147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32148 (eval $ac_compile) 2>conftest.er1
a848cd7e 32149 ac_status=$?
ac1cb8d3
VS
32150 grep -v '^ *+' conftest.er1 >conftest.err
32151 rm -f conftest.er1
32152 cat conftest.err >&5
a848cd7e
SC
32153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32154 (exit $ac_status); } &&
c9a66001 32155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32157 (eval $ac_try) 2>&5
32158 ac_status=$?
32159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32160 (exit $ac_status); }; } &&
32161 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32163 (eval $ac_try) 2>&5
32164 ac_status=$?
32165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32166 (exit $ac_status); }; }; then
32167 eval "$as_ac_Header=yes"
32168else
32169 echo "$as_me: failed program was:" >&5
32170sed 's/^/| /' conftest.$ac_ext >&5
32171
32172eval "$as_ac_Header=no"
32173fi
ac1cb8d3 32174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32175fi
32176echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32177echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32178if test `eval echo '${'$as_ac_Header'}'` = yes; then
32179 cat >>confdefs.h <<_ACEOF
32180#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32181_ACEOF
32182
32183 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32184
32185fi
32186
32187done
32188
32189 else
32190 echo "$as_me:$LINENO: result: no" >&5
32191echo "${ECHO_T}no" >&6
32192 fi
32193
32194 else
32195 echo "$as_me:$LINENO: result: no" >&5
32196echo "${ECHO_T}no" >&6
dcc1b6ad
VS
32197 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32198echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
32199 wxUSE_DISPLAY="no"
32200 fi
01cb68df
RG
32201 elif test "$wxUSE_MSW" = 1; then
32202
e5efa97e 32203for ac_header in ddraw.h
01cb68df
RG
32204do
32205as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 32206echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
32207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32208if eval "test \"\${$as_ac_Header+set}\" = set"; then
32209 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 32210else
5294a27e 32211 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
32212/* confdefs.h. */
32213_ACEOF
32214cat confdefs.h >>conftest.$ac_ext
32215cat >>conftest.$ac_ext <<_ACEOF
32216/* end confdefs.h. */
5294a27e
VZ
32217#include <windows.h>
32218
01cb68df
RG
32219#include <$ac_header>
32220_ACEOF
32221rm -f conftest.$ac_objext
32222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32223 (eval $ac_compile) 2>conftest.er1
01cb68df 32224 ac_status=$?
ac1cb8d3
VS
32225 grep -v '^ *+' conftest.er1 >conftest.err
32226 rm -f conftest.er1
32227 cat conftest.err >&5
01cb68df
RG
32228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32229 (exit $ac_status); } &&
c9a66001 32230 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32232 (eval $ac_try) 2>&5
32233 ac_status=$?
32234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32235 (exit $ac_status); }; } &&
32236 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
32237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32238 (eval $ac_try) 2>&5
32239 ac_status=$?
32240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32241 (exit $ac_status); }; }; then
5294a27e 32242 eval "$as_ac_Header=yes"
01cb68df
RG
32243else
32244 echo "$as_me: failed program was:" >&5
32245sed 's/^/| /' conftest.$ac_ext >&5
32246
5294a27e 32247eval "$as_ac_Header=no"
01cb68df 32248fi
ac1cb8d3 32249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
32250fi
32251echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32252echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
32253if test `eval echo '${'$as_ac_Header'}'` = yes; then
32254 cat >>confdefs.h <<_ACEOF
32255#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32256_ACEOF
32257
01cb68df
RG
32258fi
32259
32260done
32261
a848cd7e
SC
32262 fi
32263fi
32264
32265
32266USE_OPENGL=0
32267if test "$wxUSE_OPENGL" = "yes"; then
32268 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
32269 OPENGL_LIBS="-framework OpenGL -framework AGL"
32270 elif test "$wxUSE_MSW" = 1; then
32271 OPENGL_LIBS="-lopengl32 -lglu32"
32272 else
32273
32274
32275ac_find_includes=
32276for ac_dir in $SEARCH_INCLUDE /usr/include;
32277 do
32278 if test -f "$ac_dir/GL/gl.h"; then
32279 ac_find_includes=$ac_dir
32280 break
32281 fi
32282 done
32283
32284 if test "$ac_find_includes" != "" ; then
32285 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32286echo "${ECHO_T}found in $ac_find_includes" >&6
32287
32288 if test "x$ac_find_includes" = "x/usr/include"; then
32289 ac_path_to_include=""
32290 else
32291 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32292 result=$?
32293 if test $result = 0; then
32294 ac_path_to_include=""
32295 else
32296 ac_path_to_include=" -I$ac_find_includes"
32297 fi
32298 fi
32299
c92ad099 32300 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
32301 fi
32302
32303 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32304 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32305echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32306if test "${ac_cv_header_GL_gl_h+set}" = set; then
32307 echo $ECHO_N "(cached) $ECHO_C" >&6
32308fi
32309echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32310echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32311else
32312 # Is the header compilable?
32313echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
32314echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
32315cat >conftest.$ac_ext <<_ACEOF
32316/* confdefs.h. */
32317_ACEOF
32318cat confdefs.h >>conftest.$ac_ext
32319cat >>conftest.$ac_ext <<_ACEOF
32320/* end confdefs.h. */
32321$ac_includes_default
32322#include <GL/gl.h>
32323_ACEOF
32324rm -f conftest.$ac_objext
32325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32326 (eval $ac_compile) 2>conftest.er1
a848cd7e 32327 ac_status=$?
ac1cb8d3
VS
32328 grep -v '^ *+' conftest.er1 >conftest.err
32329 rm -f conftest.er1
32330 cat conftest.err >&5
a848cd7e
SC
32331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332 (exit $ac_status); } &&
c9a66001 32333 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32335 (eval $ac_try) 2>&5
32336 ac_status=$?
32337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32338 (exit $ac_status); }; } &&
32339 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32341 (eval $ac_try) 2>&5
32342 ac_status=$?
32343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32344 (exit $ac_status); }; }; then
32345 ac_header_compiler=yes
32346else
32347 echo "$as_me: failed program was:" >&5
32348sed 's/^/| /' conftest.$ac_ext >&5
32349
32350ac_header_compiler=no
32351fi
ac1cb8d3 32352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32353echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32354echo "${ECHO_T}$ac_header_compiler" >&6
32355
32356# Is the header present?
32357echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32358echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32359cat >conftest.$ac_ext <<_ACEOF
32360/* confdefs.h. */
32361_ACEOF
32362cat confdefs.h >>conftest.$ac_ext
32363cat >>conftest.$ac_ext <<_ACEOF
32364/* end confdefs.h. */
32365#include <GL/gl.h>
32366_ACEOF
32367if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32369 ac_status=$?
32370 grep -v '^ *+' conftest.er1 >conftest.err
32371 rm -f conftest.er1
32372 cat conftest.err >&5
32373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32374 (exit $ac_status); } >/dev/null; then
32375 if test -s conftest.err; then
5d7b7554
VZ
32376 ac_cpp_err=$ac_cxx_preproc_warn_flag
32377 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32378 else
32379 ac_cpp_err=
32380 fi
32381else
32382 ac_cpp_err=yes
32383fi
32384if test -z "$ac_cpp_err"; then
32385 ac_header_preproc=yes
32386else
32387 echo "$as_me: failed program was:" >&5
32388sed 's/^/| /' conftest.$ac_ext >&5
32389
32390 ac_header_preproc=no
32391fi
32392rm -f conftest.err conftest.$ac_ext
32393echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32394echo "${ECHO_T}$ac_header_preproc" >&6
32395
32396# So? What about this header?
5d7b7554 32397case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32398 yes:no: )
a848cd7e
SC
32399 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32400echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32401 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
32402echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
32403 ac_header_preproc=yes
a848cd7e 32404 ;;
ac1cb8d3 32405 no:yes:* )
a848cd7e
SC
32406 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
32407echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32408 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
32409echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
32410 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
32411echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
32412 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
32413echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32414 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
32415echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32416 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
32417echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32418 (
32419 cat <<\_ASBOX
ac1cb8d3
VS
32420## ----------------------------------------- ##
32421## Report this to wx-dev@lists.wxwidgets.org ##
32422## ----------------------------------------- ##
a848cd7e
SC
32423_ASBOX
32424 ) |
32425 sed "s/^/$as_me: WARNING: /" >&2
32426 ;;
32427esac
32428echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32429echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32430if test "${ac_cv_header_GL_gl_h+set}" = set; then
32431 echo $ECHO_N "(cached) $ECHO_C" >&6
32432else
32433 ac_cv_header_GL_gl_h=$ac_header_preproc
32434fi
32435echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32436echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32437
32438fi
32439if test $ac_cv_header_GL_gl_h = yes; then
32440
32441 found_gl=0
32442
32443 echo "$as_me:$LINENO: checking for -lGL" >&5
32444echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
32445
0ad5d837
VZ
32446 ac_find_libraries=
32447 for ac_dir in $SEARCH_LIB;
a848cd7e 32448 do
3eca31dc 32449 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32450 if test -f "$ac_dir/libGL.$ac_extension"; then
32451 ac_find_libraries=$ac_dir
32452 break 2
32453 fi
32454 done
32455 done
32456
32457 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
32458 echo "$as_me:$LINENO: result: yes" >&5
32459echo "${ECHO_T}yes" >&6
32460
a848cd7e 32461
0ad5d837 32462 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32463 ac_path_to_link=""
32464 else
0ad5d837
VZ
32465 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32466 result=$?
32467 if test $result = 0; then
32468 ac_path_to_link=""
32469 else
32470 ac_path_to_link=" -L$ac_find_libraries"
32471 fi
a848cd7e
SC
32472 fi
32473
32474 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32475 LDFLAGS_GL="$ac_path_to_link"
32476 fi
32477
69120ee4
VZ
32478 echo "$as_me:$LINENO: checking for -lGLU" >&5
32479echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 32480
0ad5d837
VZ
32481 ac_find_libraries=
32482 for ac_dir in $SEARCH_LIB;
32483 do
32484 for ac_extension in a so sl dylib dll.a; do
32485 if test -f "$ac_dir/libGLU.$ac_extension"; then
32486 ac_find_libraries=$ac_dir
32487 break 2
32488 fi
32489 done
32490 done
32491
a848cd7e
SC
32492 if test "$ac_find_libraries" != "" ; then
32493
0ad5d837 32494 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32495 ac_path_to_link=""
32496 else
0ad5d837
VZ
32497 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32498 result=$?
32499 if test $result = 0; then
32500 ac_path_to_link=""
32501 else
32502 ac_path_to_link=" -L$ac_find_libraries"
32503 fi
a848cd7e
SC
32504 fi
32505
32506 if test "$ac_path_to_link" != " -L/usr/lib" -a \
32507 "$ac_path_to_link" != "$LDFLAGS_GL"; then
32508 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
32509 fi
32510
32511 found_gl=1
32512 OPENGL_LIBS="-lGL -lGLU"
32513 echo "$as_me:$LINENO: result: yes" >&5
32514echo "${ECHO_T}yes" >&6
69120ee4
VZ
32515 else
32516 echo "$as_me:$LINENO: result: no" >&5
32517echo "${ECHO_T}no" >&6
a848cd7e 32518 fi
69120ee4
VZ
32519 else
32520 echo "$as_me:$LINENO: result: no" >&5
32521echo "${ECHO_T}no" >&6
a848cd7e
SC
32522 fi
32523
32524 if test "$found_gl" != 1; then
a848cd7e
SC
32525 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
32526echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
32527
0ad5d837
VZ
32528 ac_find_libraries=
32529 for ac_dir in $SEARCH_LIB;
a848cd7e 32530 do
3eca31dc 32531 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32532 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
32533 ac_find_libraries=$ac_dir
32534 break 2
32535 fi
32536 done
32537 done
32538
32539 if test "$ac_find_libraries" != "" ; then
32540
0ad5d837 32541 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32542 ac_path_to_link=""
32543 else
0ad5d837
VZ
32544 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32545 result=$?
32546 if test $result = 0; then
32547 ac_path_to_link=""
32548 else
32549 ac_path_to_link=" -L$ac_find_libraries"
32550 fi
a848cd7e
SC
32551 fi
32552
32553 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
32554 OPENGL_LIBS="-lMesaGL -lMesaGLU"
32555 echo "$as_me:$LINENO: result: yes" >&5
32556echo "${ECHO_T}yes" >&6
32557 else
32558 echo "$as_me:$LINENO: result: no" >&5
32559echo "${ECHO_T}no" >&6
32560 fi
32561 fi
32562
32563fi
32564
32565
32566
32567 if test "x$OPENGL_LIBS" = "x"; then
32568 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
32569echo "$as_me: error: OpenGL libraries not available" >&2;}
32570 { (exit 1); exit 1; }; }
32571 fi
32572 fi
32573
32574 if test "$wxUSE_OPENGL" = "yes"; then
32575 USE_OPENGL=1
32576 cat >>confdefs.h <<\_ACEOF
32577#define wxUSE_OPENGL 1
32578_ACEOF
32579
32580 cat >>confdefs.h <<\_ACEOF
32581#define wxUSE_GLCANVAS 1
32582_ACEOF
32583
32584 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
32585 fi
32586fi
32587
a848cd7e
SC
32588
32589if test -n "$TOOLKIT" ; then
32590 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
32591fi
32592
a848cd7e
SC
32593
32594
32595if test "$wxUSE_SHARED" = "yes"; then
32596 case "${host}" in
32597 *-pc-msdosdjgpp )
32598 wxUSE_SHARED=no
32599 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
32600echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
32601 ;;
32602 esac
32603fi
32604
a848cd7e 32605if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
32606
32607
32608 found_versioning=no
32609
32610
32611 if test $found_versioning = no ; then
32612 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
32613echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
32614if test "${wx_cv_version_script+set}" = set; then
32615 echo $ECHO_N "(cached) $ECHO_C" >&6
32616else
32617
32618 echo "VER_1 { *; };" >conftest.sym
32619 echo "int main() { return 0; }" >conftest.cpp
32620
32621 if { ac_try='
32622 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32623 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
32624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32625 (eval $ac_try) 2>&5
32626 ac_status=$?
32627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32628 (exit $ac_status); }; } ; then
32629 if test -s conftest.stderr ; then
32630 wx_cv_version_script=no
32631 else
32632 wx_cv_version_script=yes
32633 fi
32634 else
32635 wx_cv_version_script=no
32636 fi
e5d4b470
MW
32637
32638 if test $wx_cv_version_script = yes
32639 then
32640 echo "struct B { virtual ~B() { } }; \
32641 struct D : public B { }; \
32642 void F() { D d; }" > conftest.cpp
32643
32644 if { ac_try='
32645 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32646 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
32647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32648 (eval $ac_try) 2>&5
32649 ac_status=$?
32650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32651 (exit $ac_status); }; } &&
32652 { ac_try='
32653 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32654 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
32655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32656 (eval $ac_try) 2>&5
32657 ac_status=$?
32658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659 (exit $ac_status); }; }
32660 then
32661 if { ac_try='
32662 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32663 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
32664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32665 (eval $ac_try) 2>&5
32666 ac_status=$?
32667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32668 (exit $ac_status); }; }
32669 then
32670 wx_cv_version_script=yes
32671 else
32672 wx_cv_version_script=no
32673 fi
32674 fi
32675 fi
32676
a848cd7e 32677 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 32678 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
32679
32680fi
32681echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
32682echo "${ECHO_T}$wx_cv_version_script" >&6
32683 if test $wx_cv_version_script = yes ; then
32684 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
32685 fi
32686 fi
32687
32688
32689 case "${host}" in
32690 *-*-linux* | *-*-gnu* )
32691 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32692 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 32693 ;;
a848cd7e
SC
32694
32695 *-*-solaris2* )
32696 if test "$GCC" = yes ; then
c92ad099 32697 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
32698
32699 saveLdflags="$LDFLAGS"
32700 LDFLAGS="$saveLdflags -Wl,-rpath,/"
32701 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
32702echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
32703 cat >conftest.$ac_ext <<_ACEOF
32704/* confdefs.h. */
32705_ACEOF
32706cat confdefs.h >>conftest.$ac_ext
32707cat >>conftest.$ac_ext <<_ACEOF
32708/* end confdefs.h. */
32709
32710int
32711main ()
32712{
32713
32714 ;
32715 return 0;
32716}
32717_ACEOF
32718rm -f conftest.$ac_objext conftest$ac_exeext
32719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32720 (eval $ac_link) 2>conftest.er1
a848cd7e 32721 ac_status=$?
ac1cb8d3
VS
32722 grep -v '^ *+' conftest.er1 >conftest.err
32723 rm -f conftest.er1
32724 cat conftest.err >&5
a848cd7e
SC
32725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726 (exit $ac_status); } &&
c9a66001 32727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32729 (eval $ac_try) 2>&5
32730 ac_status=$?
32731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732 (exit $ac_status); }; } &&
32733 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32735 (eval $ac_try) 2>&5
32736 ac_status=$?
32737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32738 (exit $ac_status); }; }; then
32739
32740 echo "$as_me:$LINENO: result: yes" >&5
32741echo "${ECHO_T}yes" >&6
32742 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32743 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
32744
32745else
32746 echo "$as_me: failed program was:" >&5
32747sed 's/^/| /' conftest.$ac_ext >&5
32748
32749
32750 echo "$as_me:$LINENO: result: no" >&5
32751echo "${ECHO_T}no" >&6
32752 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
32753echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
32754 LDFLAGS="$saveLdflags -Wl,-R,/"
32755 cat >conftest.$ac_ext <<_ACEOF
32756/* confdefs.h. */
32757_ACEOF
32758cat confdefs.h >>conftest.$ac_ext
32759cat >>conftest.$ac_ext <<_ACEOF
32760/* end confdefs.h. */
32761
32762int
32763main ()
32764{
32765
32766 ;
32767 return 0;
32768}
32769_ACEOF
32770rm -f conftest.$ac_objext conftest$ac_exeext
32771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32772 (eval $ac_link) 2>conftest.er1
a848cd7e 32773 ac_status=$?
ac1cb8d3
VS
32774 grep -v '^ *+' conftest.er1 >conftest.err
32775 rm -f conftest.er1
32776 cat conftest.err >&5
a848cd7e
SC
32777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32778 (exit $ac_status); } &&
c9a66001 32779 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32781 (eval $ac_try) 2>&5
32782 ac_status=$?
32783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784 (exit $ac_status); }; } &&
32785 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32787 (eval $ac_try) 2>&5
32788 ac_status=$?
32789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32790 (exit $ac_status); }; }; then
32791
ffa0583f 32792 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 32793echo "${ECHO_T}yes" >&6
ffa0583f
RL
32794 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
32795 WXCONFIG_RPATH="-Wl,-R,\$libdir"
32796
a848cd7e
SC
32797else
32798 echo "$as_me: failed program was:" >&5
32799sed 's/^/| /' conftest.$ac_ext >&5
32800
32801
32802 echo "$as_me:$LINENO: result: no" >&5
32803echo "${ECHO_T}no" >&6
32804
32805fi
ac1cb8d3
VS
32806rm -f conftest.err conftest.$ac_objext \
32807 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32808
32809fi
ac1cb8d3
VS
32810rm -f conftest.err conftest.$ac_objext \
32811 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32812 LDFLAGS="$saveLdflags"
32813 else
a848cd7e 32814 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 32815 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
32816 fi
32817 ;;
32818
cfda0ea8 32819 *-*-darwin* )
0caebc27
MW
32820 install_name_tool=`which install_name_tool`
32821 if test "$install_name_tool" -a -x "$install_name_tool"; then
32822 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
32823 cat <<EOF >change-install-names
a848cd7e
SC
32824#!/bin/sh
32825libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
32826inst_cmd="install_name_tool "
32827for i in \${libnames} ; do
32828 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
32829done
32830\${inst_cmd} \${3}
32831EOF
0caebc27
MW
32832 chmod +x change-install-names
32833 fi
a848cd7e
SC
32834 ;;
32835
32836 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
32837 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
32838 ;;
a848cd7e 32839
81f90336
MW
32840 *-*-hpux* )
32841 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
32842 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 32843 ;;
81f90336 32844
a848cd7e 32845 esac
ceec2216 32846
ffa0583f
RL
32847 if test $wxUSE_RPATH = "no"; then
32848 SAMPLES_RPATH_FLAG=''
32849 SAMPLES_RPATH_POSTLINK=''
32850 WXCONFIG_RPATH=''
32851 fi
32852
32853 SHARED=1
32854
32855else
32856
ceec2216
RL
32857 config_linkage_component="-static"
32858 SHARED=0
ffa0583f 32859
ceec2216 32860fi
a848cd7e 32861
a848cd7e 32862
ceec2216
RL
32863UNICODE=0
32864lib_unicode_suffix=
32865WX_CHARTYPE="ansi"
32866if test "$wxUSE_UNICODE" = "yes"; then
32867 lib_unicode_suffix=u
32868 WX_CHARTYPE="unicode"
32869 UNICODE=1
a848cd7e
SC
32870fi
32871
ceec2216
RL
32872lib_debug_suffix=
32873WX_DEBUGTYPE="release"
32874DEBUG_FLAG=0
32875if test "$wxUSE_DEBUG_FLAG" = "yes"; then
32876 lib_debug_suffix=d
32877 WX_DEBUGTYPE="debug"
32878 DEBUG_FLAG=1
32879fi
a848cd7e 32880
ceec2216
RL
32881WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
32882WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 32883
ceec2216
RL
32884DEBUG_INFO=0
32885if test "$wxUSE_DEBUG_INFO" = "yes"; then
32886 DEBUG_INFO=1
32887fi
a848cd7e 32888
ceec2216 32889WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 32890
ceec2216 32891TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 32892
ceec2216 32893TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 32894
ceec2216
RL
32895if test "$cross_compiling" = "yes"; then
32896 HOST_SUFFIX="-$host_alias"
32897 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
32898 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
32899fi
32900
dd21ced8 32901WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
32902if test "${TOOLKIT_DIR}" = "os2"; then
32903 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32904else
32905 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32906fi
ceec2216
RL
32907
32908
32909
1d1af5ea
DE
32910if test "$wxUSE_COCOA" = 1; then
32911
32912
32913 ac_ext=c
32914ac_cpp='$CPP $CPPFLAGS'
32915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32917ac_compiler_gnu=$ac_cv_c_compiler_gnu
32918
32919ac_ext=m
32920
32921 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
32922echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
32923 cat >conftest.$ac_ext <<_ACEOF
32924/* confdefs.h. */
32925_ACEOF
32926cat confdefs.h >>conftest.$ac_ext
32927cat >>conftest.$ac_ext <<_ACEOF
32928/* end confdefs.h. */
32929#include <AppKit/NSEvent.h>
32930#include <CoreFoundation/CoreFoundation.h>
32931
32932int
32933main ()
32934{
32935
32936 ;
32937 return 0;
32938}
32939_ACEOF
32940rm -f conftest.$ac_objext
32941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32942 (eval $ac_compile) 2>conftest.er1
32943 ac_status=$?
32944 grep -v '^ *+' conftest.er1 >conftest.err
32945 rm -f conftest.er1
32946 cat conftest.err >&5
32947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32948 (exit $ac_status); } &&
c9a66001 32949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
32950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32951 (eval $ac_try) 2>&5
32952 ac_status=$?
32953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32954 (exit $ac_status); }; } &&
32955 { ac_try='test -s conftest.$ac_objext'
32956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32957 (eval $ac_try) 2>&5
32958 ac_status=$?
32959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32960 (exit $ac_status); }; }; then
32961 echo "$as_me:$LINENO: result: no" >&5
32962echo "${ECHO_T}no" >&6
32963else
32964 echo "$as_me: failed program was:" >&5
32965sed 's/^/| /' conftest.$ac_ext >&5
32966
32967echo "$as_me:$LINENO: result: yes" >&5
32968echo "${ECHO_T}yes" >&6
32969 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
32970echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
32971 cat >conftest.$ac_ext <<_ACEOF
32972/* confdefs.h. */
32973_ACEOF
32974cat confdefs.h >>conftest.$ac_ext
32975cat >>conftest.$ac_ext <<_ACEOF
32976/* end confdefs.h. */
32977#define __Point__ 1
32978#include <AppKit/NSEvent.h>
32979#include <CoreFoundation/CoreFoundation.h>
32980
32981int
32982main ()
32983{
32984
32985 ;
32986 return 0;
32987}
32988_ACEOF
32989rm -f conftest.$ac_objext
32990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32991 (eval $ac_compile) 2>conftest.er1
32992 ac_status=$?
32993 grep -v '^ *+' conftest.er1 >conftest.err
32994 rm -f conftest.er1
32995 cat conftest.err >&5
32996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32997 (exit $ac_status); } &&
c9a66001 32998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
32999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33000 (eval $ac_try) 2>&5
33001 ac_status=$?
33002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33003 (exit $ac_status); }; } &&
33004 { ac_try='test -s conftest.$ac_objext'
33005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33006 (eval $ac_try) 2>&5
33007 ac_status=$?
33008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009 (exit $ac_status); }; }; then
33010 echo "$as_me:$LINENO: result: yes" >&5
33011echo "${ECHO_T}yes" >&6
33012 cat >>confdefs.h <<\_ACEOF
33013#define __Point__ 1
33014_ACEOF
33015
33016
33017else
33018 echo "$as_me: failed program was:" >&5
33019sed 's/^/| /' conftest.$ac_ext >&5
33020
33021{ { echo "$as_me:$LINENO: error: no
33022See \`config.log' for more details." >&5
33023echo "$as_me: error: no
33024See \`config.log' for more details." >&2;}
33025 { (exit 1); exit 1; }; }
33026
33027fi
33028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33029
33030fi
33031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
33032 ac_ext=cc
33033ac_cpp='$CXXCPP $CPPFLAGS'
33034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
33037
33038fi
33039
a848cd7e 33040if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
33041 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
33042 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 33043
a848cd7e 33044 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
33045
33046 # Extract the first word of "Rez", so it can be a program name with args.
33047set dummy Rez; ac_word=$2
33048echo "$as_me:$LINENO: checking for $ac_word" >&5
33049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 33050if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
33051 echo $ECHO_N "(cached) $ECHO_C" >&6
33052else
8ced02f6
DE
33053 if test -n "$REZ"; then
33054 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
33055else
33056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33057for as_dir in $PATH
33058do
33059 IFS=$as_save_IFS
33060 test -z "$as_dir" && as_dir=.
33061 for ac_exec_ext in '' $ac_executable_extensions; do
33062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 33063 ac_cv_prog_REZ="Rez"
a848cd7e
SC
33064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33065 break 2
33066 fi
33067done
33068done
33069
8ced02f6 33070 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
33071fi
33072fi
8ced02f6
DE
33073REZ=$ac_cv_prog_REZ
33074if test -n "$REZ"; then
33075 echo "$as_me:$LINENO: result: $REZ" >&5
33076echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
33077else
33078 echo "$as_me:$LINENO: result: no" >&5
33079echo "${ECHO_T}no" >&6
33080fi
33081
33082 # Extract the first word of "DeRez", so it can be a program name with args.
33083set dummy DeRez; ac_word=$2
33084echo "$as_me:$LINENO: checking for $ac_word" >&5
33085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33086if test "${ac_cv_prog_DEREZ+set}" = set; then
33087 echo $ECHO_N "(cached) $ECHO_C" >&6
33088else
33089 if test -n "$DEREZ"; then
33090 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33091else
33092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33093for as_dir in $PATH
33094do
33095 IFS=$as_save_IFS
33096 test -z "$as_dir" && as_dir=.
33097 for ac_exec_ext in '' $ac_executable_extensions; do
33098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33099 ac_cv_prog_DEREZ="DeRez"
33100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33101 break 2
33102 fi
33103done
33104done
33105
33106 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33107fi
33108fi
33109DEREZ=$ac_cv_prog_DEREZ
33110if test -n "$DEREZ"; then
33111 echo "$as_me:$LINENO: result: $DEREZ" >&5
33112echo "${ECHO_T}$DEREZ" >&6
33113else
33114 echo "$as_me:$LINENO: result: no" >&5
33115echo "${ECHO_T}no" >&6
33116fi
33117
33118 # Extract the first word of "SetFile", so it can be a program name with args.
33119set dummy SetFile; ac_word=$2
33120echo "$as_me:$LINENO: checking for $ac_word" >&5
33121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33122if test "${ac_cv_prog_SETFILE+set}" = set; then
33123 echo $ECHO_N "(cached) $ECHO_C" >&6
33124else
33125 if test -n "$SETFILE"; then
33126 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33127else
33128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33129for as_dir in $PATH
33130do
33131 IFS=$as_save_IFS
33132 test -z "$as_dir" && as_dir=.
33133 for ac_exec_ext in '' $ac_executable_extensions; do
33134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33135 ac_cv_prog_SETFILE="SetFile"
33136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33137 break 2
33138 fi
33139done
33140done
33141
33142 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33143fi
33144fi
33145SETFILE=$ac_cv_prog_SETFILE
33146if test -n "$SETFILE"; then
33147 echo "$as_me:$LINENO: result: $SETFILE" >&5
33148echo "${ECHO_T}$SETFILE" >&6
33149else
33150 echo "$as_me:$LINENO: result: no" >&5
33151echo "${ECHO_T}no" >&6
33152fi
33153
33154
33155 MACSETFILE="\$(SETFILE)"
33156
33157 if test "$wxUSE_MAC" = 1; then
8ced02f6 33158 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
33159 RESCOMP="$REZ"
33160 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 33161 else
004ee6da
RL
33162 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33163 RESCOMP="echo -n \| $REZ"
33164 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 33165 fi
004ee6da 33166
a848cd7e 33167else
ffa0583f 33168 MACSETFILE="@true"
a848cd7e 33169
8ced02f6 33170 if test "$wxUSE_PM" = 1; then
004ee6da
RL
33171 RESCOMP="emxbind"
33172 WXCONFIG_RESFLAGS="-ep"
33173
33174 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 33175 else
8ced02f6 33176 POSTLINK_COMMAND="@true"
a848cd7e 33177 fi
004ee6da 33178
a848cd7e
SC
33179fi
33180
33181
33182
33183echo "$as_me:$LINENO: checking for mode_t" >&5
33184echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33185if test "${ac_cv_type_mode_t+set}" = set; then
33186 echo $ECHO_N "(cached) $ECHO_C" >&6
33187else
33188 cat >conftest.$ac_ext <<_ACEOF
33189/* confdefs.h. */
33190_ACEOF
33191cat confdefs.h >>conftest.$ac_ext
33192cat >>conftest.$ac_ext <<_ACEOF
33193/* end confdefs.h. */
33194$ac_includes_default
33195int
33196main ()
33197{
33198if ((mode_t *) 0)
33199 return 0;
33200if (sizeof (mode_t))
33201 return 0;
33202 ;
33203 return 0;
33204}
33205_ACEOF
33206rm -f conftest.$ac_objext
33207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33208 (eval $ac_compile) 2>conftest.er1
a848cd7e 33209 ac_status=$?
ac1cb8d3
VS
33210 grep -v '^ *+' conftest.er1 >conftest.err
33211 rm -f conftest.er1
33212 cat conftest.err >&5
a848cd7e
SC
33213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33214 (exit $ac_status); } &&
c9a66001 33215 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33217 (eval $ac_try) 2>&5
33218 ac_status=$?
33219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33220 (exit $ac_status); }; } &&
33221 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33223 (eval $ac_try) 2>&5
33224 ac_status=$?
33225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226 (exit $ac_status); }; }; then
33227 ac_cv_type_mode_t=yes
33228else
33229 echo "$as_me: failed program was:" >&5
33230sed 's/^/| /' conftest.$ac_ext >&5
33231
33232ac_cv_type_mode_t=no
33233fi
ac1cb8d3 33234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33235fi
33236echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33237echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33238if test $ac_cv_type_mode_t = yes; then
33239 :
33240else
33241
33242cat >>confdefs.h <<_ACEOF
33243#define mode_t int
33244_ACEOF
33245
33246fi
33247
33248echo "$as_me:$LINENO: checking for off_t" >&5
33249echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33250if test "${ac_cv_type_off_t+set}" = set; then
33251 echo $ECHO_N "(cached) $ECHO_C" >&6
33252else
33253 cat >conftest.$ac_ext <<_ACEOF
33254/* confdefs.h. */
33255_ACEOF
33256cat confdefs.h >>conftest.$ac_ext
33257cat >>conftest.$ac_ext <<_ACEOF
33258/* end confdefs.h. */
33259$ac_includes_default
33260int
33261main ()
33262{
33263if ((off_t *) 0)
33264 return 0;
33265if (sizeof (off_t))
33266 return 0;
33267 ;
33268 return 0;
33269}
33270_ACEOF
33271rm -f conftest.$ac_objext
33272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33273 (eval $ac_compile) 2>conftest.er1
a848cd7e 33274 ac_status=$?
ac1cb8d3
VS
33275 grep -v '^ *+' conftest.er1 >conftest.err
33276 rm -f conftest.er1
33277 cat conftest.err >&5
a848cd7e
SC
33278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33279 (exit $ac_status); } &&
c9a66001 33280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33282 (eval $ac_try) 2>&5
33283 ac_status=$?
33284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33285 (exit $ac_status); }; } &&
33286 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33288 (eval $ac_try) 2>&5
33289 ac_status=$?
33290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33291 (exit $ac_status); }; }; then
33292 ac_cv_type_off_t=yes
33293else
33294 echo "$as_me: failed program was:" >&5
33295sed 's/^/| /' conftest.$ac_ext >&5
33296
33297ac_cv_type_off_t=no
33298fi
ac1cb8d3 33299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33300fi
33301echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33302echo "${ECHO_T}$ac_cv_type_off_t" >&6
33303if test $ac_cv_type_off_t = yes; then
33304 :
33305else
33306
33307cat >>confdefs.h <<_ACEOF
33308#define off_t long
33309_ACEOF
33310
33311fi
33312
33313echo "$as_me:$LINENO: checking for pid_t" >&5
33314echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33315if test "${ac_cv_type_pid_t+set}" = set; then
33316 echo $ECHO_N "(cached) $ECHO_C" >&6
33317else
33318 cat >conftest.$ac_ext <<_ACEOF
33319/* confdefs.h. */
33320_ACEOF
33321cat confdefs.h >>conftest.$ac_ext
33322cat >>conftest.$ac_ext <<_ACEOF
33323/* end confdefs.h. */
33324$ac_includes_default
33325int
33326main ()
33327{
33328if ((pid_t *) 0)
33329 return 0;
33330if (sizeof (pid_t))
33331 return 0;
33332 ;
33333 return 0;
33334}
33335_ACEOF
33336rm -f conftest.$ac_objext
33337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33338 (eval $ac_compile) 2>conftest.er1
a848cd7e 33339 ac_status=$?
ac1cb8d3
VS
33340 grep -v '^ *+' conftest.er1 >conftest.err
33341 rm -f conftest.er1
33342 cat conftest.err >&5
a848cd7e
SC
33343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33344 (exit $ac_status); } &&
c9a66001 33345 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33347 (eval $ac_try) 2>&5
33348 ac_status=$?
33349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33350 (exit $ac_status); }; } &&
33351 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33353 (eval $ac_try) 2>&5
33354 ac_status=$?
33355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33356 (exit $ac_status); }; }; then
33357 ac_cv_type_pid_t=yes
33358else
33359 echo "$as_me: failed program was:" >&5
33360sed 's/^/| /' conftest.$ac_ext >&5
33361
33362ac_cv_type_pid_t=no
33363fi
ac1cb8d3 33364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33365fi
33366echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33367echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33368if test $ac_cv_type_pid_t = yes; then
33369 :
33370else
33371
33372cat >>confdefs.h <<_ACEOF
33373#define pid_t int
33374_ACEOF
33375
33376fi
33377
33378echo "$as_me:$LINENO: checking for size_t" >&5
33379echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33380if test "${ac_cv_type_size_t+set}" = set; then
33381 echo $ECHO_N "(cached) $ECHO_C" >&6
33382else
33383 cat >conftest.$ac_ext <<_ACEOF
33384/* confdefs.h. */
33385_ACEOF
33386cat confdefs.h >>conftest.$ac_ext
33387cat >>conftest.$ac_ext <<_ACEOF
33388/* end confdefs.h. */
33389$ac_includes_default
33390int
33391main ()
33392{
33393if ((size_t *) 0)
33394 return 0;
33395if (sizeof (size_t))
33396 return 0;
33397 ;
33398 return 0;
33399}
33400_ACEOF
33401rm -f conftest.$ac_objext
33402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33403 (eval $ac_compile) 2>conftest.er1
a848cd7e 33404 ac_status=$?
ac1cb8d3
VS
33405 grep -v '^ *+' conftest.er1 >conftest.err
33406 rm -f conftest.er1
33407 cat conftest.err >&5
a848cd7e
SC
33408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33409 (exit $ac_status); } &&
c9a66001 33410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33412 (eval $ac_try) 2>&5
33413 ac_status=$?
33414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415 (exit $ac_status); }; } &&
33416 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33418 (eval $ac_try) 2>&5
33419 ac_status=$?
33420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33421 (exit $ac_status); }; }; then
33422 ac_cv_type_size_t=yes
33423else
33424 echo "$as_me: failed program was:" >&5
33425sed 's/^/| /' conftest.$ac_ext >&5
33426
33427ac_cv_type_size_t=no
33428fi
ac1cb8d3 33429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33430fi
33431echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33432echo "${ECHO_T}$ac_cv_type_size_t" >&6
33433if test $ac_cv_type_size_t = yes; then
33434 :
33435else
33436
33437cat >>confdefs.h <<_ACEOF
33438#define size_t unsigned
33439_ACEOF
33440
33441fi
33442
33443echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33444echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
33445if test "${ac_cv_type_uid_t+set}" = set; then
33446 echo $ECHO_N "(cached) $ECHO_C" >&6
33447else
33448 cat >conftest.$ac_ext <<_ACEOF
33449/* confdefs.h. */
33450_ACEOF
33451cat confdefs.h >>conftest.$ac_ext
33452cat >>conftest.$ac_ext <<_ACEOF
33453/* end confdefs.h. */
33454#include <sys/types.h>
33455
33456_ACEOF
33457if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33458 $EGREP "uid_t" >/dev/null 2>&1; then
33459 ac_cv_type_uid_t=yes
33460else
33461 ac_cv_type_uid_t=no
33462fi
33463rm -f conftest*
33464
33465fi
33466echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33467echo "${ECHO_T}$ac_cv_type_uid_t" >&6
33468if test $ac_cv_type_uid_t = no; then
33469
33470cat >>confdefs.h <<\_ACEOF
33471#define uid_t int
33472_ACEOF
33473
33474
33475cat >>confdefs.h <<\_ACEOF
33476#define gid_t int
33477_ACEOF
33478
33479fi
33480
33481
d51253e8
RL
33482echo "$as_me:$LINENO: checking for ssize_t" >&5
33483echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33484if test "${ac_cv_type_ssize_t+set}" = set; then
33485 echo $ECHO_N "(cached) $ECHO_C" >&6
33486else
33487 cat >conftest.$ac_ext <<_ACEOF
33488/* confdefs.h. */
33489_ACEOF
33490cat confdefs.h >>conftest.$ac_ext
33491cat >>conftest.$ac_ext <<_ACEOF
33492/* end confdefs.h. */
33493$ac_includes_default
33494int
33495main ()
33496{
33497if ((ssize_t *) 0)
33498 return 0;
33499if (sizeof (ssize_t))
33500 return 0;
33501 ;
33502 return 0;
33503}
33504_ACEOF
33505rm -f conftest.$ac_objext
33506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33507 (eval $ac_compile) 2>conftest.er1
33508 ac_status=$?
33509 grep -v '^ *+' conftest.er1 >conftest.err
33510 rm -f conftest.er1
33511 cat conftest.err >&5
33512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33513 (exit $ac_status); } &&
c9a66001 33514 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d51253e8
RL
33515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33516 (eval $ac_try) 2>&5
33517 ac_status=$?
33518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33519 (exit $ac_status); }; } &&
33520 { ac_try='test -s conftest.$ac_objext'
33521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33522 (eval $ac_try) 2>&5
33523 ac_status=$?
33524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33525 (exit $ac_status); }; }; then
33526 ac_cv_type_ssize_t=yes
33527else
33528 echo "$as_me: failed program was:" >&5
33529sed 's/^/| /' conftest.$ac_ext >&5
33530
33531ac_cv_type_ssize_t=no
33532fi
33533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33534fi
33535echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33536echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33537if test $ac_cv_type_ssize_t = yes; then
33538
33539cat >>confdefs.h <<_ACEOF
33540#define HAVE_SSIZE_T 1
33541_ACEOF
33542
33543
33544fi
33545
33546
a848cd7e
SC
33547echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
33548echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
33549if test "${wx_cv_size_t_is_uint+set}" = set; then
33550 echo $ECHO_N "(cached) $ECHO_C" >&6
33551else
33552
33553 cat >conftest.$ac_ext <<_ACEOF
33554/* confdefs.h. */
33555_ACEOF
33556cat confdefs.h >>conftest.$ac_ext
33557cat >>conftest.$ac_ext <<_ACEOF
33558/* end confdefs.h. */
33559#include <stddef.h>
33560int
33561main ()
33562{
33563
33564 return 0; }
33565
33566 struct Foo { void foo(size_t); void foo(unsigned int); };
33567
33568 int bar() {
33569
33570 ;
33571 return 0;
33572}
33573_ACEOF
33574rm -f conftest.$ac_objext
33575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33576 (eval $ac_compile) 2>conftest.er1
a848cd7e 33577 ac_status=$?
ac1cb8d3
VS
33578 grep -v '^ *+' conftest.er1 >conftest.err
33579 rm -f conftest.er1
33580 cat conftest.err >&5
a848cd7e
SC
33581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33582 (exit $ac_status); } &&
c9a66001 33583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33585 (eval $ac_try) 2>&5
33586 ac_status=$?
33587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33588 (exit $ac_status); }; } &&
33589 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33591 (eval $ac_try) 2>&5
33592 ac_status=$?
33593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33594 (exit $ac_status); }; }; then
33595 wx_cv_size_t_is_uint=no
33596else
33597 echo "$as_me: failed program was:" >&5
33598sed 's/^/| /' conftest.$ac_ext >&5
33599
33600wx_cv_size_t_is_uint=yes
33601
33602fi
ac1cb8d3 33603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33604
33605
33606fi
33607echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
33608echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
33609
33610if test "$wx_cv_size_t_is_uint" = "yes"; then
33611 cat >>confdefs.h <<\_ACEOF
33612#define wxSIZE_T_IS_UINT 1
33613_ACEOF
33614
33615else
33616 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
33617echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
33618if test "${wx_cv_size_t_is_ulong+set}" = set; then
33619 echo $ECHO_N "(cached) $ECHO_C" >&6
33620else
33621 cat >conftest.$ac_ext <<_ACEOF
33622/* confdefs.h. */
33623_ACEOF
33624cat confdefs.h >>conftest.$ac_ext
33625cat >>conftest.$ac_ext <<_ACEOF
33626/* end confdefs.h. */
33627#include <stddef.h>
33628int
33629main ()
33630{
33631
33632 return 0; }
33633
33634 struct Foo { void foo(size_t); void foo(unsigned long); };
33635
33636 int bar() {
33637
33638 ;
33639 return 0;
33640}
33641_ACEOF
33642rm -f conftest.$ac_objext
33643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33644 (eval $ac_compile) 2>conftest.er1
a848cd7e 33645 ac_status=$?
ac1cb8d3
VS
33646 grep -v '^ *+' conftest.er1 >conftest.err
33647 rm -f conftest.er1
33648 cat conftest.err >&5
a848cd7e
SC
33649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33650 (exit $ac_status); } &&
c9a66001 33651 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33653 (eval $ac_try) 2>&5
33654 ac_status=$?
33655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33656 (exit $ac_status); }; } &&
33657 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33659 (eval $ac_try) 2>&5
33660 ac_status=$?
33661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662 (exit $ac_status); }; }; then
33663 wx_cv_size_t_is_ulong=no
33664else
33665 echo "$as_me: failed program was:" >&5
33666sed 's/^/| /' conftest.$ac_ext >&5
33667
33668wx_cv_size_t_is_ulong=yes
33669
33670fi
ac1cb8d3 33671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33672
33673fi
33674echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
33675echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
33676
33677 if test "$wx_cv_size_t_is_ulong" = "yes"; then
33678 cat >>confdefs.h <<\_ACEOF
33679#define wxSIZE_T_IS_ULONG 1
33680_ACEOF
33681
33682 fi
33683fi
33684
a848cd7e
SC
33685
33686echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
33687echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
33688if test "${wx_cv_struct_pw_gecos+set}" = set; then
33689 echo $ECHO_N "(cached) $ECHO_C" >&6
33690else
33691
33692 cat >conftest.$ac_ext <<_ACEOF
33693/* confdefs.h. */
33694_ACEOF
33695cat confdefs.h >>conftest.$ac_ext
33696cat >>conftest.$ac_ext <<_ACEOF
33697/* end confdefs.h. */
33698#include <pwd.h>
33699int
33700main ()
33701{
33702
33703 char *p;
33704 struct passwd *pw;
33705 p = pw->pw_gecos;
33706
33707 ;
33708 return 0;
33709}
33710_ACEOF
33711rm -f conftest.$ac_objext
33712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33713 (eval $ac_compile) 2>conftest.er1
a848cd7e 33714 ac_status=$?
ac1cb8d3
VS
33715 grep -v '^ *+' conftest.er1 >conftest.err
33716 rm -f conftest.er1
33717 cat conftest.err >&5
a848cd7e
SC
33718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719 (exit $ac_status); } &&
c9a66001 33720 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33722 (eval $ac_try) 2>&5
33723 ac_status=$?
33724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725 (exit $ac_status); }; } &&
33726 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33728 (eval $ac_try) 2>&5
33729 ac_status=$?
33730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33731 (exit $ac_status); }; }; then
33732
33733 wx_cv_struct_pw_gecos=yes
33734
33735else
33736 echo "$as_me: failed program was:" >&5
33737sed 's/^/| /' conftest.$ac_ext >&5
33738
33739
33740 wx_cv_struct_pw_gecos=no
33741
33742
33743fi
ac1cb8d3 33744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33745
33746
33747fi
33748echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
33749echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
33750
33751if test "$wx_cv_struct_pw_gecos" = "yes"; then
33752 cat >>confdefs.h <<\_ACEOF
33753#define HAVE_PW_GECOS 1
33754_ACEOF
33755
33756fi
33757
33758
47a7e797 33759if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
33760 cat >>confdefs.h <<\_ACEOF
33761#define wxUSE_WCHAR_T 1
33762_ACEOF
33763
33764
33765 WCSLEN_FOUND=0
33766 WCHAR_LINK=
33767
33768for ac_func in wcslen
33769do
33770as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33771echo "$as_me:$LINENO: checking for $ac_func" >&5
33772echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33773if eval "test \"\${$as_ac_var+set}\" = set"; then
33774 echo $ECHO_N "(cached) $ECHO_C" >&6
33775else
33776 cat >conftest.$ac_ext <<_ACEOF
33777/* confdefs.h. */
33778_ACEOF
33779cat confdefs.h >>conftest.$ac_ext
33780cat >>conftest.$ac_ext <<_ACEOF
33781/* end confdefs.h. */
ac1cb8d3
VS
33782/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33784#define $ac_func innocuous_$ac_func
33785
a848cd7e
SC
33786/* System header to define __stub macros and hopefully few prototypes,
33787 which can conflict with char $ac_func (); below.
33788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33789 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33790
a848cd7e
SC
33791#ifdef __STDC__
33792# include <limits.h>
33793#else
33794# include <assert.h>
33795#endif
ac1cb8d3
VS
33796
33797#undef $ac_func
33798
a848cd7e
SC
33799/* Override any gcc2 internal prototype to avoid an error. */
33800#ifdef __cplusplus
33801extern "C"
33802{
33803#endif
33804/* We use char because int might match the return type of a gcc2
33805 builtin and then its argument prototype would still apply. */
33806char $ac_func ();
33807/* The GNU C library defines this for functions which it implements
33808 to always fail with ENOSYS. Some functions are actually named
33809 something starting with __ and the normal name is an alias. */
33810#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33811choke me
33812#else
33813char (*f) () = $ac_func;
33814#endif
33815#ifdef __cplusplus
33816}
33817#endif
33818
33819int
33820main ()
33821{
33822return f != $ac_func;
33823 ;
33824 return 0;
33825}
33826_ACEOF
33827rm -f conftest.$ac_objext conftest$ac_exeext
33828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33829 (eval $ac_link) 2>conftest.er1
a848cd7e 33830 ac_status=$?
ac1cb8d3
VS
33831 grep -v '^ *+' conftest.er1 >conftest.err
33832 rm -f conftest.er1
33833 cat conftest.err >&5
a848cd7e
SC
33834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33835 (exit $ac_status); } &&
c9a66001 33836 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33838 (eval $ac_try) 2>&5
33839 ac_status=$?
33840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33841 (exit $ac_status); }; } &&
33842 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33844 (eval $ac_try) 2>&5
33845 ac_status=$?
33846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33847 (exit $ac_status); }; }; then
33848 eval "$as_ac_var=yes"
33849else
33850 echo "$as_me: failed program was:" >&5
33851sed 's/^/| /' conftest.$ac_ext >&5
33852
33853eval "$as_ac_var=no"
33854fi
ac1cb8d3
VS
33855rm -f conftest.err conftest.$ac_objext \
33856 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33857fi
33858echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33859echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33860if test `eval echo '${'$as_ac_var'}'` = yes; then
33861 cat >>confdefs.h <<_ACEOF
33862#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33863_ACEOF
33864 WCSLEN_FOUND=1
33865fi
33866done
33867
33868
33869 if test "$WCSLEN_FOUND" = 0; then
33870 if test "$TOOLKIT" = "MSW"; then
33871 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
33872echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
33873if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
33874 echo $ECHO_N "(cached) $ECHO_C" >&6
33875else
33876 ac_check_lib_save_LIBS=$LIBS
33877LIBS="-lmsvcrt $LIBS"
33878cat >conftest.$ac_ext <<_ACEOF
33879/* confdefs.h. */
33880_ACEOF
33881cat confdefs.h >>conftest.$ac_ext
33882cat >>conftest.$ac_ext <<_ACEOF
33883/* end confdefs.h. */
33884
33885/* Override any gcc2 internal prototype to avoid an error. */
33886#ifdef __cplusplus
33887extern "C"
33888#endif
33889/* We use char because int might match the return type of a gcc2
33890 builtin and then its argument prototype would still apply. */
33891char wcslen ();
33892int
33893main ()
33894{
33895wcslen ();
33896 ;
33897 return 0;
33898}
33899_ACEOF
33900rm -f conftest.$ac_objext conftest$ac_exeext
33901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33902 (eval $ac_link) 2>conftest.er1
a848cd7e 33903 ac_status=$?
ac1cb8d3
VS
33904 grep -v '^ *+' conftest.er1 >conftest.err
33905 rm -f conftest.er1
33906 cat conftest.err >&5
a848cd7e
SC
33907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33908 (exit $ac_status); } &&
c9a66001 33909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33911 (eval $ac_try) 2>&5
33912 ac_status=$?
33913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33914 (exit $ac_status); }; } &&
33915 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33917 (eval $ac_try) 2>&5
33918 ac_status=$?
33919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33920 (exit $ac_status); }; }; then
33921 ac_cv_lib_msvcrt_wcslen=yes
33922else
33923 echo "$as_me: failed program was:" >&5
33924sed 's/^/| /' conftest.$ac_ext >&5
33925
33926ac_cv_lib_msvcrt_wcslen=no
33927fi
ac1cb8d3
VS
33928rm -f conftest.err conftest.$ac_objext \
33929 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33930LIBS=$ac_check_lib_save_LIBS
33931fi
33932echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
33933echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
33934if test $ac_cv_lib_msvcrt_wcslen = yes; then
33935 WCHAR_OK=1
33936fi
33937
33938 else
33939 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
33940echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
33941if test "${ac_cv_lib_w_wcslen+set}" = set; then
33942 echo $ECHO_N "(cached) $ECHO_C" >&6
33943else
33944 ac_check_lib_save_LIBS=$LIBS
33945LIBS="-lw $LIBS"
33946cat >conftest.$ac_ext <<_ACEOF
33947/* confdefs.h. */
33948_ACEOF
33949cat confdefs.h >>conftest.$ac_ext
33950cat >>conftest.$ac_ext <<_ACEOF
33951/* end confdefs.h. */
33952
33953/* Override any gcc2 internal prototype to avoid an error. */
33954#ifdef __cplusplus
33955extern "C"
33956#endif
33957/* We use char because int might match the return type of a gcc2
33958 builtin and then its argument prototype would still apply. */
33959char wcslen ();
33960int
33961main ()
33962{
33963wcslen ();
33964 ;
33965 return 0;
33966}
33967_ACEOF
33968rm -f conftest.$ac_objext conftest$ac_exeext
33969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33970 (eval $ac_link) 2>conftest.er1
a848cd7e 33971 ac_status=$?
ac1cb8d3
VS
33972 grep -v '^ *+' conftest.er1 >conftest.err
33973 rm -f conftest.er1
33974 cat conftest.err >&5
a848cd7e
SC
33975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33976 (exit $ac_status); } &&
c9a66001 33977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33979 (eval $ac_try) 2>&5
33980 ac_status=$?
33981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33982 (exit $ac_status); }; } &&
33983 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33985 (eval $ac_try) 2>&5
33986 ac_status=$?
33987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33988 (exit $ac_status); }; }; then
33989 ac_cv_lib_w_wcslen=yes
33990else
33991 echo "$as_me: failed program was:" >&5
33992sed 's/^/| /' conftest.$ac_ext >&5
33993
33994ac_cv_lib_w_wcslen=no
33995fi
ac1cb8d3
VS
33996rm -f conftest.err conftest.$ac_objext \
33997 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33998LIBS=$ac_check_lib_save_LIBS
33999fi
34000echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34001echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
34002if test $ac_cv_lib_w_wcslen = yes; then
34003
34004 WCHAR_LINK=" -lw"
34005 WCSLEN_FOUND=1
34006
34007fi
34008
34009 fi
34010 fi
34011
34012 if test "$WCSLEN_FOUND" = 1; then
34013 cat >>confdefs.h <<\_ACEOF
34014#define HAVE_WCSLEN 1
34015_ACEOF
34016
34017 fi
34018
efdf6afe 34019 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 34020 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
34021 fi
34022
efdf6afe
VZ
34023 echo "$as_me:$LINENO: checking for mbstate_t" >&5
34024echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
34025if test "${ac_cv_type_mbstate_t+set}" = set; then
34026 echo $ECHO_N "(cached) $ECHO_C" >&6
34027else
34028 cat >conftest.$ac_ext <<_ACEOF
34029/* confdefs.h. */
34030_ACEOF
34031cat confdefs.h >>conftest.$ac_ext
34032cat >>conftest.$ac_ext <<_ACEOF
34033/* end confdefs.h. */
34034#include <wchar.h>
34035
34036int
34037main ()
34038{
34039if ((mbstate_t *) 0)
34040 return 0;
34041if (sizeof (mbstate_t))
34042 return 0;
34043 ;
34044 return 0;
34045}
34046_ACEOF
34047rm -f conftest.$ac_objext
34048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34049 (eval $ac_compile) 2>conftest.er1
34050 ac_status=$?
34051 grep -v '^ *+' conftest.er1 >conftest.err
34052 rm -f conftest.er1
34053 cat conftest.err >&5
34054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34055 (exit $ac_status); } &&
c9a66001 34056 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
34057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34058 (eval $ac_try) 2>&5
34059 ac_status=$?
34060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34061 (exit $ac_status); }; } &&
34062 { ac_try='test -s conftest.$ac_objext'
34063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34064 (eval $ac_try) 2>&5
34065 ac_status=$?
34066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34067 (exit $ac_status); }; }; then
34068 ac_cv_type_mbstate_t=yes
34069else
34070 echo "$as_me: failed program was:" >&5
34071sed 's/^/| /' conftest.$ac_ext >&5
34072
34073ac_cv_type_mbstate_t=no
34074fi
34075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34076fi
34077echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34078echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34079if test $ac_cv_type_mbstate_t = yes; then
34080
34081cat >>confdefs.h <<_ACEOF
34082#define HAVE_MBSTATE_T 1
34083_ACEOF
34084
a848cd7e
SC
34085
34086for ac_func in wcsrtombs
34087do
34088as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34089echo "$as_me:$LINENO: checking for $ac_func" >&5
34090echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34091if eval "test \"\${$as_ac_var+set}\" = set"; then
34092 echo $ECHO_N "(cached) $ECHO_C" >&6
34093else
34094 cat >conftest.$ac_ext <<_ACEOF
34095/* confdefs.h. */
34096_ACEOF
34097cat confdefs.h >>conftest.$ac_ext
34098cat >>conftest.$ac_ext <<_ACEOF
34099/* end confdefs.h. */
ac1cb8d3
VS
34100/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34102#define $ac_func innocuous_$ac_func
34103
a848cd7e
SC
34104/* System header to define __stub macros and hopefully few prototypes,
34105 which can conflict with char $ac_func (); below.
34106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34107 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34108
a848cd7e
SC
34109#ifdef __STDC__
34110# include <limits.h>
34111#else
34112# include <assert.h>
34113#endif
ac1cb8d3
VS
34114
34115#undef $ac_func
34116
a848cd7e
SC
34117/* Override any gcc2 internal prototype to avoid an error. */
34118#ifdef __cplusplus
34119extern "C"
34120{
34121#endif
34122/* We use char because int might match the return type of a gcc2
34123 builtin and then its argument prototype would still apply. */
34124char $ac_func ();
34125/* The GNU C library defines this for functions which it implements
34126 to always fail with ENOSYS. Some functions are actually named
34127 something starting with __ and the normal name is an alias. */
34128#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34129choke me
34130#else
34131char (*f) () = $ac_func;
34132#endif
34133#ifdef __cplusplus
34134}
34135#endif
34136
34137int
34138main ()
34139{
34140return f != $ac_func;
34141 ;
34142 return 0;
34143}
34144_ACEOF
34145rm -f conftest.$ac_objext conftest$ac_exeext
34146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34147 (eval $ac_link) 2>conftest.er1
a848cd7e 34148 ac_status=$?
ac1cb8d3
VS
34149 grep -v '^ *+' conftest.er1 >conftest.err
34150 rm -f conftest.er1
34151 cat conftest.err >&5
a848cd7e
SC
34152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34153 (exit $ac_status); } &&
c9a66001 34154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34156 (eval $ac_try) 2>&5
34157 ac_status=$?
34158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34159 (exit $ac_status); }; } &&
34160 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34162 (eval $ac_try) 2>&5
34163 ac_status=$?
34164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34165 (exit $ac_status); }; }; then
34166 eval "$as_ac_var=yes"
34167else
34168 echo "$as_me: failed program was:" >&5
34169sed 's/^/| /' conftest.$ac_ext >&5
34170
34171eval "$as_ac_var=no"
34172fi
ac1cb8d3
VS
34173rm -f conftest.err conftest.$ac_objext \
34174 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34175fi
34176echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34177echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34178if test `eval echo '${'$as_ac_var'}'` = yes; then
34179 cat >>confdefs.h <<_ACEOF
34180#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34181_ACEOF
34182
34183fi
34184done
34185
efdf6afe
VZ
34186fi
34187
a848cd7e
SC
34188else
34189 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34190echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34191fi
34192
a848cd7e 34193
4a767dd5
VZ
34194
34195for ac_func in snprintf vsnprintf
a848cd7e
SC
34196do
34197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34198echo "$as_me:$LINENO: checking for $ac_func" >&5
34199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34200if eval "test \"\${$as_ac_var+set}\" = set"; then
34201 echo $ECHO_N "(cached) $ECHO_C" >&6
34202else
34203 cat >conftest.$ac_ext <<_ACEOF
34204/* confdefs.h. */
34205_ACEOF
34206cat confdefs.h >>conftest.$ac_ext
34207cat >>conftest.$ac_ext <<_ACEOF
34208/* end confdefs.h. */
ac1cb8d3
VS
34209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34211#define $ac_func innocuous_$ac_func
34212
a848cd7e
SC
34213/* System header to define __stub macros and hopefully few prototypes,
34214 which can conflict with char $ac_func (); below.
34215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34216 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34217
a848cd7e
SC
34218#ifdef __STDC__
34219# include <limits.h>
34220#else
34221# include <assert.h>
34222#endif
ac1cb8d3
VS
34223
34224#undef $ac_func
34225
a848cd7e
SC
34226/* Override any gcc2 internal prototype to avoid an error. */
34227#ifdef __cplusplus
34228extern "C"
34229{
34230#endif
34231/* We use char because int might match the return type of a gcc2
34232 builtin and then its argument prototype would still apply. */
34233char $ac_func ();
34234/* The GNU C library defines this for functions which it implements
34235 to always fail with ENOSYS. Some functions are actually named
34236 something starting with __ and the normal name is an alias. */
34237#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34238choke me
34239#else
34240char (*f) () = $ac_func;
34241#endif
34242#ifdef __cplusplus
34243}
34244#endif
34245
34246int
34247main ()
34248{
34249return f != $ac_func;
34250 ;
34251 return 0;
34252}
34253_ACEOF
34254rm -f conftest.$ac_objext conftest$ac_exeext
34255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34256 (eval $ac_link) 2>conftest.er1
a848cd7e 34257 ac_status=$?
ac1cb8d3
VS
34258 grep -v '^ *+' conftest.er1 >conftest.err
34259 rm -f conftest.er1
34260 cat conftest.err >&5
a848cd7e
SC
34261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34262 (exit $ac_status); } &&
c9a66001 34263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34265 (eval $ac_try) 2>&5
34266 ac_status=$?
34267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34268 (exit $ac_status); }; } &&
34269 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34271 (eval $ac_try) 2>&5
34272 ac_status=$?
34273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34274 (exit $ac_status); }; }; then
34275 eval "$as_ac_var=yes"
34276else
34277 echo "$as_me: failed program was:" >&5
34278sed 's/^/| /' conftest.$ac_ext >&5
34279
34280eval "$as_ac_var=no"
34281fi
ac1cb8d3
VS
34282rm -f conftest.err conftest.$ac_objext \
34283 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34284fi
34285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34286echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34287if test `eval echo '${'$as_ac_var'}'` = yes; then
34288 cat >>confdefs.h <<_ACEOF
34289#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34290_ACEOF
34291
34292fi
34293done
34294
34295
34296if test "$ac_cv_func_vsnprintf" = "yes"; then
34297 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34298echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
34299if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34300 echo $ECHO_N "(cached) $ECHO_C" >&6
34301else
34302
efdf6afe 34303 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
34304/* confdefs.h. */
34305_ACEOF
34306cat confdefs.h >>conftest.$ac_ext
34307cat >>conftest.$ac_ext <<_ACEOF
34308/* end confdefs.h. */
34309
34310 #include <stdio.h>
34311 #include <stdarg.h>
efdf6afe
VZ
34312 #ifdef __MSL__
34313 #if __MSL__ >= 0x6000
34314 namespace std {}
34315 using namespace std;
34316 #endif
34317 #endif
a848cd7e
SC
34318
34319int
34320main ()
34321{
34322
34323 char *buf;
34324 va_list ap;
62fa8b3a 34325 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
34326
34327 ;
34328 return 0;
34329}
34330_ACEOF
34331rm -f conftest.$ac_objext
34332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34333 (eval $ac_compile) 2>conftest.er1
34334 ac_status=$?
34335 grep -v '^ *+' conftest.er1 >conftest.err
34336 rm -f conftest.er1
34337 cat conftest.err >&5
34338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34339 (exit $ac_status); } &&
c9a66001 34340 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
34341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34342 (eval $ac_try) 2>&5
34343 ac_status=$?
34344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34345 (exit $ac_status); }; } &&
34346 { ac_try='test -s conftest.$ac_objext'
34347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34348 (eval $ac_try) 2>&5
34349 ac_status=$?
34350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34351 (exit $ac_status); }; }; then
34352 wx_cv_func_vsnprintf_decl=yes
34353else
34354 echo "$as_me: failed program was:" >&5
34355sed 's/^/| /' conftest.$ac_ext >&5
34356
a848cd7e
SC
34357wx_cv_func_vsnprintf_decl=no
34358
34359fi
ac1cb8d3 34360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34361
34362
34363fi
34364echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34365echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
34366
34367 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34368 cat >>confdefs.h <<\_ACEOF
34369#define HAVE_VSNPRINTF_DECL 1
34370_ACEOF
34371
62fa8b3a
MW
34372
34373 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34374echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
34375if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34376 echo $ECHO_N "(cached) $ECHO_C" >&6
34377else
34378
34379 cat >conftest.$ac_ext <<_ACEOF
34380/* confdefs.h. */
34381_ACEOF
34382cat confdefs.h >>conftest.$ac_ext
34383cat >>conftest.$ac_ext <<_ACEOF
34384/* end confdefs.h. */
34385
34386 #include <stdio.h>
34387 #include <stdarg.h>
34388 #ifdef __MSL__
34389 #if __MSL__ >= 0x6000
34390 namespace std {}
34391 using namespace std;
34392 #endif
34393 #endif
34394
34395int
34396main ()
34397{
34398
34399 char *buf;
34400 va_list ap;
34401 const char *fmt = "%s";
34402 vsnprintf(buf, 10u, fmt, ap);
34403
34404 ;
34405 return 0;
34406}
34407_ACEOF
34408rm -f conftest.$ac_objext
34409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34410 (eval $ac_compile) 2>conftest.er1
34411 ac_status=$?
34412 grep -v '^ *+' conftest.er1 >conftest.err
34413 rm -f conftest.er1
34414 cat conftest.err >&5
34415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34416 (exit $ac_status); } &&
c9a66001 34417 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
34418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34419 (eval $ac_try) 2>&5
34420 ac_status=$?
34421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34422 (exit $ac_status); }; } &&
34423 { ac_try='test -s conftest.$ac_objext'
34424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34425 (eval $ac_try) 2>&5
34426 ac_status=$?
34427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34428 (exit $ac_status); }; }; then
34429 wx_cv_func_broken_vsnprintf_decl=no
34430else
34431 echo "$as_me: failed program was:" >&5
34432sed 's/^/| /' conftest.$ac_ext >&5
34433
34434wx_cv_func_broken_vsnprintf_decl=yes
34435
34436fi
34437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34438
34439
34440fi
34441echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
34442echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
34443
34444 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
34445 cat >>confdefs.h <<\_ACEOF
34446#define HAVE_BROKEN_VSNPRINTF_DECL 1
34447_ACEOF
34448
34449 fi
a848cd7e
SC
34450 fi
34451fi
34452
4a767dd5
VZ
34453if test "$ac_cv_func_snprintf" = "yes"; then
34454 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
34455echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
34456if test "${wx_cv_func_snprintf_decl+set}" = set; then
34457 echo $ECHO_N "(cached) $ECHO_C" >&6
34458else
34459
34460 cat >conftest.$ac_ext <<_ACEOF
34461/* confdefs.h. */
34462_ACEOF
34463cat confdefs.h >>conftest.$ac_ext
34464cat >>conftest.$ac_ext <<_ACEOF
34465/* end confdefs.h. */
34466
34467 #include <stdio.h>
34468 #include <stdarg.h>
34469 #ifdef __MSL__
34470 #if __MSL__ >= 0x6000
34471 namespace std {}
34472 using namespace std;
34473 #endif
34474 #endif
34475
34476int
34477main ()
34478{
34479
34480 char *buf;
62fa8b3a 34481 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
34482
34483 ;
34484 return 0;
34485}
34486_ACEOF
34487rm -f conftest.$ac_objext
34488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34489 (eval $ac_compile) 2>conftest.er1
34490 ac_status=$?
34491 grep -v '^ *+' conftest.er1 >conftest.err
34492 rm -f conftest.er1
34493 cat conftest.err >&5
34494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34495 (exit $ac_status); } &&
c9a66001 34496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
34497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34498 (eval $ac_try) 2>&5
34499 ac_status=$?
34500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34501 (exit $ac_status); }; } &&
34502 { ac_try='test -s conftest.$ac_objext'
34503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34504 (eval $ac_try) 2>&5
34505 ac_status=$?
34506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34507 (exit $ac_status); }; }; then
34508 wx_cv_func_snprintf_decl=yes
34509else
34510 echo "$as_me: failed program was:" >&5
34511sed 's/^/| /' conftest.$ac_ext >&5
34512
34513wx_cv_func_snprintf_decl=no
34514
34515fi
34516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34517
34518
34519fi
34520echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
34521echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
34522
34523 if test "$wx_cv_func_snprintf_decl" = "yes"; then
34524 cat >>confdefs.h <<\_ACEOF
34525#define HAVE_SNPRINTF_DECL 1
34526_ACEOF
34527
62fa8b3a
MW
34528
34529 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
34530echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
34531if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
34532 echo $ECHO_N "(cached) $ECHO_C" >&6
34533else
34534
34535 cat >conftest.$ac_ext <<_ACEOF
34536/* confdefs.h. */
34537_ACEOF
34538cat confdefs.h >>conftest.$ac_ext
34539cat >>conftest.$ac_ext <<_ACEOF
34540/* end confdefs.h. */
34541
34542 #include <stdio.h>
34543 #include <stdarg.h>
34544 #ifdef __MSL__
34545 #if __MSL__ >= 0x6000
34546 namespace std {}
34547 using namespace std;
34548 #endif
34549 #endif
34550
34551int
34552main ()
34553{
34554
34555 char *buf;
34556 const char *fmt = "%s";
34557 snprintf(buf, 10u, fmt, "wx");
34558
34559 ;
34560 return 0;
34561}
34562_ACEOF
34563rm -f conftest.$ac_objext
34564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34565 (eval $ac_compile) 2>conftest.er1
34566 ac_status=$?
34567 grep -v '^ *+' conftest.er1 >conftest.err
34568 rm -f conftest.er1
34569 cat conftest.err >&5
34570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34571 (exit $ac_status); } &&
c9a66001 34572 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
34573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34574 (eval $ac_try) 2>&5
34575 ac_status=$?
34576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34577 (exit $ac_status); }; } &&
34578 { ac_try='test -s conftest.$ac_objext'
34579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34580 (eval $ac_try) 2>&5
34581 ac_status=$?
34582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34583 (exit $ac_status); }; }; then
34584 wx_cv_func_broken_snprintf_decl=no
34585else
34586 echo "$as_me: failed program was:" >&5
34587sed 's/^/| /' conftest.$ac_ext >&5
34588
34589wx_cv_func_broken_snprintf_decl=yes
34590
34591fi
34592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34593
34594
34595fi
34596echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
34597echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
34598
34599 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
34600 cat >>confdefs.h <<\_ACEOF
34601#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
34602_ACEOF
34603
34604 fi
34605 fi
34606
34607 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
34608
34609 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
34610echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
34611if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
34612 echo $ECHO_N "(cached) $ECHO_C" >&6
34613else
34614
34615 if test "$cross_compiling" = yes; then
34616 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34617See \`config.log' for more details." >&5
34618echo "$as_me: error: cannot run test program while cross compiling
34619See \`config.log' for more details." >&2;}
34620 { (exit 1); exit 1; }; }
34621else
34622 cat >conftest.$ac_ext <<_ACEOF
34623/* confdefs.h. */
34624_ACEOF
34625cat confdefs.h >>conftest.$ac_ext
34626cat >>conftest.$ac_ext <<_ACEOF
34627/* end confdefs.h. */
34628
34629 #include <stdio.h>
34630
34631 int main (void)
34632 {
34633 char buffer[128];
34634 snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
34635 if (strcmp ("2 3 1", buffer) == 0)
34636 exit (0);
34637 exit (1);
34638 }
34639
34640_ACEOF
34641rm -f conftest$ac_exeext
34642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34643 (eval $ac_link) 2>&5
34644 ac_status=$?
34645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34648 (eval $ac_try) 2>&5
34649 ac_status=$?
34650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34651 (exit $ac_status); }; }; then
34652 wx_cv_func_snprintf_pos_params=no
34653else
34654 echo "$as_me: program exited with status $ac_status" >&5
34655echo "$as_me: failed program was:" >&5
34656sed 's/^/| /' conftest.$ac_ext >&5
34657
34658( exit $ac_status )
34659wx_cv_func_snprintf_pos_params=yes
34660
34661fi
34662rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34663fi
34664
34665
34666fi
34667echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
34668echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
34669
34670 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
34671 cat >>confdefs.h <<\_ACEOF
34672#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
34673_ACEOF
34674
34675 fi
4a767dd5
VZ
34676 fi
34677fi
34678
8b6682b9 34679
a848cd7e
SC
34680if test "$wxUSE_UNICODE" = yes; then
34681
34682
34683
fbe47c7b
VS
34684
34685
34686
34687for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
34688do
34689as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34690echo "$as_me:$LINENO: checking for $ac_func" >&5
34691echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34692if eval "test \"\${$as_ac_var+set}\" = set"; then
34693 echo $ECHO_N "(cached) $ECHO_C" >&6
34694else
34695 cat >conftest.$ac_ext <<_ACEOF
34696/* confdefs.h. */
34697_ACEOF
34698cat confdefs.h >>conftest.$ac_ext
34699cat >>conftest.$ac_ext <<_ACEOF
34700/* end confdefs.h. */
ac1cb8d3
VS
34701/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34703#define $ac_func innocuous_$ac_func
34704
a848cd7e
SC
34705/* System header to define __stub macros and hopefully few prototypes,
34706 which can conflict with char $ac_func (); below.
34707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34708 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34709
a848cd7e
SC
34710#ifdef __STDC__
34711# include <limits.h>
34712#else
34713# include <assert.h>
34714#endif
ac1cb8d3
VS
34715
34716#undef $ac_func
34717
a848cd7e
SC
34718/* Override any gcc2 internal prototype to avoid an error. */
34719#ifdef __cplusplus
34720extern "C"
34721{
34722#endif
34723/* We use char because int might match the return type of a gcc2
34724 builtin and then its argument prototype would still apply. */
34725char $ac_func ();
34726/* The GNU C library defines this for functions which it implements
34727 to always fail with ENOSYS. Some functions are actually named
34728 something starting with __ and the normal name is an alias. */
34729#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34730choke me
34731#else
34732char (*f) () = $ac_func;
34733#endif
34734#ifdef __cplusplus
34735}
34736#endif
34737
34738int
34739main ()
34740{
34741return f != $ac_func;
34742 ;
34743 return 0;
34744}
34745_ACEOF
34746rm -f conftest.$ac_objext conftest$ac_exeext
34747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34748 (eval $ac_link) 2>conftest.er1
a848cd7e 34749 ac_status=$?
ac1cb8d3
VS
34750 grep -v '^ *+' conftest.er1 >conftest.err
34751 rm -f conftest.er1
34752 cat conftest.err >&5
a848cd7e
SC
34753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34754 (exit $ac_status); } &&
c9a66001 34755 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34757 (eval $ac_try) 2>&5
34758 ac_status=$?
34759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34760 (exit $ac_status); }; } &&
34761 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34763 (eval $ac_try) 2>&5
34764 ac_status=$?
34765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766 (exit $ac_status); }; }; then
34767 eval "$as_ac_var=yes"
34768else
34769 echo "$as_me: failed program was:" >&5
34770sed 's/^/| /' conftest.$ac_ext >&5
34771
34772eval "$as_ac_var=no"
34773fi
ac1cb8d3
VS
34774rm -f conftest.err conftest.$ac_objext \
34775 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34776fi
34777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34778echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34779if test `eval echo '${'$as_ac_var'}'` = yes; then
34780 cat >>confdefs.h <<_ACEOF
34781#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34782_ACEOF
34783
34784fi
34785done
34786
34787
34788 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
34789echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
34790 cat >conftest.$ac_ext <<_ACEOF
34791/* confdefs.h. */
34792_ACEOF
34793cat confdefs.h >>conftest.$ac_ext
34794cat >>conftest.$ac_ext <<_ACEOF
34795/* end confdefs.h. */
34796#include <wchar.h>
34797int
34798main ()
34799{
34800&_vsnwprintf;
34801 ;
34802 return 0;
34803}
34804_ACEOF
34805rm -f conftest.$ac_objext
34806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34807 (eval $ac_compile) 2>conftest.er1
a848cd7e 34808 ac_status=$?
ac1cb8d3
VS
34809 grep -v '^ *+' conftest.er1 >conftest.err
34810 rm -f conftest.er1
34811 cat conftest.err >&5
a848cd7e
SC
34812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34813 (exit $ac_status); } &&
c9a66001 34814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34816 (eval $ac_try) 2>&5
34817 ac_status=$?
34818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34819 (exit $ac_status); }; } &&
34820 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34822 (eval $ac_try) 2>&5
34823 ac_status=$?
34824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34825 (exit $ac_status); }; }; then
34826 echo "$as_me:$LINENO: result: yes" >&5
34827echo "${ECHO_T}yes" >&6
34828 cat >>confdefs.h <<\_ACEOF
34829#define HAVE__VSNWPRINTF 1
34830_ACEOF
34831
34832else
34833 echo "$as_me: failed program was:" >&5
34834sed 's/^/| /' conftest.$ac_ext >&5
34835
34836echo "$as_me:$LINENO: result: no" >&5
34837echo "${ECHO_T}no" >&6
34838fi
ac1cb8d3 34839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
34840fi
34841
6ebeb4c7
VZ
34842if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
34843
34844for ac_func in fnmatch
34845do
34846as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34847echo "$as_me:$LINENO: checking for $ac_func" >&5
34848echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34849if eval "test \"\${$as_ac_var+set}\" = set"; then
34850 echo $ECHO_N "(cached) $ECHO_C" >&6
34851else
34852 cat >conftest.$ac_ext <<_ACEOF
34853/* confdefs.h. */
34854_ACEOF
34855cat confdefs.h >>conftest.$ac_ext
34856cat >>conftest.$ac_ext <<_ACEOF
34857/* end confdefs.h. */
34858/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34860#define $ac_func innocuous_$ac_func
34861
34862/* System header to define __stub macros and hopefully few prototypes,
34863 which can conflict with char $ac_func (); below.
34864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34865 <limits.h> exists even on freestanding compilers. */
34866
34867#ifdef __STDC__
34868# include <limits.h>
34869#else
34870# include <assert.h>
34871#endif
34872
34873#undef $ac_func
34874
34875/* Override any gcc2 internal prototype to avoid an error. */
34876#ifdef __cplusplus
34877extern "C"
34878{
34879#endif
34880/* We use char because int might match the return type of a gcc2
34881 builtin and then its argument prototype would still apply. */
34882char $ac_func ();
34883/* The GNU C library defines this for functions which it implements
34884 to always fail with ENOSYS. Some functions are actually named
34885 something starting with __ and the normal name is an alias. */
34886#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34887choke me
34888#else
34889char (*f) () = $ac_func;
34890#endif
34891#ifdef __cplusplus
34892}
34893#endif
34894
34895int
34896main ()
34897{
34898return f != $ac_func;
34899 ;
34900 return 0;
34901}
34902_ACEOF
34903rm -f conftest.$ac_objext conftest$ac_exeext
34904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34905 (eval $ac_link) 2>conftest.er1
34906 ac_status=$?
34907 grep -v '^ *+' conftest.er1 >conftest.err
34908 rm -f conftest.er1
34909 cat conftest.err >&5
34910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34911 (exit $ac_status); } &&
c9a66001 34912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
34913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34914 (eval $ac_try) 2>&5
34915 ac_status=$?
34916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34917 (exit $ac_status); }; } &&
34918 { ac_try='test -s conftest$ac_exeext'
34919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34920 (eval $ac_try) 2>&5
34921 ac_status=$?
34922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34923 (exit $ac_status); }; }; then
34924 eval "$as_ac_var=yes"
34925else
34926 echo "$as_me: failed program was:" >&5
34927sed 's/^/| /' conftest.$ac_ext >&5
34928
34929eval "$as_ac_var=no"
34930fi
34931rm -f conftest.err conftest.$ac_objext \
34932 conftest$ac_exeext conftest.$ac_ext
34933fi
34934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34935echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34936if test `eval echo '${'$as_ac_var'}'` = yes; then
34937 cat >>confdefs.h <<_ACEOF
34938#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34939_ACEOF
34940
34941fi
34942done
34943
34944fi
34945
34946if test "$wxUSE_FILE" = "yes"; then
34947
34948for ac_func in fsync
34949do
34950as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34951echo "$as_me:$LINENO: checking for $ac_func" >&5
34952echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34953if eval "test \"\${$as_ac_var+set}\" = set"; then
34954 echo $ECHO_N "(cached) $ECHO_C" >&6
34955else
34956 cat >conftest.$ac_ext <<_ACEOF
34957/* confdefs.h. */
34958_ACEOF
34959cat confdefs.h >>conftest.$ac_ext
34960cat >>conftest.$ac_ext <<_ACEOF
34961/* end confdefs.h. */
34962/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34964#define $ac_func innocuous_$ac_func
34965
34966/* System header to define __stub macros and hopefully few prototypes,
34967 which can conflict with char $ac_func (); below.
34968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34969 <limits.h> exists even on freestanding compilers. */
34970
34971#ifdef __STDC__
34972# include <limits.h>
34973#else
34974# include <assert.h>
34975#endif
34976
34977#undef $ac_func
34978
34979/* Override any gcc2 internal prototype to avoid an error. */
34980#ifdef __cplusplus
34981extern "C"
34982{
34983#endif
34984/* We use char because int might match the return type of a gcc2
34985 builtin and then its argument prototype would still apply. */
34986char $ac_func ();
34987/* The GNU C library defines this for functions which it implements
34988 to always fail with ENOSYS. Some functions are actually named
34989 something starting with __ and the normal name is an alias. */
34990#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34991choke me
34992#else
34993char (*f) () = $ac_func;
34994#endif
34995#ifdef __cplusplus
34996}
34997#endif
34998
34999int
35000main ()
35001{
35002return f != $ac_func;
35003 ;
35004 return 0;
35005}
35006_ACEOF
35007rm -f conftest.$ac_objext conftest$ac_exeext
35008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35009 (eval $ac_link) 2>conftest.er1
35010 ac_status=$?
35011 grep -v '^ *+' conftest.er1 >conftest.err
35012 rm -f conftest.er1
35013 cat conftest.err >&5
35014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35015 (exit $ac_status); } &&
c9a66001 35016 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
35017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35018 (eval $ac_try) 2>&5
35019 ac_status=$?
35020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35021 (exit $ac_status); }; } &&
35022 { ac_try='test -s conftest$ac_exeext'
35023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35024 (eval $ac_try) 2>&5
35025 ac_status=$?
35026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35027 (exit $ac_status); }; }; then
35028 eval "$as_ac_var=yes"
35029else
35030 echo "$as_me: failed program was:" >&5
35031sed 's/^/| /' conftest.$ac_ext >&5
35032
35033eval "$as_ac_var=no"
35034fi
35035rm -f conftest.err conftest.$ac_objext \
35036 conftest$ac_exeext conftest.$ac_ext
35037fi
35038echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35039echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35040if test `eval echo '${'$as_ac_var'}'` = yes; then
35041 cat >>confdefs.h <<_ACEOF
35042#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35043_ACEOF
35044
35045fi
35046done
35047
35048fi
a848cd7e
SC
35049
35050
c2e9ada4
VZ
35051for ac_func in round
35052do
35053as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35054echo "$as_me:$LINENO: checking for $ac_func" >&5
35055echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35056if eval "test \"\${$as_ac_var+set}\" = set"; then
35057 echo $ECHO_N "(cached) $ECHO_C" >&6
35058else
35059 cat >conftest.$ac_ext <<_ACEOF
35060/* confdefs.h. */
35061_ACEOF
35062cat confdefs.h >>conftest.$ac_ext
35063cat >>conftest.$ac_ext <<_ACEOF
35064/* end confdefs.h. */
35065/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35067#define $ac_func innocuous_$ac_func
35068
35069/* System header to define __stub macros and hopefully few prototypes,
35070 which can conflict with char $ac_func (); below.
35071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35072 <limits.h> exists even on freestanding compilers. */
35073
35074#ifdef __STDC__
35075# include <limits.h>
35076#else
35077# include <assert.h>
35078#endif
35079
35080#undef $ac_func
35081
35082/* Override any gcc2 internal prototype to avoid an error. */
35083#ifdef __cplusplus
35084extern "C"
35085{
35086#endif
35087/* We use char because int might match the return type of a gcc2
35088 builtin and then its argument prototype would still apply. */
35089char $ac_func ();
35090/* The GNU C library defines this for functions which it implements
35091 to always fail with ENOSYS. Some functions are actually named
35092 something starting with __ and the normal name is an alias. */
35093#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35094choke me
35095#else
35096char (*f) () = $ac_func;
35097#endif
35098#ifdef __cplusplus
35099}
35100#endif
35101
35102int
35103main ()
35104{
35105return f != $ac_func;
35106 ;
35107 return 0;
35108}
35109_ACEOF
35110rm -f conftest.$ac_objext conftest$ac_exeext
35111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35112 (eval $ac_link) 2>conftest.er1
35113 ac_status=$?
35114 grep -v '^ *+' conftest.er1 >conftest.err
35115 rm -f conftest.er1
35116 cat conftest.err >&5
35117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35118 (exit $ac_status); } &&
35119 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35121 (eval $ac_try) 2>&5
35122 ac_status=$?
35123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35124 (exit $ac_status); }; } &&
35125 { ac_try='test -s conftest$ac_exeext'
35126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35127 (eval $ac_try) 2>&5
35128 ac_status=$?
35129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35130 (exit $ac_status); }; }; then
35131 eval "$as_ac_var=yes"
35132else
35133 echo "$as_me: failed program was:" >&5
35134sed 's/^/| /' conftest.$ac_ext >&5
35135
35136eval "$as_ac_var=no"
35137fi
35138rm -f conftest.err conftest.$ac_objext \
35139 conftest$ac_exeext conftest.$ac_ext
35140fi
35141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35142echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35143if test `eval echo '${'$as_ac_var'}'` = yes; then
35144 cat >>confdefs.h <<_ACEOF
35145#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35146_ACEOF
35147
35148fi
35149done
35150
35151if test "$ac_cv_func_round" = yes; then
35152 echo "$as_me:$LINENO: checking whether round is declared" >&5
35153echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6
35154if test "${ac_cv_have_decl_round+set}" = set; then
35155 echo $ECHO_N "(cached) $ECHO_C" >&6
35156else
35157 cat >conftest.$ac_ext <<_ACEOF
35158/* confdefs.h. */
35159_ACEOF
35160cat confdefs.h >>conftest.$ac_ext
35161cat >>conftest.$ac_ext <<_ACEOF
35162/* end confdefs.h. */
35163#include <math.h>
35164
35165int
35166main ()
35167{
35168#ifndef round
35169 char *p = (char *) round;
35170#endif
35171
35172 ;
35173 return 0;
35174}
35175_ACEOF
35176rm -f conftest.$ac_objext
35177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35178 (eval $ac_compile) 2>conftest.er1
35179 ac_status=$?
35180 grep -v '^ *+' conftest.er1 >conftest.err
35181 rm -f conftest.er1
35182 cat conftest.err >&5
35183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35184 (exit $ac_status); } &&
35185 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35187 (eval $ac_try) 2>&5
35188 ac_status=$?
35189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35190 (exit $ac_status); }; } &&
35191 { ac_try='test -s conftest.$ac_objext'
35192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35193 (eval $ac_try) 2>&5
35194 ac_status=$?
35195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35196 (exit $ac_status); }; }; then
35197 ac_cv_have_decl_round=yes
35198else
35199 echo "$as_me: failed program was:" >&5
35200sed 's/^/| /' conftest.$ac_ext >&5
35201
35202ac_cv_have_decl_round=no
35203fi
35204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35205fi
35206echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5
35207echo "${ECHO_T}$ac_cv_have_decl_round" >&6
35208if test $ac_cv_have_decl_round = yes; then
35209
35210cat >>confdefs.h <<_ACEOF
35211#define HAVE_DECL_ROUND 1
35212_ACEOF
35213
35214
35215else
35216 cat >>confdefs.h <<_ACEOF
35217#define HAVE_DECL_ROUND 0
35218_ACEOF
35219
35220
35221fi
35222
35223
35224fi
35225
35226
a848cd7e
SC
35227if test "$TOOLKIT" != "MSW"; then
35228
35229
a848cd7e
SC
35230
35231
35232
35233# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
35234if test "${with_libiconv_prefix+set}" = set; then
35235 withval="$with_libiconv_prefix"
35236
35237 for dir in `echo "$withval" | tr : ' '`; do
35238 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
35239 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
35240 done
35241
35242fi;
35243
35244 echo "$as_me:$LINENO: checking for iconv" >&5
35245echo $ECHO_N "checking for iconv... $ECHO_C" >&6
35246if test "${am_cv_func_iconv+set}" = set; then
35247 echo $ECHO_N "(cached) $ECHO_C" >&6
35248else
35249
35250 am_cv_func_iconv="no, consider installing GNU libiconv"
35251 am_cv_lib_iconv=no
35252 cat >conftest.$ac_ext <<_ACEOF
35253/* confdefs.h. */
35254_ACEOF
35255cat confdefs.h >>conftest.$ac_ext
35256cat >>conftest.$ac_ext <<_ACEOF
35257/* end confdefs.h. */
35258#include <stdlib.h>
35259#include <iconv.h>
35260int
35261main ()
35262{
35263iconv_t cd = iconv_open("","");
35264 iconv(cd,NULL,NULL,NULL,NULL);
35265 iconv_close(cd);
35266 ;
35267 return 0;
35268}
35269_ACEOF
35270rm -f conftest.$ac_objext conftest$ac_exeext
35271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35272 (eval $ac_link) 2>conftest.er1
a848cd7e 35273 ac_status=$?
ac1cb8d3
VS
35274 grep -v '^ *+' conftest.er1 >conftest.err
35275 rm -f conftest.er1
35276 cat conftest.err >&5
a848cd7e
SC
35277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35278 (exit $ac_status); } &&
c9a66001 35279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35281 (eval $ac_try) 2>&5
35282 ac_status=$?
35283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35284 (exit $ac_status); }; } &&
35285 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35287 (eval $ac_try) 2>&5
35288 ac_status=$?
35289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35290 (exit $ac_status); }; }; then
35291 am_cv_func_iconv=yes
35292else
35293 echo "$as_me: failed program was:" >&5
35294sed 's/^/| /' conftest.$ac_ext >&5
35295
35296fi
ac1cb8d3
VS
35297rm -f conftest.err conftest.$ac_objext \
35298 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35299 if test "$am_cv_func_iconv" != yes; then
35300 am_save_LIBS="$LIBS"
35301 LIBS="$LIBS -liconv"
35302 cat >conftest.$ac_ext <<_ACEOF
35303/* confdefs.h. */
35304_ACEOF
35305cat confdefs.h >>conftest.$ac_ext
35306cat >>conftest.$ac_ext <<_ACEOF
35307/* end confdefs.h. */
35308#include <stdlib.h>
35309#include <iconv.h>
35310int
35311main ()
35312{
35313iconv_t cd = iconv_open("","");
35314 iconv(cd,NULL,NULL,NULL,NULL);
35315 iconv_close(cd);
35316 ;
35317 return 0;
35318}
35319_ACEOF
35320rm -f conftest.$ac_objext conftest$ac_exeext
35321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35322 (eval $ac_link) 2>conftest.er1
a848cd7e 35323 ac_status=$?
ac1cb8d3
VS
35324 grep -v '^ *+' conftest.er1 >conftest.err
35325 rm -f conftest.er1
35326 cat conftest.err >&5
a848cd7e
SC
35327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35328 (exit $ac_status); } &&
c9a66001 35329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35331 (eval $ac_try) 2>&5
35332 ac_status=$?
35333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35334 (exit $ac_status); }; } &&
35335 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35337 (eval $ac_try) 2>&5
35338 ac_status=$?
35339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35340 (exit $ac_status); }; }; then
35341 am_cv_lib_iconv=yes
35342 am_cv_func_iconv=yes
35343else
35344 echo "$as_me: failed program was:" >&5
35345sed 's/^/| /' conftest.$ac_ext >&5
35346
35347fi
ac1cb8d3
VS
35348rm -f conftest.err conftest.$ac_objext \
35349 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35350 LIBS="$am_save_LIBS"
35351 fi
35352
35353fi
35354echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
35355echo "${ECHO_T}$am_cv_func_iconv" >&6
35356 if test "$am_cv_func_iconv" = yes; then
35357
35358cat >>confdefs.h <<\_ACEOF
35359#define HAVE_ICONV 1
35360_ACEOF
35361
35362 echo "$as_me:$LINENO: checking if iconv needs const" >&5
35363echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
35364if test "${wx_cv_func_iconv_const+set}" = set; then
35365 echo $ECHO_N "(cached) $ECHO_C" >&6
35366else
35367 cat >conftest.$ac_ext <<_ACEOF
35368/* confdefs.h. */
35369_ACEOF
35370cat confdefs.h >>conftest.$ac_ext
35371cat >>conftest.$ac_ext <<_ACEOF
35372/* end confdefs.h. */
35373
35374#include <stdlib.h>
35375#include <iconv.h>
35376extern
35377#ifdef __cplusplus
35378"C"
35379#endif
35380#if defined(__STDC__) || defined(__cplusplus)
35381size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
35382#else
35383size_t iconv();
35384#endif
35385
35386int
35387main ()
35388{
35389
35390 ;
35391 return 0;
35392}
35393_ACEOF
35394rm -f conftest.$ac_objext
35395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35396 (eval $ac_compile) 2>conftest.er1
a848cd7e 35397 ac_status=$?
ac1cb8d3
VS
35398 grep -v '^ *+' conftest.er1 >conftest.err
35399 rm -f conftest.er1
35400 cat conftest.err >&5
a848cd7e
SC
35401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35402 (exit $ac_status); } &&
c9a66001 35403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35405 (eval $ac_try) 2>&5
35406 ac_status=$?
35407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408 (exit $ac_status); }; } &&
35409 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35411 (eval $ac_try) 2>&5
35412 ac_status=$?
35413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35414 (exit $ac_status); }; }; then
35415 wx_cv_func_iconv_const="no"
35416else
35417 echo "$as_me: failed program was:" >&5
35418sed 's/^/| /' conftest.$ac_ext >&5
35419
35420wx_cv_func_iconv_const="yes"
35421
35422fi
ac1cb8d3 35423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35424
35425fi
35426echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
35427echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
35428
35429 iconv_const=
35430 if test "x$wx_cv_func_iconv_const" = "xyes"; then
35431 iconv_const="const"
35432 fi
35433
35434
35435cat >>confdefs.h <<_ACEOF
35436#define ICONV_CONST $iconv_const
35437_ACEOF
35438
35439 fi
35440 LIBICONV=
35441 if test "$am_cv_lib_iconv" = yes; then
35442 LIBICONV="-liconv"
35443 fi
35444
35445
35446LIBS="$LIBICONV $LIBS"
a848cd7e
SC
35447
35448if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
35449
35450for ac_func in sigaction
35451do
35452as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35453echo "$as_me:$LINENO: checking for $ac_func" >&5
35454echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35455if eval "test \"\${$as_ac_var+set}\" = set"; then
35456 echo $ECHO_N "(cached) $ECHO_C" >&6
35457else
35458 cat >conftest.$ac_ext <<_ACEOF
35459/* confdefs.h. */
35460_ACEOF
35461cat confdefs.h >>conftest.$ac_ext
35462cat >>conftest.$ac_ext <<_ACEOF
35463/* end confdefs.h. */
ac1cb8d3
VS
35464/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35466#define $ac_func innocuous_$ac_func
35467
a848cd7e
SC
35468/* System header to define __stub macros and hopefully few prototypes,
35469 which can conflict with char $ac_func (); below.
35470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35471 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35472
a848cd7e
SC
35473#ifdef __STDC__
35474# include <limits.h>
35475#else
35476# include <assert.h>
35477#endif
ac1cb8d3
VS
35478
35479#undef $ac_func
35480
a848cd7e
SC
35481/* Override any gcc2 internal prototype to avoid an error. */
35482#ifdef __cplusplus
35483extern "C"
35484{
35485#endif
35486/* We use char because int might match the return type of a gcc2
35487 builtin and then its argument prototype would still apply. */
35488char $ac_func ();
35489/* The GNU C library defines this for functions which it implements
35490 to always fail with ENOSYS. Some functions are actually named
35491 something starting with __ and the normal name is an alias. */
35492#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35493choke me
35494#else
35495char (*f) () = $ac_func;
35496#endif
35497#ifdef __cplusplus
35498}
35499#endif
35500
35501int
35502main ()
35503{
35504return f != $ac_func;
35505 ;
35506 return 0;
35507}
35508_ACEOF
35509rm -f conftest.$ac_objext conftest$ac_exeext
35510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35511 (eval $ac_link) 2>conftest.er1
a848cd7e 35512 ac_status=$?
ac1cb8d3
VS
35513 grep -v '^ *+' conftest.er1 >conftest.err
35514 rm -f conftest.er1
35515 cat conftest.err >&5
a848cd7e
SC
35516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35517 (exit $ac_status); } &&
c9a66001 35518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35520 (eval $ac_try) 2>&5
35521 ac_status=$?
35522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35523 (exit $ac_status); }; } &&
35524 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35526 (eval $ac_try) 2>&5
35527 ac_status=$?
35528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35529 (exit $ac_status); }; }; then
35530 eval "$as_ac_var=yes"
35531else
35532 echo "$as_me: failed program was:" >&5
35533sed 's/^/| /' conftest.$ac_ext >&5
35534
35535eval "$as_ac_var=no"
35536fi
ac1cb8d3
VS
35537rm -f conftest.err conftest.$ac_objext \
35538 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35539fi
35540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35541echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35542if test `eval echo '${'$as_ac_var'}'` = yes; then
35543 cat >>confdefs.h <<_ACEOF
35544#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35545_ACEOF
35546
35547fi
35548done
35549
35550
35551 if test "$ac_cv_func_sigaction" = "no"; then
35552 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
35553echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
35554 wxUSE_ON_FATAL_EXCEPTION=no
35555 fi
35556
35557 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
35558 echo "$as_me:$LINENO: checking for sa_handler type" >&5
35559echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
35560if test "${wx_cv_type_sa_handler+set}" = set; then
35561 echo $ECHO_N "(cached) $ECHO_C" >&6
35562else
35563
35564 cat >conftest.$ac_ext <<_ACEOF
35565/* confdefs.h. */
35566_ACEOF
35567cat confdefs.h >>conftest.$ac_ext
35568cat >>conftest.$ac_ext <<_ACEOF
35569/* end confdefs.h. */
35570#include <signal.h>
35571int
35572main ()
35573{
35574
35575 extern void testSigHandler(int);
35576
35577 struct sigaction sa;
35578 sa.sa_handler = testSigHandler;
35579
35580 ;
35581 return 0;
35582}
35583_ACEOF
35584rm -f conftest.$ac_objext
35585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35586 (eval $ac_compile) 2>conftest.er1
a848cd7e 35587 ac_status=$?
ac1cb8d3
VS
35588 grep -v '^ *+' conftest.er1 >conftest.err
35589 rm -f conftest.er1
35590 cat conftest.err >&5
a848cd7e
SC
35591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35592 (exit $ac_status); } &&
c9a66001 35593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35595 (eval $ac_try) 2>&5
35596 ac_status=$?
35597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35598 (exit $ac_status); }; } &&
35599 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35601 (eval $ac_try) 2>&5
35602 ac_status=$?
35603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35604 (exit $ac_status); }; }; then
35605
35606 wx_cv_type_sa_handler=int
35607
35608else
35609 echo "$as_me: failed program was:" >&5
35610sed 's/^/| /' conftest.$ac_ext >&5
35611
35612
35613 wx_cv_type_sa_handler=void
35614
35615fi
ac1cb8d3 35616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35617
35618fi
35619echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
35620echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
35621
a848cd7e
SC
35622 cat >>confdefs.h <<_ACEOF
35623#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
35624_ACEOF
35625
35626 fi
35627fi
35628
eaff0f0d 35629if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
35630 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
35631echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
35632if test "${wx_cv_func_backtrace+set}" = set; then
35633 echo $ECHO_N "(cached) $ECHO_C" >&6
35634else
35635
35636 cat >conftest.$ac_ext <<_ACEOF
35637/* confdefs.h. */
35638_ACEOF
35639cat confdefs.h >>conftest.$ac_ext
35640cat >>conftest.$ac_ext <<_ACEOF
35641/* end confdefs.h. */
35642#include <execinfo.h>
35643int
35644main ()
35645{
35646
35647 void *trace[1];
35648 char **messages;
35649
35650 backtrace(trace, 1);
35651 messages = backtrace_symbols(trace, 1);
35652
35653 ;
35654 return 0;
35655}
35656_ACEOF
35657rm -f conftest.$ac_objext
35658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35659 (eval $ac_compile) 2>conftest.er1
35660 ac_status=$?
35661 grep -v '^ *+' conftest.er1 >conftest.err
35662 rm -f conftest.er1
35663 cat conftest.err >&5
35664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35665 (exit $ac_status); } &&
c9a66001 35666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
35667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35668 (eval $ac_try) 2>&5
35669 ac_status=$?
35670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35671 (exit $ac_status); }; } &&
35672 { ac_try='test -s conftest.$ac_objext'
35673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35674 (eval $ac_try) 2>&5
35675 ac_status=$?
35676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35677 (exit $ac_status); }; }; then
35678 wx_cv_func_backtrace=yes
35679else
35680 echo "$as_me: failed program was:" >&5
35681sed 's/^/| /' conftest.$ac_ext >&5
35682
35683wx_cv_func_backtrace=no
35684
35685fi
35686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35687
35688
35689fi
35690echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
35691echo "${ECHO_T}$wx_cv_func_backtrace" >&6
35692
35693
35694 if test "$wx_cv_func_backtrace" = "no"; then
35695 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
35696echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
35697 wxUSE_STACKWALKER=no
35698 else
35699 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
35700echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
35701if test "${wx_cv_func_cxa_demangle+set}" = set; then
35702 echo $ECHO_N "(cached) $ECHO_C" >&6
35703else
35704
35705 cat >conftest.$ac_ext <<_ACEOF
35706/* confdefs.h. */
35707_ACEOF
35708cat confdefs.h >>conftest.$ac_ext
35709cat >>conftest.$ac_ext <<_ACEOF
35710/* end confdefs.h. */
35711#include <cxxabi.h>
35712int
35713main ()
35714{
35715
35716 int rc;
35717 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
35718
35719 ;
35720 return 0;
35721}
35722_ACEOF
dfe0c803
JS
35723rm -f conftest.$ac_objext conftest$ac_exeext
35724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35725 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
35726 ac_status=$?
35727 grep -v '^ *+' conftest.er1 >conftest.err
35728 rm -f conftest.er1
35729 cat conftest.err >&5
35730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35731 (exit $ac_status); } &&
c9a66001 35732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
35733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35734 (eval $ac_try) 2>&5
35735 ac_status=$?
35736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35737 (exit $ac_status); }; } &&
dfe0c803 35738 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
35739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35740 (eval $ac_try) 2>&5
35741 ac_status=$?
35742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35743 (exit $ac_status); }; }; then
35744 wx_cv_func_cxa_demangle=yes
35745else
35746 echo "$as_me: failed program was:" >&5
35747sed 's/^/| /' conftest.$ac_ext >&5
35748
35749wx_cv_func_cxa_demangle=no
35750
35751fi
dfe0c803
JS
35752rm -f conftest.err conftest.$ac_objext \
35753 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
35754
35755
35756fi
35757echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
35758echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
35759
35760 if test "$wx_cv_func_cxa_demangle" = "yes"; then
35761 cat >>confdefs.h <<\_ACEOF
35762#define HAVE_CXA_DEMANGLE 1
35763_ACEOF
35764
35765 fi
35766 fi
eaff0f0d
VZ
35767fi
35768
898beab1
DE
35769if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
35770 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
35771echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
35772 wxUSE_STACKWALKER=no
35773fi
35774
35775
a848cd7e
SC
35776
35777
35778for ac_func in mkstemp mktemp
35779do
35780as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35781echo "$as_me:$LINENO: checking for $ac_func" >&5
35782echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35783if eval "test \"\${$as_ac_var+set}\" = set"; then
35784 echo $ECHO_N "(cached) $ECHO_C" >&6
35785else
35786 cat >conftest.$ac_ext <<_ACEOF
35787/* confdefs.h. */
35788_ACEOF
35789cat confdefs.h >>conftest.$ac_ext
35790cat >>conftest.$ac_ext <<_ACEOF
35791/* end confdefs.h. */
ac1cb8d3
VS
35792/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35794#define $ac_func innocuous_$ac_func
35795
a848cd7e
SC
35796/* System header to define __stub macros and hopefully few prototypes,
35797 which can conflict with char $ac_func (); below.
35798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35799 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35800
a848cd7e
SC
35801#ifdef __STDC__
35802# include <limits.h>
35803#else
35804# include <assert.h>
35805#endif
ac1cb8d3
VS
35806
35807#undef $ac_func
35808
a848cd7e
SC
35809/* Override any gcc2 internal prototype to avoid an error. */
35810#ifdef __cplusplus
35811extern "C"
35812{
35813#endif
35814/* We use char because int might match the return type of a gcc2
35815 builtin and then its argument prototype would still apply. */
35816char $ac_func ();
35817/* The GNU C library defines this for functions which it implements
35818 to always fail with ENOSYS. Some functions are actually named
35819 something starting with __ and the normal name is an alias. */
35820#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35821choke me
35822#else
35823char (*f) () = $ac_func;
35824#endif
35825#ifdef __cplusplus
35826}
35827#endif
35828
35829int
35830main ()
35831{
35832return f != $ac_func;
35833 ;
35834 return 0;
35835}
35836_ACEOF
35837rm -f conftest.$ac_objext conftest$ac_exeext
35838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35839 (eval $ac_link) 2>conftest.er1
a848cd7e 35840 ac_status=$?
ac1cb8d3
VS
35841 grep -v '^ *+' conftest.er1 >conftest.err
35842 rm -f conftest.er1
35843 cat conftest.err >&5
a848cd7e
SC
35844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35845 (exit $ac_status); } &&
c9a66001 35846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35848 (eval $ac_try) 2>&5
35849 ac_status=$?
35850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35851 (exit $ac_status); }; } &&
35852 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35854 (eval $ac_try) 2>&5
35855 ac_status=$?
35856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35857 (exit $ac_status); }; }; then
35858 eval "$as_ac_var=yes"
35859else
35860 echo "$as_me: failed program was:" >&5
35861sed 's/^/| /' conftest.$ac_ext >&5
35862
35863eval "$as_ac_var=no"
35864fi
ac1cb8d3
VS
35865rm -f conftest.err conftest.$ac_objext \
35866 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35867fi
35868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35869echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35870if test `eval echo '${'$as_ac_var'}'` = yes; then
35871 cat >>confdefs.h <<_ACEOF
35872#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35873_ACEOF
35874 break
35875fi
35876done
35877
35878
35879echo "$as_me:$LINENO: checking for statfs" >&5
35880echo $ECHO_N "checking for statfs... $ECHO_C" >&6
35881if test "${wx_cv_func_statfs+set}" = set; then
35882 echo $ECHO_N "(cached) $ECHO_C" >&6
35883else
35884 cat >conftest.$ac_ext <<_ACEOF
35885/* confdefs.h. */
35886_ACEOF
35887cat confdefs.h >>conftest.$ac_ext
35888cat >>conftest.$ac_ext <<_ACEOF
35889/* end confdefs.h. */
35890
35891 #if defined(__BSD__)
84ae7ca4
VZ
35892 #include <sys/param.h>
35893 #include <sys/mount.h>
a848cd7e 35894 #else
84ae7ca4 35895 #include <sys/vfs.h>
a848cd7e
SC
35896 #endif
35897
35898int
35899main ()
35900{
35901
35902 long l;
35903 struct statfs fs;
35904 statfs("/", &fs);
35905 l = fs.f_bsize;
35906 l += fs.f_blocks;
35907 l += fs.f_bavail;
35908
35909 ;
35910 return 0;
35911}
35912_ACEOF
35913rm -f conftest.$ac_objext
35914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35915 (eval $ac_compile) 2>conftest.er1
a848cd7e 35916 ac_status=$?
ac1cb8d3
VS
35917 grep -v '^ *+' conftest.er1 >conftest.err
35918 rm -f conftest.er1
35919 cat conftest.err >&5
a848cd7e
SC
35920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35921 (exit $ac_status); } &&
c9a66001 35922 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35924 (eval $ac_try) 2>&5
35925 ac_status=$?
35926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35927 (exit $ac_status); }; } &&
35928 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35930 (eval $ac_try) 2>&5
35931 ac_status=$?
35932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35933 (exit $ac_status); }; }; then
84ae7ca4 35934 wx_cv_func_statfs=yes
a848cd7e
SC
35935else
35936 echo "$as_me: failed program was:" >&5
35937sed 's/^/| /' conftest.$ac_ext >&5
35938
84ae7ca4 35939wx_cv_func_statfs=no
a848cd7e
SC
35940
35941fi
ac1cb8d3 35942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35943
35944fi
35945echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
35946echo "${ECHO_T}$wx_cv_func_statfs" >&6
35947
35948if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 35949 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
35950echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
35951if test "${wx_cv_func_statfs_decl+set}" = set; then
35952 echo $ECHO_N "(cached) $ECHO_C" >&6
35953else
0683aca6
VZ
35954 cat >conftest.$ac_ext <<_ACEOF
35955/* confdefs.h. */
35956_ACEOF
35957cat confdefs.h >>conftest.$ac_ext
35958cat >>conftest.$ac_ext <<_ACEOF
35959/* end confdefs.h. */
84ae7ca4 35960
0683aca6
VZ
35961 #if defined(__BSD__)
35962 #include <sys/param.h>
35963 #include <sys/mount.h>
35964 #else
35965 #include <sys/vfs.h>
35966 #endif
35967
35968int
35969main ()
35970{
35971
35972 struct statfs fs;
35973 statfs("", &fs);
35974
35975 ;
35976 return 0;
35977}
35978_ACEOF
35979rm -f conftest.$ac_objext
35980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35981 (eval $ac_compile) 2>conftest.er1
35982 ac_status=$?
35983 grep -v '^ *+' conftest.er1 >conftest.err
35984 rm -f conftest.er1
35985 cat conftest.err >&5
35986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35987 (exit $ac_status); } &&
c9a66001 35988 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
35989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35990 (eval $ac_try) 2>&5
35991 ac_status=$?
35992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35993 (exit $ac_status); }; } &&
35994 { ac_try='test -s conftest.$ac_objext'
35995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35996 (eval $ac_try) 2>&5
35997 ac_status=$?
35998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35999 (exit $ac_status); }; }; then
36000 wx_cv_func_statfs_decl=yes
36001else
36002 echo "$as_me: failed program was:" >&5
36003sed 's/^/| /' conftest.$ac_ext >&5
36004
36005wx_cv_func_statfs_decl=no
36006
36007fi
36008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
36009
36010fi
36011echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36012echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
36013
36014 if test "$wx_cv_func_statfs_decl" = "yes"; then
36015 cat >>confdefs.h <<\_ACEOF
36016#define HAVE_STATFS_DECL 1
36017_ACEOF
36018
36019 fi
36020
a848cd7e
SC
36021 wx_cv_type_statvfs_t="struct statfs"
36022 cat >>confdefs.h <<\_ACEOF
36023#define HAVE_STATFS 1
36024_ACEOF
36025
36026else
36027 echo "$as_me:$LINENO: checking for statvfs" >&5
36028echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
36029if test "${wx_cv_func_statvfs+set}" = set; then
36030 echo $ECHO_N "(cached) $ECHO_C" >&6
36031else
36032 cat >conftest.$ac_ext <<_ACEOF
36033/* confdefs.h. */
36034_ACEOF
36035cat confdefs.h >>conftest.$ac_ext
36036cat >>conftest.$ac_ext <<_ACEOF
36037/* end confdefs.h. */
36038
36039 #include <stddef.h>
36040 #include <sys/statvfs.h>
36041
36042int
36043main ()
36044{
36045
36046 statvfs("/", NULL);
36047
36048 ;
36049 return 0;
36050}
36051_ACEOF
36052rm -f conftest.$ac_objext
36053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36054 (eval $ac_compile) 2>conftest.er1
a848cd7e 36055 ac_status=$?
ac1cb8d3
VS
36056 grep -v '^ *+' conftest.er1 >conftest.err
36057 rm -f conftest.er1
36058 cat conftest.err >&5
a848cd7e
SC
36059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36060 (exit $ac_status); } &&
c9a66001 36061 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36063 (eval $ac_try) 2>&5
36064 ac_status=$?
36065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36066 (exit $ac_status); }; } &&
36067 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36069 (eval $ac_try) 2>&5
36070 ac_status=$?
36071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36072 (exit $ac_status); }; }; then
36073 wx_cv_func_statvfs=yes
36074else
36075 echo "$as_me: failed program was:" >&5
36076sed 's/^/| /' conftest.$ac_ext >&5
36077
36078wx_cv_func_statvfs=no
36079
36080fi
ac1cb8d3 36081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36082
36083fi
36084echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36085echo "${ECHO_T}$wx_cv_func_statvfs" >&6
36086
36087 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 36088 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
36089echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
36090if test "${wx_cv_type_statvfs_t+set}" = set; then
36091 echo $ECHO_N "(cached) $ECHO_C" >&6
36092else
36093 cat >conftest.$ac_ext <<_ACEOF
36094/* confdefs.h. */
36095_ACEOF
36096cat confdefs.h >>conftest.$ac_ext
36097cat >>conftest.$ac_ext <<_ACEOF
36098/* end confdefs.h. */
36099
36100 #include <sys/statvfs.h>
36101
36102int
36103main ()
36104{
36105
36106 long l;
36107 statvfs_t fs;
36108 statvfs("/", &fs);
36109 l = fs.f_bsize;
36110 l += fs.f_blocks;
36111 l += fs.f_bavail;
36112
36113 ;
36114 return 0;
36115}
36116_ACEOF
36117rm -f conftest.$ac_objext
36118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36119 (eval $ac_compile) 2>conftest.er1
a848cd7e 36120 ac_status=$?
ac1cb8d3
VS
36121 grep -v '^ *+' conftest.er1 >conftest.err
36122 rm -f conftest.er1
36123 cat conftest.err >&5
a848cd7e
SC
36124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36125 (exit $ac_status); } &&
c9a66001 36126 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36128 (eval $ac_try) 2>&5
36129 ac_status=$?
36130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36131 (exit $ac_status); }; } &&
36132 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36134 (eval $ac_try) 2>&5
36135 ac_status=$?
36136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36137 (exit $ac_status); }; }; then
36138 wx_cv_type_statvfs_t=statvfs_t
36139else
36140 echo "$as_me: failed program was:" >&5
36141sed 's/^/| /' conftest.$ac_ext >&5
36142
36143
36144 cat >conftest.$ac_ext <<_ACEOF
36145/* confdefs.h. */
36146_ACEOF
36147cat confdefs.h >>conftest.$ac_ext
36148cat >>conftest.$ac_ext <<_ACEOF
36149/* end confdefs.h. */
36150
36151 #include <sys/statvfs.h>
36152
36153int
36154main ()
36155{
36156
36157 long l;
36158 struct statvfs fs;
36159 statvfs("/", &fs);
36160 l = fs.f_bsize;
36161 l += fs.f_blocks;
36162 l += fs.f_bavail;
36163
36164 ;
36165 return 0;
36166}
36167_ACEOF
36168rm -f conftest.$ac_objext
36169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36170 (eval $ac_compile) 2>conftest.er1
a848cd7e 36171 ac_status=$?
ac1cb8d3
VS
36172 grep -v '^ *+' conftest.er1 >conftest.err
36173 rm -f conftest.er1
36174 cat conftest.err >&5
a848cd7e
SC
36175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36176 (exit $ac_status); } &&
c9a66001 36177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36179 (eval $ac_try) 2>&5
36180 ac_status=$?
36181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36182 (exit $ac_status); }; } &&
36183 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36185 (eval $ac_try) 2>&5
36186 ac_status=$?
36187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36188 (exit $ac_status); }; }; then
36189 wx_cv_type_statvfs_t="struct statvfs"
36190else
36191 echo "$as_me: failed program was:" >&5
36192sed 's/^/| /' conftest.$ac_ext >&5
36193
36194wx_cv_type_statvfs_t="unknown"
36195
36196fi
ac1cb8d3 36197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36198
36199
36200fi
ac1cb8d3 36201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36202
36203fi
36204echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
36205echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
36206
a848cd7e
SC
36207 if test "$wx_cv_type_statvfs_t" != "unknown"; then
36208 cat >>confdefs.h <<\_ACEOF
36209#define HAVE_STATVFS 1
36210_ACEOF
36211
36212 fi
36213 else
36214 wx_cv_type_statvfs_t="unknown"
36215 fi
36216fi
36217
36218if test "$wx_cv_type_statvfs_t" != "unknown"; then
36219 cat >>confdefs.h <<_ACEOF
36220#define WX_STATFS_T $wx_cv_type_statvfs_t
36221_ACEOF
36222
36223else
36224 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
36225echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
36226fi
36227
36228if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36229
36230
36231for ac_func in fcntl flock
36232do
36233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36234echo "$as_me:$LINENO: checking for $ac_func" >&5
36235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36236if eval "test \"\${$as_ac_var+set}\" = set"; then
36237 echo $ECHO_N "(cached) $ECHO_C" >&6
36238else
36239 cat >conftest.$ac_ext <<_ACEOF
36240/* confdefs.h. */
36241_ACEOF
36242cat confdefs.h >>conftest.$ac_ext
36243cat >>conftest.$ac_ext <<_ACEOF
36244/* end confdefs.h. */
ac1cb8d3
VS
36245/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36247#define $ac_func innocuous_$ac_func
36248
a848cd7e
SC
36249/* System header to define __stub macros and hopefully few prototypes,
36250 which can conflict with char $ac_func (); below.
36251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36252 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36253
a848cd7e
SC
36254#ifdef __STDC__
36255# include <limits.h>
36256#else
36257# include <assert.h>
36258#endif
ac1cb8d3
VS
36259
36260#undef $ac_func
36261
a848cd7e
SC
36262/* Override any gcc2 internal prototype to avoid an error. */
36263#ifdef __cplusplus
36264extern "C"
36265{
36266#endif
36267/* We use char because int might match the return type of a gcc2
36268 builtin and then its argument prototype would still apply. */
36269char $ac_func ();
36270/* The GNU C library defines this for functions which it implements
36271 to always fail with ENOSYS. Some functions are actually named
36272 something starting with __ and the normal name is an alias. */
36273#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36274choke me
36275#else
36276char (*f) () = $ac_func;
36277#endif
36278#ifdef __cplusplus
36279}
36280#endif
36281
36282int
36283main ()
36284{
36285return f != $ac_func;
36286 ;
36287 return 0;
36288}
36289_ACEOF
36290rm -f conftest.$ac_objext conftest$ac_exeext
36291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36292 (eval $ac_link) 2>conftest.er1
a848cd7e 36293 ac_status=$?
ac1cb8d3
VS
36294 grep -v '^ *+' conftest.er1 >conftest.err
36295 rm -f conftest.er1
36296 cat conftest.err >&5
a848cd7e
SC
36297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36298 (exit $ac_status); } &&
c9a66001 36299 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36301 (eval $ac_try) 2>&5
36302 ac_status=$?
36303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36304 (exit $ac_status); }; } &&
36305 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36307 (eval $ac_try) 2>&5
36308 ac_status=$?
36309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36310 (exit $ac_status); }; }; then
36311 eval "$as_ac_var=yes"
36312else
36313 echo "$as_me: failed program was:" >&5
36314sed 's/^/| /' conftest.$ac_ext >&5
36315
36316eval "$as_ac_var=no"
36317fi
ac1cb8d3
VS
36318rm -f conftest.err conftest.$ac_objext \
36319 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36320fi
36321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36322echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36323if test `eval echo '${'$as_ac_var'}'` = yes; then
36324 cat >>confdefs.h <<_ACEOF
36325#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36326_ACEOF
36327 break
36328fi
36329done
36330
36331
36332 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
36333 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
36334echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
36335 wxUSE_SNGLINST_CHECKER=no
36336 fi
36337fi
36338
36339
36340for ac_func in timegm
36341do
36342as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36343echo "$as_me:$LINENO: checking for $ac_func" >&5
36344echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36345if eval "test \"\${$as_ac_var+set}\" = set"; then
36346 echo $ECHO_N "(cached) $ECHO_C" >&6
36347else
36348 cat >conftest.$ac_ext <<_ACEOF
36349/* confdefs.h. */
36350_ACEOF
36351cat confdefs.h >>conftest.$ac_ext
36352cat >>conftest.$ac_ext <<_ACEOF
36353/* end confdefs.h. */
ac1cb8d3
VS
36354/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36356#define $ac_func innocuous_$ac_func
36357
a848cd7e
SC
36358/* System header to define __stub macros and hopefully few prototypes,
36359 which can conflict with char $ac_func (); below.
36360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36361 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36362
a848cd7e
SC
36363#ifdef __STDC__
36364# include <limits.h>
36365#else
36366# include <assert.h>
36367#endif
ac1cb8d3
VS
36368
36369#undef $ac_func
36370
a848cd7e
SC
36371/* Override any gcc2 internal prototype to avoid an error. */
36372#ifdef __cplusplus
36373extern "C"
36374{
36375#endif
36376/* We use char because int might match the return type of a gcc2
36377 builtin and then its argument prototype would still apply. */
36378char $ac_func ();
36379/* The GNU C library defines this for functions which it implements
36380 to always fail with ENOSYS. Some functions are actually named
36381 something starting with __ and the normal name is an alias. */
36382#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36383choke me
36384#else
36385char (*f) () = $ac_func;
36386#endif
36387#ifdef __cplusplus
36388}
36389#endif
36390
36391int
36392main ()
36393{
36394return f != $ac_func;
36395 ;
36396 return 0;
36397}
36398_ACEOF
36399rm -f conftest.$ac_objext conftest$ac_exeext
36400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36401 (eval $ac_link) 2>conftest.er1
a848cd7e 36402 ac_status=$?
ac1cb8d3
VS
36403 grep -v '^ *+' conftest.er1 >conftest.err
36404 rm -f conftest.er1
36405 cat conftest.err >&5
a848cd7e
SC
36406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36407 (exit $ac_status); } &&
c9a66001 36408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36410 (eval $ac_try) 2>&5
36411 ac_status=$?
36412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36413 (exit $ac_status); }; } &&
36414 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36416 (eval $ac_try) 2>&5
36417 ac_status=$?
36418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36419 (exit $ac_status); }; }; then
36420 eval "$as_ac_var=yes"
36421else
36422 echo "$as_me: failed program was:" >&5
36423sed 's/^/| /' conftest.$ac_ext >&5
36424
36425eval "$as_ac_var=no"
36426fi
ac1cb8d3
VS
36427rm -f conftest.err conftest.$ac_objext \
36428 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36429fi
36430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36431echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36432if test `eval echo '${'$as_ac_var'}'` = yes; then
36433 cat >>confdefs.h <<_ACEOF
36434#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36435_ACEOF
36436
36437fi
36438done
36439
36440
36441
36442
36443for ac_func in putenv setenv
36444do
36445as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36446echo "$as_me:$LINENO: checking for $ac_func" >&5
36447echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36448if eval "test \"\${$as_ac_var+set}\" = set"; then
36449 echo $ECHO_N "(cached) $ECHO_C" >&6
36450else
36451 cat >conftest.$ac_ext <<_ACEOF
36452/* confdefs.h. */
36453_ACEOF
36454cat confdefs.h >>conftest.$ac_ext
36455cat >>conftest.$ac_ext <<_ACEOF
36456/* end confdefs.h. */
ac1cb8d3
VS
36457/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36459#define $ac_func innocuous_$ac_func
36460
a848cd7e
SC
36461/* System header to define __stub macros and hopefully few prototypes,
36462 which can conflict with char $ac_func (); below.
36463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36464 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36465
a848cd7e
SC
36466#ifdef __STDC__
36467# include <limits.h>
36468#else
36469# include <assert.h>
36470#endif
ac1cb8d3
VS
36471
36472#undef $ac_func
36473
a848cd7e
SC
36474/* Override any gcc2 internal prototype to avoid an error. */
36475#ifdef __cplusplus
36476extern "C"
36477{
36478#endif
36479/* We use char because int might match the return type of a gcc2
36480 builtin and then its argument prototype would still apply. */
36481char $ac_func ();
36482/* The GNU C library defines this for functions which it implements
36483 to always fail with ENOSYS. Some functions are actually named
36484 something starting with __ and the normal name is an alias. */
36485#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36486choke me
36487#else
36488char (*f) () = $ac_func;
36489#endif
36490#ifdef __cplusplus
36491}
36492#endif
36493
36494int
36495main ()
36496{
36497return f != $ac_func;
36498 ;
36499 return 0;
36500}
36501_ACEOF
36502rm -f conftest.$ac_objext conftest$ac_exeext
36503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36504 (eval $ac_link) 2>conftest.er1
a848cd7e 36505 ac_status=$?
ac1cb8d3
VS
36506 grep -v '^ *+' conftest.er1 >conftest.err
36507 rm -f conftest.er1
36508 cat conftest.err >&5
a848cd7e
SC
36509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36510 (exit $ac_status); } &&
c9a66001 36511 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36513 (eval $ac_try) 2>&5
36514 ac_status=$?
36515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36516 (exit $ac_status); }; } &&
36517 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36519 (eval $ac_try) 2>&5
36520 ac_status=$?
36521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36522 (exit $ac_status); }; }; then
36523 eval "$as_ac_var=yes"
36524else
36525 echo "$as_me: failed program was:" >&5
36526sed 's/^/| /' conftest.$ac_ext >&5
36527
36528eval "$as_ac_var=no"
36529fi
ac1cb8d3
VS
36530rm -f conftest.err conftest.$ac_objext \
36531 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36532fi
36533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36534echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36535if test `eval echo '${'$as_ac_var'}'` = yes; then
36536 cat >>confdefs.h <<_ACEOF
36537#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36538_ACEOF
36539 break
36540fi
36541done
36542
36543
36544HAVE_SOME_SLEEP_FUNC=0
36545if test "$USE_BEOS" = 1; then
36546 cat >>confdefs.h <<\_ACEOF
36547#define HAVE_SLEEP 1
36548_ACEOF
36549
36550 HAVE_SOME_SLEEP_FUNC=1
36551fi
36552
36553if test "$USE_DARWIN" = 1; then
36554 cat >>confdefs.h <<\_ACEOF
36555#define HAVE_USLEEP 1
36556_ACEOF
36557
36558 HAVE_SOME_SLEEP_FUNC=1
36559fi
36560
36561if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
36562 POSIX4_LINK=
36563
36564for ac_func in nanosleep
36565do
36566as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36567echo "$as_me:$LINENO: checking for $ac_func" >&5
36568echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36569if eval "test \"\${$as_ac_var+set}\" = set"; then
36570 echo $ECHO_N "(cached) $ECHO_C" >&6
36571else
36572 cat >conftest.$ac_ext <<_ACEOF
36573/* confdefs.h. */
36574_ACEOF
36575cat confdefs.h >>conftest.$ac_ext
36576cat >>conftest.$ac_ext <<_ACEOF
36577/* end confdefs.h. */
ac1cb8d3
VS
36578/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36580#define $ac_func innocuous_$ac_func
36581
a848cd7e
SC
36582/* System header to define __stub macros and hopefully few prototypes,
36583 which can conflict with char $ac_func (); below.
36584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36585 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36586
a848cd7e
SC
36587#ifdef __STDC__
36588# include <limits.h>
36589#else
36590# include <assert.h>
36591#endif
ac1cb8d3
VS
36592
36593#undef $ac_func
36594
a848cd7e
SC
36595/* Override any gcc2 internal prototype to avoid an error. */
36596#ifdef __cplusplus
36597extern "C"
36598{
36599#endif
36600/* We use char because int might match the return type of a gcc2
36601 builtin and then its argument prototype would still apply. */
36602char $ac_func ();
36603/* The GNU C library defines this for functions which it implements
36604 to always fail with ENOSYS. Some functions are actually named
36605 something starting with __ and the normal name is an alias. */
36606#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36607choke me
36608#else
36609char (*f) () = $ac_func;
36610#endif
36611#ifdef __cplusplus
36612}
36613#endif
36614
36615int
36616main ()
36617{
36618return f != $ac_func;
36619 ;
36620 return 0;
36621}
36622_ACEOF
36623rm -f conftest.$ac_objext conftest$ac_exeext
36624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36625 (eval $ac_link) 2>conftest.er1
a848cd7e 36626 ac_status=$?
ac1cb8d3
VS
36627 grep -v '^ *+' conftest.er1 >conftest.err
36628 rm -f conftest.er1
36629 cat conftest.err >&5
a848cd7e
SC
36630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36631 (exit $ac_status); } &&
c9a66001 36632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36634 (eval $ac_try) 2>&5
36635 ac_status=$?
36636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36637 (exit $ac_status); }; } &&
36638 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36640 (eval $ac_try) 2>&5
36641 ac_status=$?
36642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36643 (exit $ac_status); }; }; then
36644 eval "$as_ac_var=yes"
36645else
36646 echo "$as_me: failed program was:" >&5
36647sed 's/^/| /' conftest.$ac_ext >&5
36648
36649eval "$as_ac_var=no"
36650fi
ac1cb8d3
VS
36651rm -f conftest.err conftest.$ac_objext \
36652 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36653fi
36654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36655echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36656if test `eval echo '${'$as_ac_var'}'` = yes; then
36657 cat >>confdefs.h <<_ACEOF
36658#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36659_ACEOF
36660 cat >>confdefs.h <<\_ACEOF
36661#define HAVE_NANOSLEEP 1
36662_ACEOF
36663
36664else
36665
36666 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
36667echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
36668if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
36669 echo $ECHO_N "(cached) $ECHO_C" >&6
36670else
36671 ac_check_lib_save_LIBS=$LIBS
36672LIBS="-lposix4 $LIBS"
36673cat >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/* Override any gcc2 internal prototype to avoid an error. */
36681#ifdef __cplusplus
36682extern "C"
36683#endif
36684/* We use char because int might match the return type of a gcc2
36685 builtin and then its argument prototype would still apply. */
36686char nanosleep ();
36687int
36688main ()
36689{
36690nanosleep ();
36691 ;
36692 return 0;
36693}
36694_ACEOF
36695rm -f conftest.$ac_objext conftest$ac_exeext
36696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36697 (eval $ac_link) 2>conftest.er1
a848cd7e 36698 ac_status=$?
ac1cb8d3
VS
36699 grep -v '^ *+' conftest.er1 >conftest.err
36700 rm -f conftest.er1
36701 cat conftest.err >&5
a848cd7e
SC
36702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36703 (exit $ac_status); } &&
c9a66001 36704 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36706 (eval $ac_try) 2>&5
36707 ac_status=$?
36708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36709 (exit $ac_status); }; } &&
36710 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36712 (eval $ac_try) 2>&5
36713 ac_status=$?
36714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36715 (exit $ac_status); }; }; then
36716 ac_cv_lib_posix4_nanosleep=yes
36717else
36718 echo "$as_me: failed program was:" >&5
36719sed 's/^/| /' conftest.$ac_ext >&5
36720
36721ac_cv_lib_posix4_nanosleep=no
36722fi
ac1cb8d3
VS
36723rm -f conftest.err conftest.$ac_objext \
36724 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36725LIBS=$ac_check_lib_save_LIBS
36726fi
36727echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
36728echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
36729if test $ac_cv_lib_posix4_nanosleep = yes; then
36730
36731 cat >>confdefs.h <<\_ACEOF
36732#define HAVE_NANOSLEEP 1
36733_ACEOF
36734
36735 POSIX4_LINK=" -lposix4"
36736
36737else
36738
36739
36740for ac_func in usleep
36741do
36742as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36743echo "$as_me:$LINENO: checking for $ac_func" >&5
36744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36745if eval "test \"\${$as_ac_var+set}\" = set"; then
36746 echo $ECHO_N "(cached) $ECHO_C" >&6
36747else
36748 cat >conftest.$ac_ext <<_ACEOF
36749/* confdefs.h. */
36750_ACEOF
36751cat confdefs.h >>conftest.$ac_ext
36752cat >>conftest.$ac_ext <<_ACEOF
36753/* end confdefs.h. */
ac1cb8d3
VS
36754/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36756#define $ac_func innocuous_$ac_func
36757
a848cd7e
SC
36758/* System header to define __stub macros and hopefully few prototypes,
36759 which can conflict with char $ac_func (); below.
36760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36761 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36762
a848cd7e
SC
36763#ifdef __STDC__
36764# include <limits.h>
36765#else
36766# include <assert.h>
36767#endif
ac1cb8d3
VS
36768
36769#undef $ac_func
36770
a848cd7e
SC
36771/* Override any gcc2 internal prototype to avoid an error. */
36772#ifdef __cplusplus
36773extern "C"
36774{
36775#endif
36776/* We use char because int might match the return type of a gcc2
36777 builtin and then its argument prototype would still apply. */
36778char $ac_func ();
36779/* The GNU C library defines this for functions which it implements
36780 to always fail with ENOSYS. Some functions are actually named
36781 something starting with __ and the normal name is an alias. */
36782#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36783choke me
36784#else
36785char (*f) () = $ac_func;
36786#endif
36787#ifdef __cplusplus
36788}
36789#endif
36790
36791int
36792main ()
36793{
36794return f != $ac_func;
36795 ;
36796 return 0;
36797}
36798_ACEOF
36799rm -f conftest.$ac_objext conftest$ac_exeext
36800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36801 (eval $ac_link) 2>conftest.er1
a848cd7e 36802 ac_status=$?
ac1cb8d3
VS
36803 grep -v '^ *+' conftest.er1 >conftest.err
36804 rm -f conftest.er1
36805 cat conftest.err >&5
a848cd7e
SC
36806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36807 (exit $ac_status); } &&
c9a66001 36808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36810 (eval $ac_try) 2>&5
36811 ac_status=$?
36812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36813 (exit $ac_status); }; } &&
36814 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36816 (eval $ac_try) 2>&5
36817 ac_status=$?
36818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36819 (exit $ac_status); }; }; then
36820 eval "$as_ac_var=yes"
36821else
36822 echo "$as_me: failed program was:" >&5
36823sed 's/^/| /' conftest.$ac_ext >&5
36824
36825eval "$as_ac_var=no"
36826fi
ac1cb8d3
VS
36827rm -f conftest.err conftest.$ac_objext \
36828 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36829fi
36830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36831echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36832if test `eval echo '${'$as_ac_var'}'` = yes; then
36833 cat >>confdefs.h <<_ACEOF
36834#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36835_ACEOF
36836 cat >>confdefs.h <<\_ACEOF
36837#define HAVE_USLEEP 1
36838_ACEOF
36839
36840else
36841 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
36842echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
36843
36844fi
36845done
36846
36847
36848
36849fi
36850
36851
36852
36853fi
36854done
36855
36856fi
36857
36858
36859
36860for ac_func in uname gethostname
36861do
36862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36863echo "$as_me:$LINENO: checking for $ac_func" >&5
36864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36865if eval "test \"\${$as_ac_var+set}\" = set"; then
36866 echo $ECHO_N "(cached) $ECHO_C" >&6
36867else
36868 cat >conftest.$ac_ext <<_ACEOF
36869/* confdefs.h. */
36870_ACEOF
36871cat confdefs.h >>conftest.$ac_ext
36872cat >>conftest.$ac_ext <<_ACEOF
36873/* end confdefs.h. */
ac1cb8d3
VS
36874/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36876#define $ac_func innocuous_$ac_func
36877
a848cd7e
SC
36878/* System header to define __stub macros and hopefully few prototypes,
36879 which can conflict with char $ac_func (); below.
36880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36881 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36882
a848cd7e
SC
36883#ifdef __STDC__
36884# include <limits.h>
36885#else
36886# include <assert.h>
36887#endif
ac1cb8d3
VS
36888
36889#undef $ac_func
36890
a848cd7e
SC
36891/* Override any gcc2 internal prototype to avoid an error. */
36892#ifdef __cplusplus
36893extern "C"
36894{
36895#endif
36896/* We use char because int might match the return type of a gcc2
36897 builtin and then its argument prototype would still apply. */
36898char $ac_func ();
36899/* The GNU C library defines this for functions which it implements
36900 to always fail with ENOSYS. Some functions are actually named
36901 something starting with __ and the normal name is an alias. */
36902#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36903choke me
36904#else
36905char (*f) () = $ac_func;
36906#endif
36907#ifdef __cplusplus
36908}
36909#endif
36910
36911int
36912main ()
36913{
36914return f != $ac_func;
36915 ;
36916 return 0;
36917}
36918_ACEOF
36919rm -f conftest.$ac_objext conftest$ac_exeext
36920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36921 (eval $ac_link) 2>conftest.er1
a848cd7e 36922 ac_status=$?
ac1cb8d3
VS
36923 grep -v '^ *+' conftest.er1 >conftest.err
36924 rm -f conftest.er1
36925 cat conftest.err >&5
a848cd7e
SC
36926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36927 (exit $ac_status); } &&
c9a66001 36928 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36930 (eval $ac_try) 2>&5
36931 ac_status=$?
36932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36933 (exit $ac_status); }; } &&
36934 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36936 (eval $ac_try) 2>&5
36937 ac_status=$?
36938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36939 (exit $ac_status); }; }; then
36940 eval "$as_ac_var=yes"
36941else
36942 echo "$as_me: failed program was:" >&5
36943sed 's/^/| /' conftest.$ac_ext >&5
36944
36945eval "$as_ac_var=no"
36946fi
ac1cb8d3
VS
36947rm -f conftest.err conftest.$ac_objext \
36948 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36949fi
36950echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36951echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36952if test `eval echo '${'$as_ac_var'}'` = yes; then
36953 cat >>confdefs.h <<_ACEOF
36954#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36955_ACEOF
36956 break
36957fi
36958done
36959
36960
5acfd58d
MW
36961SAVE_CPPFLAGS="$CPPFLAGS"
36962CPPFLAGS="$CPPFLAGS -D_REENTRANT"
a848cd7e 36963
5acfd58d
MW
36964 for target in strtok_r
36965 do
36966 echo "$as_me:$LINENO: checking for $target in string.h" >&5
36967echo $ECHO_N "checking for $target in string.h... $ECHO_C" >&6
36968if eval "test \"\${wx_cv_decl_$target+set}\" = set"; then
a848cd7e
SC
36969 echo $ECHO_N "(cached) $ECHO_C" >&6
36970else
5acfd58d
MW
36971
36972 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
36973/* confdefs.h. */
36974_ACEOF
36975cat confdefs.h >>conftest.$ac_ext
36976cat >>conftest.$ac_ext <<_ACEOF
36977/* end confdefs.h. */
5acfd58d 36978#include <string.h>
a848cd7e
SC
36979int
36980main ()
36981{
5acfd58d
MW
36982
36983 #ifndef $target
36984 &$target;
36985 #endif
36986
a848cd7e
SC
36987 ;
36988 return 0;
36989}
36990_ACEOF
5acfd58d
MW
36991rm -f conftest.$ac_objext
36992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36993 (eval $ac_compile) 2>conftest.er1
a848cd7e 36994 ac_status=$?
ac1cb8d3
VS
36995 grep -v '^ *+' conftest.er1 >conftest.err
36996 rm -f conftest.er1
36997 cat conftest.err >&5
a848cd7e
SC
36998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36999 (exit $ac_status); } &&
c9a66001 37000 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37002 (eval $ac_try) 2>&5
37003 ac_status=$?
37004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37005 (exit $ac_status); }; } &&
5acfd58d 37006 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37008 (eval $ac_try) 2>&5
37009 ac_status=$?
37010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37011 (exit $ac_status); }; }; then
5acfd58d 37012 eval wx_cv_decl_$target=yes
a848cd7e
SC
37013else
37014 echo "$as_me: failed program was:" >&5
37015sed 's/^/| /' conftest.$ac_ext >&5
37016
5acfd58d 37017eval wx_cv_decl_$target=no
a848cd7e 37018fi
5acfd58d
MW
37019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37020
a848cd7e 37021fi
5acfd58d
MW
37022echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_decl_$target'}'`" >&5
37023echo "${ECHO_T}`eval echo '${'wx_cv_decl_$target'}'`" >&6
37024
37025 if eval test \$wx_cv_decl_$target = yes
37026 then
37027 cat >>confdefs.h <<_ACEOF
37028#define HAVE_`echo $target | tr 'a-z' 'A-Z'` 1
a848cd7e
SC
37029_ACEOF
37030
a848cd7e 37031
5acfd58d
MW
37032 else
37033 :
37034
37035 fi
37036 done
37037
37038CPPFLAGS="$SAVE_CPPFLAGS"
a848cd7e 37039
a848cd7e
SC
37040INET_LINK=
37041
37042for ac_func in inet_addr
37043do
37044as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37045echo "$as_me:$LINENO: checking for $ac_func" >&5
37046echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37047if eval "test \"\${$as_ac_var+set}\" = set"; then
37048 echo $ECHO_N "(cached) $ECHO_C" >&6
37049else
37050 cat >conftest.$ac_ext <<_ACEOF
37051/* confdefs.h. */
37052_ACEOF
37053cat confdefs.h >>conftest.$ac_ext
37054cat >>conftest.$ac_ext <<_ACEOF
37055/* end confdefs.h. */
ac1cb8d3
VS
37056/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37058#define $ac_func innocuous_$ac_func
37059
a848cd7e
SC
37060/* System header to define __stub macros and hopefully few prototypes,
37061 which can conflict with char $ac_func (); below.
37062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37063 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37064
a848cd7e
SC
37065#ifdef __STDC__
37066# include <limits.h>
37067#else
37068# include <assert.h>
37069#endif
ac1cb8d3
VS
37070
37071#undef $ac_func
37072
a848cd7e
SC
37073/* Override any gcc2 internal prototype to avoid an error. */
37074#ifdef __cplusplus
37075extern "C"
37076{
37077#endif
37078/* We use char because int might match the return type of a gcc2
37079 builtin and then its argument prototype would still apply. */
37080char $ac_func ();
37081/* The GNU C library defines this for functions which it implements
37082 to always fail with ENOSYS. Some functions are actually named
37083 something starting with __ and the normal name is an alias. */
37084#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37085choke me
37086#else
37087char (*f) () = $ac_func;
37088#endif
37089#ifdef __cplusplus
37090}
37091#endif
37092
37093int
37094main ()
37095{
37096return f != $ac_func;
37097 ;
37098 return 0;
37099}
37100_ACEOF
37101rm -f conftest.$ac_objext conftest$ac_exeext
37102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37103 (eval $ac_link) 2>conftest.er1
a848cd7e 37104 ac_status=$?
ac1cb8d3
VS
37105 grep -v '^ *+' conftest.er1 >conftest.err
37106 rm -f conftest.er1
37107 cat conftest.err >&5
a848cd7e
SC
37108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37109 (exit $ac_status); } &&
c9a66001 37110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37112 (eval $ac_try) 2>&5
37113 ac_status=$?
37114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37115 (exit $ac_status); }; } &&
37116 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37118 (eval $ac_try) 2>&5
37119 ac_status=$?
37120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37121 (exit $ac_status); }; }; then
37122 eval "$as_ac_var=yes"
37123else
37124 echo "$as_me: failed program was:" >&5
37125sed 's/^/| /' conftest.$ac_ext >&5
37126
37127eval "$as_ac_var=no"
37128fi
ac1cb8d3
VS
37129rm -f conftest.err conftest.$ac_objext \
37130 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37131fi
37132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37133echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37134if test `eval echo '${'$as_ac_var'}'` = yes; then
37135 cat >>confdefs.h <<_ACEOF
37136#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37137_ACEOF
37138 cat >>confdefs.h <<\_ACEOF
37139#define HAVE_INET_ADDR 1
37140_ACEOF
37141
37142else
37143
37144 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
37145echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
37146if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
37147 echo $ECHO_N "(cached) $ECHO_C" >&6
37148else
37149 ac_check_lib_save_LIBS=$LIBS
37150LIBS="-lnsl $LIBS"
37151cat >conftest.$ac_ext <<_ACEOF
37152/* confdefs.h. */
37153_ACEOF
37154cat confdefs.h >>conftest.$ac_ext
37155cat >>conftest.$ac_ext <<_ACEOF
37156/* end confdefs.h. */
37157
37158/* Override any gcc2 internal prototype to avoid an error. */
37159#ifdef __cplusplus
37160extern "C"
37161#endif
37162/* We use char because int might match the return type of a gcc2
37163 builtin and then its argument prototype would still apply. */
37164char inet_addr ();
37165int
37166main ()
37167{
37168inet_addr ();
37169 ;
37170 return 0;
37171}
37172_ACEOF
37173rm -f conftest.$ac_objext conftest$ac_exeext
37174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37175 (eval $ac_link) 2>conftest.er1
a848cd7e 37176 ac_status=$?
ac1cb8d3
VS
37177 grep -v '^ *+' conftest.er1 >conftest.err
37178 rm -f conftest.er1
37179 cat conftest.err >&5
a848cd7e
SC
37180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37181 (exit $ac_status); } &&
c9a66001 37182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37184 (eval $ac_try) 2>&5
37185 ac_status=$?
37186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37187 (exit $ac_status); }; } &&
37188 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37190 (eval $ac_try) 2>&5
37191 ac_status=$?
37192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37193 (exit $ac_status); }; }; then
37194 ac_cv_lib_nsl_inet_addr=yes
37195else
37196 echo "$as_me: failed program was:" >&5
37197sed 's/^/| /' conftest.$ac_ext >&5
37198
37199ac_cv_lib_nsl_inet_addr=no
37200fi
ac1cb8d3
VS
37201rm -f conftest.err conftest.$ac_objext \
37202 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37203LIBS=$ac_check_lib_save_LIBS
37204fi
37205echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
37206echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
37207if test $ac_cv_lib_nsl_inet_addr = yes; then
37208 INET_LINK="nsl"
37209else
37210
37211 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
37212echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
37213if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
37214 echo $ECHO_N "(cached) $ECHO_C" >&6
37215else
37216 ac_check_lib_save_LIBS=$LIBS
37217LIBS="-lresolv $LIBS"
37218cat >conftest.$ac_ext <<_ACEOF
37219/* confdefs.h. */
37220_ACEOF
37221cat confdefs.h >>conftest.$ac_ext
37222cat >>conftest.$ac_ext <<_ACEOF
37223/* end confdefs.h. */
37224
37225/* Override any gcc2 internal prototype to avoid an error. */
37226#ifdef __cplusplus
37227extern "C"
37228#endif
37229/* We use char because int might match the return type of a gcc2
37230 builtin and then its argument prototype would still apply. */
37231char inet_addr ();
37232int
37233main ()
37234{
37235inet_addr ();
37236 ;
37237 return 0;
37238}
37239_ACEOF
37240rm -f conftest.$ac_objext conftest$ac_exeext
37241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37242 (eval $ac_link) 2>conftest.er1
a848cd7e 37243 ac_status=$?
ac1cb8d3
VS
37244 grep -v '^ *+' conftest.er1 >conftest.err
37245 rm -f conftest.er1
37246 cat conftest.err >&5
a848cd7e
SC
37247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37248 (exit $ac_status); } &&
c9a66001 37249 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37251 (eval $ac_try) 2>&5
37252 ac_status=$?
37253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37254 (exit $ac_status); }; } &&
37255 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37257 (eval $ac_try) 2>&5
37258 ac_status=$?
37259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37260 (exit $ac_status); }; }; then
37261 ac_cv_lib_resolv_inet_addr=yes
37262else
37263 echo "$as_me: failed program was:" >&5
37264sed 's/^/| /' conftest.$ac_ext >&5
37265
37266ac_cv_lib_resolv_inet_addr=no
37267fi
ac1cb8d3
VS
37268rm -f conftest.err conftest.$ac_objext \
37269 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37270LIBS=$ac_check_lib_save_LIBS
37271fi
37272echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
37273echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
37274if test $ac_cv_lib_resolv_inet_addr = yes; then
37275 INET_LINK="resolv"
37276else
37277
37278 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
37279echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
37280if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
37281 echo $ECHO_N "(cached) $ECHO_C" >&6
37282else
37283 ac_check_lib_save_LIBS=$LIBS
37284LIBS="-lsocket $LIBS"
37285cat >conftest.$ac_ext <<_ACEOF
37286/* confdefs.h. */
37287_ACEOF
37288cat confdefs.h >>conftest.$ac_ext
37289cat >>conftest.$ac_ext <<_ACEOF
37290/* end confdefs.h. */
37291
37292/* Override any gcc2 internal prototype to avoid an error. */
37293#ifdef __cplusplus
37294extern "C"
37295#endif
37296/* We use char because int might match the return type of a gcc2
37297 builtin and then its argument prototype would still apply. */
37298char inet_addr ();
37299int
37300main ()
37301{
37302inet_addr ();
37303 ;
37304 return 0;
37305}
37306_ACEOF
37307rm -f conftest.$ac_objext conftest$ac_exeext
37308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37309 (eval $ac_link) 2>conftest.er1
a848cd7e 37310 ac_status=$?
ac1cb8d3
VS
37311 grep -v '^ *+' conftest.er1 >conftest.err
37312 rm -f conftest.er1
37313 cat conftest.err >&5
a848cd7e
SC
37314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37315 (exit $ac_status); } &&
c9a66001 37316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37318 (eval $ac_try) 2>&5
37319 ac_status=$?
37320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37321 (exit $ac_status); }; } &&
37322 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37324 (eval $ac_try) 2>&5
37325 ac_status=$?
37326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37327 (exit $ac_status); }; }; then
37328 ac_cv_lib_socket_inet_addr=yes
37329else
37330 echo "$as_me: failed program was:" >&5
37331sed 's/^/| /' conftest.$ac_ext >&5
37332
37333ac_cv_lib_socket_inet_addr=no
37334fi
ac1cb8d3
VS
37335rm -f conftest.err conftest.$ac_objext \
37336 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37337LIBS=$ac_check_lib_save_LIBS
37338fi
37339echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
37340echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
37341if test $ac_cv_lib_socket_inet_addr = yes; then
37342 INET_LINK="socket"
37343
37344fi
37345
37346
37347
37348fi
37349
37350
37351
37352fi
37353
37354
37355
37356fi
37357done
37358
37359
37360
37361for ac_func in inet_aton
37362do
37363as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37364echo "$as_me:$LINENO: checking for $ac_func" >&5
37365echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37366if eval "test \"\${$as_ac_var+set}\" = set"; then
37367 echo $ECHO_N "(cached) $ECHO_C" >&6
37368else
37369 cat >conftest.$ac_ext <<_ACEOF
37370/* confdefs.h. */
37371_ACEOF
37372cat confdefs.h >>conftest.$ac_ext
37373cat >>conftest.$ac_ext <<_ACEOF
37374/* end confdefs.h. */
ac1cb8d3
VS
37375/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37377#define $ac_func innocuous_$ac_func
37378
a848cd7e
SC
37379/* System header to define __stub macros and hopefully few prototypes,
37380 which can conflict with char $ac_func (); below.
37381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37382 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37383
a848cd7e
SC
37384#ifdef __STDC__
37385# include <limits.h>
37386#else
37387# include <assert.h>
37388#endif
ac1cb8d3
VS
37389
37390#undef $ac_func
37391
a848cd7e
SC
37392/* Override any gcc2 internal prototype to avoid an error. */
37393#ifdef __cplusplus
37394extern "C"
37395{
37396#endif
37397/* We use char because int might match the return type of a gcc2
37398 builtin and then its argument prototype would still apply. */
37399char $ac_func ();
37400/* The GNU C library defines this for functions which it implements
37401 to always fail with ENOSYS. Some functions are actually named
37402 something starting with __ and the normal name is an alias. */
37403#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37404choke me
37405#else
37406char (*f) () = $ac_func;
37407#endif
37408#ifdef __cplusplus
37409}
37410#endif
37411
37412int
37413main ()
37414{
37415return f != $ac_func;
37416 ;
37417 return 0;
37418}
37419_ACEOF
37420rm -f conftest.$ac_objext conftest$ac_exeext
37421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37422 (eval $ac_link) 2>conftest.er1
a848cd7e 37423 ac_status=$?
ac1cb8d3
VS
37424 grep -v '^ *+' conftest.er1 >conftest.err
37425 rm -f conftest.er1
37426 cat conftest.err >&5
a848cd7e
SC
37427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37428 (exit $ac_status); } &&
c9a66001 37429 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37431 (eval $ac_try) 2>&5
37432 ac_status=$?
37433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37434 (exit $ac_status); }; } &&
37435 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37437 (eval $ac_try) 2>&5
37438 ac_status=$?
37439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37440 (exit $ac_status); }; }; then
37441 eval "$as_ac_var=yes"
37442else
37443 echo "$as_me: failed program was:" >&5
37444sed 's/^/| /' conftest.$ac_ext >&5
37445
37446eval "$as_ac_var=no"
37447fi
ac1cb8d3
VS
37448rm -f conftest.err conftest.$ac_objext \
37449 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37450fi
37451echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37452echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37453if test `eval echo '${'$as_ac_var'}'` = yes; then
37454 cat >>confdefs.h <<_ACEOF
37455#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37456_ACEOF
37457 cat >>confdefs.h <<\_ACEOF
37458#define HAVE_INET_ATON 1
37459_ACEOF
37460
37461else
37462
37463 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
37464echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
37465echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
37466if eval "test \"\${$as_ac_Lib+set}\" = set"; then
37467 echo $ECHO_N "(cached) $ECHO_C" >&6
37468else
37469 ac_check_lib_save_LIBS=$LIBS
37470LIBS="-l$INET_LINK $LIBS"
37471cat >conftest.$ac_ext <<_ACEOF
37472/* confdefs.h. */
37473_ACEOF
37474cat confdefs.h >>conftest.$ac_ext
37475cat >>conftest.$ac_ext <<_ACEOF
37476/* end confdefs.h. */
37477
37478/* Override any gcc2 internal prototype to avoid an error. */
37479#ifdef __cplusplus
37480extern "C"
37481#endif
37482/* We use char because int might match the return type of a gcc2
37483 builtin and then its argument prototype would still apply. */
37484char inet_aton ();
37485int
37486main ()
37487{
37488inet_aton ();
37489 ;
37490 return 0;
37491}
37492_ACEOF
37493rm -f conftest.$ac_objext conftest$ac_exeext
37494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37495 (eval $ac_link) 2>conftest.er1
a848cd7e 37496 ac_status=$?
ac1cb8d3
VS
37497 grep -v '^ *+' conftest.er1 >conftest.err
37498 rm -f conftest.er1
37499 cat conftest.err >&5
a848cd7e
SC
37500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37501 (exit $ac_status); } &&
c9a66001 37502 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37504 (eval $ac_try) 2>&5
37505 ac_status=$?
37506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37507 (exit $ac_status); }; } &&
37508 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37510 (eval $ac_try) 2>&5
37511 ac_status=$?
37512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37513 (exit $ac_status); }; }; then
37514 eval "$as_ac_Lib=yes"
37515else
37516 echo "$as_me: failed program was:" >&5
37517sed 's/^/| /' conftest.$ac_ext >&5
37518
37519eval "$as_ac_Lib=no"
37520fi
ac1cb8d3
VS
37521rm -f conftest.err conftest.$ac_objext \
37522 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37523LIBS=$ac_check_lib_save_LIBS
37524fi
37525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
37526echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
37527if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37528 cat >>confdefs.h <<\_ACEOF
37529#define HAVE_INET_ATON 1
37530_ACEOF
37531
37532fi
37533
37534
37535fi
37536done
37537
37538
37539if test "x$INET_LINK" != "x"; then
37540 cat >>confdefs.h <<\_ACEOF
37541#define HAVE_INET_ADDR 1
37542_ACEOF
37543
37544 INET_LINK=" -l$INET_LINK"
37545fi
37546
37547fi
37548
37549
37550
37551EXTRALIBS_ESD=
37552echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
37553echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
37554if test "${ac_cv_lib_esd_esd_close+set}" = set; then
37555 echo $ECHO_N "(cached) $ECHO_C" >&6
37556else
37557 ac_check_lib_save_LIBS=$LIBS
37558LIBS="-lesd $LIBS"
37559cat >conftest.$ac_ext <<_ACEOF
37560/* confdefs.h. */
37561_ACEOF
37562cat confdefs.h >>conftest.$ac_ext
37563cat >>conftest.$ac_ext <<_ACEOF
37564/* end confdefs.h. */
37565
37566/* Override any gcc2 internal prototype to avoid an error. */
37567#ifdef __cplusplus
37568extern "C"
37569#endif
37570/* We use char because int might match the return type of a gcc2
37571 builtin and then its argument prototype would still apply. */
37572char esd_close ();
37573int
37574main ()
37575{
37576esd_close ();
37577 ;
37578 return 0;
37579}
37580_ACEOF
37581rm -f conftest.$ac_objext conftest$ac_exeext
37582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37583 (eval $ac_link) 2>conftest.er1
a848cd7e 37584 ac_status=$?
ac1cb8d3
VS
37585 grep -v '^ *+' conftest.er1 >conftest.err
37586 rm -f conftest.er1
37587 cat conftest.err >&5
a848cd7e
SC
37588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37589 (exit $ac_status); } &&
c9a66001 37590 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37592 (eval $ac_try) 2>&5
37593 ac_status=$?
37594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37595 (exit $ac_status); }; } &&
37596 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37598 (eval $ac_try) 2>&5
37599 ac_status=$?
37600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37601 (exit $ac_status); }; }; then
37602 ac_cv_lib_esd_esd_close=yes
37603else
37604 echo "$as_me: failed program was:" >&5
37605sed 's/^/| /' conftest.$ac_ext >&5
37606
37607ac_cv_lib_esd_esd_close=no
37608fi
ac1cb8d3
VS
37609rm -f conftest.err conftest.$ac_objext \
37610 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37611LIBS=$ac_check_lib_save_LIBS
37612fi
37613echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
37614echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
37615if test $ac_cv_lib_esd_esd_close = yes; then
37616
37617
37618for ac_header in esd.h
37619do
37620as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37621if eval "test \"\${$as_ac_Header+set}\" = set"; then
37622 echo "$as_me:$LINENO: checking for $ac_header" >&5
37623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37624if eval "test \"\${$as_ac_Header+set}\" = set"; then
37625 echo $ECHO_N "(cached) $ECHO_C" >&6
37626fi
37627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37628echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37629else
37630 # Is the header compilable?
37631echo "$as_me:$LINENO: checking $ac_header usability" >&5
37632echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37633cat >conftest.$ac_ext <<_ACEOF
37634/* confdefs.h. */
37635_ACEOF
37636cat confdefs.h >>conftest.$ac_ext
37637cat >>conftest.$ac_ext <<_ACEOF
37638/* end confdefs.h. */
37639$ac_includes_default
37640#include <$ac_header>
37641_ACEOF
37642rm -f conftest.$ac_objext
37643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37644 (eval $ac_compile) 2>conftest.er1
a848cd7e 37645 ac_status=$?
ac1cb8d3
VS
37646 grep -v '^ *+' conftest.er1 >conftest.err
37647 rm -f conftest.er1
37648 cat conftest.err >&5
a848cd7e
SC
37649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37650 (exit $ac_status); } &&
c9a66001 37651 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37653 (eval $ac_try) 2>&5
37654 ac_status=$?
37655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37656 (exit $ac_status); }; } &&
37657 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37659 (eval $ac_try) 2>&5
37660 ac_status=$?
37661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37662 (exit $ac_status); }; }; then
37663 ac_header_compiler=yes
37664else
37665 echo "$as_me: failed program was:" >&5
37666sed 's/^/| /' conftest.$ac_ext >&5
37667
37668ac_header_compiler=no
37669fi
ac1cb8d3 37670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37671echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37672echo "${ECHO_T}$ac_header_compiler" >&6
37673
37674# Is the header present?
37675echo "$as_me:$LINENO: checking $ac_header presence" >&5
37676echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37677cat >conftest.$ac_ext <<_ACEOF
37678/* confdefs.h. */
37679_ACEOF
37680cat confdefs.h >>conftest.$ac_ext
37681cat >>conftest.$ac_ext <<_ACEOF
37682/* end confdefs.h. */
37683#include <$ac_header>
37684_ACEOF
37685if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37687 ac_status=$?
37688 grep -v '^ *+' conftest.er1 >conftest.err
37689 rm -f conftest.er1
37690 cat conftest.err >&5
37691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37692 (exit $ac_status); } >/dev/null; then
37693 if test -s conftest.err; then
5d7b7554
VZ
37694 ac_cpp_err=$ac_cxx_preproc_warn_flag
37695 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
37696 else
37697 ac_cpp_err=
37698 fi
37699else
37700 ac_cpp_err=yes
37701fi
37702if test -z "$ac_cpp_err"; then
37703 ac_header_preproc=yes
37704else
37705 echo "$as_me: failed program was:" >&5
37706sed 's/^/| /' conftest.$ac_ext >&5
37707
37708 ac_header_preproc=no
37709fi
37710rm -f conftest.err conftest.$ac_ext
37711echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37712echo "${ECHO_T}$ac_header_preproc" >&6
37713
37714# So? What about this header?
5d7b7554 37715case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 37716 yes:no: )
a848cd7e
SC
37717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37718echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37720echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37721 ac_header_preproc=yes
a848cd7e 37722 ;;
ac1cb8d3 37723 no:yes:* )
a848cd7e
SC
37724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37725echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37727echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37729echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37731echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37733echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37735echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37736 (
37737 cat <<\_ASBOX
ac1cb8d3
VS
37738## ----------------------------------------- ##
37739## Report this to wx-dev@lists.wxwidgets.org ##
37740## ----------------------------------------- ##
a848cd7e
SC
37741_ASBOX
37742 ) |
37743 sed "s/^/$as_me: WARNING: /" >&2
37744 ;;
37745esac
37746echo "$as_me:$LINENO: checking for $ac_header" >&5
37747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37748if eval "test \"\${$as_ac_Header+set}\" = set"; then
37749 echo $ECHO_N "(cached) $ECHO_C" >&6
37750else
ac1cb8d3 37751 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37752fi
37753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37755
37756fi
37757if test `eval echo '${'$as_ac_Header'}'` = yes; then
37758 cat >>confdefs.h <<_ACEOF
37759#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37760_ACEOF
37761
37762 EXTRALIBS_ESD="-lesd"
37763
37764fi
37765
37766done
37767
37768
37769fi
37770
37771
37772
37773echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
37774echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
37775cat >conftest.$ac_ext <<_ACEOF
37776/* confdefs.h. */
37777_ACEOF
37778cat confdefs.h >>conftest.$ac_ext
37779cat >>conftest.$ac_ext <<_ACEOF
37780/* end confdefs.h. */
37781#ifdef __linux__
37782 #include <linux/cdrom.h>
37783 #else
37784 /* For Solaris */
37785 #include <sys/cdio.h>
37786 #endif
37787
37788int
37789main ()
37790{
37791struct cdrom_tocentry entry, old_entry;
37792 ;
37793 return 0;
37794}
37795_ACEOF
37796rm -f conftest.$ac_objext
37797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37798 (eval $ac_compile) 2>conftest.er1
a848cd7e 37799 ac_status=$?
ac1cb8d3
VS
37800 grep -v '^ *+' conftest.er1 >conftest.err
37801 rm -f conftest.er1
37802 cat conftest.err >&5
a848cd7e
SC
37803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37804 (exit $ac_status); } &&
c9a66001 37805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37807 (eval $ac_try) 2>&5
37808 ac_status=$?
37809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37810 (exit $ac_status); }; } &&
37811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37813 (eval $ac_try) 2>&5
37814 ac_status=$?
37815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37816 (exit $ac_status); }; }; then
37817 echo "$as_me:$LINENO: result: yes" >&5
37818echo "${ECHO_T}yes" >&6
37819 cat >>confdefs.h <<\_ACEOF
37820#define HAVE_KNOWN_CDROM_INTERFACE 1
37821_ACEOF
37822
37823else
37824 echo "$as_me: failed program was:" >&5
37825sed 's/^/| /' conftest.$ac_ext >&5
37826
37827echo "$as_me:$LINENO: result: no" >&5
37828echo "${ECHO_T}no" >&6
37829fi
ac1cb8d3 37830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37831
37832
37833cat >confcache <<\_ACEOF
37834# This file is a shell script that caches the results of configure
37835# tests run on this system so they can be shared between configure
37836# scripts and configure runs, see configure's option --config-cache.
37837# It is not useful on other systems. If it contains results you don't
37838# want to keep, you may remove or edit it.
37839#
37840# config.status only pays attention to the cache file if you give it
37841# the --recheck option to rerun configure.
37842#
37843# `ac_cv_env_foo' variables (set or unset) will be overridden when
37844# loading this file, other *unset* `ac_cv_foo' will be assigned the
37845# following values.
37846
37847_ACEOF
37848
37849# The following way of writing the cache mishandles newlines in values,
37850# but we know of no workaround that is simple, portable, and efficient.
37851# So, don't put newlines in cache variables' values.
37852# Ultrix sh set writes to stderr and can't be redirected directly,
37853# and sets the high bit in the cache file unless we assign to the vars.
37854{
37855 (set) 2>&1 |
37856 case `(ac_space=' '; set | grep ac_space) 2>&1` in
37857 *ac_space=\ *)
37858 # `set' does not quote correctly, so add quotes (double-quote
37859 # substitution turns \\\\ into \\, and sed turns \\ into \).
37860 sed -n \
ac1cb8d3
VS
37861 "s/'/'\\\\''/g;
37862 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
37863 ;;
37864 *)
37865 # `set' quotes correctly as required by POSIX, so do not add quotes.
37866 sed -n \
ac1cb8d3 37867 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
37868 ;;
37869 esac;
37870} |
37871 sed '
37872 t clear
37873 : clear
37874 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37875 t end
37876 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37877 : end' >>confcache
37878if diff $cache_file confcache >/dev/null 2>&1; then :; else
37879 if test -w $cache_file; then
37880 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37881 cat confcache >$cache_file
37882 else
37883 echo "not updating unwritable cache $cache_file"
37884 fi
37885fi
37886rm -f confcache
37887
37888
a848cd7e
SC
37889if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37890
37891
37892 THREADS_LINK=
e56f4f9e 37893 THREADS_CXXFLAGS=
a848cd7e
SC
37894
37895 if test "$wxUSE_THREADS" = "yes" ; then
37896 if test "$USE_BEOS" = 1; then
37897 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
37898echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
37899 wxUSE_THREADS="no"
37900 fi
37901 fi
37902
37903 if test "$wxUSE_THREADS" = "yes" ; then
37904
37905
37906 THREAD_OPTS="-pthread"
37907 case "${host}" in
37908 *-*-solaris2* | *-*-sunos4* )
37909 if test "x$GCC" = "xyes"; then
37910 THREAD_OPTS="-pthreads $THREAD_OPTS"
37911 else
37912 THREAD_OPTS="-mt $THREAD_OPTS"
37913 fi
37914 ;;
37915 *-*-freebsd*)
37916 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
37917 ;;
37918 *-*-darwin* | *-*-cygwin* )
37919 THREAD_OPTS=""
37920 ;;
37921 *-*-aix*)
37922 THREAD_OPTS="pthreads"
37923 ;;
37924 *-hp-hpux* )
00421666
MW
37925 if test "x$GCC" = "xyes"; then
37926 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
37927 THREAD_OPTS=""
37928 else
0093c2fc 37929 THREAD_OPTS="-mt"
a848cd7e
SC
37930 fi
37931 ;;
37932
37933 *-*-irix* )
37934 if test "x$GCC" = "xyes"; then
37935 THREAD_OPTS=""
37936 fi
37937 ;;
37938
37939 *-*-*UnixWare*)
37940 if test "x$GCC" != "xyes"; then
37941 THREAD_OPTS="-Ethread"
37942 fi
37943 ;;
37944 esac
37945
37946 THREAD_OPTS="$THREAD_OPTS pthread none"
37947
37948 THREADS_OK=no
37949 for flag in $THREAD_OPTS; do
37950 case $flag in
37951 none)
37952 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
37953echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
37954 ;;
37955
37956 -*)
37957 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
37958echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 37959 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
37960 ;;
37961
37962 *)
37963 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
37964echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
37965 THREADS_LINK="-l$flag"
37966 ;;
37967 esac
37968
37969 save_LIBS="$LIBS"
e56f4f9e 37970 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 37971 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 37972 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
37973
37974 cat >conftest.$ac_ext <<_ACEOF
37975/* confdefs.h. */
37976_ACEOF
37977cat confdefs.h >>conftest.$ac_ext
37978cat >>conftest.$ac_ext <<_ACEOF
37979/* end confdefs.h. */
37980#include <pthread.h>
37981int
37982main ()
37983{
37984pthread_create(0,0,0,0);
37985 ;
37986 return 0;
37987}
37988_ACEOF
37989rm -f conftest.$ac_objext conftest$ac_exeext
37990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37991 (eval $ac_link) 2>conftest.er1
a848cd7e 37992 ac_status=$?
ac1cb8d3
VS
37993 grep -v '^ *+' conftest.er1 >conftest.err
37994 rm -f conftest.er1
37995 cat conftest.err >&5
a848cd7e
SC
37996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37997 (exit $ac_status); } &&
c9a66001 37998 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38000 (eval $ac_try) 2>&5
38001 ac_status=$?
38002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38003 (exit $ac_status); }; } &&
38004 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38006 (eval $ac_try) 2>&5
38007 ac_status=$?
38008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38009 (exit $ac_status); }; }; then
38010 THREADS_OK=yes
38011else
38012 echo "$as_me: failed program was:" >&5
38013sed 's/^/| /' conftest.$ac_ext >&5
38014
38015fi
ac1cb8d3
VS
38016rm -f conftest.err conftest.$ac_objext \
38017 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38018
38019 LIBS="$save_LIBS"
e56f4f9e 38020 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
38021
38022 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38023echo "${ECHO_T}$THREADS_OK" >&6
38024 if test "x$THREADS_OK" = "xyes"; then
38025 break;
38026 fi
38027
38028 THREADS_LINK=""
e56f4f9e 38029 THREADS_CXXFLAGS=""
a848cd7e
SC
38030 done
38031
38032 if test "x$THREADS_OK" != "xyes"; then
38033 wxUSE_THREADS=no
38034 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
38035echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
38036 else
e56f4f9e 38037 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
38038 LIBS="$THREADS_LINK $LIBS"
38039
38040 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
38041echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
38042 flag=no
38043 case "${host}" in
38044 *-aix*)
38045 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
38046 flag="-D_THREAD_SAFE"
38047 ;;
38048 *-freebsd*)
38049 flag="-D_THREAD_SAFE"
38050 ;;
38051 *-hp-hpux* )
38052 flag="-D_REENTRANT"
38053 if test "x$GCC" != "xyes"; then
38054 flag="$flag -D_RWSTD_MULTI_THREAD"
38055 fi
38056 ;;
38057 *solaris* | alpha*-osf*)
38058 flag="-D_REENTRANT"
38059 ;;
38060 esac
38061 echo "$as_me:$LINENO: result: ${flag}" >&5
38062echo "${ECHO_T}${flag}" >&6
38063 if test "x$flag" != xno; then
e56f4f9e 38064 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
38065 fi
38066
e56f4f9e 38067 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
38068 fi
38069 fi
38070
38071 if test "$wxUSE_THREADS" = "yes" ; then
38072
38073for ac_func in thr_setconcurrency
38074do
38075as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38076echo "$as_me:$LINENO: checking for $ac_func" >&5
38077echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38078if eval "test \"\${$as_ac_var+set}\" = set"; then
38079 echo $ECHO_N "(cached) $ECHO_C" >&6
38080else
38081 cat >conftest.$ac_ext <<_ACEOF
38082/* confdefs.h. */
38083_ACEOF
38084cat confdefs.h >>conftest.$ac_ext
38085cat >>conftest.$ac_ext <<_ACEOF
38086/* end confdefs.h. */
ac1cb8d3
VS
38087/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38089#define $ac_func innocuous_$ac_func
38090
a848cd7e
SC
38091/* System header to define __stub macros and hopefully few prototypes,
38092 which can conflict with char $ac_func (); below.
38093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38094 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38095
a848cd7e
SC
38096#ifdef __STDC__
38097# include <limits.h>
38098#else
38099# include <assert.h>
38100#endif
ac1cb8d3
VS
38101
38102#undef $ac_func
38103
a848cd7e
SC
38104/* Override any gcc2 internal prototype to avoid an error. */
38105#ifdef __cplusplus
38106extern "C"
38107{
38108#endif
38109/* We use char because int might match the return type of a gcc2
38110 builtin and then its argument prototype would still apply. */
38111char $ac_func ();
38112/* The GNU C library defines this for functions which it implements
38113 to always fail with ENOSYS. Some functions are actually named
38114 something starting with __ and the normal name is an alias. */
38115#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38116choke me
38117#else
38118char (*f) () = $ac_func;
38119#endif
38120#ifdef __cplusplus
38121}
38122#endif
38123
38124int
38125main ()
38126{
38127return f != $ac_func;
38128 ;
38129 return 0;
38130}
38131_ACEOF
38132rm -f conftest.$ac_objext conftest$ac_exeext
38133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38134 (eval $ac_link) 2>conftest.er1
a848cd7e 38135 ac_status=$?
ac1cb8d3
VS
38136 grep -v '^ *+' conftest.er1 >conftest.err
38137 rm -f conftest.er1
38138 cat conftest.err >&5
a848cd7e
SC
38139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38140 (exit $ac_status); } &&
c9a66001 38141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38143 (eval $ac_try) 2>&5
38144 ac_status=$?
38145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38146 (exit $ac_status); }; } &&
38147 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38149 (eval $ac_try) 2>&5
38150 ac_status=$?
38151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38152 (exit $ac_status); }; }; then
38153 eval "$as_ac_var=yes"
38154else
38155 echo "$as_me: failed program was:" >&5
38156sed 's/^/| /' conftest.$ac_ext >&5
38157
38158eval "$as_ac_var=no"
38159fi
ac1cb8d3
VS
38160rm -f conftest.err conftest.$ac_objext \
38161 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38162fi
38163echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38164echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38165if test `eval echo '${'$as_ac_var'}'` = yes; then
38166 cat >>confdefs.h <<_ACEOF
38167#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38168_ACEOF
38169
38170fi
38171done
38172
38173
6ebeb4c7
VZ
38174 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
38175echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
38176if test "${wx_cv_func_pthread_cleanup+set}" = set; then
38177 echo $ECHO_N "(cached) $ECHO_C" >&6
38178else
38179
38180 cat >conftest.$ac_ext <<_ACEOF
38181/* confdefs.h. */
38182_ACEOF
38183cat confdefs.h >>conftest.$ac_ext
38184cat >>conftest.$ac_ext <<_ACEOF
38185/* end confdefs.h. */
38186#include <pthread.h>
38187 void ThreadCleanupFunc(void *p);
38188
38189int
38190main ()
38191{
38192
38193 void *p;
38194 pthread_cleanup_push(ThreadCleanupFunc, p);
38195 pthread_cleanup_pop(0);
38196
38197 ;
38198 return 0;
38199}
38200_ACEOF
38201rm -f conftest.$ac_objext
38202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38203 (eval $ac_compile) 2>conftest.er1
38204 ac_status=$?
38205 grep -v '^ *+' conftest.er1 >conftest.err
38206 rm -f conftest.er1
38207 cat conftest.err >&5
38208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38209 (exit $ac_status); } &&
c9a66001 38210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
38211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38212 (eval $ac_try) 2>&5
38213 ac_status=$?
38214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38215 (exit $ac_status); }; } &&
38216 { ac_try='test -s conftest.$ac_objext'
38217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38218 (eval $ac_try) 2>&5
38219 ac_status=$?
38220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38221 (exit $ac_status); }; }; then
38222
38223 wx_cv_func_pthread_cleanup=yes
38224
38225else
38226 echo "$as_me: failed program was:" >&5
38227sed 's/^/| /' conftest.$ac_ext >&5
38228
38229
38230 wx_cv_func_pthread_cleanup=no
38231
38232
38233fi
38234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38235
38236fi
38237echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
38238echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
38239 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
38240 cat >>confdefs.h <<\_ACEOF
38241#define wxHAVE_PTHREAD_CLEANUP 1
38242_ACEOF
38243
38244 fi
38245
a848cd7e
SC
38246
38247for ac_header in sched.h
38248do
38249as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38250if eval "test \"\${$as_ac_Header+set}\" = set"; then
38251 echo "$as_me:$LINENO: checking for $ac_header" >&5
38252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38253if eval "test \"\${$as_ac_Header+set}\" = set"; then
38254 echo $ECHO_N "(cached) $ECHO_C" >&6
38255fi
38256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38258else
38259 # Is the header compilable?
38260echo "$as_me:$LINENO: checking $ac_header usability" >&5
38261echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38262cat >conftest.$ac_ext <<_ACEOF
38263/* confdefs.h. */
38264_ACEOF
38265cat confdefs.h >>conftest.$ac_ext
38266cat >>conftest.$ac_ext <<_ACEOF
38267/* end confdefs.h. */
38268$ac_includes_default
38269#include <$ac_header>
38270_ACEOF
38271rm -f conftest.$ac_objext
38272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38273 (eval $ac_compile) 2>conftest.er1
a848cd7e 38274 ac_status=$?
ac1cb8d3
VS
38275 grep -v '^ *+' conftest.er1 >conftest.err
38276 rm -f conftest.er1
38277 cat conftest.err >&5
a848cd7e
SC
38278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38279 (exit $ac_status); } &&
c9a66001 38280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38282 (eval $ac_try) 2>&5
38283 ac_status=$?
38284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38285 (exit $ac_status); }; } &&
38286 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38288 (eval $ac_try) 2>&5
38289 ac_status=$?
38290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38291 (exit $ac_status); }; }; then
38292 ac_header_compiler=yes
38293else
38294 echo "$as_me: failed program was:" >&5
38295sed 's/^/| /' conftest.$ac_ext >&5
38296
38297ac_header_compiler=no
38298fi
ac1cb8d3 38299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38300echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38301echo "${ECHO_T}$ac_header_compiler" >&6
38302
38303# Is the header present?
38304echo "$as_me:$LINENO: checking $ac_header presence" >&5
38305echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38306cat >conftest.$ac_ext <<_ACEOF
38307/* confdefs.h. */
38308_ACEOF
38309cat confdefs.h >>conftest.$ac_ext
38310cat >>conftest.$ac_ext <<_ACEOF
38311/* end confdefs.h. */
38312#include <$ac_header>
38313_ACEOF
38314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38316 ac_status=$?
38317 grep -v '^ *+' conftest.er1 >conftest.err
38318 rm -f conftest.er1
38319 cat conftest.err >&5
38320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38321 (exit $ac_status); } >/dev/null; then
38322 if test -s conftest.err; then
5d7b7554
VZ
38323 ac_cpp_err=$ac_cxx_preproc_warn_flag
38324 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
38325 else
38326 ac_cpp_err=
38327 fi
38328else
38329 ac_cpp_err=yes
38330fi
38331if test -z "$ac_cpp_err"; then
38332 ac_header_preproc=yes
38333else
38334 echo "$as_me: failed program was:" >&5
38335sed 's/^/| /' conftest.$ac_ext >&5
38336
38337 ac_header_preproc=no
38338fi
38339rm -f conftest.err conftest.$ac_ext
38340echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38341echo "${ECHO_T}$ac_header_preproc" >&6
38342
38343# So? What about this header?
5d7b7554 38344case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 38345 yes:no: )
a848cd7e
SC
38346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38347echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38349echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38350 ac_header_preproc=yes
a848cd7e 38351 ;;
ac1cb8d3 38352 no:yes:* )
a848cd7e
SC
38353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38354echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38356echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38358echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38360echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38362echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38364echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38365 (
38366 cat <<\_ASBOX
ac1cb8d3
VS
38367## ----------------------------------------- ##
38368## Report this to wx-dev@lists.wxwidgets.org ##
38369## ----------------------------------------- ##
a848cd7e
SC
38370_ASBOX
38371 ) |
38372 sed "s/^/$as_me: WARNING: /" >&2
38373 ;;
38374esac
38375echo "$as_me:$LINENO: checking for $ac_header" >&5
38376echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38377if eval "test \"\${$as_ac_Header+set}\" = set"; then
38378 echo $ECHO_N "(cached) $ECHO_C" >&6
38379else
ac1cb8d3 38380 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38381fi
38382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38383echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38384
38385fi
38386if test `eval echo '${'$as_ac_Header'}'` = yes; then
38387 cat >>confdefs.h <<_ACEOF
38388#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38389_ACEOF
38390
38391fi
38392
38393done
38394
38395 if test "$ac_cv_header_sched_h" = "yes"; then
38396 echo "$as_me:$LINENO: checking for sched_yield" >&5
38397echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
38398if test "${ac_cv_func_sched_yield+set}" = set; then
38399 echo $ECHO_N "(cached) $ECHO_C" >&6
38400else
38401 cat >conftest.$ac_ext <<_ACEOF
38402/* confdefs.h. */
38403_ACEOF
38404cat confdefs.h >>conftest.$ac_ext
38405cat >>conftest.$ac_ext <<_ACEOF
38406/* end confdefs.h. */
ac1cb8d3
VS
38407/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
38408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38409#define sched_yield innocuous_sched_yield
38410
a848cd7e
SC
38411/* System header to define __stub macros and hopefully few prototypes,
38412 which can conflict with char sched_yield (); below.
38413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38414 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38415
a848cd7e
SC
38416#ifdef __STDC__
38417# include <limits.h>
38418#else
38419# include <assert.h>
38420#endif
ac1cb8d3
VS
38421
38422#undef sched_yield
38423
a848cd7e
SC
38424/* Override any gcc2 internal prototype to avoid an error. */
38425#ifdef __cplusplus
38426extern "C"
38427{
38428#endif
38429/* We use char because int might match the return type of a gcc2
38430 builtin and then its argument prototype would still apply. */
38431char sched_yield ();
38432/* The GNU C library defines this for functions which it implements
38433 to always fail with ENOSYS. Some functions are actually named
38434 something starting with __ and the normal name is an alias. */
38435#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
38436choke me
38437#else
38438char (*f) () = sched_yield;
38439#endif
38440#ifdef __cplusplus
38441}
38442#endif
38443
38444int
38445main ()
38446{
38447return f != sched_yield;
38448 ;
38449 return 0;
38450}
38451_ACEOF
38452rm -f conftest.$ac_objext conftest$ac_exeext
38453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38454 (eval $ac_link) 2>conftest.er1
a848cd7e 38455 ac_status=$?
ac1cb8d3
VS
38456 grep -v '^ *+' conftest.er1 >conftest.err
38457 rm -f conftest.er1
38458 cat conftest.err >&5
a848cd7e
SC
38459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38460 (exit $ac_status); } &&
c9a66001 38461 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38463 (eval $ac_try) 2>&5
38464 ac_status=$?
38465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38466 (exit $ac_status); }; } &&
38467 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38469 (eval $ac_try) 2>&5
38470 ac_status=$?
38471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38472 (exit $ac_status); }; }; then
38473 ac_cv_func_sched_yield=yes
38474else
38475 echo "$as_me: failed program was:" >&5
38476sed 's/^/| /' conftest.$ac_ext >&5
38477
38478ac_cv_func_sched_yield=no
38479fi
ac1cb8d3
VS
38480rm -f conftest.err conftest.$ac_objext \
38481 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38482fi
38483echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
38484echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
38485if test $ac_cv_func_sched_yield = yes; then
38486 cat >>confdefs.h <<\_ACEOF
38487#define HAVE_SCHED_YIELD 1
38488_ACEOF
38489
38490else
38491
38492 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
38493echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
38494if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
38495 echo $ECHO_N "(cached) $ECHO_C" >&6
38496else
38497 ac_check_lib_save_LIBS=$LIBS
38498LIBS="-lposix4 $LIBS"
38499cat >conftest.$ac_ext <<_ACEOF
38500/* confdefs.h. */
38501_ACEOF
38502cat confdefs.h >>conftest.$ac_ext
38503cat >>conftest.$ac_ext <<_ACEOF
38504/* end confdefs.h. */
38505
38506/* Override any gcc2 internal prototype to avoid an error. */
38507#ifdef __cplusplus
38508extern "C"
38509#endif
38510/* We use char because int might match the return type of a gcc2
38511 builtin and then its argument prototype would still apply. */
38512char sched_yield ();
38513int
38514main ()
38515{
38516sched_yield ();
38517 ;
38518 return 0;
38519}
38520_ACEOF
38521rm -f conftest.$ac_objext conftest$ac_exeext
38522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38523 (eval $ac_link) 2>conftest.er1
a848cd7e 38524 ac_status=$?
ac1cb8d3
VS
38525 grep -v '^ *+' conftest.er1 >conftest.err
38526 rm -f conftest.er1
38527 cat conftest.err >&5
a848cd7e
SC
38528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38529 (exit $ac_status); } &&
c9a66001 38530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38532 (eval $ac_try) 2>&5
38533 ac_status=$?
38534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38535 (exit $ac_status); }; } &&
38536 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38538 (eval $ac_try) 2>&5
38539 ac_status=$?
38540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38541 (exit $ac_status); }; }; then
38542 ac_cv_lib_posix4_sched_yield=yes
38543else
38544 echo "$as_me: failed program was:" >&5
38545sed 's/^/| /' conftest.$ac_ext >&5
38546
38547ac_cv_lib_posix4_sched_yield=no
38548fi
ac1cb8d3
VS
38549rm -f conftest.err conftest.$ac_objext \
38550 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38551LIBS=$ac_check_lib_save_LIBS
38552fi
38553echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
38554echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
38555if test $ac_cv_lib_posix4_sched_yield = yes; then
38556 cat >>confdefs.h <<\_ACEOF
38557#define HAVE_SCHED_YIELD 1
38558_ACEOF
38559 POSIX4_LINK=" -lposix4"
38560else
38561 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
38562echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
38563
38564fi
38565
38566
38567
38568fi
38569
38570 fi
38571
38572 HAVE_PRIOR_FUNCS=0
38573 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
38574echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
38575if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
38576 echo $ECHO_N "(cached) $ECHO_C" >&6
38577else
38578 cat >conftest.$ac_ext <<_ACEOF
38579/* confdefs.h. */
38580_ACEOF
38581cat confdefs.h >>conftest.$ac_ext
38582cat >>conftest.$ac_ext <<_ACEOF
38583/* end confdefs.h. */
ac1cb8d3
VS
38584/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
38585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38586#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
38587
a848cd7e
SC
38588/* System header to define __stub macros and hopefully few prototypes,
38589 which can conflict with char pthread_attr_getschedpolicy (); below.
38590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38591 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38592
a848cd7e
SC
38593#ifdef __STDC__
38594# include <limits.h>
38595#else
38596# include <assert.h>
38597#endif
ac1cb8d3
VS
38598
38599#undef pthread_attr_getschedpolicy
38600
a848cd7e
SC
38601/* Override any gcc2 internal prototype to avoid an error. */
38602#ifdef __cplusplus
38603extern "C"
38604{
38605#endif
38606/* We use char because int might match the return type of a gcc2
38607 builtin and then its argument prototype would still apply. */
38608char pthread_attr_getschedpolicy ();
38609/* The GNU C library defines this for functions which it implements
38610 to always fail with ENOSYS. Some functions are actually named
38611 something starting with __ and the normal name is an alias. */
38612#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
38613choke me
38614#else
38615char (*f) () = pthread_attr_getschedpolicy;
38616#endif
38617#ifdef __cplusplus
38618}
38619#endif
38620
38621int
38622main ()
38623{
38624return f != pthread_attr_getschedpolicy;
38625 ;
38626 return 0;
38627}
38628_ACEOF
38629rm -f conftest.$ac_objext conftest$ac_exeext
38630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38631 (eval $ac_link) 2>conftest.er1
a848cd7e 38632 ac_status=$?
ac1cb8d3
VS
38633 grep -v '^ *+' conftest.er1 >conftest.err
38634 rm -f conftest.er1
38635 cat conftest.err >&5
a848cd7e
SC
38636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38637 (exit $ac_status); } &&
c9a66001 38638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38640 (eval $ac_try) 2>&5
38641 ac_status=$?
38642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38643 (exit $ac_status); }; } &&
38644 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38646 (eval $ac_try) 2>&5
38647 ac_status=$?
38648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38649 (exit $ac_status); }; }; then
38650 ac_cv_func_pthread_attr_getschedpolicy=yes
38651else
38652 echo "$as_me: failed program was:" >&5
38653sed 's/^/| /' conftest.$ac_ext >&5
38654
38655ac_cv_func_pthread_attr_getschedpolicy=no
38656fi
ac1cb8d3
VS
38657rm -f conftest.err conftest.$ac_objext \
38658 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38659fi
38660echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
38661echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
38662if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
38663 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
38664echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
38665if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
38666 echo $ECHO_N "(cached) $ECHO_C" >&6
38667else
38668 cat >conftest.$ac_ext <<_ACEOF
38669/* confdefs.h. */
38670_ACEOF
38671cat confdefs.h >>conftest.$ac_ext
38672cat >>conftest.$ac_ext <<_ACEOF
38673/* end confdefs.h. */
ac1cb8d3
VS
38674/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
38675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38676#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
38677
a848cd7e
SC
38678/* System header to define __stub macros and hopefully few prototypes,
38679 which can conflict with char pthread_attr_setschedparam (); below.
38680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38681 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38682
a848cd7e
SC
38683#ifdef __STDC__
38684# include <limits.h>
38685#else
38686# include <assert.h>
38687#endif
ac1cb8d3
VS
38688
38689#undef pthread_attr_setschedparam
38690
a848cd7e
SC
38691/* Override any gcc2 internal prototype to avoid an error. */
38692#ifdef __cplusplus
38693extern "C"
38694{
38695#endif
38696/* We use char because int might match the return type of a gcc2
38697 builtin and then its argument prototype would still apply. */
38698char pthread_attr_setschedparam ();
38699/* The GNU C library defines this for functions which it implements
38700 to always fail with ENOSYS. Some functions are actually named
38701 something starting with __ and the normal name is an alias. */
38702#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
38703choke me
38704#else
38705char (*f) () = pthread_attr_setschedparam;
38706#endif
38707#ifdef __cplusplus
38708}
38709#endif
38710
38711int
38712main ()
38713{
38714return f != pthread_attr_setschedparam;
38715 ;
38716 return 0;
38717}
38718_ACEOF
38719rm -f conftest.$ac_objext conftest$ac_exeext
38720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38721 (eval $ac_link) 2>conftest.er1
a848cd7e 38722 ac_status=$?
ac1cb8d3
VS
38723 grep -v '^ *+' conftest.er1 >conftest.err
38724 rm -f conftest.er1
38725 cat conftest.err >&5
a848cd7e
SC
38726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38727 (exit $ac_status); } &&
c9a66001 38728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38730 (eval $ac_try) 2>&5
38731 ac_status=$?
38732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38733 (exit $ac_status); }; } &&
38734 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38736 (eval $ac_try) 2>&5
38737 ac_status=$?
38738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38739 (exit $ac_status); }; }; then
38740 ac_cv_func_pthread_attr_setschedparam=yes
38741else
38742 echo "$as_me: failed program was:" >&5
38743sed 's/^/| /' conftest.$ac_ext >&5
38744
38745ac_cv_func_pthread_attr_setschedparam=no
38746fi
ac1cb8d3
VS
38747rm -f conftest.err conftest.$ac_objext \
38748 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38749fi
38750echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
38751echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
38752if test $ac_cv_func_pthread_attr_setschedparam = yes; then
38753 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
38754echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
38755if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
38756 echo $ECHO_N "(cached) $ECHO_C" >&6
38757else
38758 cat >conftest.$ac_ext <<_ACEOF
38759/* confdefs.h. */
38760_ACEOF
38761cat confdefs.h >>conftest.$ac_ext
38762cat >>conftest.$ac_ext <<_ACEOF
38763/* end confdefs.h. */
ac1cb8d3
VS
38764/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
38765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38766#define sched_get_priority_max innocuous_sched_get_priority_max
38767
a848cd7e
SC
38768/* System header to define __stub macros and hopefully few prototypes,
38769 which can conflict with char sched_get_priority_max (); below.
38770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38771 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38772
a848cd7e
SC
38773#ifdef __STDC__
38774# include <limits.h>
38775#else
38776# include <assert.h>
38777#endif
ac1cb8d3
VS
38778
38779#undef sched_get_priority_max
38780
a848cd7e
SC
38781/* Override any gcc2 internal prototype to avoid an error. */
38782#ifdef __cplusplus
38783extern "C"
38784{
38785#endif
38786/* We use char because int might match the return type of a gcc2
38787 builtin and then its argument prototype would still apply. */
38788char sched_get_priority_max ();
38789/* The GNU C library defines this for functions which it implements
38790 to always fail with ENOSYS. Some functions are actually named
38791 something starting with __ and the normal name is an alias. */
38792#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
38793choke me
38794#else
38795char (*f) () = sched_get_priority_max;
38796#endif
38797#ifdef __cplusplus
38798}
38799#endif
38800
38801int
38802main ()
38803{
38804return f != sched_get_priority_max;
38805 ;
38806 return 0;
38807}
38808_ACEOF
38809rm -f conftest.$ac_objext conftest$ac_exeext
38810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38811 (eval $ac_link) 2>conftest.er1
a848cd7e 38812 ac_status=$?
ac1cb8d3
VS
38813 grep -v '^ *+' conftest.er1 >conftest.err
38814 rm -f conftest.er1
38815 cat conftest.err >&5
a848cd7e
SC
38816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38817 (exit $ac_status); } &&
c9a66001 38818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38820 (eval $ac_try) 2>&5
38821 ac_status=$?
38822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38823 (exit $ac_status); }; } &&
38824 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38826 (eval $ac_try) 2>&5
38827 ac_status=$?
38828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38829 (exit $ac_status); }; }; then
38830 ac_cv_func_sched_get_priority_max=yes
38831else
38832 echo "$as_me: failed program was:" >&5
38833sed 's/^/| /' conftest.$ac_ext >&5
38834
38835ac_cv_func_sched_get_priority_max=no
38836fi
ac1cb8d3
VS
38837rm -f conftest.err conftest.$ac_objext \
38838 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38839fi
38840echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
38841echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
38842if test $ac_cv_func_sched_get_priority_max = yes; then
38843 HAVE_PRIOR_FUNCS=1
38844else
38845 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
38846echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
38847if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
38848 echo $ECHO_N "(cached) $ECHO_C" >&6
38849else
38850 ac_check_lib_save_LIBS=$LIBS
38851LIBS="-lposix4 $LIBS"
38852cat >conftest.$ac_ext <<_ACEOF
38853/* confdefs.h. */
38854_ACEOF
38855cat confdefs.h >>conftest.$ac_ext
38856cat >>conftest.$ac_ext <<_ACEOF
38857/* end confdefs.h. */
38858
38859/* Override any gcc2 internal prototype to avoid an error. */
38860#ifdef __cplusplus
38861extern "C"
38862#endif
38863/* We use char because int might match the return type of a gcc2
38864 builtin and then its argument prototype would still apply. */
38865char sched_get_priority_max ();
38866int
38867main ()
38868{
38869sched_get_priority_max ();
38870 ;
38871 return 0;
38872}
38873_ACEOF
38874rm -f conftest.$ac_objext conftest$ac_exeext
38875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38876 (eval $ac_link) 2>conftest.er1
a848cd7e 38877 ac_status=$?
ac1cb8d3
VS
38878 grep -v '^ *+' conftest.er1 >conftest.err
38879 rm -f conftest.er1
38880 cat conftest.err >&5
a848cd7e
SC
38881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38882 (exit $ac_status); } &&
c9a66001 38883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38885 (eval $ac_try) 2>&5
38886 ac_status=$?
38887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38888 (exit $ac_status); }; } &&
38889 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38891 (eval $ac_try) 2>&5
38892 ac_status=$?
38893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38894 (exit $ac_status); }; }; then
38895 ac_cv_lib_posix4_sched_get_priority_max=yes
38896else
38897 echo "$as_me: failed program was:" >&5
38898sed 's/^/| /' conftest.$ac_ext >&5
38899
38900ac_cv_lib_posix4_sched_get_priority_max=no
38901fi
ac1cb8d3
VS
38902rm -f conftest.err conftest.$ac_objext \
38903 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38904LIBS=$ac_check_lib_save_LIBS
38905fi
38906echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
38907echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
38908if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
38909
38910 HAVE_PRIOR_FUNCS=1
38911 POSIX4_LINK=" -lposix4"
38912
38913fi
38914
38915
38916fi
38917
38918
38919fi
38920
38921
38922fi
38923
38924
38925 if test "$HAVE_PRIOR_FUNCS" = 1; then
38926 cat >>confdefs.h <<\_ACEOF
38927#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
38928_ACEOF
38929
38930 else
38931 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
38932echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
38933 fi
38934
38935 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
38936echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
38937if test "${ac_cv_func_pthread_cancel+set}" = set; then
38938 echo $ECHO_N "(cached) $ECHO_C" >&6
38939else
38940 cat >conftest.$ac_ext <<_ACEOF
38941/* confdefs.h. */
38942_ACEOF
38943cat confdefs.h >>conftest.$ac_ext
38944cat >>conftest.$ac_ext <<_ACEOF
38945/* end confdefs.h. */
ac1cb8d3
VS
38946/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
38947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38948#define pthread_cancel innocuous_pthread_cancel
38949
a848cd7e
SC
38950/* System header to define __stub macros and hopefully few prototypes,
38951 which can conflict with char pthread_cancel (); below.
38952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38953 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38954
a848cd7e
SC
38955#ifdef __STDC__
38956# include <limits.h>
38957#else
38958# include <assert.h>
38959#endif
ac1cb8d3
VS
38960
38961#undef pthread_cancel
38962
a848cd7e
SC
38963/* Override any gcc2 internal prototype to avoid an error. */
38964#ifdef __cplusplus
38965extern "C"
38966{
38967#endif
38968/* We use char because int might match the return type of a gcc2
38969 builtin and then its argument prototype would still apply. */
38970char pthread_cancel ();
38971/* The GNU C library defines this for functions which it implements
38972 to always fail with ENOSYS. Some functions are actually named
38973 something starting with __ and the normal name is an alias. */
38974#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
38975choke me
38976#else
38977char (*f) () = pthread_cancel;
38978#endif
38979#ifdef __cplusplus
38980}
38981#endif
38982
38983int
38984main ()
38985{
38986return f != pthread_cancel;
38987 ;
38988 return 0;
38989}
38990_ACEOF
38991rm -f conftest.$ac_objext conftest$ac_exeext
38992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38993 (eval $ac_link) 2>conftest.er1
a848cd7e 38994 ac_status=$?
ac1cb8d3
VS
38995 grep -v '^ *+' conftest.er1 >conftest.err
38996 rm -f conftest.er1
38997 cat conftest.err >&5
a848cd7e
SC
38998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38999 (exit $ac_status); } &&
c9a66001 39000 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39002 (eval $ac_try) 2>&5
39003 ac_status=$?
39004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39005 (exit $ac_status); }; } &&
39006 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39008 (eval $ac_try) 2>&5
39009 ac_status=$?
39010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39011 (exit $ac_status); }; }; then
39012 ac_cv_func_pthread_cancel=yes
39013else
39014 echo "$as_me: failed program was:" >&5
39015sed 's/^/| /' conftest.$ac_ext >&5
39016
39017ac_cv_func_pthread_cancel=no
39018fi
ac1cb8d3
VS
39019rm -f conftest.err conftest.$ac_objext \
39020 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39021fi
39022echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39023echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
39024if test $ac_cv_func_pthread_cancel = yes; then
39025 cat >>confdefs.h <<\_ACEOF
39026#define HAVE_PTHREAD_CANCEL 1
39027_ACEOF
39028
39029else
39030 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39031echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39032fi
39033
39034
abc736fd
MW
39035 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39036echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
39037if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39038 echo $ECHO_N "(cached) $ECHO_C" >&6
39039else
39040 cat >conftest.$ac_ext <<_ACEOF
39041/* confdefs.h. */
39042_ACEOF
39043cat confdefs.h >>conftest.$ac_ext
39044cat >>conftest.$ac_ext <<_ACEOF
39045/* end confdefs.h. */
39046/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39048#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39049
39050/* System header to define __stub macros and hopefully few prototypes,
39051 which can conflict with char pthread_attr_setstacksize (); below.
39052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39053 <limits.h> exists even on freestanding compilers. */
39054
39055#ifdef __STDC__
39056# include <limits.h>
39057#else
39058# include <assert.h>
39059#endif
39060
39061#undef pthread_attr_setstacksize
39062
39063/* Override any gcc2 internal prototype to avoid an error. */
39064#ifdef __cplusplus
39065extern "C"
39066{
39067#endif
39068/* We use char because int might match the return type of a gcc2
39069 builtin and then its argument prototype would still apply. */
39070char pthread_attr_setstacksize ();
39071/* The GNU C library defines this for functions which it implements
39072 to always fail with ENOSYS. Some functions are actually named
39073 something starting with __ and the normal name is an alias. */
39074#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
39075choke me
39076#else
39077char (*f) () = pthread_attr_setstacksize;
39078#endif
39079#ifdef __cplusplus
39080}
39081#endif
39082
39083int
39084main ()
39085{
39086return f != pthread_attr_setstacksize;
39087 ;
39088 return 0;
39089}
39090_ACEOF
39091rm -f conftest.$ac_objext conftest$ac_exeext
39092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39093 (eval $ac_link) 2>conftest.er1
39094 ac_status=$?
39095 grep -v '^ *+' conftest.er1 >conftest.err
39096 rm -f conftest.er1
39097 cat conftest.err >&5
39098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39099 (exit $ac_status); } &&
c9a66001 39100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
abc736fd
MW
39101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39102 (eval $ac_try) 2>&5
39103 ac_status=$?
39104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39105 (exit $ac_status); }; } &&
39106 { ac_try='test -s conftest$ac_exeext'
39107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39108 (eval $ac_try) 2>&5
39109 ac_status=$?
39110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39111 (exit $ac_status); }; }; then
39112 ac_cv_func_pthread_attr_setstacksize=yes
39113else
39114 echo "$as_me: failed program was:" >&5
39115sed 's/^/| /' conftest.$ac_ext >&5
39116
39117ac_cv_func_pthread_attr_setstacksize=no
39118fi
39119rm -f conftest.err conftest.$ac_objext \
39120 conftest$ac_exeext conftest.$ac_ext
39121fi
39122echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
39123echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
39124if test $ac_cv_func_pthread_attr_setstacksize = yes; then
39125 cat >>confdefs.h <<\_ACEOF
39126#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
39127_ACEOF
39128
39129fi
39130
a848cd7e
SC
39131
39132
39133 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
39134echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
39135if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
39136 echo $ECHO_N "(cached) $ECHO_C" >&6
39137else
39138
39139 cat >conftest.$ac_ext <<_ACEOF
39140/* confdefs.h. */
39141_ACEOF
39142cat confdefs.h >>conftest.$ac_ext
39143cat >>conftest.$ac_ext <<_ACEOF
39144/* end confdefs.h. */
39145#include <pthread.h>
39146int
39147main ()
39148{
39149
39150 pthread_mutexattr_t attr;
39151 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39152
39153 ;
39154 return 0;
39155}
39156_ACEOF
39157rm -f conftest.$ac_objext
39158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39159 (eval $ac_compile) 2>conftest.er1
a848cd7e 39160 ac_status=$?
ac1cb8d3
VS
39161 grep -v '^ *+' conftest.er1 >conftest.err
39162 rm -f conftest.er1
39163 cat conftest.err >&5
a848cd7e
SC
39164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39165 (exit $ac_status); } &&
c9a66001 39166 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39168 (eval $ac_try) 2>&5
39169 ac_status=$?
39170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39171 (exit $ac_status); }; } &&
39172 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39174 (eval $ac_try) 2>&5
39175 ac_status=$?
39176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39177 (exit $ac_status); }; }; then
123dca7d 39178 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
39179else
39180 echo "$as_me: failed program was:" >&5
39181sed 's/^/| /' conftest.$ac_ext >&5
39182
123dca7d 39183wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
39184
39185fi
ac1cb8d3 39186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39187
39188fi
39189echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
39190echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
39191
39192 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
39193 cat >>confdefs.h <<\_ACEOF
39194#define HAVE_PTHREAD_MUTEXATTR_T 1
39195_ACEOF
39196
123dca7d
VZ
39197
39198 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
39199echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
39200if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
39201 echo $ECHO_N "(cached) $ECHO_C" >&6
39202else
39203
39204 cat >conftest.$ac_ext <<_ACEOF
39205/* confdefs.h. */
39206_ACEOF
39207cat confdefs.h >>conftest.$ac_ext
39208cat >>conftest.$ac_ext <<_ACEOF
39209/* end confdefs.h. */
39210#include <pthread.h>
39211int
39212main ()
39213{
39214
39215 pthread_mutexattr_t attr;
39216 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39217
39218 ;
39219 return 0;
39220}
39221_ACEOF
39222rm -f conftest.$ac_objext
39223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39224 (eval $ac_compile) 2>conftest.er1
39225 ac_status=$?
39226 grep -v '^ *+' conftest.er1 >conftest.err
39227 rm -f conftest.er1
39228 cat conftest.err >&5
39229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39230 (exit $ac_status); } &&
c9a66001 39231 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
39232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39233 (eval $ac_try) 2>&5
39234 ac_status=$?
39235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39236 (exit $ac_status); }; } &&
39237 { ac_try='test -s conftest.$ac_objext'
39238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39239 (eval $ac_try) 2>&5
39240 ac_status=$?
39241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39242 (exit $ac_status); }; }; then
39243 wx_cv_func_pthread_mutexattr_settype_decl=yes
39244else
39245 echo "$as_me: failed program was:" >&5
39246sed 's/^/| /' conftest.$ac_ext >&5
39247
39248wx_cv_func_pthread_mutexattr_settype_decl=no
39249
39250fi
39251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39252
39253fi
39254echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
39255echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
39256 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
39257 cat >>confdefs.h <<\_ACEOF
39258#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
39259_ACEOF
39260
39261 fi
a848cd7e
SC
39262 else
39263 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
39264echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
39265if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
39266 echo $ECHO_N "(cached) $ECHO_C" >&6
39267else
39268
39269 cat >conftest.$ac_ext <<_ACEOF
39270/* confdefs.h. */
39271_ACEOF
39272cat confdefs.h >>conftest.$ac_ext
39273cat >>conftest.$ac_ext <<_ACEOF
39274/* end confdefs.h. */
39275#include <pthread.h>
39276int
39277main ()
39278{
39279
39280 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
39281
39282 ;
39283 return 0;
39284}
39285_ACEOF
39286rm -f conftest.$ac_objext
39287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39288 (eval $ac_compile) 2>conftest.er1
a848cd7e 39289 ac_status=$?
ac1cb8d3
VS
39290 grep -v '^ *+' conftest.er1 >conftest.err
39291 rm -f conftest.er1
39292 cat conftest.err >&5
a848cd7e
SC
39293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39294 (exit $ac_status); } &&
c9a66001 39295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39297 (eval $ac_try) 2>&5
39298 ac_status=$?
39299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39300 (exit $ac_status); }; } &&
39301 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39303 (eval $ac_try) 2>&5
39304 ac_status=$?
39305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39306 (exit $ac_status); }; }; then
39307
39308 wx_cv_type_pthread_rec_mutex_init=yes
39309
39310else
39311 echo "$as_me: failed program was:" >&5
39312sed 's/^/| /' conftest.$ac_ext >&5
39313
39314
39315 wx_cv_type_pthread_rec_mutex_init=no
39316
39317
39318fi
ac1cb8d3 39319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39320
39321fi
39322echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
39323echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
39324 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
39325 cat >>confdefs.h <<\_ACEOF
39326#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
39327_ACEOF
39328
39329 else
39330 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
39331echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
39332 fi
39333 fi
39334 fi
39335
39336else
39337 if test "$wxUSE_THREADS" = "yes" ; then
39338 case "${host}" in
39339 *-*-mingw32* )
39340 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
39341echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
39342if test "${wx_cv_cflags_mthread+set}" = set; then
39343 echo $ECHO_N "(cached) $ECHO_C" >&6
39344else
39345
e56f4f9e
VZ
39346 CXXFLAGS_OLD="$CXXFLAGS"
39347 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
39348 cat >conftest.$ac_ext <<_ACEOF
39349/* confdefs.h. */
39350_ACEOF
39351cat confdefs.h >>conftest.$ac_ext
39352cat >>conftest.$ac_ext <<_ACEOF
39353/* end confdefs.h. */
39354
39355int
39356main ()
39357{
39358
39359 ;
39360 return 0;
39361}
39362_ACEOF
39363rm -f conftest.$ac_objext
39364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39365 (eval $ac_compile) 2>conftest.er1
a848cd7e 39366 ac_status=$?
ac1cb8d3
VS
39367 grep -v '^ *+' conftest.er1 >conftest.err
39368 rm -f conftest.er1
39369 cat conftest.err >&5
a848cd7e
SC
39370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39371 (exit $ac_status); } &&
c9a66001 39372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39374 (eval $ac_try) 2>&5
39375 ac_status=$?
39376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39377 (exit $ac_status); }; } &&
39378 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39380 (eval $ac_try) 2>&5
39381 ac_status=$?
39382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39383 (exit $ac_status); }; }; then
39384 wx_cv_cflags_mthread=yes
39385else
39386 echo "$as_me: failed program was:" >&5
39387sed 's/^/| /' conftest.$ac_ext >&5
39388
39389wx_cv_cflags_mthread=no
39390
39391fi
ac1cb8d3 39392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39393
39394
39395fi
39396echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
39397echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
39398
39399 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 39400 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
39401 LDFLAGS="$LDFLAGS -mthreads"
39402 else
e56f4f9e 39403 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
39404 fi
39405 ;;
39406 *-pc-os2*emx )
5ff751d6
VZ
39407 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
39408 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
39409 LDFLAGS="$LDFLAGS -Zmt"
39410 ;;
39411 esac
39412 fi
39413fi
39414
004ee6da
RL
39415echo "$as_me:$LINENO: checking for localtime_r" >&5
39416echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
39417if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
39418 echo $ECHO_N "(cached) $ECHO_C" >&6
39419else
39420 cat >conftest.$ac_ext <<_ACEOF
39421/* confdefs.h. */
39422_ACEOF
39423cat confdefs.h >>conftest.$ac_ext
39424cat >>conftest.$ac_ext <<_ACEOF
39425/* end confdefs.h. */
004ee6da 39426/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 39427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 39428#define localtime_r innocuous_localtime_r
ac1cb8d3 39429
a848cd7e 39430/* System header to define __stub macros and hopefully few prototypes,
004ee6da 39431 which can conflict with char localtime_r (); below.
a848cd7e
SC
39432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39433 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39434
a848cd7e
SC
39435#ifdef __STDC__
39436# include <limits.h>
39437#else
39438# include <assert.h>
39439#endif
ac1cb8d3 39440
004ee6da 39441#undef localtime_r
ac1cb8d3 39442
a848cd7e
SC
39443/* Override any gcc2 internal prototype to avoid an error. */
39444#ifdef __cplusplus
39445extern "C"
39446{
39447#endif
39448/* We use char because int might match the return type of a gcc2
39449 builtin and then its argument prototype would still apply. */
004ee6da 39450char localtime_r ();
a848cd7e
SC
39451/* The GNU C library defines this for functions which it implements
39452 to always fail with ENOSYS. Some functions are actually named
39453 something starting with __ and the normal name is an alias. */
004ee6da 39454#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
39455choke me
39456#else
004ee6da 39457char (*f) () = localtime_r;
a848cd7e
SC
39458#endif
39459#ifdef __cplusplus
39460}
39461#endif
39462
39463int
39464main ()
39465{
004ee6da
RL
39466return f != localtime_r;
39467 ;
39468 return 0;
39469}
39470_ACEOF
39471rm -f conftest.$ac_objext conftest$ac_exeext
39472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39473 (eval $ac_link) 2>conftest.er1
39474 ac_status=$?
39475 grep -v '^ *+' conftest.er1 >conftest.err
39476 rm -f conftest.er1
39477 cat conftest.err >&5
39478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39479 (exit $ac_status); } &&
c9a66001 39480 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39482 (eval $ac_try) 2>&5
39483 ac_status=$?
39484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39485 (exit $ac_status); }; } &&
39486 { ac_try='test -s conftest$ac_exeext'
39487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39488 (eval $ac_try) 2>&5
39489 ac_status=$?
39490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39491 (exit $ac_status); }; }; then
39492 ac_cv_func_localtime_r=yes
39493else
39494 echo "$as_me: failed program was:" >&5
39495sed 's/^/| /' conftest.$ac_ext >&5
39496
39497ac_cv_func_localtime_r=no
39498fi
39499rm -f conftest.err conftest.$ac_objext \
39500 conftest$ac_exeext conftest.$ac_ext
39501fi
39502echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
39503echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
39504if test $ac_cv_func_localtime_r = yes; then
39505 cat >>confdefs.h <<\_ACEOF
39506#define HAVE_LOCALTIME_R 1
39507_ACEOF
39508
39509fi
39510
39511echo "$as_me:$LINENO: checking for gmtime_r" >&5
39512echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
39513if test "${ac_cv_func_gmtime_r+set}" = set; then
39514 echo $ECHO_N "(cached) $ECHO_C" >&6
39515else
39516 cat >conftest.$ac_ext <<_ACEOF
39517/* confdefs.h. */
39518_ACEOF
39519cat confdefs.h >>conftest.$ac_ext
39520cat >>conftest.$ac_ext <<_ACEOF
39521/* end confdefs.h. */
39522/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
39523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39524#define gmtime_r innocuous_gmtime_r
39525
39526/* System header to define __stub macros and hopefully few prototypes,
39527 which can conflict with char gmtime_r (); below.
39528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39529 <limits.h> exists even on freestanding compilers. */
39530
39531#ifdef __STDC__
39532# include <limits.h>
39533#else
39534# include <assert.h>
39535#endif
39536
39537#undef gmtime_r
39538
39539/* Override any gcc2 internal prototype to avoid an error. */
39540#ifdef __cplusplus
39541extern "C"
39542{
39543#endif
39544/* We use char because int might match the return type of a gcc2
39545 builtin and then its argument prototype would still apply. */
39546char gmtime_r ();
39547/* The GNU C library defines this for functions which it implements
39548 to always fail with ENOSYS. Some functions are actually named
39549 something starting with __ and the normal name is an alias. */
39550#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
39551choke me
39552#else
39553char (*f) () = gmtime_r;
39554#endif
39555#ifdef __cplusplus
39556}
39557#endif
39558
39559int
39560main ()
39561{
39562return f != gmtime_r;
39563 ;
39564 return 0;
39565}
39566_ACEOF
39567rm -f conftest.$ac_objext conftest$ac_exeext
39568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39569 (eval $ac_link) 2>conftest.er1
39570 ac_status=$?
39571 grep -v '^ *+' conftest.er1 >conftest.err
39572 rm -f conftest.er1
39573 cat conftest.err >&5
39574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39575 (exit $ac_status); } &&
c9a66001 39576 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39578 (eval $ac_try) 2>&5
39579 ac_status=$?
39580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39581 (exit $ac_status); }; } &&
39582 { ac_try='test -s conftest$ac_exeext'
39583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39584 (eval $ac_try) 2>&5
39585 ac_status=$?
39586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39587 (exit $ac_status); }; }; then
39588 ac_cv_func_gmtime_r=yes
39589else
39590 echo "$as_me: failed program was:" >&5
39591sed 's/^/| /' conftest.$ac_ext >&5
39592
39593ac_cv_func_gmtime_r=no
39594fi
39595rm -f conftest.err conftest.$ac_objext \
39596 conftest$ac_exeext conftest.$ac_ext
39597fi
39598echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
39599echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
39600if test $ac_cv_func_gmtime_r = yes; then
39601 cat >>confdefs.h <<\_ACEOF
39602#define HAVE_GMTIME_R 1
39603_ACEOF
39604
39605fi
39606
39607echo "$as_me:$LINENO: checking for readdir_r" >&5
39608echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
39609if test "${ac_cv_func_readdir_r+set}" = set; then
39610 echo $ECHO_N "(cached) $ECHO_C" >&6
39611else
39612 cat >conftest.$ac_ext <<_ACEOF
39613/* confdefs.h. */
39614_ACEOF
39615cat confdefs.h >>conftest.$ac_ext
39616cat >>conftest.$ac_ext <<_ACEOF
39617/* end confdefs.h. */
39618/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
39619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39620#define readdir_r innocuous_readdir_r
39621
39622/* System header to define __stub macros and hopefully few prototypes,
39623 which can conflict with char readdir_r (); below.
39624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39625 <limits.h> exists even on freestanding compilers. */
39626
39627#ifdef __STDC__
39628# include <limits.h>
39629#else
39630# include <assert.h>
39631#endif
39632
39633#undef readdir_r
39634
39635/* Override any gcc2 internal prototype to avoid an error. */
39636#ifdef __cplusplus
39637extern "C"
39638{
39639#endif
39640/* We use char because int might match the return type of a gcc2
39641 builtin and then its argument prototype would still apply. */
39642char readdir_r ();
39643/* The GNU C library defines this for functions which it implements
39644 to always fail with ENOSYS. Some functions are actually named
39645 something starting with __ and the normal name is an alias. */
39646#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
39647choke me
39648#else
39649char (*f) () = readdir_r;
39650#endif
39651#ifdef __cplusplus
39652}
39653#endif
39654
39655int
39656main ()
39657{
39658return f != readdir_r;
39659 ;
39660 return 0;
39661}
39662_ACEOF
39663rm -f conftest.$ac_objext conftest$ac_exeext
39664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39665 (eval $ac_link) 2>conftest.er1
39666 ac_status=$?
39667 grep -v '^ *+' conftest.er1 >conftest.err
39668 rm -f conftest.er1
39669 cat conftest.err >&5
39670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39671 (exit $ac_status); } &&
c9a66001 39672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39674 (eval $ac_try) 2>&5
39675 ac_status=$?
39676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39677 (exit $ac_status); }; } &&
39678 { ac_try='test -s conftest$ac_exeext'
39679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39680 (eval $ac_try) 2>&5
39681 ac_status=$?
39682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39683 (exit $ac_status); }; }; then
39684 ac_cv_func_readdir_r=yes
39685else
39686 echo "$as_me: failed program was:" >&5
39687sed 's/^/| /' conftest.$ac_ext >&5
39688
39689ac_cv_func_readdir_r=no
39690fi
39691rm -f conftest.err conftest.$ac_objext \
39692 conftest$ac_exeext conftest.$ac_ext
39693fi
39694echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
39695echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
39696if test $ac_cv_func_readdir_r = yes; then
39697 cat >>confdefs.h <<\_ACEOF
39698#define HAVE_READDIR_R 1
39699_ACEOF
39700
39701fi
39702
004ee6da 39703
004ee6da
RL
39704
39705
39706 ac_ext=c
39707ac_cpp='$CPP $CPPFLAGS'
39708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39710ac_compiler_gnu=$ac_cv_c_compiler_gnu
39711
39712 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
39713echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
39714
39715 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
39716 echo $ECHO_N "(cached) $ECHO_C" >&6
39717else
39718
39719
2f6c5bb5 39720################################################################
004ee6da
RL
39721
39722ac_cv_func_which_gethostbyname_r=unknown
39723
39724#
39725# ONE ARGUMENT (sanity check)
39726#
39727
39728# This should fail, as there is no variant of gethostbyname_r() that takes
39729# a single argument. If it actually compiles, then we can assume that
39730# netdb.h is not declaring the function, and the compiler is thereby
39731# assuming an implicit prototype. In which case, we're out of luck.
39732#
39733cat >conftest.$ac_ext <<_ACEOF
39734/* confdefs.h. */
39735_ACEOF
39736cat confdefs.h >>conftest.$ac_ext
39737cat >>conftest.$ac_ext <<_ACEOF
39738/* end confdefs.h. */
39739#include <netdb.h>
39740int
39741main ()
39742{
39743
39744 char *name = "www.gnu.org";
39745 (void)gethostbyname_r(name) /* ; */
39746
39747 ;
39748 return 0;
39749}
39750_ACEOF
39751rm -f conftest.$ac_objext
39752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39753 (eval $ac_compile) 2>conftest.er1
39754 ac_status=$?
39755 grep -v '^ *+' conftest.er1 >conftest.err
39756 rm -f conftest.er1
39757 cat conftest.err >&5
39758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39759 (exit $ac_status); } &&
c9a66001 39760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39762 (eval $ac_try) 2>&5
39763 ac_status=$?
39764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39765 (exit $ac_status); }; } &&
39766 { ac_try='test -s conftest.$ac_objext'
39767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39768 (eval $ac_try) 2>&5
39769 ac_status=$?
39770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39771 (exit $ac_status); }; }; then
39772 ac_cv_func_which_gethostbyname_r=no
39773else
39774 echo "$as_me: failed program was:" >&5
39775sed 's/^/| /' conftest.$ac_ext >&5
39776
39777fi
39778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39779
39780#
39781# SIX ARGUMENTS
39782# (e.g. Linux)
39783#
39784
39785if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39786
39787cat >conftest.$ac_ext <<_ACEOF
39788/* confdefs.h. */
39789_ACEOF
39790cat confdefs.h >>conftest.$ac_ext
39791cat >>conftest.$ac_ext <<_ACEOF
39792/* end confdefs.h. */
39793#include <netdb.h>
39794int
39795main ()
39796{
39797
39798 char *name = "www.gnu.org";
39799 struct hostent ret, *retp;
39800 char buf[1024];
39801 int buflen = 1024;
39802 int my_h_errno;
39803 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
39804
39805 ;
39806 return 0;
39807}
39808_ACEOF
39809rm -f conftest.$ac_objext
39810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39811 (eval $ac_compile) 2>conftest.er1
39812 ac_status=$?
39813 grep -v '^ *+' conftest.er1 >conftest.err
39814 rm -f conftest.er1
39815 cat conftest.err >&5
39816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39817 (exit $ac_status); } &&
c9a66001 39818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39820 (eval $ac_try) 2>&5
39821 ac_status=$?
39822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39823 (exit $ac_status); }; } &&
39824 { ac_try='test -s conftest.$ac_objext'
39825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39826 (eval $ac_try) 2>&5
39827 ac_status=$?
39828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39829 (exit $ac_status); }; }; then
39830 ac_cv_func_which_gethostbyname_r=six
39831else
39832 echo "$as_me: failed program was:" >&5
39833sed 's/^/| /' conftest.$ac_ext >&5
39834
39835fi
39836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39837
39838fi
39839
39840#
39841# FIVE ARGUMENTS
39842# (e.g. Solaris)
39843#
39844
39845if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39846
39847cat >conftest.$ac_ext <<_ACEOF
39848/* confdefs.h. */
39849_ACEOF
39850cat confdefs.h >>conftest.$ac_ext
39851cat >>conftest.$ac_ext <<_ACEOF
39852/* end confdefs.h. */
39853#include <netdb.h>
39854int
39855main ()
39856{
39857
39858 char *name = "www.gnu.org";
39859 struct hostent ret;
39860 char buf[1024];
39861 int buflen = 1024;
39862 int my_h_errno;
39863 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
39864
39865 ;
39866 return 0;
39867}
39868_ACEOF
39869rm -f conftest.$ac_objext
39870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39871 (eval $ac_compile) 2>conftest.er1
39872 ac_status=$?
39873 grep -v '^ *+' conftest.er1 >conftest.err
39874 rm -f conftest.er1
39875 cat conftest.err >&5
39876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39877 (exit $ac_status); } &&
c9a66001 39878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39880 (eval $ac_try) 2>&5
39881 ac_status=$?
39882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39883 (exit $ac_status); }; } &&
39884 { ac_try='test -s conftest.$ac_objext'
39885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39886 (eval $ac_try) 2>&5
39887 ac_status=$?
39888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39889 (exit $ac_status); }; }; then
39890 ac_cv_func_which_gethostbyname_r=five
39891else
39892 echo "$as_me: failed program was:" >&5
39893sed 's/^/| /' conftest.$ac_ext >&5
39894
39895fi
39896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39897
39898fi
39899
39900#
39901# THREE ARGUMENTS
39902# (e.g. AIX, HP-UX, Tru64)
39903#
39904
39905if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39906
39907cat >conftest.$ac_ext <<_ACEOF
39908/* confdefs.h. */
39909_ACEOF
39910cat confdefs.h >>conftest.$ac_ext
39911cat >>conftest.$ac_ext <<_ACEOF
39912/* end confdefs.h. */
39913#include <netdb.h>
39914int
39915main ()
39916{
39917
39918 char *name = "www.gnu.org";
39919 struct hostent ret;
39920 struct hostent_data data;
39921 (void)gethostbyname_r(name, &ret, &data) /* ; */
39922
39923 ;
39924 return 0;
39925}
39926_ACEOF
39927rm -f conftest.$ac_objext
39928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39929 (eval $ac_compile) 2>conftest.er1
39930 ac_status=$?
39931 grep -v '^ *+' conftest.er1 >conftest.err
39932 rm -f conftest.er1
39933 cat conftest.err >&5
39934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39935 (exit $ac_status); } &&
c9a66001 39936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39938 (eval $ac_try) 2>&5
39939 ac_status=$?
39940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39941 (exit $ac_status); }; } &&
39942 { ac_try='test -s conftest.$ac_objext'
39943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39944 (eval $ac_try) 2>&5
39945 ac_status=$?
39946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39947 (exit $ac_status); }; }; then
39948 ac_cv_func_which_gethostbyname_r=three
39949else
39950 echo "$as_me: failed program was:" >&5
39951sed 's/^/| /' conftest.$ac_ext >&5
39952
39953fi
39954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39955
39956fi
39957
2f6c5bb5 39958################################################################
004ee6da
RL
39959
39960
39961fi
39962
39963case "$ac_cv_func_which_gethostbyname_r" in
39964 three)
39965 echo "$as_me:$LINENO: result: three" >&5
39966echo "${ECHO_T}three" >&6
39967 cat >>confdefs.h <<\_ACEOF
39968#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
39969_ACEOF
39970
39971 ;;
39972
39973 five)
39974 echo "$as_me:$LINENO: result: five" >&5
39975echo "${ECHO_T}five" >&6
39976 cat >>confdefs.h <<\_ACEOF
39977#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
39978_ACEOF
39979
39980 ;;
39981
39982 six)
39983 echo "$as_me:$LINENO: result: six" >&5
39984echo "${ECHO_T}six" >&6
39985 cat >>confdefs.h <<\_ACEOF
39986#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
39987_ACEOF
39988
39989 ;;
39990
39991 no)
39992 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
39993echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
39994 ;;
39995
39996 unknown)
39997 echo "$as_me:$LINENO: result: can't tell" >&5
39998echo "${ECHO_T}can't tell" >&6
39999 ;;
40000
40001 *)
40002 { { echo "$as_me:$LINENO: error: internal error" >&5
40003echo "$as_me: error: internal error" >&2;}
40004 { (exit 1); exit 1; }; }
40005 ;;
40006esac
40007
5ec3bc43
JS
40008ac_ext=cc
40009ac_cpp='$CXXCPP $CPPFLAGS'
40010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
40013
40014
40015
40016 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40017 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40018 echo "$as_me:$LINENO: checking for gethostbyname" >&5
40019echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
40020if test "${ac_cv_func_gethostbyname+set}" = set; then
40021 echo $ECHO_N "(cached) $ECHO_C" >&6
40022else
40023 cat >conftest.$ac_ext <<_ACEOF
40024/* confdefs.h. */
40025_ACEOF
40026cat confdefs.h >>conftest.$ac_ext
40027cat >>conftest.$ac_ext <<_ACEOF
40028/* end confdefs.h. */
40029/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
40030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40031#define gethostbyname innocuous_gethostbyname
40032
40033/* System header to define __stub macros and hopefully few prototypes,
40034 which can conflict with char gethostbyname (); below.
40035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40036 <limits.h> exists even on freestanding compilers. */
40037
40038#ifdef __STDC__
40039# include <limits.h>
40040#else
40041# include <assert.h>
40042#endif
40043
40044#undef gethostbyname
40045
40046/* Override any gcc2 internal prototype to avoid an error. */
40047#ifdef __cplusplus
40048extern "C"
40049{
40050#endif
40051/* We use char because int might match the return type of a gcc2
40052 builtin and then its argument prototype would still apply. */
40053char gethostbyname ();
40054/* The GNU C library defines this for functions which it implements
40055 to always fail with ENOSYS. Some functions are actually named
40056 something starting with __ and the normal name is an alias. */
40057#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
40058choke me
40059#else
40060char (*f) () = gethostbyname;
40061#endif
40062#ifdef __cplusplus
40063}
40064#endif
40065
40066int
40067main ()
40068{
40069return f != gethostbyname;
40070 ;
40071 return 0;
40072}
40073_ACEOF
40074rm -f conftest.$ac_objext conftest$ac_exeext
40075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40076 (eval $ac_link) 2>conftest.er1
40077 ac_status=$?
40078 grep -v '^ *+' conftest.er1 >conftest.err
40079 rm -f conftest.er1
40080 cat conftest.err >&5
40081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40082 (exit $ac_status); } &&
c9a66001 40083 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40085 (eval $ac_try) 2>&5
40086 ac_status=$?
40087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40088 (exit $ac_status); }; } &&
40089 { ac_try='test -s conftest$ac_exeext'
40090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40091 (eval $ac_try) 2>&5
40092 ac_status=$?
40093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40094 (exit $ac_status); }; }; then
40095 ac_cv_func_gethostbyname=yes
40096else
40097 echo "$as_me: failed program was:" >&5
40098sed 's/^/| /' conftest.$ac_ext >&5
40099
40100ac_cv_func_gethostbyname=no
40101fi
40102rm -f conftest.err conftest.$ac_objext \
40103 conftest$ac_exeext conftest.$ac_ext
40104fi
40105echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
40106echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
40107if test $ac_cv_func_gethostbyname = yes; then
40108 cat >>confdefs.h <<\_ACEOF
40109#define HAVE_GETHOSTBYNAME 1
40110_ACEOF
40111
40112fi
40113
40114 fi
40115 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
40116echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
3ecd9f92
MW
40117if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
40118 echo $ECHO_N "(cached) $ECHO_C" >&6
40119else
40120
40121echo "$as_me:$LINENO: checking for getservbyname_r" >&5
40122echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
004ee6da
RL
40123if test "${ac_cv_func_getservbyname_r+set}" = set; then
40124 echo $ECHO_N "(cached) $ECHO_C" >&6
40125else
40126 cat >conftest.$ac_ext <<_ACEOF
40127/* confdefs.h. */
40128_ACEOF
40129cat confdefs.h >>conftest.$ac_ext
40130cat >>conftest.$ac_ext <<_ACEOF
40131/* end confdefs.h. */
40132/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
40133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40134#define getservbyname_r innocuous_getservbyname_r
40135
40136/* System header to define __stub macros and hopefully few prototypes,
40137 which can conflict with char getservbyname_r (); below.
40138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40139 <limits.h> exists even on freestanding compilers. */
40140
40141#ifdef __STDC__
40142# include <limits.h>
40143#else
40144# include <assert.h>
40145#endif
40146
40147#undef getservbyname_r
40148
40149/* Override any gcc2 internal prototype to avoid an error. */
40150#ifdef __cplusplus
40151extern "C"
40152{
40153#endif
40154/* We use char because int might match the return type of a gcc2
40155 builtin and then its argument prototype would still apply. */
40156char getservbyname_r ();
40157/* The GNU C library defines this for functions which it implements
40158 to always fail with ENOSYS. Some functions are actually named
40159 something starting with __ and the normal name is an alias. */
40160#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
40161choke me
40162#else
40163char (*f) () = getservbyname_r;
40164#endif
40165#ifdef __cplusplus
40166}
40167#endif
40168
40169int
40170main ()
40171{
40172return f != getservbyname_r;
40173 ;
40174 return 0;
40175}
40176_ACEOF
40177rm -f conftest.$ac_objext conftest$ac_exeext
40178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40179 (eval $ac_link) 2>conftest.er1
40180 ac_status=$?
40181 grep -v '^ *+' conftest.er1 >conftest.err
40182 rm -f conftest.er1
40183 cat conftest.err >&5
40184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40185 (exit $ac_status); } &&
c9a66001 40186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40188 (eval $ac_try) 2>&5
40189 ac_status=$?
40190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40191 (exit $ac_status); }; } &&
40192 { ac_try='test -s conftest$ac_exeext'
40193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40194 (eval $ac_try) 2>&5
40195 ac_status=$?
40196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40197 (exit $ac_status); }; }; then
40198 ac_cv_func_getservbyname_r=yes
40199else
40200 echo "$as_me: failed program was:" >&5
40201sed 's/^/| /' conftest.$ac_ext >&5
40202
40203ac_cv_func_getservbyname_r=no
40204fi
40205rm -f conftest.err conftest.$ac_objext \
40206 conftest$ac_exeext conftest.$ac_ext
40207fi
40208echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
40209echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
40210if test $ac_cv_func_getservbyname_r = yes; then
3ecd9f92
MW
40211
40212 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40213/* confdefs.h. */
40214_ACEOF
40215cat confdefs.h >>conftest.$ac_ext
40216cat >>conftest.$ac_ext <<_ACEOF
40217/* end confdefs.h. */
3ecd9f92
MW
40218
40219# include <netdb.h>
40220
004ee6da
RL
40221int
40222main ()
40223{
40224
3ecd9f92
MW
40225
40226 char *name;
40227 char *proto;
40228 struct servent *se;
40229 struct servent_data data;
40230 (void) getservbyname_r(name, proto, se, &data);
40231
004ee6da
RL
40232
40233 ;
40234 return 0;
40235}
40236_ACEOF
40237rm -f conftest.$ac_objext
40238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40239 (eval $ac_compile) 2>conftest.er1
40240 ac_status=$?
40241 grep -v '^ *+' conftest.er1 >conftest.err
40242 rm -f conftest.er1
40243 cat conftest.err >&5
40244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40245 (exit $ac_status); } &&
c9a66001 40246 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40248 (eval $ac_try) 2>&5
40249 ac_status=$?
40250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40251 (exit $ac_status); }; } &&
40252 { ac_try='test -s conftest.$ac_objext'
40253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40254 (eval $ac_try) 2>&5
40255 ac_status=$?
40256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40257 (exit $ac_status); }; }; then
40258 ac_cv_func_which_getservbyname_r=four
40259else
40260 echo "$as_me: failed program was:" >&5
40261sed 's/^/| /' conftest.$ac_ext >&5
40262
3ecd9f92
MW
40263
40264 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40265/* confdefs.h. */
40266_ACEOF
40267cat confdefs.h >>conftest.$ac_ext
40268cat >>conftest.$ac_ext <<_ACEOF
40269/* end confdefs.h. */
3ecd9f92
MW
40270
40271# include <netdb.h>
40272
004ee6da
RL
40273int
40274main ()
40275{
40276
3ecd9f92
MW
40277 char *name;
40278 char *proto;
40279 struct servent *se, *res;
40280 char buffer[2048];
40281 int buflen = 2048;
40282 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
004ee6da
RL
40283
40284 ;
40285 return 0;
40286}
40287_ACEOF
40288rm -f conftest.$ac_objext
40289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40290 (eval $ac_compile) 2>conftest.er1
40291 ac_status=$?
40292 grep -v '^ *+' conftest.er1 >conftest.err
40293 rm -f conftest.er1
40294 cat conftest.err >&5
40295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40296 (exit $ac_status); } &&
c9a66001 40297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40299 (eval $ac_try) 2>&5
40300 ac_status=$?
40301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40302 (exit $ac_status); }; } &&
40303 { ac_try='test -s conftest.$ac_objext'
40304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40305 (eval $ac_try) 2>&5
40306 ac_status=$?
40307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40308 (exit $ac_status); }; }; then
40309 ac_cv_func_which_getservbyname_r=six
40310else
40311 echo "$as_me: failed program was:" >&5
40312sed 's/^/| /' conftest.$ac_ext >&5
40313
3ecd9f92
MW
40314
40315 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40316/* confdefs.h. */
40317_ACEOF
40318cat confdefs.h >>conftest.$ac_ext
40319cat >>conftest.$ac_ext <<_ACEOF
40320/* end confdefs.h. */
3ecd9f92
MW
40321
40322# include <netdb.h>
40323
004ee6da
RL
40324int
40325main ()
40326{
40327
3ecd9f92
MW
40328 char *name;
40329 char *proto;
40330 struct servent *se;
40331 char buffer[2048];
40332 int buflen = 2048;
40333 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
40334
40335 ;
40336 return 0;
40337}
40338_ACEOF
40339rm -f conftest.$ac_objext
40340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40341 (eval $ac_compile) 2>conftest.er1
40342 ac_status=$?
40343 grep -v '^ *+' conftest.er1 >conftest.err
40344 rm -f conftest.er1
40345 cat conftest.err >&5
40346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40347 (exit $ac_status); } &&
c9a66001 40348 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40350 (eval $ac_try) 2>&5
40351 ac_status=$?
40352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40353 (exit $ac_status); }; } &&
40354 { ac_try='test -s conftest.$ac_objext'
40355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40356 (eval $ac_try) 2>&5
40357 ac_status=$?
40358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40359 (exit $ac_status); }; }; then
40360 ac_cv_func_which_getservbyname_r=five
40361else
40362 echo "$as_me: failed program was:" >&5
40363sed 's/^/| /' conftest.$ac_ext >&5
40364
40365ac_cv_func_which_getservbyname_r=no
40366fi
40367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40368
3ecd9f92
MW
40369
40370
40371
004ee6da
RL
40372fi
40373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40374
3ecd9f92 40375
004ee6da
RL
40376fi
40377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3ecd9f92 40378
004ee6da
RL
40379else
40380 ac_cv_func_which_getservbyname_r=no
40381fi
40382
3ecd9f92
MW
40383fi
40384echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
40385echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
004ee6da
RL
40386
40387if test $ac_cv_func_which_getservbyname_r = six; then
40388 cat >>confdefs.h <<\_ACEOF
40389#define HAVE_FUNC_GETSERVBYNAME_R_6 1
40390_ACEOF
40391
40392elif test $ac_cv_func_which_getservbyname_r = five; then
40393 cat >>confdefs.h <<\_ACEOF
40394#define HAVE_FUNC_GETSERVBYNAME_R_5 1
40395_ACEOF
40396
40397elif test $ac_cv_func_which_getservbyname_r = four; then
40398 cat >>confdefs.h <<\_ACEOF
40399#define HAVE_FUNC_GETSERVBYNAME_R_4 1
40400_ACEOF
40401
3ecd9f92 40402
004ee6da
RL
40403fi
40404
40405
40406 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
40407 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
40408
40409for ac_func in getservbyname
40410do
40411as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40412echo "$as_me:$LINENO: checking for $ac_func" >&5
40413echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40414if eval "test \"\${$as_ac_var+set}\" = set"; then
40415 echo $ECHO_N "(cached) $ECHO_C" >&6
40416else
40417 cat >conftest.$ac_ext <<_ACEOF
40418/* confdefs.h. */
40419_ACEOF
40420cat confdefs.h >>conftest.$ac_ext
40421cat >>conftest.$ac_ext <<_ACEOF
40422/* end confdefs.h. */
40423/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40425#define $ac_func innocuous_$ac_func
40426
40427/* System header to define __stub macros and hopefully few prototypes,
40428 which can conflict with char $ac_func (); below.
40429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40430 <limits.h> exists even on freestanding compilers. */
40431
40432#ifdef __STDC__
40433# include <limits.h>
40434#else
40435# include <assert.h>
40436#endif
40437
40438#undef $ac_func
40439
40440/* Override any gcc2 internal prototype to avoid an error. */
40441#ifdef __cplusplus
40442extern "C"
40443{
40444#endif
40445/* We use char because int might match the return type of a gcc2
40446 builtin and then its argument prototype would still apply. */
40447char $ac_func ();
40448/* The GNU C library defines this for functions which it implements
40449 to always fail with ENOSYS. Some functions are actually named
40450 something starting with __ and the normal name is an alias. */
40451#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40452choke me
40453#else
40454char (*f) () = $ac_func;
40455#endif
40456#ifdef __cplusplus
40457}
40458#endif
40459
40460int
40461main ()
40462{
40463return f != $ac_func;
40464 ;
40465 return 0;
40466}
40467_ACEOF
40468rm -f conftest.$ac_objext conftest$ac_exeext
40469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40470 (eval $ac_link) 2>conftest.er1
40471 ac_status=$?
40472 grep -v '^ *+' conftest.er1 >conftest.err
40473 rm -f conftest.er1
40474 cat conftest.err >&5
40475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40476 (exit $ac_status); } &&
c9a66001 40477 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40479 (eval $ac_try) 2>&5
40480 ac_status=$?
40481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40482 (exit $ac_status); }; } &&
40483 { ac_try='test -s conftest$ac_exeext'
40484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40485 (eval $ac_try) 2>&5
40486 ac_status=$?
40487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40488 (exit $ac_status); }; }; then
40489 eval "$as_ac_var=yes"
40490else
40491 echo "$as_me: failed program was:" >&5
40492sed 's/^/| /' conftest.$ac_ext >&5
40493
40494eval "$as_ac_var=no"
40495fi
40496rm -f conftest.err conftest.$ac_objext \
40497 conftest$ac_exeext conftest.$ac_ext
40498fi
40499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40500echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40501if test `eval echo '${'$as_ac_var'}'` = yes; then
40502 cat >>confdefs.h <<_ACEOF
40503#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40504_ACEOF
40505 cat >>confdefs.h <<\_ACEOF
40506#define HAVE_GETSERVBYNAME 1
40507_ACEOF
40508
40509fi
40510done
40511
40512 fi
40513
004ee6da
RL
40514if test "$wxUSE_THREADS" = "yes"; then
40515 cat >>confdefs.h <<\_ACEOF
40516#define wxUSE_THREADS 1
40517_ACEOF
40518
40519
40520 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
40521else
5acfd58d 40522 if test "$wx_cv_decl_strtok_r" = "yes"; then
004ee6da
RL
40523 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
40524echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
40525 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
40526 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
40527 echo "$as_me:$LINENO: result: yes" >&5
40528echo "${ECHO_T}yes" >&6
40529 else
40530 echo "$as_me:$LINENO: result: no" >&5
40531echo "${ECHO_T}no" >&6
40532 fi
40533 fi
40534fi
40535
40536if test "$WXGTK20" = 1 ; then
40537 cat >>confdefs.h <<_ACEOF
40538#define __WXGTK20__ $WXGTK20
40539_ACEOF
40540
40541 WXGTK12=1
40542fi
40543
40544if test "$WXGTK12" = 1 ; then
40545 cat >>confdefs.h <<_ACEOF
40546#define __WXGTK12__ $WXGTK12
40547_ACEOF
40548
40549fi
40550
40551if test "$WXGTK127" = 1 ; then
40552 cat >>confdefs.h <<_ACEOF
40553#define __WXGTK127__ $WXGTK127
40554_ACEOF
40555
40556fi
40557
40558if test "$WXGPE" = 1 ; then
40559 cat >>confdefs.h <<_ACEOF
40560#define __WXGPE__ $WXGPE
40561_ACEOF
40562
40563fi
40564
40565DEBUG_CFLAGS=
40566if test "$wxUSE_DEBUG_INFO" = "yes" ; then
40567 DEBUG_CFLAGS="-g"
40568 wxUSE_OPTIMISE=no
40569fi
40570
40571if test "$wxUSE_DEBUG_GDB" = "yes" ; then
40572 wxUSE_DEBUG_INFO=yes
40573 if test "$GCC" = yes; then
40574 DEBUG_CFLAGS="-ggdb"
40575 fi
40576fi
40577
40578if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
40579 cat >>confdefs.h <<\_ACEOF
40580#define WXDEBUG 1
40581_ACEOF
40582
40583 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
40584else
40585 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
40586 if test "x$wxGTK_VERSION" = "x1" ; then
40587 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
40588 fi
004ee6da
RL
40589 fi
40590fi
40591
40592if test "$wxUSE_MEM_TRACING" = "yes" ; then
40593 cat >>confdefs.h <<\_ACEOF
40594#define wxUSE_MEMORY_TRACING 1
40595_ACEOF
40596
40597 cat >>confdefs.h <<\_ACEOF
40598#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
40599_ACEOF
40600
40601 cat >>confdefs.h <<\_ACEOF
40602#define wxUSE_DEBUG_NEW_ALWAYS 1
40603_ACEOF
40604
40605 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
40606fi
40607
40608if test "$wxUSE_DMALLOC" = "yes" ; then
40609 DMALLOC_LIBS="-ldmallocthcxx"
40610fi
40611
40612PROFILE_FLAGS=
40613if test "$wxUSE_PROFILE" = "yes" ; then
40614 PROFILE_FLAGS=" -pg"
40615fi
40616
40617if test "$GCC" = "yes" ; then
40618 if test "$wxUSE_NO_RTTI" = "yes" ; then
40619 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
40620 fi
40621 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40622 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
40623 fi
40624 if test "$wxUSE_PERMISSIVE" = "yes" ; then
40625 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
40626 fi
40627
40628 case "${host}" in
40629 powerpc*-*-aix* )
40630 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
40631 ;;
40632 *-hppa* )
40633 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
40634 ;;
40635 esac
40636fi
40637
40638OPTIMISE_CFLAGS=
40639if test "$wxUSE_OPTIMISE" = "no" ; then
40640 if test "$GCC" = yes ; then
40641 OPTIMISE_CFLAGS="-O0"
40642 fi
40643else
40644 if test "$GCC" = yes ; then
e5efa97e
VZ
40645 case "${host}" in
40646 *-pc-os2_emx | *-pc-os2-emx )
40647 OPTIMISE_CFLAGS="-O2"
40648 ;;
40649 *)
40650 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
40651 ;;
40652 esac
004ee6da
RL
40653 else
40654 OPTIMISE_CFLAGS="-O"
40655 fi
40656fi
40657
40658
40659if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
40660 cat >>confdefs.h <<\_ACEOF
40661#define WXWIN_COMPATIBILITY_2_4 1
40662_ACEOF
40663
40664
40665 WXWIN_COMPATIBILITY_2_6="yes"
40666fi
40667
40668if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
40669 cat >>confdefs.h <<\_ACEOF
40670#define WXWIN_COMPATIBILITY_2_6 1
40671_ACEOF
40672
40673fi
40674
40675
40676if test "$wxUSE_GUI" = "yes"; then
40677 cat >>confdefs.h <<\_ACEOF
40678#define wxUSE_GUI 1
40679_ACEOF
40680
40681
40682 fi
40683
40684
40685if test "$wxUSE_UNIX" = "yes"; then
40686 cat >>confdefs.h <<\_ACEOF
40687#define wxUSE_UNIX 1
40688_ACEOF
40689
40690fi
40691
40692
40693if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40694
40695 HAVE_DL_FUNCS=0
40696 HAVE_SHL_FUNCS=0
40697 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40698 if test "$USE_DARWIN" = 1; then
40699 HAVE_DL_FUNCS=1
40700 elif test "$USE_DOS" = 1; then
40701 HAVE_DL_FUNCS=0
40702 else
40703
40704for ac_func in dlopen
40705do
40706as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40707echo "$as_me:$LINENO: checking for $ac_func" >&5
40708echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40709if eval "test \"\${$as_ac_var+set}\" = set"; then
40710 echo $ECHO_N "(cached) $ECHO_C" >&6
40711else
40712 cat >conftest.$ac_ext <<_ACEOF
40713/* confdefs.h. */
40714_ACEOF
40715cat confdefs.h >>conftest.$ac_ext
40716cat >>conftest.$ac_ext <<_ACEOF
40717/* end confdefs.h. */
40718/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40720#define $ac_func innocuous_$ac_func
40721
40722/* System header to define __stub macros and hopefully few prototypes,
40723 which can conflict with char $ac_func (); below.
40724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40725 <limits.h> exists even on freestanding compilers. */
40726
40727#ifdef __STDC__
40728# include <limits.h>
40729#else
40730# include <assert.h>
40731#endif
40732
40733#undef $ac_func
40734
40735/* Override any gcc2 internal prototype to avoid an error. */
40736#ifdef __cplusplus
40737extern "C"
40738{
40739#endif
40740/* We use char because int might match the return type of a gcc2
40741 builtin and then its argument prototype would still apply. */
40742char $ac_func ();
40743/* The GNU C library defines this for functions which it implements
40744 to always fail with ENOSYS. Some functions are actually named
40745 something starting with __ and the normal name is an alias. */
40746#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40747choke me
40748#else
40749char (*f) () = $ac_func;
40750#endif
40751#ifdef __cplusplus
40752}
40753#endif
40754
40755int
40756main ()
40757{
40758return f != $ac_func;
a848cd7e
SC
40759 ;
40760 return 0;
40761}
40762_ACEOF
40763rm -f conftest.$ac_objext conftest$ac_exeext
40764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40765 (eval $ac_link) 2>conftest.er1
a848cd7e 40766 ac_status=$?
ac1cb8d3
VS
40767 grep -v '^ *+' conftest.er1 >conftest.err
40768 rm -f conftest.er1
40769 cat conftest.err >&5
a848cd7e
SC
40770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40771 (exit $ac_status); } &&
c9a66001 40772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40774 (eval $ac_try) 2>&5
40775 ac_status=$?
40776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40777 (exit $ac_status); }; } &&
40778 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40780 (eval $ac_try) 2>&5
40781 ac_status=$?
40782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40783 (exit $ac_status); }; }; then
40784 eval "$as_ac_var=yes"
40785else
40786 echo "$as_me: failed program was:" >&5
40787sed 's/^/| /' conftest.$ac_ext >&5
40788
40789eval "$as_ac_var=no"
40790fi
ac1cb8d3
VS
40791rm -f conftest.err conftest.$ac_objext \
40792 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40793fi
40794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40795echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40796if test `eval echo '${'$as_ac_var'}'` = yes; then
40797 cat >>confdefs.h <<_ACEOF
40798#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40799_ACEOF
40800
40801 cat >>confdefs.h <<\_ACEOF
40802#define HAVE_DLOPEN 1
40803_ACEOF
40804
40805 HAVE_DL_FUNCS=1
40806
40807else
40808
40809 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
40810echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
40811if test "${ac_cv_lib_dl_dlopen+set}" = set; then
40812 echo $ECHO_N "(cached) $ECHO_C" >&6
40813else
40814 ac_check_lib_save_LIBS=$LIBS
40815LIBS="-ldl $LIBS"
40816cat >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
40823/* Override any gcc2 internal prototype to avoid an error. */
40824#ifdef __cplusplus
40825extern "C"
40826#endif
40827/* We use char because int might match the return type of a gcc2
40828 builtin and then its argument prototype would still apply. */
40829char dlopen ();
40830int
40831main ()
40832{
40833dlopen ();
40834 ;
40835 return 0;
40836}
40837_ACEOF
40838rm -f conftest.$ac_objext conftest$ac_exeext
40839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40840 (eval $ac_link) 2>conftest.er1
a848cd7e 40841 ac_status=$?
ac1cb8d3
VS
40842 grep -v '^ *+' conftest.er1 >conftest.err
40843 rm -f conftest.er1
40844 cat conftest.err >&5
a848cd7e
SC
40845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40846 (exit $ac_status); } &&
c9a66001 40847 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40849 (eval $ac_try) 2>&5
40850 ac_status=$?
40851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40852 (exit $ac_status); }; } &&
40853 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40855 (eval $ac_try) 2>&5
40856 ac_status=$?
40857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40858 (exit $ac_status); }; }; then
40859 ac_cv_lib_dl_dlopen=yes
40860else
40861 echo "$as_me: failed program was:" >&5
40862sed 's/^/| /' conftest.$ac_ext >&5
40863
40864ac_cv_lib_dl_dlopen=no
40865fi
ac1cb8d3
VS
40866rm -f conftest.err conftest.$ac_objext \
40867 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40868LIBS=$ac_check_lib_save_LIBS
40869fi
40870echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
40871echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
40872if test $ac_cv_lib_dl_dlopen = yes; then
40873
40874 cat >>confdefs.h <<\_ACEOF
40875#define HAVE_DLOPEN 1
40876_ACEOF
40877
40878 HAVE_DL_FUNCS=1
40879 DL_LINK=" -ldl$DL_LINK"
40880
40881else
40882
40883
40884for ac_func in shl_load
40885do
40886as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40887echo "$as_me:$LINENO: checking for $ac_func" >&5
40888echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40889if eval "test \"\${$as_ac_var+set}\" = set"; then
40890 echo $ECHO_N "(cached) $ECHO_C" >&6
40891else
40892 cat >conftest.$ac_ext <<_ACEOF
40893/* confdefs.h. */
40894_ACEOF
40895cat confdefs.h >>conftest.$ac_ext
40896cat >>conftest.$ac_ext <<_ACEOF
40897/* end confdefs.h. */
ac1cb8d3
VS
40898/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40900#define $ac_func innocuous_$ac_func
40901
a848cd7e
SC
40902/* System header to define __stub macros and hopefully few prototypes,
40903 which can conflict with char $ac_func (); below.
40904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40905 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40906
a848cd7e
SC
40907#ifdef __STDC__
40908# include <limits.h>
40909#else
40910# include <assert.h>
40911#endif
ac1cb8d3
VS
40912
40913#undef $ac_func
40914
a848cd7e
SC
40915/* Override any gcc2 internal prototype to avoid an error. */
40916#ifdef __cplusplus
40917extern "C"
40918{
40919#endif
40920/* We use char because int might match the return type of a gcc2
40921 builtin and then its argument prototype would still apply. */
40922char $ac_func ();
40923/* The GNU C library defines this for functions which it implements
40924 to always fail with ENOSYS. Some functions are actually named
40925 something starting with __ and the normal name is an alias. */
40926#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40927choke me
40928#else
40929char (*f) () = $ac_func;
40930#endif
40931#ifdef __cplusplus
40932}
40933#endif
40934
40935int
40936main ()
40937{
40938return f != $ac_func;
40939 ;
40940 return 0;
40941}
40942_ACEOF
40943rm -f conftest.$ac_objext conftest$ac_exeext
40944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40945 (eval $ac_link) 2>conftest.er1
a848cd7e 40946 ac_status=$?
ac1cb8d3
VS
40947 grep -v '^ *+' conftest.er1 >conftest.err
40948 rm -f conftest.er1
40949 cat conftest.err >&5
a848cd7e
SC
40950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40951 (exit $ac_status); } &&
c9a66001 40952 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
40958 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40960 (eval $ac_try) 2>&5
40961 ac_status=$?
40962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40963 (exit $ac_status); }; }; then
40964 eval "$as_ac_var=yes"
40965else
40966 echo "$as_me: failed program was:" >&5
40967sed 's/^/| /' conftest.$ac_ext >&5
40968
40969eval "$as_ac_var=no"
40970fi
ac1cb8d3
VS
40971rm -f conftest.err conftest.$ac_objext \
40972 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40973fi
40974echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40975echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40976if test `eval echo '${'$as_ac_var'}'` = yes; then
40977 cat >>confdefs.h <<_ACEOF
40978#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40979_ACEOF
40980
40981 cat >>confdefs.h <<\_ACEOF
40982#define HAVE_SHL_LOAD 1
40983_ACEOF
40984
40985 HAVE_SHL_FUNCS=1
40986
40987else
40988
40989 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
40990echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
40991if test "${ac_cv_lib_shl_load_dld+set}" = set; then
40992 echo $ECHO_N "(cached) $ECHO_C" >&6
40993else
40994 ac_check_lib_save_LIBS=$LIBS
40995LIBS="-lshl_load $LIBS"
40996cat >conftest.$ac_ext <<_ACEOF
40997/* confdefs.h. */
40998_ACEOF
40999cat confdefs.h >>conftest.$ac_ext
41000cat >>conftest.$ac_ext <<_ACEOF
41001/* end confdefs.h. */
41002
41003/* Override any gcc2 internal prototype to avoid an error. */
41004#ifdef __cplusplus
41005extern "C"
41006#endif
41007/* We use char because int might match the return type of a gcc2
41008 builtin and then its argument prototype would still apply. */
41009char dld ();
41010int
41011main ()
41012{
41013dld ();
41014 ;
41015 return 0;
41016}
41017_ACEOF
41018rm -f conftest.$ac_objext conftest$ac_exeext
41019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41020 (eval $ac_link) 2>conftest.er1
a848cd7e 41021 ac_status=$?
ac1cb8d3
VS
41022 grep -v '^ *+' conftest.er1 >conftest.err
41023 rm -f conftest.er1
41024 cat conftest.err >&5
a848cd7e
SC
41025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41026 (exit $ac_status); } &&
c9a66001 41027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41029 (eval $ac_try) 2>&5
41030 ac_status=$?
41031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41032 (exit $ac_status); }; } &&
41033 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41035 (eval $ac_try) 2>&5
41036 ac_status=$?
41037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41038 (exit $ac_status); }; }; then
41039 ac_cv_lib_shl_load_dld=yes
41040else
41041 echo "$as_me: failed program was:" >&5
41042sed 's/^/| /' conftest.$ac_ext >&5
41043
41044ac_cv_lib_shl_load_dld=no
41045fi
ac1cb8d3
VS
41046rm -f conftest.err conftest.$ac_objext \
41047 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41048LIBS=$ac_check_lib_save_LIBS
41049fi
41050echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41051echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
41052if test $ac_cv_lib_shl_load_dld = yes; then
41053
41054 HAVE_SHL_FUNCS=1
41055 DL_LINK=" -ldld$DL_LINK"
41056
41057fi
41058
41059
41060fi
41061done
41062
41063
41064fi
41065
41066
41067fi
41068done
41069
41070
41071 if test "$HAVE_DL_FUNCS" = 1; then
41072
41073for ac_func in dlerror
41074do
41075as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41076echo "$as_me:$LINENO: checking for $ac_func" >&5
41077echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41078if eval "test \"\${$as_ac_var+set}\" = set"; then
41079 echo $ECHO_N "(cached) $ECHO_C" >&6
41080else
41081 cat >conftest.$ac_ext <<_ACEOF
41082/* confdefs.h. */
41083_ACEOF
41084cat confdefs.h >>conftest.$ac_ext
41085cat >>conftest.$ac_ext <<_ACEOF
41086/* end confdefs.h. */
ac1cb8d3
VS
41087/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41089#define $ac_func innocuous_$ac_func
41090
a848cd7e
SC
41091/* System header to define __stub macros and hopefully few prototypes,
41092 which can conflict with char $ac_func (); below.
41093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41094 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41095
a848cd7e
SC
41096#ifdef __STDC__
41097# include <limits.h>
41098#else
41099# include <assert.h>
41100#endif
ac1cb8d3
VS
41101
41102#undef $ac_func
41103
a848cd7e
SC
41104/* Override any gcc2 internal prototype to avoid an error. */
41105#ifdef __cplusplus
41106extern "C"
41107{
41108#endif
41109/* We use char because int might match the return type of a gcc2
41110 builtin and then its argument prototype would still apply. */
41111char $ac_func ();
41112/* The GNU C library defines this for functions which it implements
41113 to always fail with ENOSYS. Some functions are actually named
41114 something starting with __ and the normal name is an alias. */
41115#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41116choke me
41117#else
41118char (*f) () = $ac_func;
41119#endif
41120#ifdef __cplusplus
41121}
41122#endif
41123
41124int
41125main ()
41126{
41127return f != $ac_func;
41128 ;
41129 return 0;
41130}
41131_ACEOF
41132rm -f conftest.$ac_objext conftest$ac_exeext
41133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41134 (eval $ac_link) 2>conftest.er1
a848cd7e 41135 ac_status=$?
ac1cb8d3
VS
41136 grep -v '^ *+' conftest.er1 >conftest.err
41137 rm -f conftest.er1
41138 cat conftest.err >&5
a848cd7e
SC
41139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41140 (exit $ac_status); } &&
c9a66001 41141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41143 (eval $ac_try) 2>&5
41144 ac_status=$?
41145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41146 (exit $ac_status); }; } &&
41147 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41149 (eval $ac_try) 2>&5
41150 ac_status=$?
41151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41152 (exit $ac_status); }; }; then
41153 eval "$as_ac_var=yes"
41154else
41155 echo "$as_me: failed program was:" >&5
41156sed 's/^/| /' conftest.$ac_ext >&5
41157
41158eval "$as_ac_var=no"
41159fi
ac1cb8d3
VS
41160rm -f conftest.err conftest.$ac_objext \
41161 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41162fi
41163echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41164echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41165if test `eval echo '${'$as_ac_var'}'` = yes; then
41166 cat >>confdefs.h <<_ACEOF
41167#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41168_ACEOF
41169 cat >>confdefs.h <<\_ACEOF
41170#define HAVE_DLERROR 1
41171_ACEOF
41172
41173else
41174
41175 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
41176echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
41177if test "${ac_cv_lib_dl_dlerror+set}" = set; then
41178 echo $ECHO_N "(cached) $ECHO_C" >&6
41179else
41180 ac_check_lib_save_LIBS=$LIBS
41181LIBS="-ldl $LIBS"
41182cat >conftest.$ac_ext <<_ACEOF
41183/* confdefs.h. */
41184_ACEOF
41185cat confdefs.h >>conftest.$ac_ext
41186cat >>conftest.$ac_ext <<_ACEOF
41187/* end confdefs.h. */
41188
41189/* Override any gcc2 internal prototype to avoid an error. */
41190#ifdef __cplusplus
41191extern "C"
41192#endif
41193/* We use char because int might match the return type of a gcc2
41194 builtin and then its argument prototype would still apply. */
41195char dlerror ();
41196int
41197main ()
41198{
41199dlerror ();
41200 ;
41201 return 0;
41202}
41203_ACEOF
41204rm -f conftest.$ac_objext conftest$ac_exeext
41205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41206 (eval $ac_link) 2>conftest.er1
a848cd7e 41207 ac_status=$?
ac1cb8d3
VS
41208 grep -v '^ *+' conftest.er1 >conftest.err
41209 rm -f conftest.er1
41210 cat conftest.err >&5
a848cd7e
SC
41211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41212 (exit $ac_status); } &&
c9a66001 41213 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41215 (eval $ac_try) 2>&5
41216 ac_status=$?
41217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41218 (exit $ac_status); }; } &&
41219 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41221 (eval $ac_try) 2>&5
41222 ac_status=$?
41223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41224 (exit $ac_status); }; }; then
41225 ac_cv_lib_dl_dlerror=yes
41226else
41227 echo "$as_me: failed program was:" >&5
41228sed 's/^/| /' conftest.$ac_ext >&5
41229
41230ac_cv_lib_dl_dlerror=no
41231fi
ac1cb8d3
VS
41232rm -f conftest.err conftest.$ac_objext \
41233 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41234LIBS=$ac_check_lib_save_LIBS
41235fi
41236echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41237echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
41238if test $ac_cv_lib_dl_dlerror = yes; then
41239 cat >>confdefs.h <<\_ACEOF
41240#define HAVE_DLERROR 1
41241_ACEOF
41242
41243fi
41244
41245
41246
41247fi
41248done
41249
41250 fi
41251 fi
41252
41253 if test "$HAVE_DL_FUNCS" = 0; then
41254 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 41255 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
41256 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41257echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41258 wxUSE_DYNAMIC_LOADER=no
41259 wxUSE_DYNLIB_CLASS=no
41260 else
41261 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41262echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41263 fi
41264 fi
41265 fi
41266 fi
41267fi
41268
41269if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41270 cat >>confdefs.h <<\_ACEOF
41271#define wxUSE_DYNAMIC_LOADER 1
41272_ACEOF
41273
41274fi
41275if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41276 cat >>confdefs.h <<\_ACEOF
41277#define wxUSE_DYNLIB_CLASS 1
41278_ACEOF
41279
41280fi
41281
41282
41283
41284if test "$wxUSE_PLUGINS" = "yes" ; then
41285 if test "$wxUSE_SHARED" = "no" ; then
41286 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41287echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41288 wxUSE_PLUGINS=no
41289 fi
41290 if test "$wxUSE_MONOLITHIC" = "yes" ; then
41291 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41292echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41293 wxUSE_PLUGINS=no
41294 fi
41295 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41296 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41297echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
41298 wxUSE_PLUGINS=no
41299 fi
41300 if test "$wxUSE_PLUGINS" = "yes" ; then
41301 cat >>confdefs.h <<\_ACEOF
41302#define wxUSE_PLUGINS 1
41303_ACEOF
41304
41305 fi
41306fi
41307
41308
41309if test "$wxUSE_STL" = "yes"; then
41310 cat >>confdefs.h <<\_ACEOF
41311#define wxUSE_STL 1
41312_ACEOF
41313
41314fi
41315
41316if test "$wxUSE_APPLE_IEEE" = "yes"; then
41317 cat >>confdefs.h <<\_ACEOF
41318#define wxUSE_APPLE_IEEE 1
41319_ACEOF
41320
41321fi
41322
41323if test "$wxUSE_TIMER" = "yes"; then
41324 cat >>confdefs.h <<\_ACEOF
41325#define wxUSE_TIMER 1
41326_ACEOF
41327
41328fi
41329
9c112555 41330if test "$USE_UNIX" = "1" ; then
31714590
VZ
41331 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
41332echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
d12aef51 41333if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 41334 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 41335else
d12aef51
VZ
41336
41337 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
41338/* confdefs.h. */
41339_ACEOF
41340cat confdefs.h >>conftest.$ac_ext
41341cat >>conftest.$ac_ext <<_ACEOF
41342/* end confdefs.h. */
d12aef51 41343
31714590 41344 #include <sys/ioctl.h>
d12aef51
VZ
41345 #include <sys/soundcard.h>
41346
41347int
41348main ()
41349{
41350
31714590 41351 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
41352
41353 ;
41354 return 0;
41355}
a848cd7e 41356_ACEOF
d12aef51
VZ
41357rm -f conftest.$ac_objext conftest$ac_exeext
41358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41359 (eval $ac_link) 2>conftest.er1
a848cd7e 41360 ac_status=$?
ac1cb8d3
VS
41361 grep -v '^ *+' conftest.er1 >conftest.err
41362 rm -f conftest.er1
41363 cat conftest.err >&5
a848cd7e
SC
41364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41365 (exit $ac_status); } &&
c9a66001 41366 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41368 (eval $ac_try) 2>&5
41369 ac_status=$?
41370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41371 (exit $ac_status); }; } &&
d12aef51 41372 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41374 (eval $ac_try) 2>&5
41375 ac_status=$?
41376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41377 (exit $ac_status); }; }; then
d12aef51 41378 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
41379else
41380 echo "$as_me: failed program was:" >&5
41381sed 's/^/| /' conftest.$ac_ext >&5
41382
a848cd7e 41383
d12aef51
VZ
41384 saveLibs="$LIBS"
41385 LIBS="$saveLibs -lossaudio"
41386 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
41387/* confdefs.h. */
41388_ACEOF
41389cat confdefs.h >>conftest.$ac_ext
41390cat >>conftest.$ac_ext <<_ACEOF
41391/* end confdefs.h. */
d12aef51 41392
31714590 41393 #include <sys/ioctl.h>
d12aef51
VZ
41394 #include <sys/soundcard.h>
41395
41396int
41397main ()
41398{
41399
31714590 41400 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
41401
41402 ;
41403 return 0;
41404}
a848cd7e 41405_ACEOF
d12aef51
VZ
41406rm -f conftest.$ac_objext conftest$ac_exeext
41407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41408 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
41409 ac_status=$?
41410 grep -v '^ *+' conftest.er1 >conftest.err
41411 rm -f conftest.er1
41412 cat conftest.err >&5
41413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 41414 (exit $ac_status); } &&
c9a66001 41415 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
41416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41417 (eval $ac_try) 2>&5
41418 ac_status=$?
41419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41420 (exit $ac_status); }; } &&
41421 { ac_try='test -s conftest$ac_exeext'
41422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41423 (eval $ac_try) 2>&5
41424 ac_status=$?
41425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41426 (exit $ac_status); }; }; then
41427 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
41428else
41429 echo "$as_me: failed program was:" >&5
41430sed 's/^/| /' conftest.$ac_ext >&5
41431
a848cd7e 41432
d12aef51
VZ
41433 LIBS="$saveLibs"
41434 ac_cv_header_sys_soundcard=no
41435
41436
a848cd7e 41437fi
d12aef51
VZ
41438rm -f conftest.err conftest.$ac_objext \
41439 conftest$ac_exeext conftest.$ac_ext
41440
a848cd7e
SC
41441
41442fi
d12aef51
VZ
41443rm -f conftest.err conftest.$ac_objext \
41444 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41445
41446fi
d12aef51
VZ
41447echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
41448echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 41449
d12aef51
VZ
41450 if test "$ac_cv_header_sys_soundcard" = "yes"; then
41451 cat >>confdefs.h <<\_ACEOF
41452#define HAVE_SYS_SOUNDCARD_H 1
41453_ACEOF
a848cd7e 41454
d12aef51
VZ
41455 else
41456 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
41457 fi
9c112555
MW
41458fi
41459WITH_PLUGIN_SDL=0
41460if test "$wxUSE_SOUND" = "yes"; then
41461 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
41462 if test "$wxUSE_LIBSDL" != "no"; then
41463
41464# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
41465if test "${with_sdl_prefix+set}" = set; then
41466 withval="$with_sdl_prefix"
41467 sdl_prefix="$withval"
41468else
41469 sdl_prefix=""
41470fi;
41471
41472# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
41473if test "${with_sdl_exec_prefix+set}" = set; then
41474 withval="$with_sdl_exec_prefix"
41475 sdl_exec_prefix="$withval"
41476else
41477 sdl_exec_prefix=""
41478fi;
41479# Check whether --enable-sdltest or --disable-sdltest was given.
41480if test "${enable_sdltest+set}" = set; then
41481 enableval="$enable_sdltest"
41482
41483else
41484 enable_sdltest=yes
41485fi;
41486
41487 if test x$sdl_exec_prefix != x ; then
3ecd9f92
MW
41488 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
41489 if test x${SDL_CONFIG+set} != xset ; then
41490 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
41491 fi
a848cd7e
SC
41492 fi
41493 if test x$sdl_prefix != x ; then
3ecd9f92
MW
41494 sdl_args="$sdl_args --prefix=$sdl_prefix"
41495 if test x${SDL_CONFIG+set} != xset ; then
41496 SDL_CONFIG=$sdl_prefix/bin/sdl-config
41497 fi
a848cd7e
SC
41498 fi
41499
3ecd9f92
MW
41500 if test "x$prefix" != xNONE; then
41501 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
41502 fi
a848cd7e
SC
41503 # Extract the first word of "sdl-config", so it can be a program name with args.
41504set dummy sdl-config; ac_word=$2
41505echo "$as_me:$LINENO: checking for $ac_word" >&5
41506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41507if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
41508 echo $ECHO_N "(cached) $ECHO_C" >&6
41509else
41510 case $SDL_CONFIG in
41511 [\\/]* | ?:[\\/]*)
41512 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
41513 ;;
41514 *)
41515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41516for as_dir in $PATH
41517do
41518 IFS=$as_save_IFS
41519 test -z "$as_dir" && as_dir=.
41520 for ac_exec_ext in '' $ac_executable_extensions; do
41521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41522 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41524 break 2
41525 fi
41526done
41527done
41528
41529 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
41530 ;;
41531esac
41532fi
41533SDL_CONFIG=$ac_cv_path_SDL_CONFIG
41534
41535if test -n "$SDL_CONFIG"; then
41536 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
41537echo "${ECHO_T}$SDL_CONFIG" >&6
41538else
41539 echo "$as_me:$LINENO: result: no" >&5
41540echo "${ECHO_T}no" >&6
41541fi
41542
41543 min_sdl_version=1.2.0
41544 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
41545echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
41546 no_sdl=""
41547 if test "$SDL_CONFIG" = "no" ; then
41548 no_sdl=yes
41549 else
41550 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
41551 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
41552
41553 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
41554 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41555 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
41556 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41557 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
41558 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41559 if test "x$enable_sdltest" = "xyes" ; then
41560 ac_save_CFLAGS="$CFLAGS"
94acd38e 41561 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
41562 ac_save_LIBS="$LIBS"
41563 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 41564 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
41565 LIBS="$LIBS $SDL_LIBS"
41566 rm -f conf.sdltest
41567 if test "$cross_compiling" = yes; then
41568 echo $ac_n "cross compiling; assumed OK... $ac_c"
41569else
41570 cat >conftest.$ac_ext <<_ACEOF
41571/* confdefs.h. */
41572_ACEOF
41573cat confdefs.h >>conftest.$ac_ext
41574cat >>conftest.$ac_ext <<_ACEOF
41575/* end confdefs.h. */
41576
41577#include <stdio.h>
41578#include <stdlib.h>
41579#include <string.h>
41580#include "SDL.h"
41581
41582char*
41583my_strdup (char *str)
41584{
41585 char *new_str;
41586
41587 if (str)
41588 {
41589 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
41590 strcpy (new_str, str);
41591 }
41592 else
41593 new_str = NULL;
41594
41595 return new_str;
41596}
41597
41598int main (int argc, char *argv[])
41599{
41600 int major, minor, micro;
41601 char *tmp_version;
41602
41603 /* This hangs on some systems (?)
41604 system ("touch conf.sdltest");
41605 */
41606 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
41607
41608 /* HP/UX 9 (%@#!) writes to sscanf strings */
41609 tmp_version = my_strdup("$min_sdl_version");
41610 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
41611 printf("%s, bad version string\n", "$min_sdl_version");
41612 exit(1);
41613 }
41614
41615 if (($sdl_major_version > major) ||
41616 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
41617 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
41618 {
41619 return 0;
41620 }
41621 else
41622 {
41623 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
41624 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
41625 printf("*** best to upgrade to the required version.\n");
41626 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
41627 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
41628 printf("*** config.cache before re-running configure\n");
41629 return 1;
41630 }
41631}
41632
41633
41634_ACEOF
41635rm -f conftest$ac_exeext
41636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41637 (eval $ac_link) 2>&5
41638 ac_status=$?
41639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41642 (eval $ac_try) 2>&5
41643 ac_status=$?
41644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41645 (exit $ac_status); }; }; then
41646 :
41647else
41648 echo "$as_me: program exited with status $ac_status" >&5
41649echo "$as_me: failed program was:" >&5
41650sed 's/^/| /' conftest.$ac_ext >&5
41651
41652( exit $ac_status )
41653no_sdl=yes
41654fi
ac1cb8d3 41655rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41656fi
41657 CFLAGS="$ac_save_CFLAGS"
94acd38e 41658 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
41659 LIBS="$ac_save_LIBS"
41660 fi
41661 fi
41662 if test "x$no_sdl" = x ; then
41663 echo "$as_me:$LINENO: result: yes" >&5
41664echo "${ECHO_T}yes" >&6
41665
41666 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 41667 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
41668 cat >>confdefs.h <<\_ACEOF
41669#define wxUSE_LIBSDL 1
41670_ACEOF
41671
41672
41673 else
41674 echo "$as_me:$LINENO: result: no" >&5
41675echo "${ECHO_T}no" >&6
41676 if test "$SDL_CONFIG" = "no" ; then
41677 echo "*** The sdl-config script installed by SDL could not be found"
41678 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
41679 echo "*** your path, or set the SDL_CONFIG environment variable to the"
41680 echo "*** full path to sdl-config."
41681 else
41682 if test -f conf.sdltest ; then
41683 :
41684 else
41685 echo "*** Could not run SDL test program, checking why..."
41686 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 41687 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
41688 LIBS="$LIBS $SDL_LIBS"
41689 cat >conftest.$ac_ext <<_ACEOF
41690/* confdefs.h. */
41691_ACEOF
41692cat confdefs.h >>conftest.$ac_ext
41693cat >>conftest.$ac_ext <<_ACEOF
41694/* end confdefs.h. */
41695
41696#include <stdio.h>
41697#include "SDL.h"
41698
41699int main(int argc, char *argv[])
41700{ return 0; }
41701#undef main
41702#define main K_and_R_C_main
41703
41704int
41705main ()
41706{
41707 return 0;
41708 ;
41709 return 0;
41710}
41711_ACEOF
41712rm -f conftest.$ac_objext conftest$ac_exeext
41713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41714 (eval $ac_link) 2>conftest.er1
a848cd7e 41715 ac_status=$?
ac1cb8d3
VS
41716 grep -v '^ *+' conftest.er1 >conftest.err
41717 rm -f conftest.er1
41718 cat conftest.err >&5
a848cd7e
SC
41719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41720 (exit $ac_status); } &&
c9a66001 41721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41723 (eval $ac_try) 2>&5
41724 ac_status=$?
41725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41726 (exit $ac_status); }; } &&
41727 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41729 (eval $ac_try) 2>&5
41730 ac_status=$?
41731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41732 (exit $ac_status); }; }; then
41733 echo "*** The test program compiled, but did not run. This usually means"
41734 echo "*** that the run-time linker is not finding SDL or finding the wrong"
41735 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
41736 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
41737 echo "*** to the installed location Also, make sure you have run ldconfig if that"
41738 echo "*** is required on your system"
41739 echo "***"
41740 echo "*** If you have an old version installed, it is best to remove it, although"
41741 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
41742else
41743 echo "$as_me: failed program was:" >&5
41744sed 's/^/| /' conftest.$ac_ext >&5
41745
41746 echo "*** The test program failed to compile or link. See the file config.log for the"
41747 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
41748 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
41749 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
41750fi
ac1cb8d3
VS
41751rm -f conftest.err conftest.$ac_objext \
41752 conftest$ac_exeext conftest.$ac_ext
a848cd7e 41753 CFLAGS="$ac_save_CFLAGS"
94acd38e 41754 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
41755 LIBS="$ac_save_LIBS"
41756 fi
41757 fi
41758 SDL_CFLAGS=""
41759 SDL_LIBS=""
41760 wxUSE_LIBSDL="no"
41761 fi
41762
41763
41764 rm -f conf.sdltest
41765
41766 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
41767 WITH_PLUGIN_SDL=1
41768 fi
41769 fi
41770 fi
41771
41772 cat >>confdefs.h <<\_ACEOF
41773#define wxUSE_SOUND 1
41774_ACEOF
41775
41776 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
41777fi
41778
d1c38808
VZ
41779if test "$WXGTK20" = 1; then
41780 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41781 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
41782
41783
3ecd9f92
MW
41784pkg_failed=no
41785echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
41786echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
d1c38808 41787
3ecd9f92
MW
41788if test -n "$PKG_CONFIG"; then
41789 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
41790 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
41791 else
41792 if test -n "$PKG_CONFIG" && \
41793 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
41794 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
41795 ac_status=$?
41796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41797 (exit $ac_status); }; then
41798 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 41799else
3ecd9f92
MW
41800 pkg_failed=yes
41801fi
41802 fi
41803else
41804 pkg_failed=untried
d1c38808 41805fi
d1c38808 41806if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
41807 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
41808 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
41809 else
41810 if test -n "$PKG_CONFIG" && \
41811 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
41812 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
41813 ac_status=$?
41814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41815 (exit $ac_status); }; then
41816 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 41817else
3ecd9f92
MW
41818 pkg_failed=yes
41819fi
41820 fi
41821else
41822 pkg_failed=untried
d1c38808
VZ
41823fi
41824
d1c38808 41825
d1c38808 41826
3ecd9f92 41827if test $pkg_failed = yes; then
d1c38808 41828
3ecd9f92
MW
41829if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41830 _pkg_short_errors_supported=yes
41831else
41832 _pkg_short_errors_supported=no
41833fi
41834 if test $_pkg_short_errors_supported = yes; then
41835 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
41836 else
41837 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808 41838 fi
3ecd9f92
MW
41839 # Put the nasty error message in config.log where it belongs
41840 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
d1c38808
VZ
41841
41842
3ecd9f92
MW
41843 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41844echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41845 wxUSE_LIBGNOMEPRINT="no"
d1c38808
VZ
41846
41847
3ecd9f92 41848elif test $pkg_failed = untried; then
d1c38808
VZ
41849
41850 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41851echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41852 wxUSE_LIBGNOMEPRINT="no"
41853
41854
3ecd9f92
MW
41855else
41856 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
41857 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
41858 echo "$as_me:$LINENO: result: yes" >&5
41859echo "${ECHO_T}yes" >&6
d1c38808 41860
3ecd9f92
MW
41861 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
41862 cat >>confdefs.h <<\_ACEOF
41863#define wxUSE_LIBGNOMEPRINT 1
41864_ACEOF
41865
41866
41867fi
d1c38808
VZ
41868 fi
41869 fi
41870fi
41871
2b850ae1
RR
41872if test "$WXGTK20" = 1; then
41873 if test "$wxUSE_MIMETYPE" = "yes" ; then
41874 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
41875
41876
3ecd9f92
MW
41877pkg_failed=no
41878echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
41879echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
2b850ae1 41880
3ecd9f92
MW
41881if test -n "$PKG_CONFIG"; then
41882 if test -n "$GNOMEVFS_CFLAGS"; then
41883 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
41884 else
41885 if test -n "$PKG_CONFIG" && \
41886 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
41887 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
41888 ac_status=$?
41889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41890 (exit $ac_status); }; then
41891 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 41892else
3ecd9f92
MW
41893 pkg_failed=yes
41894fi
41895 fi
41896else
41897 pkg_failed=untried
2b850ae1 41898fi
2b850ae1 41899if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
41900 if test -n "$GNOMEVFS_LIBS"; then
41901 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
41902 else
41903 if test -n "$PKG_CONFIG" && \
41904 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
41905 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
41906 ac_status=$?
41907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41908 (exit $ac_status); }; then
41909 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 41910else
3ecd9f92
MW
41911 pkg_failed=yes
41912fi
41913 fi
41914else
41915 pkg_failed=untried
2b850ae1
RR
41916fi
41917
2b850ae1 41918
2b850ae1 41919
3ecd9f92 41920if test $pkg_failed = yes; then
2b850ae1 41921
3ecd9f92
MW
41922if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41923 _pkg_short_errors_supported=yes
41924else
41925 _pkg_short_errors_supported=no
41926fi
41927 if test $_pkg_short_errors_supported = yes; then
41928 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
41929 else
41930 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
2b850ae1 41931 fi
3ecd9f92
MW
41932 # Put the nasty error message in config.log where it belongs
41933 echo "$GNOMEVFS_PKG_ERRORS" >&5
2b850ae1
RR
41934
41935
3ecd9f92
MW
41936 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41937echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41938 wxUSE_LIBGNOMEVFS="no"
2b850ae1
RR
41939
41940
3ecd9f92 41941elif test $pkg_failed = untried; then
2b850ae1
RR
41942
41943 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41944echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41945 wxUSE_LIBGNOMEVFS="no"
41946
41947
3ecd9f92
MW
41948else
41949 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
41950 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
41951 echo "$as_me:$LINENO: result: yes" >&5
41952echo "${ECHO_T}yes" >&6
2b850ae1 41953
3ecd9f92
MW
41954 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
41955 cat >>confdefs.h <<\_ACEOF
41956#define wxUSE_LIBGNOMEVFS 1
41957_ACEOF
41958
41959
41960fi
2b850ae1
RR
41961 fi
41962 fi
41963fi
41964
3565d135
RR
41965if test "$WXGTK20" = 1; then
41966 if test "$wxUSE_LIBHILDON" = "yes" ; then
41967
3ecd9f92
MW
41968pkg_failed=no
41969echo "$as_me:$LINENO: checking for HILDON" >&5
41970echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
3565d135 41971
3ecd9f92
MW
41972if test -n "$PKG_CONFIG"; then
41973 if test -n "$HILDON_CFLAGS"; then
41974 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
41975 else
41976 if test -n "$PKG_CONFIG" && \
41977 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
41978 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
41979 ac_status=$?
41980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41981 (exit $ac_status); }; then
41982 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 41983else
3ecd9f92
MW
41984 pkg_failed=yes
41985fi
41986 fi
41987else
41988 pkg_failed=untried
3565d135 41989fi
3565d135 41990if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
41991 if test -n "$HILDON_LIBS"; then
41992 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
41993 else
41994 if test -n "$PKG_CONFIG" && \
41995 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
41996 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
41997 ac_status=$?
41998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41999 (exit $ac_status); }; then
42000 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 42001else
3ecd9f92
MW
42002 pkg_failed=yes
42003fi
42004 fi
42005else
42006 pkg_failed=untried
3565d135
RR
42007fi
42008
3565d135 42009
3565d135 42010
3ecd9f92 42011if test $pkg_failed = yes; then
3565d135 42012
3ecd9f92
MW
42013if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42014 _pkg_short_errors_supported=yes
42015else
42016 _pkg_short_errors_supported=no
42017fi
42018 if test $_pkg_short_errors_supported = yes; then
42019 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42020 else
42021 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
3565d135 42022 fi
3ecd9f92
MW
42023 # Put the nasty error message in config.log where it belongs
42024 echo "$HILDON_PKG_ERRORS" >&5
3565d135
RR
42025
42026
3ecd9f92
MW
42027 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42028echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42029 wxUSE_LIBHILDON="no"
3565d135 42030
3565d135 42031
3ecd9f92
MW
42032elif test $pkg_failed = untried; then
42033
42034 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42035echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42036 wxUSE_LIBHILDON="no"
42037
42038
42039else
42040 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
42041 HILDON_LIBS=$pkg_cv_HILDON_LIBS
42042 echo "$as_me:$LINENO: result: yes" >&5
42043echo "${ECHO_T}yes" >&6
3565d135
RR
42044
42045 EXTRALIBS_HILDON="$HILDON_LIBS"
42046 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
42047 cat >>confdefs.h <<\_ACEOF
42048#define wxUSE_LIBHILDON 1
42049_ACEOF
42050
42051
3ecd9f92 42052fi
3565d135
RR
42053 fi
42054fi
d1c38808 42055
a848cd7e
SC
42056if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42057 cat >>confdefs.h <<\_ACEOF
42058#define wxUSE_CMDLINE_PARSER 1
42059_ACEOF
42060
42061fi
42062
42063if test "$wxUSE_STOPWATCH" = "yes"; then
42064 cat >>confdefs.h <<\_ACEOF
42065#define wxUSE_STOPWATCH 1
42066_ACEOF
42067
42068fi
42069
42070if test "$wxUSE_DATETIME" = "yes"; then
42071 cat >>confdefs.h <<\_ACEOF
42072#define wxUSE_DATETIME 1
42073_ACEOF
42074
42075fi
42076
42077if test "$wxUSE_FILE" = "yes"; then
42078 cat >>confdefs.h <<\_ACEOF
42079#define wxUSE_FILE 1
42080_ACEOF
42081
42082fi
42083
42084if test "$wxUSE_FFILE" = "yes"; then
42085 cat >>confdefs.h <<\_ACEOF
42086#define wxUSE_FFILE 1
42087_ACEOF
42088
42089fi
42090
42091if test "$wxUSE_FILESYSTEM" = "yes"; then
42092 cat >>confdefs.h <<\_ACEOF
42093#define wxUSE_FILESYSTEM 1
42094_ACEOF
42095
42096fi
42097
42098if test "$wxUSE_FS_ZIP" = "yes"; then
42099 cat >>confdefs.h <<\_ACEOF
42100#define wxUSE_FS_ZIP 1
42101_ACEOF
42102
42103fi
42104
9e8e867f 42105if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 42106 cat >>confdefs.h <<\_ACEOF
9e8e867f 42107#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
42108_ACEOF
42109
42110fi
42111
42112if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 42113 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
42114 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
42115echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
42116 elif test "$wxUSE_ZLIB" = "no"; then
42117 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
42118echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
42119 else
42120 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42121#define wxUSE_ZIPSTREAM 1
42122_ACEOF
42123
81f90336 42124 fi
a848cd7e
SC
42125fi
42126
a848cd7e 42127if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
42128 if test "$USE_UNIX" != 1; then
42129 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
42130echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
42131 wxUSE_ON_FATAL_EXCEPTION=no
42132 else
42133 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42134#define wxUSE_ON_FATAL_EXCEPTION 1
42135_ACEOF
42136
18228ab4 42137 fi
a848cd7e
SC
42138fi
42139
eaff0f0d
VZ
42140if test "$wxUSE_STACKWALKER" = "yes"; then
42141 cat >>confdefs.h <<\_ACEOF
42142#define wxUSE_STACKWALKER 1
42143_ACEOF
42144
42145fi
42146
36b6448c 42147if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
42148 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
42149 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
42150echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
42151 wxUSE_DEBUGREPORT=no
42152 else
42153 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
42154#define wxUSE_DEBUGREPORT 1
42155_ACEOF
42156
21dfc162
MW
42157 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42158 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
42159 fi
dfe0c803 42160 fi
36b6448c
VZ
42161fi
42162
a848cd7e
SC
42163if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42164 cat >>confdefs.h <<\_ACEOF
42165#define wxUSE_SNGLINST_CHECKER 1
42166_ACEOF
42167
42168fi
42169
42170if test "$wxUSE_BUSYINFO" = "yes"; then
42171 cat >>confdefs.h <<\_ACEOF
42172#define wxUSE_BUSYINFO 1
42173_ACEOF
42174
42175fi
42176
42177if test "$wxUSE_STD_IOSTREAM" = "yes"; then
42178 cat >>confdefs.h <<\_ACEOF
42179#define wxUSE_STD_IOSTREAM 1
42180_ACEOF
42181
42182fi
42183
59746b65
MW
42184if test "$wxUSE_STD_STRING" = "yes"; then
42185 cat >>confdefs.h <<\_ACEOF
42186#define wxUSE_STD_STRING 1
42187_ACEOF
42188
42189fi
42190
07158944
VZ
42191if test "$wxUSE_STDPATHS" = "yes"; then
42192 cat >>confdefs.h <<\_ACEOF
42193#define wxUSE_STDPATHS 1
42194_ACEOF
42195
42196fi
42197
a848cd7e
SC
42198if test "$wxUSE_TEXTBUFFER" = "yes"; then
42199 cat >>confdefs.h <<\_ACEOF
42200#define wxUSE_TEXTBUFFER 1
42201_ACEOF
42202
42203fi
42204
42205if test "$wxUSE_TEXTFILE" = "yes"; then
42206 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
42207 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
42208echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
42209 else
42210 cat >>confdefs.h <<\_ACEOF
42211#define wxUSE_TEXTFILE 1
42212_ACEOF
42213
42214 fi
42215fi
42216
42217if test "$wxUSE_CONFIG" = "yes" ; then
42218 if test "$wxUSE_TEXTFILE" != "yes"; then
42219 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
42220echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
42221 else
42222 cat >>confdefs.h <<\_ACEOF
42223#define wxUSE_CONFIG 1
89be85c2
VS
42224_ACEOF
42225
42226 cat >>confdefs.h <<\_ACEOF
42227#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
42228_ACEOF
42229
42230 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
42231 fi
42232fi
42233
42234if test "$wxUSE_INTL" = "yes" ; then
42235 if test "$wxUSE_FILE" != "yes"; then
42236 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
42237echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
42238 else
42239 cat >>confdefs.h <<\_ACEOF
42240#define wxUSE_INTL 1
42241_ACEOF
42242
42243 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
42244 GUIDIST="$GUIDIST INTL_DIST"
42245 fi
42246fi
42247
42248if test "$wxUSE_LOG" = "yes"; then
42249 cat >>confdefs.h <<\_ACEOF
42250#define wxUSE_LOG 1
42251_ACEOF
42252
42253
42254 if test "$wxUSE_LOGGUI" = "yes"; then
42255 cat >>confdefs.h <<\_ACEOF
42256#define wxUSE_LOGGUI 1
42257_ACEOF
42258
42259 fi
42260
42261 if test "$wxUSE_LOGWINDOW" = "yes"; then
42262 cat >>confdefs.h <<\_ACEOF
42263#define wxUSE_LOGWINDOW 1
42264_ACEOF
42265
42266 fi
42267
42268 if test "$wxUSE_LOGDIALOG" = "yes"; then
42269 cat >>confdefs.h <<\_ACEOF
42270#define wxUSE_LOG_DIALOG 1
42271_ACEOF
42272
42273 fi
0b78747f
MW
42274
42275 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
42276fi
42277
42278if test "$wxUSE_LONGLONG" = "yes"; then
42279 cat >>confdefs.h <<\_ACEOF
42280#define wxUSE_LONGLONG 1
42281_ACEOF
42282
42283fi
42284
42285if test "$wxUSE_GEOMETRY" = "yes"; then
42286 cat >>confdefs.h <<\_ACEOF
42287#define wxUSE_GEOMETRY 1
42288_ACEOF
42289
42290fi
42291
a848cd7e
SC
42292if test "$wxUSE_STREAMS" = "yes" ; then
42293 cat >>confdefs.h <<\_ACEOF
42294#define wxUSE_STREAMS 1
42295_ACEOF
42296
42297fi
42298
8b6682b9
JS
42299if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
42300 cat >>confdefs.h <<\_ACEOF
42301#define wxUSE_PRINTF_POS_PARAMS 1
42302_ACEOF
42303
42304fi
42305
42306
a848cd7e
SC
42307
42308if test "$wxUSE_DATETIME" = "yes"; then
42309
42310for ac_func in strptime
42311do
42312as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42313echo "$as_me:$LINENO: checking for $ac_func" >&5
42314echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42315if eval "test \"\${$as_ac_var+set}\" = set"; then
42316 echo $ECHO_N "(cached) $ECHO_C" >&6
42317else
42318 cat >conftest.$ac_ext <<_ACEOF
42319/* confdefs.h. */
42320_ACEOF
42321cat confdefs.h >>conftest.$ac_ext
42322cat >>conftest.$ac_ext <<_ACEOF
42323/* end confdefs.h. */
ac1cb8d3
VS
42324/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42326#define $ac_func innocuous_$ac_func
42327
a848cd7e
SC
42328/* System header to define __stub macros and hopefully few prototypes,
42329 which can conflict with char $ac_func (); below.
42330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42331 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42332
a848cd7e
SC
42333#ifdef __STDC__
42334# include <limits.h>
42335#else
42336# include <assert.h>
42337#endif
ac1cb8d3
VS
42338
42339#undef $ac_func
42340
a848cd7e
SC
42341/* Override any gcc2 internal prototype to avoid an error. */
42342#ifdef __cplusplus
42343extern "C"
42344{
42345#endif
42346/* We use char because int might match the return type of a gcc2
42347 builtin and then its argument prototype would still apply. */
42348char $ac_func ();
42349/* The GNU C library defines this for functions which it implements
42350 to always fail with ENOSYS. Some functions are actually named
42351 something starting with __ and the normal name is an alias. */
42352#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42353choke me
42354#else
42355char (*f) () = $ac_func;
42356#endif
42357#ifdef __cplusplus
42358}
42359#endif
42360
42361int
42362main ()
42363{
42364return f != $ac_func;
42365 ;
42366 return 0;
42367}
42368_ACEOF
42369rm -f conftest.$ac_objext conftest$ac_exeext
42370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42371 (eval $ac_link) 2>conftest.er1
a848cd7e 42372 ac_status=$?
ac1cb8d3
VS
42373 grep -v '^ *+' conftest.er1 >conftest.err
42374 rm -f conftest.er1
42375 cat conftest.err >&5
a848cd7e
SC
42376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42377 (exit $ac_status); } &&
c9a66001 42378 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42380 (eval $ac_try) 2>&5
42381 ac_status=$?
42382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42383 (exit $ac_status); }; } &&
42384 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42386 (eval $ac_try) 2>&5
42387 ac_status=$?
42388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42389 (exit $ac_status); }; }; then
42390 eval "$as_ac_var=yes"
42391else
42392 echo "$as_me: failed program was:" >&5
42393sed 's/^/| /' conftest.$ac_ext >&5
42394
42395eval "$as_ac_var=no"
42396fi
ac1cb8d3
VS
42397rm -f conftest.err conftest.$ac_objext \
42398 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42399fi
42400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42401echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42402if test `eval echo '${'$as_ac_var'}'` = yes; then
42403 cat >>confdefs.h <<_ACEOF
42404#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42405_ACEOF
42406
42407fi
42408done
42409
f536f005
VZ
42410 if test "$ac_cv_func_strptime" = "yes"; then
42411 echo "$as_me:$LINENO: checking for strptime declaration" >&5
42412echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
42413if test "${wx_cv_func_strptime_decl+set}" = set; then
42414 echo $ECHO_N "(cached) $ECHO_C" >&6
42415else
42416
f536f005
VZ
42417 cat >conftest.$ac_ext <<_ACEOF
42418/* confdefs.h. */
42419_ACEOF
42420cat confdefs.h >>conftest.$ac_ext
42421cat >>conftest.$ac_ext <<_ACEOF
42422/* end confdefs.h. */
42423
42424 #include <time.h>
42425
42426int
42427main ()
42428{
42429
42430 struct tm t;
42431 strptime("foo", "bar", &t);
42432
42433 ;
42434 return 0;
42435}
42436_ACEOF
42437rm -f conftest.$ac_objext
42438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42439 (eval $ac_compile) 2>conftest.er1
42440 ac_status=$?
42441 grep -v '^ *+' conftest.er1 >conftest.err
42442 rm -f conftest.er1
42443 cat conftest.err >&5
42444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42445 (exit $ac_status); } &&
c9a66001 42446 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
42447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42448 (eval $ac_try) 2>&5
42449 ac_status=$?
42450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42451 (exit $ac_status); }; } &&
42452 { ac_try='test -s conftest.$ac_objext'
42453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42454 (eval $ac_try) 2>&5
42455 ac_status=$?
42456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42457 (exit $ac_status); }; }; then
42458 wx_cv_func_strptime_decl=yes
42459else
42460 echo "$as_me: failed program was:" >&5
42461sed 's/^/| /' conftest.$ac_ext >&5
42462
42463wx_cv_func_strptime_decl=no
42464
42465fi
42466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
42467
42468
42469fi
42470echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
42471echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
42472 fi
42473 if test "$wx_cv_func_strptime_decl" = "yes"; then
42474 cat >>confdefs.h <<\_ACEOF
42475#define HAVE_STRPTIME_DECL 1
42476_ACEOF
42477
42478 fi
a848cd7e
SC
42479
42480 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
42481echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
42482if test "${wx_cv_var_timezone+set}" = set; then
42483 echo $ECHO_N "(cached) $ECHO_C" >&6
42484else
42485
42486 cat >conftest.$ac_ext <<_ACEOF
42487/* confdefs.h. */
42488_ACEOF
42489cat confdefs.h >>conftest.$ac_ext
42490cat >>conftest.$ac_ext <<_ACEOF
42491/* end confdefs.h. */
42492
42493 #include <time.h>
42494
42495int
42496main ()
42497{
42498
42499 int tz;
42500 tz = timezone;
42501
42502 ;
42503 return 0;
42504}
42505_ACEOF
42506rm -f conftest.$ac_objext
42507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42508 (eval $ac_compile) 2>conftest.er1
a848cd7e 42509 ac_status=$?
ac1cb8d3
VS
42510 grep -v '^ *+' conftest.er1 >conftest.err
42511 rm -f conftest.er1
42512 cat conftest.err >&5
a848cd7e
SC
42513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42514 (exit $ac_status); } &&
c9a66001 42515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42517 (eval $ac_try) 2>&5
42518 ac_status=$?
42519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42520 (exit $ac_status); }; } &&
42521 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42523 (eval $ac_try) 2>&5
42524 ac_status=$?
42525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42526 (exit $ac_status); }; }; then
42527
42528 wx_cv_var_timezone=timezone
42529
42530else
42531 echo "$as_me: failed program was:" >&5
42532sed 's/^/| /' conftest.$ac_ext >&5
42533
42534
42535 cat >conftest.$ac_ext <<_ACEOF
42536/* confdefs.h. */
42537_ACEOF
42538cat confdefs.h >>conftest.$ac_ext
42539cat >>conftest.$ac_ext <<_ACEOF
42540/* end confdefs.h. */
42541
42542 #include <time.h>
42543
42544int
42545main ()
42546{
42547
42548 int tz;
42549 tz = _timezone;
42550
42551 ;
42552 return 0;
42553}
42554_ACEOF
42555rm -f conftest.$ac_objext
42556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42557 (eval $ac_compile) 2>conftest.er1
a848cd7e 42558 ac_status=$?
ac1cb8d3
VS
42559 grep -v '^ *+' conftest.er1 >conftest.err
42560 rm -f conftest.er1
42561 cat conftest.err >&5
a848cd7e
SC
42562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42563 (exit $ac_status); } &&
c9a66001 42564 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42566 (eval $ac_try) 2>&5
42567 ac_status=$?
42568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42569 (exit $ac_status); }; } &&
42570 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42572 (eval $ac_try) 2>&5
42573 ac_status=$?
42574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42575 (exit $ac_status); }; }; then
42576
42577 wx_cv_var_timezone=_timezone
42578
42579else
42580 echo "$as_me: failed program was:" >&5
42581sed 's/^/| /' conftest.$ac_ext >&5
42582
42583
42584 cat >conftest.$ac_ext <<_ACEOF
42585/* confdefs.h. */
42586_ACEOF
42587cat confdefs.h >>conftest.$ac_ext
42588cat >>conftest.$ac_ext <<_ACEOF
42589/* end confdefs.h. */
42590
42591 #include <time.h>
42592
42593int
42594main ()
42595{
42596
42597 int tz;
42598 tz = __timezone;
42599
42600 ;
42601 return 0;
42602}
42603_ACEOF
42604rm -f conftest.$ac_objext
42605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42606 (eval $ac_compile) 2>conftest.er1
a848cd7e 42607 ac_status=$?
ac1cb8d3
VS
42608 grep -v '^ *+' conftest.er1 >conftest.err
42609 rm -f conftest.er1
42610 cat conftest.err >&5
a848cd7e
SC
42611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42612 (exit $ac_status); } &&
c9a66001 42613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42615 (eval $ac_try) 2>&5
42616 ac_status=$?
42617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42618 (exit $ac_status); }; } &&
42619 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42621 (eval $ac_try) 2>&5
42622 ac_status=$?
42623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42624 (exit $ac_status); }; }; then
42625
42626 wx_cv_var_timezone=__timezone
42627
42628else
42629 echo "$as_me: failed program was:" >&5
42630sed 's/^/| /' conftest.$ac_ext >&5
42631
42632
42633 if test "$USE_DOS" = 0 ; then
42634 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
42635echo "$as_me: WARNING: no timezone variable" >&2;}
42636 fi
42637
42638
42639fi
ac1cb8d3 42640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42641
42642
42643fi
ac1cb8d3 42644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42645
42646
42647fi
ac1cb8d3 42648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42649
42650
42651fi
42652echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
42653echo "${ECHO_T}$wx_cv_var_timezone" >&6
42654
42655 if test "x$wx_cv_var_timezone" != x ; then
42656 cat >>confdefs.h <<_ACEOF
42657#define WX_TIMEZONE $wx_cv_var_timezone
42658_ACEOF
42659
42660 fi
42661
42662
42663for ac_func in localtime
42664do
42665as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42666echo "$as_me:$LINENO: checking for $ac_func" >&5
42667echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42668if eval "test \"\${$as_ac_var+set}\" = set"; then
42669 echo $ECHO_N "(cached) $ECHO_C" >&6
42670else
42671 cat >conftest.$ac_ext <<_ACEOF
42672/* confdefs.h. */
42673_ACEOF
42674cat confdefs.h >>conftest.$ac_ext
42675cat >>conftest.$ac_ext <<_ACEOF
42676/* end confdefs.h. */
ac1cb8d3
VS
42677/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42679#define $ac_func innocuous_$ac_func
42680
a848cd7e
SC
42681/* System header to define __stub macros and hopefully few prototypes,
42682 which can conflict with char $ac_func (); below.
42683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42684 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42685
a848cd7e
SC
42686#ifdef __STDC__
42687# include <limits.h>
42688#else
42689# include <assert.h>
42690#endif
ac1cb8d3
VS
42691
42692#undef $ac_func
42693
a848cd7e
SC
42694/* Override any gcc2 internal prototype to avoid an error. */
42695#ifdef __cplusplus
42696extern "C"
42697{
42698#endif
42699/* We use char because int might match the return type of a gcc2
42700 builtin and then its argument prototype would still apply. */
42701char $ac_func ();
42702/* The GNU C library defines this for functions which it implements
42703 to always fail with ENOSYS. Some functions are actually named
42704 something starting with __ and the normal name is an alias. */
42705#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42706choke me
42707#else
42708char (*f) () = $ac_func;
42709#endif
42710#ifdef __cplusplus
42711}
42712#endif
42713
42714int
42715main ()
42716{
42717return f != $ac_func;
42718 ;
42719 return 0;
42720}
42721_ACEOF
42722rm -f conftest.$ac_objext conftest$ac_exeext
42723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42724 (eval $ac_link) 2>conftest.er1
a848cd7e 42725 ac_status=$?
ac1cb8d3
VS
42726 grep -v '^ *+' conftest.er1 >conftest.err
42727 rm -f conftest.er1
42728 cat conftest.err >&5
a848cd7e
SC
42729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42730 (exit $ac_status); } &&
c9a66001 42731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42733 (eval $ac_try) 2>&5
42734 ac_status=$?
42735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42736 (exit $ac_status); }; } &&
42737 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42739 (eval $ac_try) 2>&5
42740 ac_status=$?
42741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42742 (exit $ac_status); }; }; then
42743 eval "$as_ac_var=yes"
42744else
42745 echo "$as_me: failed program was:" >&5
42746sed 's/^/| /' conftest.$ac_ext >&5
42747
42748eval "$as_ac_var=no"
42749fi
ac1cb8d3
VS
42750rm -f conftest.err conftest.$ac_objext \
42751 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42752fi
42753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42754echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42755if test `eval echo '${'$as_ac_var'}'` = yes; then
42756 cat >>confdefs.h <<_ACEOF
42757#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42758_ACEOF
42759
42760fi
42761done
42762
42763
42764 if test "$ac_cv_func_localtime" = "yes"; then
42765 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
42766echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
42767if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
42768 echo $ECHO_N "(cached) $ECHO_C" >&6
42769else
42770
42771 cat >conftest.$ac_ext <<_ACEOF
42772/* confdefs.h. */
42773_ACEOF
42774cat confdefs.h >>conftest.$ac_ext
42775cat >>conftest.$ac_ext <<_ACEOF
42776/* end confdefs.h. */
42777
42778 #include <time.h>
42779
42780int
42781main ()
42782{
42783
42784 struct tm tm;
42785 tm.tm_gmtoff++;
42786
42787 ;
42788 return 0;
42789}
42790_ACEOF
42791rm -f conftest.$ac_objext
42792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42793 (eval $ac_compile) 2>conftest.er1
a848cd7e 42794 ac_status=$?
ac1cb8d3
VS
42795 grep -v '^ *+' conftest.er1 >conftest.err
42796 rm -f conftest.er1
42797 cat conftest.err >&5
a848cd7e
SC
42798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42799 (exit $ac_status); } &&
c9a66001 42800 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42802 (eval $ac_try) 2>&5
42803 ac_status=$?
42804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42805 (exit $ac_status); }; } &&
42806 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42808 (eval $ac_try) 2>&5
42809 ac_status=$?
42810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42811 (exit $ac_status); }; }; then
42812
42813 wx_cv_struct_tm_has_gmtoff=yes
42814
42815else
42816 echo "$as_me: failed program was:" >&5
42817sed 's/^/| /' conftest.$ac_ext >&5
42818
42819wx_cv_struct_tm_has_gmtoff=no
42820
42821fi
ac1cb8d3 42822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42823
42824fi
42825echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
42826echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
42827 fi
42828
42829 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
42830 cat >>confdefs.h <<\_ACEOF
42831#define WX_GMTOFF_IN_TM 1
42832_ACEOF
42833
42834 fi
42835
42836
42837
42838for ac_func in gettimeofday ftime
42839do
42840as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42841echo "$as_me:$LINENO: checking for $ac_func" >&5
42842echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42843if eval "test \"\${$as_ac_var+set}\" = set"; then
42844 echo $ECHO_N "(cached) $ECHO_C" >&6
42845else
42846 cat >conftest.$ac_ext <<_ACEOF
42847/* confdefs.h. */
42848_ACEOF
42849cat confdefs.h >>conftest.$ac_ext
42850cat >>conftest.$ac_ext <<_ACEOF
42851/* end confdefs.h. */
ac1cb8d3
VS
42852/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42854#define $ac_func innocuous_$ac_func
42855
a848cd7e
SC
42856/* System header to define __stub macros and hopefully few prototypes,
42857 which can conflict with char $ac_func (); below.
42858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42859 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42860
a848cd7e
SC
42861#ifdef __STDC__
42862# include <limits.h>
42863#else
42864# include <assert.h>
42865#endif
ac1cb8d3
VS
42866
42867#undef $ac_func
42868
a848cd7e
SC
42869/* Override any gcc2 internal prototype to avoid an error. */
42870#ifdef __cplusplus
42871extern "C"
42872{
42873#endif
42874/* We use char because int might match the return type of a gcc2
42875 builtin and then its argument prototype would still apply. */
42876char $ac_func ();
42877/* The GNU C library defines this for functions which it implements
42878 to always fail with ENOSYS. Some functions are actually named
42879 something starting with __ and the normal name is an alias. */
42880#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42881choke me
42882#else
42883char (*f) () = $ac_func;
42884#endif
42885#ifdef __cplusplus
42886}
42887#endif
42888
42889int
42890main ()
42891{
42892return f != $ac_func;
42893 ;
42894 return 0;
42895}
42896_ACEOF
42897rm -f conftest.$ac_objext conftest$ac_exeext
42898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42899 (eval $ac_link) 2>conftest.er1
a848cd7e 42900 ac_status=$?
ac1cb8d3
VS
42901 grep -v '^ *+' conftest.er1 >conftest.err
42902 rm -f conftest.er1
42903 cat conftest.err >&5
a848cd7e
SC
42904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42905 (exit $ac_status); } &&
c9a66001 42906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42908 (eval $ac_try) 2>&5
42909 ac_status=$?
42910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42911 (exit $ac_status); }; } &&
42912 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42914 (eval $ac_try) 2>&5
42915 ac_status=$?
42916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42917 (exit $ac_status); }; }; then
42918 eval "$as_ac_var=yes"
42919else
42920 echo "$as_me: failed program was:" >&5
42921sed 's/^/| /' conftest.$ac_ext >&5
42922
42923eval "$as_ac_var=no"
42924fi
ac1cb8d3
VS
42925rm -f conftest.err conftest.$ac_objext \
42926 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42927fi
42928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42929echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42930if test `eval echo '${'$as_ac_var'}'` = yes; then
42931 cat >>confdefs.h <<_ACEOF
42932#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42933_ACEOF
42934 break
42935fi
42936done
42937
42938
42939 if test "$ac_cv_func_gettimeofday" = "yes"; then
42940 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
42941echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
42942if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
42943 echo $ECHO_N "(cached) $ECHO_C" >&6
42944else
42945
5d7b7554 42946 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42947/* confdefs.h. */
42948_ACEOF
42949cat confdefs.h >>conftest.$ac_ext
42950cat >>conftest.$ac_ext <<_ACEOF
42951/* end confdefs.h. */
42952
42953 #include <sys/time.h>
42954 #include <unistd.h>
42955
42956int
42957main ()
42958{
42959
42960 struct timeval tv;
42961 gettimeofday(&tv, NULL);
42962
42963 ;
42964 return 0;
42965}
42966_ACEOF
42967rm -f conftest.$ac_objext
42968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42969 (eval $ac_compile) 2>conftest.er1
a848cd7e 42970 ac_status=$?
ac1cb8d3
VS
42971 grep -v '^ *+' conftest.er1 >conftest.err
42972 rm -f conftest.er1
42973 cat conftest.err >&5
a848cd7e
SC
42974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42975 (exit $ac_status); } &&
c9a66001 42976 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42978 (eval $ac_try) 2>&5
42979 ac_status=$?
42980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42981 (exit $ac_status); }; } &&
42982 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42984 (eval $ac_try) 2>&5
42985 ac_status=$?
42986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42987 (exit $ac_status); }; }; then
42988 wx_cv_func_gettimeofday_has_2_args=yes
42989else
42990 echo "$as_me: failed program was:" >&5
42991sed 's/^/| /' conftest.$ac_ext >&5
42992
42993cat >conftest.$ac_ext <<_ACEOF
42994/* confdefs.h. */
42995_ACEOF
42996cat confdefs.h >>conftest.$ac_ext
42997cat >>conftest.$ac_ext <<_ACEOF
42998/* end confdefs.h. */
42999
43000 #include <sys/time.h>
43001 #include <unistd.h>
43002
43003int
43004main ()
43005{
43006
43007 struct timeval tv;
43008 gettimeofday(&tv);
43009
43010 ;
43011 return 0;
43012}
43013_ACEOF
43014rm -f conftest.$ac_objext
43015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43016 (eval $ac_compile) 2>conftest.er1
a848cd7e 43017 ac_status=$?
ac1cb8d3
VS
43018 grep -v '^ *+' conftest.er1 >conftest.err
43019 rm -f conftest.er1
43020 cat conftest.err >&5
a848cd7e
SC
43021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43022 (exit $ac_status); } &&
c9a66001 43023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43025 (eval $ac_try) 2>&5
43026 ac_status=$?
43027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43028 (exit $ac_status); }; } &&
43029 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43031 (eval $ac_try) 2>&5
43032 ac_status=$?
43033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43034 (exit $ac_status); }; }; then
43035 wx_cv_func_gettimeofday_has_2_args=no
43036else
43037 echo "$as_me: failed program was:" >&5
43038sed 's/^/| /' conftest.$ac_ext >&5
43039
43040
43041 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43042echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43043 wx_cv_func_gettimeofday_has_2_args=unknown
43044
43045
43046fi
ac1cb8d3 43047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43048
43049fi
ac1cb8d3 43050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43051
43052fi
43053echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43054echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
43055
43056 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43057 cat >>confdefs.h <<\_ACEOF
43058#define WX_GETTIMEOFDAY_NO_TZ 1
43059_ACEOF
43060
43061 fi
43062 fi
43063
43064 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
43065fi
43066
43067
43068if test "$wxUSE_SOCKETS" = "yes"; then
43069 if test "$wxUSE_MGL" = "1"; then
43070 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
43071echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
43072 wxUSE_SOCKETS="no"
43073 fi
43074fi
43075
43076if test "$wxUSE_SOCKETS" = "yes"; then
43077 if test "$TOOLKIT" != "MSW"; then
43078 echo "$as_me:$LINENO: checking for socket" >&5
43079echo $ECHO_N "checking for socket... $ECHO_C" >&6
43080if test "${ac_cv_func_socket+set}" = set; then
43081 echo $ECHO_N "(cached) $ECHO_C" >&6
43082else
43083 cat >conftest.$ac_ext <<_ACEOF
43084/* confdefs.h. */
43085_ACEOF
43086cat confdefs.h >>conftest.$ac_ext
43087cat >>conftest.$ac_ext <<_ACEOF
43088/* end confdefs.h. */
ac1cb8d3
VS
43089/* Define socket to an innocuous variant, in case <limits.h> declares socket.
43090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43091#define socket innocuous_socket
43092
a848cd7e
SC
43093/* System header to define __stub macros and hopefully few prototypes,
43094 which can conflict with char socket (); below.
43095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43096 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43097
a848cd7e
SC
43098#ifdef __STDC__
43099# include <limits.h>
43100#else
43101# include <assert.h>
43102#endif
ac1cb8d3
VS
43103
43104#undef socket
43105
a848cd7e
SC
43106/* Override any gcc2 internal prototype to avoid an error. */
43107#ifdef __cplusplus
43108extern "C"
43109{
43110#endif
43111/* We use char because int might match the return type of a gcc2
43112 builtin and then its argument prototype would still apply. */
43113char socket ();
43114/* The GNU C library defines this for functions which it implements
43115 to always fail with ENOSYS. Some functions are actually named
43116 something starting with __ and the normal name is an alias. */
43117#if defined (__stub_socket) || defined (__stub___socket)
43118choke me
43119#else
43120char (*f) () = socket;
43121#endif
43122#ifdef __cplusplus
43123}
43124#endif
43125
43126int
43127main ()
43128{
43129return f != socket;
43130 ;
43131 return 0;
43132}
43133_ACEOF
43134rm -f conftest.$ac_objext conftest$ac_exeext
43135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43136 (eval $ac_link) 2>conftest.er1
a848cd7e 43137 ac_status=$?
ac1cb8d3
VS
43138 grep -v '^ *+' conftest.er1 >conftest.err
43139 rm -f conftest.er1
43140 cat conftest.err >&5
a848cd7e
SC
43141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43142 (exit $ac_status); } &&
c9a66001 43143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43145 (eval $ac_try) 2>&5
43146 ac_status=$?
43147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43148 (exit $ac_status); }; } &&
43149 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43151 (eval $ac_try) 2>&5
43152 ac_status=$?
43153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43154 (exit $ac_status); }; }; then
43155 ac_cv_func_socket=yes
43156else
43157 echo "$as_me: failed program was:" >&5
43158sed 's/^/| /' conftest.$ac_ext >&5
43159
43160ac_cv_func_socket=no
43161fi
ac1cb8d3
VS
43162rm -f conftest.err conftest.$ac_objext \
43163 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43164fi
43165echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
43166echo "${ECHO_T}$ac_cv_func_socket" >&6
43167if test $ac_cv_func_socket = yes; then
43168 :
43169else
43170
43171 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
43172echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
43173if test "${ac_cv_lib_socket_socket+set}" = set; then
43174 echo $ECHO_N "(cached) $ECHO_C" >&6
43175else
43176 ac_check_lib_save_LIBS=$LIBS
43177LIBS="-lsocket $LIBS"
43178cat >conftest.$ac_ext <<_ACEOF
43179/* confdefs.h. */
43180_ACEOF
43181cat confdefs.h >>conftest.$ac_ext
43182cat >>conftest.$ac_ext <<_ACEOF
43183/* end confdefs.h. */
43184
43185/* Override any gcc2 internal prototype to avoid an error. */
43186#ifdef __cplusplus
43187extern "C"
43188#endif
43189/* We use char because int might match the return type of a gcc2
43190 builtin and then its argument prototype would still apply. */
43191char socket ();
43192int
43193main ()
43194{
43195socket ();
43196 ;
43197 return 0;
43198}
43199_ACEOF
43200rm -f conftest.$ac_objext conftest$ac_exeext
43201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43202 (eval $ac_link) 2>conftest.er1
a848cd7e 43203 ac_status=$?
ac1cb8d3
VS
43204 grep -v '^ *+' conftest.er1 >conftest.err
43205 rm -f conftest.er1
43206 cat conftest.err >&5
a848cd7e
SC
43207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43208 (exit $ac_status); } &&
c9a66001 43209 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43211 (eval $ac_try) 2>&5
43212 ac_status=$?
43213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43214 (exit $ac_status); }; } &&
43215 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43217 (eval $ac_try) 2>&5
43218 ac_status=$?
43219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43220 (exit $ac_status); }; }; then
43221 ac_cv_lib_socket_socket=yes
43222else
43223 echo "$as_me: failed program was:" >&5
43224sed 's/^/| /' conftest.$ac_ext >&5
43225
43226ac_cv_lib_socket_socket=no
43227fi
ac1cb8d3
VS
43228rm -f conftest.err conftest.$ac_objext \
43229 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43230LIBS=$ac_check_lib_save_LIBS
43231fi
43232echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
43233echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
43234if test $ac_cv_lib_socket_socket = yes; then
43235 if test "$INET_LINK" != " -lsocket"; then
43236 INET_LINK="$INET_LINK -lsocket"
43237 fi
43238else
43239
43240 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
43241echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
43242 wxUSE_SOCKETS=no
43243
43244
43245fi
43246
43247
43248
43249fi
43250
43251 fi
43252fi
43253
43254if test "$wxUSE_SOCKETS" = "yes" ; then
43255 if test "$TOOLKIT" != "MSW"; then
5d7b7554 43256 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
43257echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
43258if test "${wx_cv_type_getsockname3+set}" = set; then
43259 echo $ECHO_N "(cached) $ECHO_C" >&6
43260else
43261
43262 cat >conftest.$ac_ext <<_ACEOF
43263/* confdefs.h. */
43264_ACEOF
43265cat confdefs.h >>conftest.$ac_ext
43266cat >>conftest.$ac_ext <<_ACEOF
43267/* end confdefs.h. */
43268
43269 #include <sys/types.h>
43270 #include <sys/socket.h>
43271
43272int
43273main ()
43274{
43275
43276 socklen_t len;
43277 getsockname(0, 0, &len);
43278
43279 ;
43280 return 0;
43281}
43282_ACEOF
43283rm -f conftest.$ac_objext
43284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43285 (eval $ac_compile) 2>conftest.er1
a848cd7e 43286 ac_status=$?
ac1cb8d3
VS
43287 grep -v '^ *+' conftest.er1 >conftest.err
43288 rm -f conftest.er1
43289 cat conftest.err >&5
a848cd7e
SC
43290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43291 (exit $ac_status); } &&
c9a66001 43292 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43294 (eval $ac_try) 2>&5
43295 ac_status=$?
43296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43297 (exit $ac_status); }; } &&
43298 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43300 (eval $ac_try) 2>&5
43301 ac_status=$?
43302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43303 (exit $ac_status); }; }; then
43304 wx_cv_type_getsockname3=socklen_t
43305else
43306 echo "$as_me: failed program was:" >&5
43307sed 's/^/| /' conftest.$ac_ext >&5
43308
43309
6459a506 43310 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 43311 if test "$GCC" = yes ; then
c92ad099 43312 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
43313 fi
43314
43315 cat >conftest.$ac_ext <<_ACEOF
43316/* confdefs.h. */
43317_ACEOF
43318cat confdefs.h >>conftest.$ac_ext
43319cat >>conftest.$ac_ext <<_ACEOF
43320/* end confdefs.h. */
43321
43322 #include <sys/types.h>
43323 #include <sys/socket.h>
43324
43325int
43326main ()
43327{
43328
43329 size_t len;
43330 getsockname(0, 0, &len);
43331
43332 ;
43333 return 0;
43334}
43335_ACEOF
43336rm -f conftest.$ac_objext
43337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43338 (eval $ac_compile) 2>conftest.er1
a848cd7e 43339 ac_status=$?
ac1cb8d3
VS
43340 grep -v '^ *+' conftest.er1 >conftest.err
43341 rm -f conftest.er1
43342 cat conftest.err >&5
a848cd7e
SC
43343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43344 (exit $ac_status); } &&
c9a66001 43345 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43347 (eval $ac_try) 2>&5
43348 ac_status=$?
43349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43350 (exit $ac_status); }; } &&
43351 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43353 (eval $ac_try) 2>&5
43354 ac_status=$?
43355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43356 (exit $ac_status); }; }; then
43357 wx_cv_type_getsockname3=size_t
43358else
43359 echo "$as_me: failed program was:" >&5
43360sed 's/^/| /' conftest.$ac_ext >&5
43361
43362cat >conftest.$ac_ext <<_ACEOF
43363/* confdefs.h. */
43364_ACEOF
43365cat confdefs.h >>conftest.$ac_ext
43366cat >>conftest.$ac_ext <<_ACEOF
43367/* end confdefs.h. */
43368
43369 #include <sys/types.h>
43370 #include <sys/socket.h>
43371
43372int
43373main ()
43374{
43375
43376 int len;
43377 getsockname(0, 0, &len);
43378
43379 ;
43380 return 0;
43381}
43382_ACEOF
43383rm -f conftest.$ac_objext
43384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43385 (eval $ac_compile) 2>conftest.er1
a848cd7e 43386 ac_status=$?
ac1cb8d3
VS
43387 grep -v '^ *+' conftest.er1 >conftest.err
43388 rm -f conftest.er1
43389 cat conftest.err >&5
a848cd7e
SC
43390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43391 (exit $ac_status); } &&
c9a66001 43392 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43394 (eval $ac_try) 2>&5
43395 ac_status=$?
43396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43397 (exit $ac_status); }; } &&
43398 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43400 (eval $ac_try) 2>&5
43401 ac_status=$?
43402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43403 (exit $ac_status); }; }; then
43404 wx_cv_type_getsockname3=int
43405else
43406 echo "$as_me: failed program was:" >&5
43407sed 's/^/| /' conftest.$ac_ext >&5
43408
43409wx_cv_type_getsockname3=unknown
43410
43411fi
ac1cb8d3 43412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43413
43414fi
ac1cb8d3 43415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 43416
6459a506 43417 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
43418
43419
43420fi
ac1cb8d3 43421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43422
43423fi
43424echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
43425echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
43426
43427 if test "$wx_cv_type_getsockname3" = "unknown"; then
43428 wxUSE_SOCKETS=no
43429 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43430echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43431 else
43432 cat >>confdefs.h <<_ACEOF
9e03e02d 43433#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
43434_ACEOF
43435
43436 fi
43437 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
43438echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
43439if test "${wx_cv_type_getsockopt5+set}" = set; then
43440 echo $ECHO_N "(cached) $ECHO_C" >&6
43441else
43442
43443 cat >conftest.$ac_ext <<_ACEOF
43444/* confdefs.h. */
43445_ACEOF
43446cat confdefs.h >>conftest.$ac_ext
43447cat >>conftest.$ac_ext <<_ACEOF
43448/* end confdefs.h. */
43449
43450 #include <sys/types.h>
43451 #include <sys/socket.h>
43452
43453int
43454main ()
43455{
43456
43457 socklen_t len;
43458 getsockopt(0, 0, 0, 0, &len);
43459
43460 ;
43461 return 0;
43462}
43463_ACEOF
43464rm -f conftest.$ac_objext
43465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43466 (eval $ac_compile) 2>conftest.er1
43467 ac_status=$?
43468 grep -v '^ *+' conftest.er1 >conftest.err
43469 rm -f conftest.er1
43470 cat conftest.err >&5
43471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43472 (exit $ac_status); } &&
c9a66001 43473 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
43474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43475 (eval $ac_try) 2>&5
43476 ac_status=$?
43477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43478 (exit $ac_status); }; } &&
43479 { ac_try='test -s conftest.$ac_objext'
43480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43481 (eval $ac_try) 2>&5
43482 ac_status=$?
43483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43484 (exit $ac_status); }; }; then
43485 wx_cv_type_getsockopt5=socklen_t
43486else
43487 echo "$as_me: failed program was:" >&5
43488sed 's/^/| /' conftest.$ac_ext >&5
43489
43490
6459a506 43491 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 43492 if test "$GCC" = yes ; then
c92ad099 43493 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
43494 fi
43495
43496 cat >conftest.$ac_ext <<_ACEOF
43497/* confdefs.h. */
43498_ACEOF
43499cat confdefs.h >>conftest.$ac_ext
43500cat >>conftest.$ac_ext <<_ACEOF
43501/* end confdefs.h. */
43502
43503 #include <sys/types.h>
43504 #include <sys/socket.h>
43505
43506int
43507main ()
43508{
43509
43510 size_t len;
43511 getsockopt(0, 0, 0, 0, &len);
43512
43513 ;
43514 return 0;
43515}
43516_ACEOF
43517rm -f conftest.$ac_objext
43518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43519 (eval $ac_compile) 2>conftest.er1
43520 ac_status=$?
43521 grep -v '^ *+' conftest.er1 >conftest.err
43522 rm -f conftest.er1
43523 cat conftest.err >&5
43524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43525 (exit $ac_status); } &&
c9a66001 43526 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
43527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43528 (eval $ac_try) 2>&5
43529 ac_status=$?
43530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43531 (exit $ac_status); }; } &&
43532 { ac_try='test -s conftest.$ac_objext'
43533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43534 (eval $ac_try) 2>&5
43535 ac_status=$?
43536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43537 (exit $ac_status); }; }; then
43538 wx_cv_type_getsockopt5=size_t
43539else
43540 echo "$as_me: failed program was:" >&5
43541sed 's/^/| /' conftest.$ac_ext >&5
43542
43543cat >conftest.$ac_ext <<_ACEOF
43544/* confdefs.h. */
43545_ACEOF
43546cat confdefs.h >>conftest.$ac_ext
43547cat >>conftest.$ac_ext <<_ACEOF
43548/* end confdefs.h. */
43549
43550 #include <sys/types.h>
43551 #include <sys/socket.h>
43552
43553int
43554main ()
43555{
43556
43557 int len;
43558 getsockopt(0, 0, 0, 0, &len);
43559
43560 ;
43561 return 0;
43562}
43563_ACEOF
43564rm -f conftest.$ac_objext
43565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43566 (eval $ac_compile) 2>conftest.er1
43567 ac_status=$?
43568 grep -v '^ *+' conftest.er1 >conftest.err
43569 rm -f conftest.er1
43570 cat conftest.err >&5
43571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43572 (exit $ac_status); } &&
c9a66001 43573 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
43574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43575 (eval $ac_try) 2>&5
43576 ac_status=$?
43577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43578 (exit $ac_status); }; } &&
43579 { ac_try='test -s conftest.$ac_objext'
43580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43581 (eval $ac_try) 2>&5
43582 ac_status=$?
43583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43584 (exit $ac_status); }; }; then
43585 wx_cv_type_getsockopt5=int
43586else
43587 echo "$as_me: failed program was:" >&5
43588sed 's/^/| /' conftest.$ac_ext >&5
43589
43590wx_cv_type_getsockopt5=unknown
43591
43592fi
43593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43594
43595fi
43596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43597
6459a506 43598 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
43599
43600
43601fi
43602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43603
43604fi
43605echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
43606echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
43607
43608 if test "$wx_cv_type_getsockopt5" = "unknown"; then
43609 wxUSE_SOCKETS=no
43610 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43611echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43612 else
43613 cat >>confdefs.h <<_ACEOF
43614#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
43615_ACEOF
43616
43617 fi
43618 fi
43619fi
43620
43621if test "$wxUSE_SOCKETS" = "yes" ; then
43622 cat >>confdefs.h <<\_ACEOF
43623#define wxUSE_SOCKETS 1
43624_ACEOF
43625
43626 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
43627fi
43628
43629if test "$wxUSE_PROTOCOL" = "yes"; then
43630 if test "$wxUSE_SOCKETS" != "yes"; then
43631 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
43632echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
43633 wxUSE_PROTOCOL=no
43634 fi
43635fi
43636
43637if test "$wxUSE_PROTOCOL" = "yes"; then
43638 cat >>confdefs.h <<\_ACEOF
43639#define wxUSE_PROTOCOL 1
43640_ACEOF
43641
43642
43643 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
43644 cat >>confdefs.h <<\_ACEOF
43645#define wxUSE_PROTOCOL_HTTP 1
43646_ACEOF
43647
43648 fi
43649 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
43650 cat >>confdefs.h <<\_ACEOF
43651#define wxUSE_PROTOCOL_FTP 1
43652_ACEOF
43653
43654 fi
43655 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
43656 cat >>confdefs.h <<\_ACEOF
43657#define wxUSE_PROTOCOL_FILE 1
43658_ACEOF
43659
43660 fi
43661else
43662 if test "$wxUSE_FS_INET" = "yes"; then
43663 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
43664echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
43665 wxUSE_FS_INET="no"
43666 fi
43667fi
43668
43669if test "$wxUSE_URL" = "yes"; then
43670 if test "$wxUSE_PROTOCOL" != "yes"; then
43671 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
43672echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
43673 wxUSE_URL=no
43674 fi
43675 if test "$wxUSE_URL" = "yes"; then
43676 cat >>confdefs.h <<\_ACEOF
43677#define wxUSE_URL 1
43678_ACEOF
43679
43680 fi
43681fi
43682
43683if test "$wxUSE_FS_INET" = "yes"; then
43684 cat >>confdefs.h <<\_ACEOF
43685#define wxUSE_FS_INET 1
43686_ACEOF
43687
43688fi
43689
43690
ee45c548
MW
43691if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
43692 wxUSE_JOYSTICK=no
43693
43694 if test "$TOOLKIT" = "MSW"; then
43695 wxUSE_JOYSTICK=yes
43696
43697 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
43698 if test "$USE_DARWIN" = 1; then
43699 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
43700echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
43701 cat >conftest.$ac_ext <<_ACEOF
43702/* confdefs.h. */
43703_ACEOF
43704cat confdefs.h >>conftest.$ac_ext
43705cat >>conftest.$ac_ext <<_ACEOF
43706/* end confdefs.h. */
43707 #include <IOKit/hid/IOHIDLib.h>
43708int
43709main ()
43710{
43711 IOHIDQueueInterface *qi = NULL;
43712 IOHIDCallbackFunction cb = NULL;
43713 qi->setEventCallout(NULL, cb, NULL, NULL);
43714 ;
43715 return 0;
43716}
43717_ACEOF
43718rm -f conftest.$ac_objext
43719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43720 (eval $ac_compile) 2>conftest.er1
43721 ac_status=$?
43722 grep -v '^ *+' conftest.er1 >conftest.err
43723 rm -f conftest.er1
43724 cat conftest.err >&5
43725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43726 (exit $ac_status); } &&
c9a66001 43727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
43728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43729 (eval $ac_try) 2>&5
43730 ac_status=$?
43731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43732 (exit $ac_status); }; } &&
43733 { ac_try='test -s conftest.$ac_objext'
43734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43735 (eval $ac_try) 2>&5
43736 ac_status=$?
43737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43738 (exit $ac_status); }; }; then
43739 wxUSE_JOYSTICK=yes
a848cd7e 43740
ee45c548
MW
43741else
43742 echo "$as_me: failed program was:" >&5
43743sed 's/^/| /' conftest.$ac_ext >&5
43744
43745fi
43746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
43747 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
43748echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
43749 fi
43750
43751 else
a848cd7e
SC
43752
43753for ac_header in linux/joystick.h
43754do
43755as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43756if eval "test \"\${$as_ac_Header+set}\" = set"; then
43757 echo "$as_me:$LINENO: checking for $ac_header" >&5
43758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43759if eval "test \"\${$as_ac_Header+set}\" = set"; then
43760 echo $ECHO_N "(cached) $ECHO_C" >&6
43761fi
43762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43763echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43764else
43765 # Is the header compilable?
43766echo "$as_me:$LINENO: checking $ac_header usability" >&5
43767echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43768cat >conftest.$ac_ext <<_ACEOF
43769/* confdefs.h. */
43770_ACEOF
43771cat confdefs.h >>conftest.$ac_ext
43772cat >>conftest.$ac_ext <<_ACEOF
43773/* end confdefs.h. */
43774$ac_includes_default
43775#include <$ac_header>
43776_ACEOF
43777rm -f conftest.$ac_objext
43778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43779 (eval $ac_compile) 2>conftest.er1
a848cd7e 43780 ac_status=$?
ac1cb8d3
VS
43781 grep -v '^ *+' conftest.er1 >conftest.err
43782 rm -f conftest.er1
43783 cat conftest.err >&5
a848cd7e
SC
43784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43785 (exit $ac_status); } &&
c9a66001 43786 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43788 (eval $ac_try) 2>&5
43789 ac_status=$?
43790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43791 (exit $ac_status); }; } &&
43792 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43794 (eval $ac_try) 2>&5
43795 ac_status=$?
43796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43797 (exit $ac_status); }; }; then
43798 ac_header_compiler=yes
43799else
43800 echo "$as_me: failed program was:" >&5
43801sed 's/^/| /' conftest.$ac_ext >&5
43802
43803ac_header_compiler=no
43804fi
ac1cb8d3 43805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43806echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43807echo "${ECHO_T}$ac_header_compiler" >&6
43808
43809# Is the header present?
43810echo "$as_me:$LINENO: checking $ac_header presence" >&5
43811echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43812cat >conftest.$ac_ext <<_ACEOF
43813/* confdefs.h. */
43814_ACEOF
43815cat confdefs.h >>conftest.$ac_ext
43816cat >>conftest.$ac_ext <<_ACEOF
43817/* end confdefs.h. */
43818#include <$ac_header>
43819_ACEOF
43820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43822 ac_status=$?
43823 grep -v '^ *+' conftest.er1 >conftest.err
43824 rm -f conftest.er1
43825 cat conftest.err >&5
43826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43827 (exit $ac_status); } >/dev/null; then
43828 if test -s conftest.err; then
5d7b7554
VZ
43829 ac_cpp_err=$ac_cxx_preproc_warn_flag
43830 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
43831 else
43832 ac_cpp_err=
43833 fi
43834else
43835 ac_cpp_err=yes
43836fi
43837if test -z "$ac_cpp_err"; then
43838 ac_header_preproc=yes
43839else
43840 echo "$as_me: failed program was:" >&5
43841sed 's/^/| /' conftest.$ac_ext >&5
43842
43843 ac_header_preproc=no
43844fi
43845rm -f conftest.err conftest.$ac_ext
43846echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43847echo "${ECHO_T}$ac_header_preproc" >&6
43848
43849# So? What about this header?
5d7b7554 43850case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 43851 yes:no: )
a848cd7e
SC
43852 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43853echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43855echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43856 ac_header_preproc=yes
a848cd7e 43857 ;;
ac1cb8d3 43858 no:yes:* )
a848cd7e
SC
43859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43860echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43862echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43863 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43864echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43865 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43866echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43868echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43869 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43870echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43871 (
43872 cat <<\_ASBOX
ac1cb8d3
VS
43873## ----------------------------------------- ##
43874## Report this to wx-dev@lists.wxwidgets.org ##
43875## ----------------------------------------- ##
a848cd7e
SC
43876_ASBOX
43877 ) |
43878 sed "s/^/$as_me: WARNING: /" >&2
43879 ;;
43880esac
43881echo "$as_me:$LINENO: checking for $ac_header" >&5
43882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43883if eval "test \"\${$as_ac_Header+set}\" = set"; then
43884 echo $ECHO_N "(cached) $ECHO_C" >&6
43885else
ac1cb8d3 43886 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43887fi
43888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43889echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43890
43891fi
43892if test `eval echo '${'$as_ac_Header'}'` = yes; then
43893 cat >>confdefs.h <<_ACEOF
43894#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43895_ACEOF
ee45c548 43896 wxUSE_JOYSTICK=yes
a848cd7e
SC
43897fi
43898
43899done
43900
ee45c548 43901 fi
4cb1d3da 43902
ee45c548
MW
43903 if test "$wxUSE_JOYSTICK" = "yes"; then
43904 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43905#define wxUSE_JOYSTICK 1
43906_ACEOF
43907
ee45c548
MW
43908 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
43909 else
43910 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
43911echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
43912 fi
43913fi
43914
43915
43916
43917if test "$wxUSE_FONTMAP" = "yes" ; then
43918 cat >>confdefs.h <<\_ACEOF
43919#define wxUSE_FONTMAP 1
43920_ACEOF
43921
43922fi
43923
43924if test "$wxUSE_UNICODE" = "yes" ; then
43925 cat >>confdefs.h <<\_ACEOF
43926#define wxUSE_UNICODE 1
43927_ACEOF
43928
43929
43930 if test "$USE_WIN32" != 1; then
43931 wxUSE_UNICODE_MSLU=no
43932 fi
43933
43934 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
43935 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
43936echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
43937if test "${ac_cv_lib_unicows_main+set}" = set; then
43938 echo $ECHO_N "(cached) $ECHO_C" >&6
43939else
43940 ac_check_lib_save_LIBS=$LIBS
43941LIBS="-lunicows $LIBS"
43942cat >conftest.$ac_ext <<_ACEOF
43943/* confdefs.h. */
43944_ACEOF
43945cat confdefs.h >>conftest.$ac_ext
43946cat >>conftest.$ac_ext <<_ACEOF
43947/* end confdefs.h. */
43948
43949
43950int
43951main ()
43952{
43953main ();
43954 ;
43955 return 0;
43956}
43957_ACEOF
43958rm -f conftest.$ac_objext conftest$ac_exeext
43959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43960 (eval $ac_link) 2>conftest.er1
a848cd7e 43961 ac_status=$?
ac1cb8d3
VS
43962 grep -v '^ *+' conftest.er1 >conftest.err
43963 rm -f conftest.er1
43964 cat conftest.err >&5
a848cd7e
SC
43965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43966 (exit $ac_status); } &&
c9a66001 43967 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43969 (eval $ac_try) 2>&5
43970 ac_status=$?
43971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43972 (exit $ac_status); }; } &&
43973 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43975 (eval $ac_try) 2>&5
43976 ac_status=$?
43977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43978 (exit $ac_status); }; }; then
43979 ac_cv_lib_unicows_main=yes
43980else
43981 echo "$as_me: failed program was:" >&5
43982sed 's/^/| /' conftest.$ac_ext >&5
43983
43984ac_cv_lib_unicows_main=no
43985fi
ac1cb8d3
VS
43986rm -f conftest.err conftest.$ac_objext \
43987 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43988LIBS=$ac_check_lib_save_LIBS
43989fi
43990echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
43991echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
43992if test $ac_cv_lib_unicows_main = yes; then
43993
43994 cat >>confdefs.h <<\_ACEOF
43995#define wxUSE_UNICODE_MSLU 1
43996_ACEOF
43997
43998
43999else
44000
44001 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44002 Applications will only run on Windows NT/2000/XP!" >&5
44003echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44004 Applications will only run on Windows NT/2000/XP!" >&2;}
44005 wxUSE_UNICODE_MSLU=no
44006
44007fi
44008
44009 fi
44010fi
44011
44012if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
44013 cat >>confdefs.h <<\_ACEOF
44014#define wxUSE_EXPERIMENTAL_PRINTF 1
44015_ACEOF
44016
44017fi
44018
44019
44020if test "$wxUSE_POSTSCRIPT" = "yes" ; then
44021 cat >>confdefs.h <<\_ACEOF
44022#define wxUSE_POSTSCRIPT 1
44023_ACEOF
44024
44025fi
44026
44027cat >>confdefs.h <<\_ACEOF
44028#define wxUSE_AFM_FOR_POSTSCRIPT 1
44029_ACEOF
44030
44031
44032cat >>confdefs.h <<\_ACEOF
44033#define wxUSE_NORMALIZED_PS_FONTS 1
44034_ACEOF
44035
44036
44037
44038if test "$wxUSE_CONSTRAINTS" = "yes"; then
44039 cat >>confdefs.h <<\_ACEOF
44040#define wxUSE_CONSTRAINTS 1
44041_ACEOF
44042
44043 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
44044fi
44045
8a7b1113
VZ
44046if test "$wxUSE_MDI" = "yes"; then
44047 cat >>confdefs.h <<\_ACEOF
44048#define wxUSE_MDI 1
44049_ACEOF
44050
44051
44052 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44053 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44054#define wxUSE_MDI_ARCHITECTURE 1
44055_ACEOF
44056
8a7b1113
VZ
44057 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
44058 fi
a848cd7e
SC
44059fi
44060
44061if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
44062 cat >>confdefs.h <<\_ACEOF
44063#define wxUSE_DOC_VIEW_ARCHITECTURE 1
44064_ACEOF
44065
44066 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
44067 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44068 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
44069 fi
44070fi
44071
44072if test "$wxUSE_HELP" = "yes"; then
44073 cat >>confdefs.h <<\_ACEOF
44074#define wxUSE_HELP 1
44075_ACEOF
44076
44077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
44078
44079 if test "$wxUSE_MSW" = 1; then
44080 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
44081 cat >>confdefs.h <<\_ACEOF
44082#define wxUSE_MS_HTML_HELP 1
44083_ACEOF
44084
44085 fi
44086 fi
44087
44088 if test "$wxUSE_WXHTML_HELP" = "yes"; then
44089 if test "$wxUSE_HTML" = "yes"; then
44090 cat >>confdefs.h <<\_ACEOF
44091#define wxUSE_WXHTML_HELP 1
44092_ACEOF
44093
44094 else
44095 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
44096echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
44097 wxUSE_WXHTML_HELP=no
44098 fi
44099 fi
44100fi
44101
44102if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44103 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44104 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
44105echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
44106 else
44107 cat >>confdefs.h <<\_ACEOF
44108#define wxUSE_PRINTING_ARCHITECTURE 1
44109_ACEOF
44110
44111 fi
44112 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
44113fi
44114
44115if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
44116 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
44117echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
44118 { (exit 1); exit 1; }; }
44119fi
44120
44121
efdf6afe
VZ
44122if test "$wxUSE_METAFILE" = "yes"; then
44123 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
44124 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
44125echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
44126 wxUSE_METAFILE=no
44127 fi
44128fi
44129
44130
a848cd7e
SC
44131if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
44132 -o "$wxUSE_CLIPBOARD" = "yes" \
44133 -o "$wxUSE_OLE" = "yes" \
44134 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
44135
44136for ac_header in ole2.h
44137do
44138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44139if eval "test \"\${$as_ac_Header+set}\" = set"; then
44140 echo "$as_me:$LINENO: checking for $ac_header" >&5
44141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44142if eval "test \"\${$as_ac_Header+set}\" = set"; then
44143 echo $ECHO_N "(cached) $ECHO_C" >&6
44144fi
44145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44146echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44147else
44148 # Is the header compilable?
44149echo "$as_me:$LINENO: checking $ac_header usability" >&5
44150echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44151cat >conftest.$ac_ext <<_ACEOF
44152/* confdefs.h. */
44153_ACEOF
44154cat confdefs.h >>conftest.$ac_ext
44155cat >>conftest.$ac_ext <<_ACEOF
44156/* end confdefs.h. */
44157$ac_includes_default
44158#include <$ac_header>
44159_ACEOF
44160rm -f conftest.$ac_objext
44161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44162 (eval $ac_compile) 2>conftest.er1
a848cd7e 44163 ac_status=$?
ac1cb8d3
VS
44164 grep -v '^ *+' conftest.er1 >conftest.err
44165 rm -f conftest.er1
44166 cat conftest.err >&5
a848cd7e
SC
44167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44168 (exit $ac_status); } &&
c9a66001 44169 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
44175 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44177 (eval $ac_try) 2>&5
44178 ac_status=$?
44179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44180 (exit $ac_status); }; }; then
44181 ac_header_compiler=yes
44182else
44183 echo "$as_me: failed program was:" >&5
44184sed 's/^/| /' conftest.$ac_ext >&5
44185
44186ac_header_compiler=no
44187fi
ac1cb8d3 44188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44189echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44190echo "${ECHO_T}$ac_header_compiler" >&6
44191
44192# Is the header present?
44193echo "$as_me:$LINENO: checking $ac_header presence" >&5
44194echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44195cat >conftest.$ac_ext <<_ACEOF
44196/* confdefs.h. */
44197_ACEOF
44198cat confdefs.h >>conftest.$ac_ext
44199cat >>conftest.$ac_ext <<_ACEOF
44200/* end confdefs.h. */
44201#include <$ac_header>
44202_ACEOF
44203if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44205 ac_status=$?
44206 grep -v '^ *+' conftest.er1 >conftest.err
44207 rm -f conftest.er1
44208 cat conftest.err >&5
44209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44210 (exit $ac_status); } >/dev/null; then
44211 if test -s conftest.err; then
5d7b7554
VZ
44212 ac_cpp_err=$ac_cxx_preproc_warn_flag
44213 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
44214 else
44215 ac_cpp_err=
44216 fi
44217else
44218 ac_cpp_err=yes
44219fi
44220if test -z "$ac_cpp_err"; then
44221 ac_header_preproc=yes
44222else
44223 echo "$as_me: failed program was:" >&5
44224sed 's/^/| /' conftest.$ac_ext >&5
44225
44226 ac_header_preproc=no
44227fi
44228rm -f conftest.err conftest.$ac_ext
44229echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44230echo "${ECHO_T}$ac_header_preproc" >&6
44231
44232# So? What about this header?
5d7b7554 44233case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 44234 yes:no: )
a848cd7e
SC
44235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44236echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
44237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44238echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44239 ac_header_preproc=yes
a848cd7e 44240 ;;
ac1cb8d3 44241 no:yes:* )
a848cd7e
SC
44242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44243echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
44244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44245echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44246 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44247echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44248 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44249echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
44250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44251echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
44252 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44253echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
44254 (
44255 cat <<\_ASBOX
ac1cb8d3
VS
44256## ----------------------------------------- ##
44257## Report this to wx-dev@lists.wxwidgets.org ##
44258## ----------------------------------------- ##
a848cd7e
SC
44259_ASBOX
44260 ) |
44261 sed "s/^/$as_me: WARNING: /" >&2
44262 ;;
44263esac
44264echo "$as_me:$LINENO: checking for $ac_header" >&5
44265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44266if eval "test \"\${$as_ac_Header+set}\" = set"; then
44267 echo $ECHO_N "(cached) $ECHO_C" >&6
44268else
ac1cb8d3 44269 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
44270fi
44271echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44272echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44273
44274fi
44275if test `eval echo '${'$as_ac_Header'}'` = yes; then
44276 cat >>confdefs.h <<_ACEOF
44277#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44278_ACEOF
44279
44280fi
44281
44282done
44283
44284
44285 if test "$ac_cv_header_ole2_h" = "yes" ; then
44286 if test "$GCC" = yes ; then
a848cd7e
SC
44287 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
44288echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
44289 cat >conftest.$ac_ext <<_ACEOF
44290/* confdefs.h. */
44291_ACEOF
44292cat confdefs.h >>conftest.$ac_ext
44293cat >>conftest.$ac_ext <<_ACEOF
44294/* end confdefs.h. */
44295#include <windows.h>
44296 #include <ole2.h>
44297int
44298main ()
44299{
44300
44301 ;
44302 return 0;
44303}
44304_ACEOF
44305rm -f conftest.$ac_objext
44306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44307 (eval $ac_compile) 2>conftest.er1
a848cd7e 44308 ac_status=$?
ac1cb8d3
VS
44309 grep -v '^ *+' conftest.er1 >conftest.err
44310 rm -f conftest.er1
44311 cat conftest.err >&5
a848cd7e
SC
44312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44313 (exit $ac_status); } &&
c9a66001 44314 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44316 (eval $ac_try) 2>&5
44317 ac_status=$?
44318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44319 (exit $ac_status); }; } &&
44320 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44322 (eval $ac_try) 2>&5
44323 ac_status=$?
44324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44325 (exit $ac_status); }; }; then
44326 echo "$as_me:$LINENO: result: no" >&5
44327echo "${ECHO_T}no" >&6
44328else
44329 echo "$as_me: failed program was:" >&5
44330sed 's/^/| /' conftest.$ac_ext >&5
44331
44332echo "$as_me:$LINENO: result: yes" >&5
44333echo "${ECHO_T}yes" >&6
5ff751d6 44334 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 44335fi
ac1cb8d3 44336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44337 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
44338 if test "$wxUSE_OLE" = "yes" ; then
44339 cat >>confdefs.h <<\_ACEOF
44340#define wxUSE_OLE 1
44341_ACEOF
44342
0b78747f 44343 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
44344 fi
44345 fi
44346
44347 if test "$wxUSE_DATAOBJ" = "yes" ; then
44348 cat >>confdefs.h <<\_ACEOF
44349#define wxUSE_DATAOBJ 1
44350_ACEOF
44351
44352 fi
44353 else
44354 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
44355echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
44356
44357 wxUSE_CLIPBOARD=no
44358 wxUSE_DRAG_AND_DROP=no
44359 wxUSE_DATAOBJ=no
44360 wxUSE_OLE=no
44361 fi
44362
44363 if test "$wxUSE_METAFILE" = "yes"; then
44364 cat >>confdefs.h <<\_ACEOF
44365#define wxUSE_METAFILE 1
44366_ACEOF
44367
44368
44369 cat >>confdefs.h <<\_ACEOF
44370#define wxUSE_ENH_METAFILE 1
44371_ACEOF
44372
44373 fi
44374fi
44375
44376if test "$wxUSE_IPC" = "yes"; then
0b78747f 44377 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
44378 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
44379echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 44380 wxUSE_IPC=no
a848cd7e
SC
44381 fi
44382
0b78747f
MW
44383 if test "$wxUSE_IPC" = "yes"; then
44384 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44385#define wxUSE_IPC 1
44386_ACEOF
44387
0b78747f
MW
44388 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
44389 fi
a848cd7e
SC
44390fi
44391
eb730a0c 44392if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
44393 if test "$wxUSE_MGL" = 1; then
44394 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
44395echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
44396 wxUSE_DATAOBJ=no
44397 else
44398 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
44399#define wxUSE_DATAOBJ 1
44400_ACEOF
44401
2113bc77 44402 fi
eb730a0c
JS
44403else
44404 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
44405echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
44406 wxUSE_CLIPBOARD=no
44407 wxUSE_DRAG_AND_DROP=no
44408fi
44409
a848cd7e
SC
44410if test "$wxUSE_CLIPBOARD" = "yes"; then
44411 if test "$wxUSE_MGL" = 1; then
44412 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
44413echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
44414 wxUSE_CLIPBOARD=no
44415 fi
44416
44417 if test "$wxUSE_CLIPBOARD" = "yes"; then
44418 cat >>confdefs.h <<\_ACEOF
44419#define wxUSE_CLIPBOARD 1
44420_ACEOF
44421
a848cd7e
SC
44422 fi
44423fi
44424
44425if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
44426 if test "$wxUSE_GTK" = 1; then
44427 if test "$WXGTK12" != 1; then
44428 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
44429echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
44430 wxUSE_DRAG_AND_DROP=no
44431 fi
44432 fi
44433
44434 if test "$wxUSE_MOTIF" = 1; then
44435 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
44436echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
44437 wxUSE_DRAG_AND_DROP=no
44438 fi
44439
44440 if test "$wxUSE_X11" = 1; then
44441 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
44442echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
44443 wxUSE_DRAG_AND_DROP=no
44444 fi
44445
44446 if test "$wxUSE_MGL" = 1; then
44447 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
44448echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
44449 wxUSE_DRAG_AND_DROP=no
44450 fi
44451
44452 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
44453 cat >>confdefs.h <<\_ACEOF
44454#define wxUSE_DRAG_AND_DROP 1
44455_ACEOF
44456
44457 fi
44458
44459fi
44460
44461if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
44462 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
44463fi
44464
44465if test "$wxUSE_SPLINES" = "yes" ; then
44466 cat >>confdefs.h <<\_ACEOF
44467#define wxUSE_SPLINES 1
44468_ACEOF
44469
44470fi
44471
fbe2ca43
SN
44472if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
44473 cat >>confdefs.h <<\_ACEOF
44474#define wxUSE_MOUSEWHEEL 1
44475_ACEOF
44476
44477fi
44478
a848cd7e
SC
44479
44480USES_CONTROLS=0
44481if test "$wxUSE_CONTROLS" = "yes"; then
44482 USES_CONTROLS=1
44483fi
44484
44485if test "$wxUSE_ACCEL" = "yes"; then
44486 cat >>confdefs.h <<\_ACEOF
44487#define wxUSE_ACCEL 1
44488_ACEOF
44489
44490 USES_CONTROLS=1
44491fi
44492
44493if test "$wxUSE_BUTTON" = "yes"; then
44494 cat >>confdefs.h <<\_ACEOF
44495#define wxUSE_BUTTON 1
44496_ACEOF
44497
44498 USES_CONTROLS=1
44499fi
44500
44501if test "$wxUSE_BMPBUTTON" = "yes"; then
44502 cat >>confdefs.h <<\_ACEOF
44503#define wxUSE_BMPBUTTON 1
44504_ACEOF
44505
44506 USES_CONTROLS=1
44507fi
44508
44509if test "$wxUSE_CALCTRL" = "yes"; then
44510 cat >>confdefs.h <<\_ACEOF
44511#define wxUSE_CALENDARCTRL 1
44512_ACEOF
44513
44514 USES_CONTROLS=1
44515 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
44516fi
44517
44518if test "$wxUSE_CARET" = "yes"; then
44519 cat >>confdefs.h <<\_ACEOF
44520#define wxUSE_CARET 1
44521_ACEOF
44522
44523 USES_CONTROLS=1
44524 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
44525fi
44526
44527if test "$wxUSE_COMBOBOX" = "yes"; then
44528 cat >>confdefs.h <<\_ACEOF
44529#define wxUSE_COMBOBOX 1
44530_ACEOF
44531
44532 USES_CONTROLS=1
44533fi
44534
a57d600f 44535if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 44536 cat >>confdefs.h <<\_ACEOF
a57d600f 44537#define wxUSE_COMBOCTRL 1
642bcba9
VZ
44538_ACEOF
44539
44540 USES_CONTROLS=1
44541fi
44542
a848cd7e
SC
44543if test "$wxUSE_CHOICE" = "yes"; then
44544 cat >>confdefs.h <<\_ACEOF
44545#define wxUSE_CHOICE 1
44546_ACEOF
44547
44548 USES_CONTROLS=1
44549fi
44550
92bbdbcd
WS
44551if test "$wxUSE_CHOICEBOOK" = "yes"; then
44552 cat >>confdefs.h <<\_ACEOF
44553#define wxUSE_CHOICEBOOK 1
44554_ACEOF
44555
44556 USES_CONTROLS=1
44557fi
44558
a848cd7e
SC
44559if test "$wxUSE_CHECKBOX" = "yes"; then
44560 cat >>confdefs.h <<\_ACEOF
44561#define wxUSE_CHECKBOX 1
44562_ACEOF
44563
44564 USES_CONTROLS=1
44565fi
44566
44567if test "$wxUSE_CHECKLST" = "yes"; then
44568 cat >>confdefs.h <<\_ACEOF
44569#define wxUSE_CHECKLISTBOX 1
44570_ACEOF
44571
44572 USES_CONTROLS=1
44573 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
44574fi
44575
e9263684
VZ
44576if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
44577 cat >>confdefs.h <<\_ACEOF
44578#define wxUSE_COLOURPICKERCTRL 1
44579_ACEOF
44580
44581 USES_CONTROLS=1
44582fi
44583
da98e9be
VZ
44584if test "$wxUSE_DATEPICKCTRL" = "yes"; then
44585 cat >>confdefs.h <<\_ACEOF
44586#define wxUSE_DATEPICKCTRL 1
44587_ACEOF
44588
44589 USES_CONTROLS=1
44590fi
44591
e9263684
VZ
44592if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
44593 cat >>confdefs.h <<\_ACEOF
44594#define wxUSE_DIRPICKERCTRL 1
44595_ACEOF
44596
44597 USES_CONTROLS=1
44598fi
44599
44600if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
44601 cat >>confdefs.h <<\_ACEOF
44602#define wxUSE_FILEPICKERCTRL 1
44603_ACEOF
44604
44605 USES_CONTROLS=1
44606fi
44607
44608if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
44609 cat >>confdefs.h <<\_ACEOF
44610#define wxUSE_FONTPICKERCTRL 1
44611_ACEOF
44612
44613 USES_CONTROLS=1
44614fi
44615
a848cd7e
SC
44616if test "$wxUSE_DISPLAY" = "yes"; then
44617 cat >>confdefs.h <<\_ACEOF
44618#define wxUSE_DISPLAY 1
44619_ACEOF
44620
0b78747f 44621 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
44622fi
44623
44624if test "$wxUSE_GAUGE" = "yes"; then
44625 cat >>confdefs.h <<\_ACEOF
44626#define wxUSE_GAUGE 1
44627_ACEOF
44628
44629 USES_CONTROLS=1
44630fi
44631
44632if test "$wxUSE_GRID" = "yes"; then
44633 cat >>confdefs.h <<\_ACEOF
44634#define wxUSE_GRID 1
44635_ACEOF
44636
44637 USES_CONTROLS=1
44638 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
44639fi
44640
6954625c
VZ
44641if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
44642 cat >>confdefs.h <<\_ACEOF
44643#define wxUSE_HYPERLINKCTRL 1
44644_ACEOF
44645
44646 USES_CONTROLS=1
44647fi
44648
20e34ecc
RR
44649if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
44650 cat >>confdefs.h <<\_ACEOF
44651#define wxUSE_DATAVIEWCTRL 1
44652_ACEOF
44653
44654 USES_CONTROLS=1
44655 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
44656fi
44657
a848cd7e
SC
44658if test "$wxUSE_IMAGLIST" = "yes"; then
44659 cat >>confdefs.h <<\_ACEOF
44660#define wxUSE_IMAGLIST 1
44661_ACEOF
44662
44663fi
44664
44665if test "$wxUSE_LISTBOOK" = "yes"; then
44666 cat >>confdefs.h <<\_ACEOF
44667#define wxUSE_LISTBOOK 1
44668_ACEOF
44669
44670 USES_CONTROLS=1
44671fi
44672
44673if test "$wxUSE_LISTBOX" = "yes"; then
44674 cat >>confdefs.h <<\_ACEOF
44675#define wxUSE_LISTBOX 1
44676_ACEOF
44677
44678 USES_CONTROLS=1
0b78747f 44679 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
44680fi
44681
44682if test "$wxUSE_LISTCTRL" = "yes"; then
44683 if test "$wxUSE_IMAGLIST" = "yes"; then
44684 cat >>confdefs.h <<\_ACEOF
44685#define wxUSE_LISTCTRL 1
44686_ACEOF
44687
44688 USES_CONTROLS=1
44689 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
44690 else
44691 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
44692echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
44693 fi
44694fi
44695
44696if test "$wxUSE_NOTEBOOK" = "yes"; then
44697 cat >>confdefs.h <<\_ACEOF
44698#define wxUSE_NOTEBOOK 1
44699_ACEOF
44700
44701 USES_CONTROLS=1
44702 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
44703fi
44704
a57d600f 44705if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 44706 cat >>confdefs.h <<\_ACEOF
a57d600f 44707#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
44708_ACEOF
44709
44710 USES_CONTROLS=1
44711 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
44712fi
44713
a848cd7e
SC
44714
44715if test "$wxUSE_RADIOBOX" = "yes"; then
44716 cat >>confdefs.h <<\_ACEOF
44717#define wxUSE_RADIOBOX 1
44718_ACEOF
44719
44720 USES_CONTROLS=1
44721fi
44722
44723if test "$wxUSE_RADIOBTN" = "yes"; then
44724 cat >>confdefs.h <<\_ACEOF
44725#define wxUSE_RADIOBTN 1
44726_ACEOF
44727
44728 USES_CONTROLS=1
44729fi
44730
44731if test "$wxUSE_SASH" = "yes"; then
44732 cat >>confdefs.h <<\_ACEOF
44733#define wxUSE_SASH 1
44734_ACEOF
44735
44736 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
44737fi
44738
44739if test "$wxUSE_SCROLLBAR" = "yes"; then
44740 cat >>confdefs.h <<\_ACEOF
44741#define wxUSE_SCROLLBAR 1
44742_ACEOF
44743
44744 USES_CONTROLS=1
44745 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
44746fi
44747
44748if test "$wxUSE_SLIDER" = "yes"; then
44749 cat >>confdefs.h <<\_ACEOF
44750#define wxUSE_SLIDER 1
44751_ACEOF
44752
44753 USES_CONTROLS=1
44754fi
44755
44756if test "$wxUSE_SPINBTN" = "yes"; then
44757 cat >>confdefs.h <<\_ACEOF
44758#define wxUSE_SPINBTN 1
44759_ACEOF
44760
44761 USES_CONTROLS=1
44762fi
44763
44764if test "$wxUSE_SPINCTRL" = "yes"; then
44765 cat >>confdefs.h <<\_ACEOF
44766#define wxUSE_SPINCTRL 1
44767_ACEOF
44768
44769 USES_CONTROLS=1
44770fi
44771
44772if test "$wxUSE_SPLITTER" = "yes"; then
44773 cat >>confdefs.h <<\_ACEOF
44774#define wxUSE_SPLITTER 1
44775_ACEOF
44776
44777 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
44778fi
44779
44780if test "$wxUSE_STATBMP" = "yes"; then
44781 cat >>confdefs.h <<\_ACEOF
44782#define wxUSE_STATBMP 1
44783_ACEOF
44784
44785 USES_CONTROLS=1
44786fi
44787
44788if test "$wxUSE_STATBOX" = "yes"; then
44789 cat >>confdefs.h <<\_ACEOF
44790#define wxUSE_STATBOX 1
44791_ACEOF
44792
44793 USES_CONTROLS=1
44794fi
44795
44796if test "$wxUSE_STATTEXT" = "yes"; then
44797 cat >>confdefs.h <<\_ACEOF
44798#define wxUSE_STATTEXT 1
44799_ACEOF
44800
44801 USES_CONTROLS=1
44802fi
44803
44804if test "$wxUSE_STATLINE" = "yes"; then
44805 cat >>confdefs.h <<\_ACEOF
44806#define wxUSE_STATLINE 1
44807_ACEOF
44808
44809 USES_CONTROLS=1
44810fi
44811
44812if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
44813 cat >>confdefs.h <<\_ACEOF
44814#define wxUSE_NATIVE_STATUSBAR 1
44815_ACEOF
44816
a848cd7e
SC
44817 cat >>confdefs.h <<\_ACEOF
44818#define wxUSE_STATUSBAR 1
44819_ACEOF
44820
44821 USES_CONTROLS=1
44822
44823 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
44824fi
44825
f10e38c4 44826if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
44827 cat >>confdefs.h <<\_ACEOF
44828#define wxUSE_TAB_DIALOG 1
44829_ACEOF
44830
a848cd7e
SC
44831fi
44832
44833if test "$wxUSE_TEXTCTRL" = "yes"; then
44834 cat >>confdefs.h <<\_ACEOF
44835#define wxUSE_TEXTCTRL 1
44836_ACEOF
44837
44838 USES_CONTROLS=1
44839 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
44840fi
44841
44842if test "$wxUSE_TOGGLEBTN" = "yes"; then
44843 if test "$wxUSE_COCOA" = 1 ; then
44844 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
44845echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
44846 wxUSE_TOGGLEBTN=no
44847 fi
a848cd7e
SC
44848
44849 if test "$wxUSE_TOGGLEBTN" = "yes"; then
44850 cat >>confdefs.h <<\_ACEOF
44851#define wxUSE_TOGGLEBTN 1
44852_ACEOF
44853
44854 USES_CONTROLS=1
44855 fi
44856fi
44857
44858if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
44859 cat >>confdefs.h <<\_ACEOF
44860#define wxUSE_TOOLBAR_SIMPLE 1
44861_ACEOF
44862
44863 wxUSE_TOOLBAR="yes"
44864 USES_CONTROLS=1
44865fi
44866
44867if test "$wxUSE_TOOLBAR" = "yes"; then
44868 cat >>confdefs.h <<\_ACEOF
44869#define wxUSE_TOOLBAR 1
44870_ACEOF
44871
44872 USES_CONTROLS=1
44873
44874 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
44875 wxUSE_TOOLBAR_NATIVE="yes"
44876 fi
44877
44878 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
44879 cat >>confdefs.h <<\_ACEOF
44880#define wxUSE_TOOLBAR_NATIVE 1
44881_ACEOF
44882
44883 USES_CONTROLS=1
44884 fi
44885
44886 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
44887fi
44888
44889if test "$wxUSE_TOOLTIPS" = "yes"; then
44890 if test "$wxUSE_MOTIF" = 1; then
44891 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
44892echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
44893 else
44894 if test "$wxUSE_UNIVERSAL" = "yes"; then
44895 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
44896echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
44897 else
44898 cat >>confdefs.h <<\_ACEOF
44899#define wxUSE_TOOLTIPS 1
44900_ACEOF
44901
44902 fi
44903 fi
44904fi
44905
0093c2fc
VZ
44906if test "$wxUSE_TREEBOOK" = "yes"; then
44907 cat >>confdefs.h <<\_ACEOF
44908#define wxUSE_TREEBOOK 1
44909_ACEOF
44910
44911 USES_CONTROLS=1
44912fi
44913
5ec3bc43
JS
44914if test "$wxUSE_TOOLBOOK" = "yes"; then
44915 cat >>confdefs.h <<\_ACEOF
44916#define wxUSE_TOOLBOOK 1
44917_ACEOF
44918
44919 USES_CONTROLS=1
44920fi
44921
a848cd7e
SC
44922if test "$wxUSE_TREECTRL" = "yes"; then
44923 if test "$wxUSE_IMAGLIST" = "yes"; then
44924 cat >>confdefs.h <<\_ACEOF
44925#define wxUSE_TREECTRL 1
44926_ACEOF
44927
44928 USES_CONTROLS=1
44929 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
44930 else
44931 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
44932echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
44933 fi
44934fi
44935
44936if test "$wxUSE_POPUPWIN" = "yes"; then
44937 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44938 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
44939echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
44940 else
44941 if test "$wxUSE_PM" = 1; then
44942 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
44943echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
44944 else
44945 cat >>confdefs.h <<\_ACEOF
44946#define wxUSE_POPUPWIN 1
44947_ACEOF
44948
0b78747f 44949 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
44950
44951 USES_CONTROLS=1
44952 fi
44953 fi
44954fi
44955
0dcd06dd 44956if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
44957 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44958 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
44959echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
44960 else
44961 cat >>confdefs.h <<\_ACEOF
44962#define wxUSE_DIALUP_MANAGER 1
44963_ACEOF
44964
44965 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
44966 fi
44967fi
44968
a848cd7e
SC
44969if test "$wxUSE_TIPWINDOW" = "yes"; then
44970 if test "$wxUSE_PM" = 1; then
44971 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
44972echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
44973 else
44974 cat >>confdefs.h <<\_ACEOF
44975#define wxUSE_TIPWINDOW 1
44976_ACEOF
44977
44978 fi
44979fi
44980
44981if test "$USES_CONTROLS" = 1; then
44982 cat >>confdefs.h <<\_ACEOF
44983#define wxUSE_CONTROLS 1
44984_ACEOF
44985
44986fi
44987
44988
44989if test "$wxUSE_ACCESSIBILITY" = "yes"; then
44990 cat >>confdefs.h <<\_ACEOF
44991#define wxUSE_ACCESSIBILITY 1
44992_ACEOF
44993
44994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
44995fi
44996
38b4a946
VZ
44997if test "$wxUSE_DC_CACHEING" = "yes"; then
44998 cat >>confdefs.h <<\_ACEOF
44999#define wxUSE_DC_CACHEING 1
45000_ACEOF
45001
45002fi
45003
a848cd7e
SC
45004if test "$wxUSE_DRAGIMAGE" = "yes"; then
45005 cat >>confdefs.h <<\_ACEOF
45006#define wxUSE_DRAGIMAGE 1
45007_ACEOF
45008
45009 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
45010fi
45011
45012if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
45013 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45014 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
45015echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
45016 else
45017 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45018#define wxUSE_EXCEPTIONS 1
45019_ACEOF
45020
07bea8f0
VS
45021 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
45022 fi
a848cd7e
SC
45023fi
45024
45025USE_HTML=0
45026if test "$wxUSE_HTML" = "yes"; then
45027 cat >>confdefs.h <<\_ACEOF
45028#define wxUSE_HTML 1
45029_ACEOF
45030
45031 USE_HTML=1
45032 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
45033 if test "$wxUSE_MAC" = 1; then
45034 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
45035 fi
a848cd7e 45036fi
646b6ec1 45037if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 45038 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 45039 old_CPPFLAGS="$CPPFLAGS"
c92ad099 45040 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
45041 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
45042echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
45043if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
45044 echo $ECHO_N "(cached) $ECHO_C" >&6
45045else
45046 cat >conftest.$ac_ext <<_ACEOF
45047/* confdefs.h. */
45048_ACEOF
45049cat confdefs.h >>conftest.$ac_ext
45050cat >>conftest.$ac_ext <<_ACEOF
45051/* end confdefs.h. */
45052#include <Carbon/Carbon.h>
45053
45054#include <WebKit/HIWebView.h>
45055_ACEOF
45056rm -f conftest.$ac_objext
45057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45058 (eval $ac_compile) 2>conftest.er1
45059 ac_status=$?
45060 grep -v '^ *+' conftest.er1 >conftest.err
45061 rm -f conftest.er1
45062 cat conftest.err >&5
45063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45064 (exit $ac_status); } &&
c9a66001 45065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
45066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45067 (eval $ac_try) 2>&5
45068 ac_status=$?
45069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45070 (exit $ac_status); }; } &&
45071 { ac_try='test -s conftest.$ac_objext'
45072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45073 (eval $ac_try) 2>&5
45074 ac_status=$?
45075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45076 (exit $ac_status); }; }; then
45077 ac_cv_header_WebKit_HIWebView_h=yes
45078else
45079 echo "$as_me: failed program was:" >&5
45080sed 's/^/| /' conftest.$ac_ext >&5
45081
45082ac_cv_header_WebKit_HIWebView_h=no
45083fi
45084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45085fi
45086echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
45087echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
45088if test $ac_cv_header_WebKit_HIWebView_h = yes; then
45089
45090 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
45091#define wxUSE_WEBKIT 1
45092_ACEOF
45093
07bea8f0
VS
45094 WEBKIT_LINK="-framework WebKit"
45095
45096else
45097
45098 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
45099echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
45100 wxUSE_WEBKIT=no
45101
646b6ec1
VS
45102fi
45103
07bea8f0
VS
45104
45105 CPPFLAGS="$old_CPPFLAGS"
45106 elif test "$wxUSE_COCOA" = 1; then
45107 cat >>confdefs.h <<\_ACEOF
45108#define wxUSE_WEBKIT 1
45109_ACEOF
45110
45111 else
45112 wxUSE_WEBKIT=no
45113 fi
45114fi
45115
9a8f0513
VS
45116USE_XRC=0
45117if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
45118 if test "$wxUSE_XML" != "yes"; then
45119 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
45120echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
45121 wxUSE_XRC=no
45122 else
45123 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
45124#define wxUSE_XRC 1
45125_ACEOF
45126
d2ebf0b7
VS
45127 USE_XRC=1
45128 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
45129 fi
9a8f0513 45130fi
07bea8f0 45131
3f60522a
JS
45132USE_AUI=0
45133if test "$wxUSE_AUI" = "yes"; then
45134 cat >>confdefs.h <<\_ACEOF
45135#define wxUSE_AUI 1
45136_ACEOF
45137
45138 USE_AUI=1
45139 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
45140fi
45141
a848cd7e
SC
45142if test "$wxUSE_MENUS" = "yes"; then
45143 cat >>confdefs.h <<\_ACEOF
45144#define wxUSE_MENUS 1
45145_ACEOF
45146
45147 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
45148fi
45149
45150if test "$wxUSE_METAFILE" = "yes"; then
45151 cat >>confdefs.h <<\_ACEOF
45152#define wxUSE_METAFILE 1
45153_ACEOF
45154
45155fi
45156
45157if test "$wxUSE_MIMETYPE" = "yes"; then
45158 cat >>confdefs.h <<\_ACEOF
45159#define wxUSE_MIMETYPE 1
45160_ACEOF
45161
45162fi
45163
45164if test "$wxUSE_MINIFRAME" = "yes"; then
45165 cat >>confdefs.h <<\_ACEOF
45166#define wxUSE_MINIFRAME 1
45167_ACEOF
45168
45169 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
45170fi
45171
45172if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
45173 cat >>confdefs.h <<\_ACEOF
45174#define wxUSE_SYSTEM_OPTIONS 1
45175_ACEOF
45176
45177 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 45178 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
45179 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
45180 fi
45181fi
45182
45183
45184if test "$wxUSE_VALIDATORS" = "yes"; then
45185 cat >>confdefs.h <<\_ACEOF
45186#define wxUSE_VALIDATORS 1
45187_ACEOF
45188
45189 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
45190fi
45191
45192if test "$wxUSE_PALETTE" = "yes" ; then
45193 cat >>confdefs.h <<\_ACEOF
45194#define wxUSE_PALETTE 1
45195_ACEOF
45196
45197fi
45198
45199if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
45200 LIBS=" -lunicows $LIBS"
45201fi
45202
91dea314
MW
45203USE_RICHTEXT=0
45204if test "$wxUSE_RICHTEXT" = "yes"; then
45205 cat >>confdefs.h <<\_ACEOF
45206#define wxUSE_RICHTEXT 1
45207_ACEOF
45208
45209 USE_RICHTEXT=1
45210 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
45211fi
45212
a848cd7e
SC
45213
45214if test "$wxUSE_IMAGE" = "yes" ; then
45215 cat >>confdefs.h <<\_ACEOF
45216#define wxUSE_IMAGE 1
45217_ACEOF
45218
45219
45220 if test "$wxUSE_GIF" = "yes" ; then
45221 cat >>confdefs.h <<\_ACEOF
45222#define wxUSE_GIF 1
45223_ACEOF
45224
45225 fi
45226
45227 if test "$wxUSE_PCX" = "yes" ; then
45228 cat >>confdefs.h <<\_ACEOF
45229#define wxUSE_PCX 1
45230_ACEOF
45231
45232 fi
45233
45234 if test "$wxUSE_IFF" = "yes" ; then
45235 cat >>confdefs.h <<\_ACEOF
45236#define wxUSE_IFF 1
45237_ACEOF
45238
45239 fi
45240
45241 if test "$wxUSE_PNM" = "yes" ; then
45242 cat >>confdefs.h <<\_ACEOF
45243#define wxUSE_PNM 1
45244_ACEOF
45245
45246 fi
45247
45248 if test "$wxUSE_XPM" = "yes" ; then
45249 cat >>confdefs.h <<\_ACEOF
45250#define wxUSE_XPM 1
45251_ACEOF
45252
45253 fi
45254
45255 if test "$wxUSE_ICO_CUR" = "yes" ; then
45256 cat >>confdefs.h <<\_ACEOF
45257#define wxUSE_ICO_CUR 1
45258_ACEOF
45259
45260 fi
45261fi
45262
45263
45264if test "$wxUSE_CHOICEDLG" = "yes"; then
45265 cat >>confdefs.h <<\_ACEOF
45266#define wxUSE_CHOICEDLG 1
45267_ACEOF
45268
45269fi
45270
45271if test "$wxUSE_COLOURDLG" = "yes"; then
45272 cat >>confdefs.h <<\_ACEOF
45273#define wxUSE_COLOURDLG 1
45274_ACEOF
45275
45276fi
45277
45278if test "$wxUSE_FILEDLG" = "yes"; then
45279 cat >>confdefs.h <<\_ACEOF
45280#define wxUSE_FILEDLG 1
45281_ACEOF
45282
45283fi
45284
45285if test "$wxUSE_FINDREPLDLG" = "yes"; then
45286 cat >>confdefs.h <<\_ACEOF
45287#define wxUSE_FINDREPLDLG 1
45288_ACEOF
45289
45290fi
45291
45292if test "$wxUSE_FONTDLG" = "yes"; then
45293 cat >>confdefs.h <<\_ACEOF
45294#define wxUSE_FONTDLG 1
45295_ACEOF
45296
45297fi
45298
45299if test "$wxUSE_DIRDLG" = "yes"; then
45300 if test "$wxUSE_TREECTRL" != "yes"; then
45301 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
45302echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
45303 else
45304 cat >>confdefs.h <<\_ACEOF
45305#define wxUSE_DIRDLG 1
45306_ACEOF
45307
45308 fi
45309fi
45310
45311if test "$wxUSE_MSGDLG" = "yes"; then
45312 cat >>confdefs.h <<\_ACEOF
45313#define wxUSE_MSGDLG 1
45314_ACEOF
45315
45316fi
45317
45318if test "$wxUSE_NUMBERDLG" = "yes"; then
45319 cat >>confdefs.h <<\_ACEOF
45320#define wxUSE_NUMBERDLG 1
45321_ACEOF
45322
45323fi
45324
45325if test "$wxUSE_PROGRESSDLG" = "yes"; then
45326 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45327 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
45328echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
45329 else
45330 cat >>confdefs.h <<\_ACEOF
45331#define wxUSE_PROGRESSDLG 1
45332_ACEOF
45333
45334 fi
45335fi
45336
45337if test "$wxUSE_SPLASH" = "yes"; then
45338 cat >>confdefs.h <<\_ACEOF
45339#define wxUSE_SPLASH 1
45340_ACEOF
45341
2057db16 45342 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
45343fi
45344
45345if test "$wxUSE_STARTUP_TIPS" = "yes"; then
45346 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45347 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
45348echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
45349 else
45350 cat >>confdefs.h <<\_ACEOF
45351#define wxUSE_STARTUP_TIPS 1
45352_ACEOF
45353
45354 fi
45355fi
45356
45357if test "$wxUSE_TEXTDLG" = "yes"; then
45358 cat >>confdefs.h <<\_ACEOF
45359#define wxUSE_TEXTDLG 1
45360_ACEOF
45361
45362fi
45363
45364if test "$wxUSE_WIZARDDLG" = "yes"; then
45365 cat >>confdefs.h <<\_ACEOF
45366#define wxUSE_WIZARDDLG 1
45367_ACEOF
45368
45369 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
45370fi
45371
45372
f10e38c4
VZ
45373USE_MEDIA=0
45374
ce756cb0 45375if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
45376 USE_MEDIA=1
45377
ce756cb0 45378 if test "$wxUSE_GTK" = 1; then
c9a66001 45379 wxUSE_GSTREAMER="no"
ce756cb0 45380
f10e38c4
VZ
45381 GST_VERSION_MAJOR=0
45382 GST_VERSION_MINOR=10
2f6c5bb5 45383 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
45384
45385 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 45386
3ecd9f92
MW
45387pkg_failed=no
45388echo "$as_me:$LINENO: checking for GST" >&5
45389echo $ECHO_N "checking for GST... $ECHO_C" >&6
ce756cb0 45390
3ecd9f92
MW
45391if test -n "$PKG_CONFIG"; then
45392 if test -n "$GST_CFLAGS"; then
45393 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
45394 else
45395 if test -n "$PKG_CONFIG" && \
45396 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
45397 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
45398 ac_status=$?
45399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45400 (exit $ac_status); }; then
45401 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 45402else
3ecd9f92
MW
45403 pkg_failed=yes
45404fi
45405 fi
45406else
45407 pkg_failed=untried
dae87f93 45408fi
dae87f93 45409if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
45410 if test -n "$GST_LIBS"; then
45411 pkg_cv_GST_LIBS="$GST_LIBS"
45412 else
45413 if test -n "$PKG_CONFIG" && \
45414 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
45415 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
45416 ac_status=$?
45417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45418 (exit $ac_status); }; then
45419 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 45420else
3ecd9f92
MW
45421 pkg_failed=yes
45422fi
45423 fi
45424else
45425 pkg_failed=untried
dae87f93
RN
45426fi
45427
dae87f93 45428
2f6c5bb5 45429
3ecd9f92 45430if test $pkg_failed = yes; then
ce756cb0 45431
3ecd9f92
MW
45432if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45433 _pkg_short_errors_supported=yes
45434else
45435 _pkg_short_errors_supported=no
45436fi
45437 if test $_pkg_short_errors_supported = yes; then
45438 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
45439 else
45440 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
dae87f93 45441 fi
3ecd9f92
MW
45442 # Put the nasty error message in config.log where it belongs
45443 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
45444
45445
3ecd9f92
MW
45446 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
45447echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
45448 GST_VERSION_MINOR=8
dae87f93 45449
ce756cb0 45450
3ecd9f92 45451elif test $pkg_failed = untried; then
dae87f93 45452
2f6c5bb5
VZ
45453 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
45454echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 45455 GST_VERSION_MINOR=8
dae87f93 45456
2f6c5bb5 45457
3ecd9f92
MW
45458else
45459 GST_CFLAGS=$pkg_cv_GST_CFLAGS
45460 GST_LIBS=$pkg_cv_GST_LIBS
45461 echo "$as_me:$LINENO: result: yes" >&5
45462echo "${ECHO_T}yes" >&6
45463
45464 wxUSE_GSTREAMER="yes"
45465 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
dae87f93 45466
3ecd9f92 45467fi
2f6c5bb5
VZ
45468 else
45469 GST_VERSION_MINOR=8
f10e38c4 45470 fi
dae87f93 45471
2f6c5bb5
VZ
45472 if test $GST_VERSION_MINOR = "8"; then
45473 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 45474
3ecd9f92
MW
45475pkg_failed=no
45476echo "$as_me:$LINENO: checking for GST" >&5
45477echo $ECHO_N "checking for GST... $ECHO_C" >&6
dae87f93 45478
3ecd9f92
MW
45479if test -n "$PKG_CONFIG"; then
45480 if test -n "$GST_CFLAGS"; then
45481 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
45482 else
45483 if test -n "$PKG_CONFIG" && \
45484 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
45485 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
45486 ac_status=$?
45487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45488 (exit $ac_status); }; then
45489 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 45490else
3ecd9f92
MW
45491 pkg_failed=yes
45492fi
45493 fi
45494else
45495 pkg_failed=untried
dae87f93 45496fi
f10e38c4 45497if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
45498 if test -n "$GST_LIBS"; then
45499 pkg_cv_GST_LIBS="$GST_LIBS"
45500 else
45501 if test -n "$PKG_CONFIG" && \
45502 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
45503 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
45504 ac_status=$?
45505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45506 (exit $ac_status); }; then
45507 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 45508else
3ecd9f92
MW
45509 pkg_failed=yes
45510fi
45511 fi
45512else
45513 pkg_failed=untried
dae87f93
RN
45514fi
45515
ce756cb0 45516
2f6c5bb5 45517
3ecd9f92 45518if test $pkg_failed = yes; then
dae87f93 45519
3ecd9f92
MW
45520if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45521 _pkg_short_errors_supported=yes
45522else
45523 _pkg_short_errors_supported=no
45524fi
45525 if test $_pkg_short_errors_supported = yes; then
45526 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
45527 else
45528 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 45529 fi
3ecd9f92
MW
45530 # Put the nasty error message in config.log where it belongs
45531 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
45532
45533
3ecd9f92
MW
45534 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
45535echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 45536
3ecd9f92 45537elif test $pkg_failed = untried; then
ce756cb0 45538
2f6c5bb5
VZ
45539 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
45540echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 45541
3ecd9f92
MW
45542else
45543 GST_CFLAGS=$pkg_cv_GST_CFLAGS
45544 GST_LIBS=$pkg_cv_GST_LIBS
45545 echo "$as_me:$LINENO: result: yes" >&5
45546echo "${ECHO_T}yes" >&6
45547 wxUSE_GSTREAMER="yes"
45548fi
dae87f93 45549 fi
ce756cb0 45550
f10e38c4 45551
dae87f93 45552 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
45553 case "${host}" in
45554 *-*-solaris2* )
45555 if "$GCC" = yes; then
45556 GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
45557 GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
45558 fi
45559 esac
45560
45561 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
45562 LIBS="$GST_LIBS $LIBS"
45563
dae87f93 45564 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
45565#define wxUSE_GSTREAMER 1
45566_ACEOF
45567
2f6c5bb5
VZ
45568 else
45569 USE_MEDIA=0
ce756cb0
RN
45570 fi
45571 fi
2f6c5bb5
VZ
45572
45573 if test $USE_MEDIA = 1; then
45574 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
45575 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
45576#define wxUSE_MEDIACTRL 1
45577_ACEOF
45578
2f6c5bb5 45579 fi
ce756cb0
RN
45580fi
45581
45582
a848cd7e
SC
45583if test "$cross_compiling" = "yes"; then
45584 OSINFO="\"$host\""
45585else
45586 OSINFO=`uname -s -r -m`
45587 OSINFO="\"$OSINFO\""
45588fi
45589
45590cat >>confdefs.h <<_ACEOF
45591#define WXWIN_OS_DESCRIPTION $OSINFO
45592_ACEOF
45593
45594
45595
45596if test "x$prefix" != "xNONE"; then
45597 wxPREFIX=$prefix
45598else
45599 wxPREFIX=$ac_default_prefix
45600fi
45601
45602cat >>confdefs.h <<_ACEOF
45603#define wxINSTALL_PREFIX "$wxPREFIX"
45604_ACEOF
45605
45606
a848cd7e
SC
45607
45608
45609CORE_BASE_LIBS="net base"
45610CORE_GUI_LIBS="adv core"
45611
45612if test "$wxUSE_XML" = "yes" ; then
45613 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
45614fi
45615if test "$wxUSE_ODBC" != "no" ; then
45616 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
45617 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
45618fi
45619if test "$wxUSE_HTML" = "yes" ; then
45620 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
45621fi
61639efb
VZ
45622if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45623 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
45624fi
9a8f0513
VS
45625if test "$wxUSE_XRC" = "yes" ; then
45626 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
45627fi
3f60522a
JS
45628if test "$wxUSE_AUI" = "yes" ; then
45629 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
45630fi
a848cd7e
SC
45631
45632if test "$wxUSE_GUI" != "yes"; then
45633 CORE_GUI_LIBS=""
45634fi
45635
45636
45637
45638
45639
5d7b7554
VZ
45640ac_ext=c
45641ac_cpp='$CPP $CPPFLAGS'
45642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45644ac_compiler_gnu=$ac_cv_c_compiler_gnu
45645
a848cd7e
SC
45646
45647
a848cd7e 45648if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 45649 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
45650 if test "$USE_DARWIN" = 1; then
45651 LDFLAGS="$LDFLAGS -framework QuickTime"
45652 else
45653 LDFLAGS="$LDFLAGS -lQuickTimeLib"
45654 fi
07bea8f0 45655 fi
5dcf30a0 45656 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
45657 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
45658 else
45659 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 45660 fi
a848cd7e
SC
45661fi
45662if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 45663 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
45664 if test "$wxUSE_MEDIACTRL" = "yes"; then
45665 LDFLAGS="$LDFLAGS -framework QuickTime"
45666 fi
a848cd7e 45667fi
19b27e78
MW
45668if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
45669 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
45670fi
a848cd7e 45671
a848cd7e
SC
45672LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
45673
a848cd7e
SC
45674if test "$wxUSE_GUI" = "yes"; then
45675
45676
8bce5cda
MW
45677 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
45678 dynamic erase event exec font image minimal mobile \
45679 mobile/wxedit mobile/styles propsize render \
9e39d889 45680 rotate shaped vscroll widgets"
a848cd7e
SC
45681
45682 if test "$wxUSE_MONOLITHIC" != "yes"; then
45683 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
45684 fi
0b78747f 45685 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
45686 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
45687 if test "$wxUSE_UNIVERSAL" != "yes"; then
45688 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
45689 fi
45690 fi
45691 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
45692 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 45693 fi
a848cd7e
SC
45694else
45695 SAMPLES_SUBDIRS="console"
45696fi
45697
45698
48f625bc 45699if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
45700 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
45701elif test "$GCC" = yes ; then
45702 CWARNINGS="-Wall -Wundef"
45703fi
45704
48f625bc 45705if test "x$INTELCXX" = "xyes" ; then
7f47faf4 45706 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
45707elif test "$GXX" = yes ; then
45708 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 45709fi
a848cd7e 45710
a848cd7e 45711
5ff751d6
VZ
45712WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
45713WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
45714
45715
c92ad099 45716CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 45717 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
45718 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
45719 $CPPFLAGS `
5ff751d6 45720
8aeeb05c 45721C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 45722CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 45723CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
45724
45725WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
45726
a848cd7e 45727
95986553
DE
45728if test "x$MWCC" = "xyes"; then
45729
45730 CC="$CC -cwd source -I-"
45731 CXX="$CXX -cwd source -I-"
45732fi
45733
a848cd7e 45734
0c3c69fc 45735LIBS=`echo $LIBS`
a848cd7e
SC
45736EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
45737EXTRALIBS_XML="$EXPAT_LINK"
45738EXTRALIBS_HTML="$MSPACK_LINK"
45739EXTRALIBS_ODBC="$ODBC_LINK"
45740if test "$wxUSE_GUI" = "yes"; then
2b850ae1 45741 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
45742fi
45743if test "$wxUSE_OPENGL" = "yes"; then
45744 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
45745fi
45746
8aeeb05c 45747LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 45748
5ff751d6 45749WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
45750
45751if test "$wxUSE_REGEX" = "builtin" ; then
74802184 45752 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
45753fi
45754if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 45755 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
45756fi
45757if test "$wxUSE_ODBC" = "builtin" ; then
74802184 45758 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
45759fi
45760if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 45761 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
45762fi
45763if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 45764 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
45765fi
45766if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 45767 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
45768fi
45769if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 45770 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
45771fi
45772
45773for i in $wxconfig_3rdparty ; do
5ff751d6 45774 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
45775done
45776
45777
45778if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
45779 WXUNIV=1
45780else
45781 WXUNIV=0
45782fi
45783
45784
45785
45786
45787
45788
45789
45790
45791
45792if test $wxUSE_MONOLITHIC = "yes" ; then
45793 MONOLITHIC=1
45794else
45795 MONOLITHIC=0
45796fi
45797
45798if test $wxUSE_PLUGINS = "yes" ; then
45799 USE_PLUGINS=1
45800else
45801 USE_PLUGINS=0
45802fi
45803
45804if test $wxUSE_ODBC != "no" ; then
45805 USE_ODBC=1
45806else
45807 USE_ODBC=0
45808fi
45809
16358932
VZ
45810if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45811 USE_QA=1
45812else
45813 USE_QA=0
45814fi
45815
a848cd7e
SC
45816if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45817 OFFICIAL_BUILD=1
45818else
45819 OFFICIAL_BUILD=0
45820fi
45821
45822
45823
45824
45825
45826
45827
45828
45829
45830
45831
45832
45833
45834
45835
45836
45837
45838
45839
ceec2216 45840
d1c38808 45841
3565d135 45842
2b850ae1 45843
a848cd7e
SC
45844
45845
45846TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45847
45848
45849
45850
45851
45852
45853
45854
4d4ff94c
VZ
45855case "$TOOLKIT" in
45856 GTK)
c2e9ada4 45857 TOOLKIT_DESC="GTK+"
4d4ff94c 45858 if test "$WXGTK20" = 1; then
c2e9ada4
VZ
45859 TOOLKIT_DESC="$TOOLKIT_DESC 2"
45860 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
45861 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
45862 fi
45863 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
45864 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
45865 fi
45866 if test "$wxUSE_LIBHILDON" = "yes"; then
45867 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
45868 fi
45869
45870 if test "$TOOLKIT_EXTRA" != ""; then
45871 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
45872 fi
4d4ff94c 45873 fi
9a8f0513 45874 ;;
4d4ff94c 45875
c2e9ada4
VZ
45876 ?*)
45877 TOOLKIT_DESC=$TOOLKIT_LOWERCASE
45878 ;;
45879
4d4ff94c 45880 *)
c2e9ada4 45881 TOOLKIT_DESC="base only"
9a8f0513 45882 ;;
4d4ff94c 45883esac
a848cd7e 45884
fb00f58d
JS
45885if test "$wxUSE_WINE" = "yes"; then
45886 BAKEFILE_FORCE_PLATFORM=win32
45887fi
45888
7afc46ab 45889if test "$wxUSE_MAC" = 1 ; then
95768535
MW
45890 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
45891 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
45892 OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
45893 else
45894 OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
45895 fi
45896 OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
45897 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
45898 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
45899 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
7afc46ab
KO
45900 bk_use_pch=no
45901 fi
45902 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
45903 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
7afc46ab
KO
45904fi
45905
9a8f0513 45906
1e9e8aba
DE
45907
45908
a848cd7e 45909 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
45910 if test "x${host}" = "x" ; then
45911 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
45912echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
45913 { (exit 1); exit 1; }; }
45914 fi
45915
a848cd7e
SC
45916 BAKEFILE_HOST="${host}"
45917 fi
45918
45919 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45920
45921 if test -n "$ac_tool_prefix"; then
45922 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45923set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45924echo "$as_me:$LINENO: checking for $ac_word" >&5
45925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45926if test "${ac_cv_prog_RANLIB+set}" = set; then
45927 echo $ECHO_N "(cached) $ECHO_C" >&6
45928else
45929 if test -n "$RANLIB"; then
45930 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45931else
45932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45933for as_dir in $PATH
45934do
45935 IFS=$as_save_IFS
45936 test -z "$as_dir" && as_dir=.
45937 for ac_exec_ext in '' $ac_executable_extensions; do
45938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45939 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45941 break 2
45942 fi
45943done
45944done
45945
45946fi
45947fi
45948RANLIB=$ac_cv_prog_RANLIB
45949if test -n "$RANLIB"; then
45950 echo "$as_me:$LINENO: result: $RANLIB" >&5
45951echo "${ECHO_T}$RANLIB" >&6
45952else
45953 echo "$as_me:$LINENO: result: no" >&5
45954echo "${ECHO_T}no" >&6
45955fi
45956
45957fi
45958if test -z "$ac_cv_prog_RANLIB"; then
45959 ac_ct_RANLIB=$RANLIB
45960 # Extract the first word of "ranlib", so it can be a program name with args.
45961set dummy ranlib; ac_word=$2
45962echo "$as_me:$LINENO: checking for $ac_word" >&5
45963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45964if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45965 echo $ECHO_N "(cached) $ECHO_C" >&6
45966else
45967 if test -n "$ac_ct_RANLIB"; then
45968 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45969else
45970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45971for as_dir in $PATH
45972do
45973 IFS=$as_save_IFS
45974 test -z "$as_dir" && as_dir=.
45975 for ac_exec_ext in '' $ac_executable_extensions; do
45976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45977 ac_cv_prog_ac_ct_RANLIB="ranlib"
45978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45979 break 2
45980 fi
45981done
45982done
45983
45984 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45985fi
45986fi
45987ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45988if test -n "$ac_ct_RANLIB"; then
45989 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45990echo "${ECHO_T}$ac_ct_RANLIB" >&6
45991else
45992 echo "$as_me:$LINENO: result: no" >&5
45993echo "${ECHO_T}no" >&6
45994fi
45995
45996 RANLIB=$ac_ct_RANLIB
45997else
45998 RANLIB="$ac_cv_prog_RANLIB"
45999fi
46000
46001 # Find a good install program. We prefer a C program (faster),
46002# so one script is as good as another. But avoid the broken or
46003# incompatible versions:
46004# SysV /etc/install, /usr/sbin/install
46005# SunOS /usr/etc/install
46006# IRIX /sbin/install
46007# AIX /bin/install
46008# AmigaOS /C/install, which installs bootblocks on floppy discs
46009# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
46010# AFS /usr/afsws/bin/install, which mishandles nonexistent args
46011# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 46012# OS/2's system install, which has a completely different semantic
a848cd7e
SC
46013# ./install, which can be erroneously created by make from ./install.sh.
46014echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
46015echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
46016if test -z "$INSTALL"; then
46017if test "${ac_cv_path_install+set}" = set; then
46018 echo $ECHO_N "(cached) $ECHO_C" >&6
46019else
46020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46021for as_dir in $PATH
46022do
46023 IFS=$as_save_IFS
46024 test -z "$as_dir" && as_dir=.
46025 # Account for people who put trailing slashes in PATH elements.
46026case $as_dir/ in
46027 ./ | .// | /cC/* | \
46028 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 46029 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
46030 /usr/ucb/* ) ;;
46031 *)
46032 # OSF1 and SCO ODT 3.0 have their own names for install.
46033 # Don't use installbsd from OSF since it installs stuff as root
46034 # by default.
46035 for ac_prog in ginstall scoinst install; do
46036 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
46037 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
46038 if test $ac_prog = install &&
46039 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46040 # AIX install. It has an incompatible calling convention.
46041 :
46042 elif test $ac_prog = install &&
46043 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46044 # program-specific install script used by HP pwplus--don't use.
46045 :
46046 else
46047 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
46048 break 3
46049 fi
46050 fi
a848cd7e
SC
46051 done
46052 done
46053 ;;
46054esac
46055done
46056
46057
46058fi
46059 if test "${ac_cv_path_install+set}" = set; then
46060 INSTALL=$ac_cv_path_install
46061 else
46062 # As a last resort, use the slow shell script. We don't cache a
46063 # path for INSTALL within a source directory, because that will
46064 # break other packages using the cache if that directory is
46065 # removed, or if the path is relative.
46066 INSTALL=$ac_install_sh
46067 fi
46068fi
46069echo "$as_me:$LINENO: result: $INSTALL" >&5
46070echo "${ECHO_T}$INSTALL" >&6
46071
46072# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
46073# It thinks the first close brace ends the variable substitution.
46074test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
46075
46076test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
46077
46078test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
46079
46080 echo "$as_me:$LINENO: checking whether ln -s works" >&5
46081echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
46082LN_S=$as_ln_s
46083if test "$LN_S" = "ln -s"; then
46084 echo "$as_me:$LINENO: result: yes" >&5
46085echo "${ECHO_T}yes" >&6
46086else
46087 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
46088echo "${ECHO_T}no, using $LN_S" >&6
46089fi
46090
46091
46092 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46093echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 46094set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
46095if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46096 echo $ECHO_N "(cached) $ECHO_C" >&6
46097else
46098 cat >conftest.make <<\_ACEOF
46099all:
46100 @echo 'ac_maketemp="$(MAKE)"'
46101_ACEOF
46102# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46103eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46104if test -n "$ac_maketemp"; then
46105 eval ac_cv_prog_make_${ac_make}_set=yes
46106else
46107 eval ac_cv_prog_make_${ac_make}_set=no
46108fi
46109rm -f conftest.make
46110fi
46111if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46112 echo "$as_me:$LINENO: result: yes" >&5
46113echo "${ECHO_T}yes" >&6
46114 SET_MAKE=
46115else
46116 echo "$as_me:$LINENO: result: no" >&5
46117echo "${ECHO_T}no" >&6
46118 SET_MAKE="MAKE=${MAKE-make}"
46119fi
46120
46121
46122
46123 if test -n "$ac_tool_prefix"; then
46124 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
46125set dummy ${ac_tool_prefix}ar; ac_word=$2
46126echo "$as_me:$LINENO: checking for $ac_word" >&5
46127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46128if test "${ac_cv_prog_AR+set}" = set; then
46129 echo $ECHO_N "(cached) $ECHO_C" >&6
46130else
46131 if test -n "$AR"; then
46132 ac_cv_prog_AR="$AR" # Let the user override the test.
46133else
46134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46135for as_dir in $PATH
46136do
46137 IFS=$as_save_IFS
46138 test -z "$as_dir" && as_dir=.
46139 for ac_exec_ext in '' $ac_executable_extensions; do
46140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46141 ac_cv_prog_AR="${ac_tool_prefix}ar"
46142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46143 break 2
46144 fi
46145done
46146done
46147
46148fi
46149fi
46150AR=$ac_cv_prog_AR
46151if test -n "$AR"; then
46152 echo "$as_me:$LINENO: result: $AR" >&5
46153echo "${ECHO_T}$AR" >&6
46154else
46155 echo "$as_me:$LINENO: result: no" >&5
46156echo "${ECHO_T}no" >&6
46157fi
46158
46159fi
46160if test -z "$ac_cv_prog_AR"; then
46161 ac_ct_AR=$AR
46162 # Extract the first word of "ar", so it can be a program name with args.
46163set dummy ar; ac_word=$2
46164echo "$as_me:$LINENO: checking for $ac_word" >&5
46165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46166if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
46167 echo $ECHO_N "(cached) $ECHO_C" >&6
46168else
46169 if test -n "$ac_ct_AR"; then
46170 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
46171else
46172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46173for as_dir in $PATH
46174do
46175 IFS=$as_save_IFS
46176 test -z "$as_dir" && as_dir=.
46177 for ac_exec_ext in '' $ac_executable_extensions; do
46178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46179 ac_cv_prog_ac_ct_AR="ar"
46180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46181 break 2
46182 fi
46183done
46184done
46185
46186 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
46187fi
46188fi
46189ac_ct_AR=$ac_cv_prog_ac_ct_AR
46190if test -n "$ac_ct_AR"; then
46191 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
46192echo "${ECHO_T}$ac_ct_AR" >&6
46193else
46194 echo "$as_me:$LINENO: result: no" >&5
46195echo "${ECHO_T}no" >&6
46196fi
46197
46198 AR=$ac_ct_AR
46199else
46200 AR="$ac_cv_prog_AR"
46201fi
46202
46203 if test -n "$ac_tool_prefix"; then
46204 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
46205set dummy ${ac_tool_prefix}strip; ac_word=$2
46206echo "$as_me:$LINENO: checking for $ac_word" >&5
46207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46208if test "${ac_cv_prog_STRIP+set}" = set; then
46209 echo $ECHO_N "(cached) $ECHO_C" >&6
46210else
46211 if test -n "$STRIP"; then
46212 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
46213else
46214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46215for as_dir in $PATH
46216do
46217 IFS=$as_save_IFS
46218 test -z "$as_dir" && as_dir=.
46219 for ac_exec_ext in '' $ac_executable_extensions; do
46220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46221 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
46222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46223 break 2
46224 fi
46225done
46226done
46227
46228fi
46229fi
46230STRIP=$ac_cv_prog_STRIP
46231if test -n "$STRIP"; then
46232 echo "$as_me:$LINENO: result: $STRIP" >&5
46233echo "${ECHO_T}$STRIP" >&6
46234else
46235 echo "$as_me:$LINENO: result: no" >&5
46236echo "${ECHO_T}no" >&6
46237fi
46238
46239fi
46240if test -z "$ac_cv_prog_STRIP"; then
46241 ac_ct_STRIP=$STRIP
46242 # Extract the first word of "strip", so it can be a program name with args.
46243set dummy strip; ac_word=$2
46244echo "$as_me:$LINENO: checking for $ac_word" >&5
46245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46246if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
46247 echo $ECHO_N "(cached) $ECHO_C" >&6
46248else
46249 if test -n "$ac_ct_STRIP"; then
46250 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
46251else
46252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46253for as_dir in $PATH
46254do
46255 IFS=$as_save_IFS
46256 test -z "$as_dir" && as_dir=.
46257 for ac_exec_ext in '' $ac_executable_extensions; do
46258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46259 ac_cv_prog_ac_ct_STRIP="strip"
46260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46261 break 2
46262 fi
46263done
46264done
46265
46266 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
46267fi
46268fi
46269ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
46270if test -n "$ac_ct_STRIP"; then
46271 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
46272echo "${ECHO_T}$ac_ct_STRIP" >&6
46273else
46274 echo "$as_me:$LINENO: result: no" >&5
46275echo "${ECHO_T}no" >&6
46276fi
46277
46278 STRIP=$ac_ct_STRIP
46279else
46280 STRIP="$ac_cv_prog_STRIP"
46281fi
46282
46283 if test -n "$ac_tool_prefix"; then
46284 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
46285set dummy ${ac_tool_prefix}nm; ac_word=$2
46286echo "$as_me:$LINENO: checking for $ac_word" >&5
46287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46288if test "${ac_cv_prog_NM+set}" = set; then
46289 echo $ECHO_N "(cached) $ECHO_C" >&6
46290else
46291 if test -n "$NM"; then
46292 ac_cv_prog_NM="$NM" # Let the user override the test.
46293else
46294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46295for as_dir in $PATH
46296do
46297 IFS=$as_save_IFS
46298 test -z "$as_dir" && as_dir=.
46299 for ac_exec_ext in '' $ac_executable_extensions; do
46300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46301 ac_cv_prog_NM="${ac_tool_prefix}nm"
46302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46303 break 2
46304 fi
46305done
46306done
46307
46308fi
46309fi
46310NM=$ac_cv_prog_NM
46311if test -n "$NM"; then
46312 echo "$as_me:$LINENO: result: $NM" >&5
46313echo "${ECHO_T}$NM" >&6
46314else
46315 echo "$as_me:$LINENO: result: no" >&5
46316echo "${ECHO_T}no" >&6
46317fi
46318
46319fi
46320if test -z "$ac_cv_prog_NM"; then
46321 ac_ct_NM=$NM
46322 # Extract the first word of "nm", so it can be a program name with args.
46323set dummy nm; ac_word=$2
46324echo "$as_me:$LINENO: checking for $ac_word" >&5
46325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46326if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
46327 echo $ECHO_N "(cached) $ECHO_C" >&6
46328else
46329 if test -n "$ac_ct_NM"; then
46330 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
46331else
46332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46333for as_dir in $PATH
46334do
46335 IFS=$as_save_IFS
46336 test -z "$as_dir" && as_dir=.
46337 for ac_exec_ext in '' $ac_executable_extensions; do
46338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46339 ac_cv_prog_ac_ct_NM="nm"
46340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46341 break 2
46342 fi
46343done
46344done
46345
46346 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
46347fi
46348fi
46349ac_ct_NM=$ac_cv_prog_ac_ct_NM
46350if test -n "$ac_ct_NM"; then
46351 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
46352echo "${ECHO_T}$ac_ct_NM" >&6
46353else
46354 echo "$as_me:$LINENO: result: no" >&5
46355echo "${ECHO_T}no" >&6
46356fi
46357
46358 NM=$ac_ct_NM
46359else
46360 NM="$ac_cv_prog_NM"
46361fi
46362
46363
46364 case ${BAKEFILE_HOST} in
46365 *-hp-hpux* )
1e9e8aba 46366 INSTALL_DIR="mkdir -p"
a848cd7e
SC
46367 ;;
46368 *) INSTALL_DIR="$INSTALL -d"
46369 ;;
46370 esac
46371
46372
46373 LDFLAGS_GUI=
46374 case ${BAKEFILE_HOST} in
46375 *-*-cygwin* | *-*-mingw32* )
46376 LDFLAGS_GUI="-mwindows"
46377 esac
46378
46379
46380 fi
46381
46382 echo "$as_me:$LINENO: checking if make is GNU make" >&5
46383echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
46384if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
46385 echo $ECHO_N "(cached) $ECHO_C" >&6
46386else
46387
46388 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
46389 egrep -s GNU > /dev/null); then
46390 bakefile_cv_prog_makeisgnu="yes"
46391 else
46392 bakefile_cv_prog_makeisgnu="no"
46393 fi
46394
46395fi
46396echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
46397echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
46398
46399 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
46400 IF_GNU_MAKE=""
46401 else
46402 IF_GNU_MAKE="#"
46403 fi
46404
46405
46406
46407 PLATFORM_UNIX=0
46408 PLATFORM_WIN32=0
46409 PLATFORM_MSDOS=0
46410 PLATFORM_MAC=0
1e9e8aba 46411 PLATFORM_MACOS=0
a848cd7e
SC
46412 PLATFORM_MACOSX=0
46413 PLATFORM_OS2=0
1e9e8aba 46414 PLATFORM_BEOS=0
a848cd7e
SC
46415
46416 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
46417 case "${BAKEFILE_HOST}" in
810b94f0 46418 *-*-mingw32* )
a848cd7e
SC
46419 PLATFORM_WIN32=1
46420 ;;
46421 *-pc-msdosdjgpp )
46422 PLATFORM_MSDOS=1
46423 ;;
46424 *-pc-os2_emx | *-pc-os2-emx )
46425 PLATFORM_OS2=1
46426 ;;
47bd5406 46427 *-*-darwin* )
a848cd7e
SC
46428 PLATFORM_MAC=1
46429 PLATFORM_MACOSX=1
46430 ;;
1e9e8aba
DE
46431 *-*-beos* )
46432 PLATFORM_BEOS=1
46433 ;;
46434 powerpc-apple-macos* )
46435 PLATFORM_MAC=1
46436 PLATFORM_MACOS=1
46437 ;;
a848cd7e
SC
46438 * )
46439 PLATFORM_UNIX=1
46440 ;;
46441 esac
46442 else
46443 case "$BAKEFILE_FORCE_PLATFORM" in
46444 win32 )
46445 PLATFORM_WIN32=1
46446 ;;
46447 msdos )
46448 PLATFORM_MSDOS=1
46449 ;;
46450 os2 )
46451 PLATFORM_OS2=1
46452 ;;
46453 darwin )
46454 PLATFORM_MAC=1
46455 PLATFORM_MACOSX=1
46456 ;;
46457 unix )
46458 PLATFORM_UNIX=1
46459 ;;
1e9e8aba
DE
46460 beos )
46461 PLATFORM_BEOS=1
46462 ;;
a848cd7e
SC
46463 * )
46464 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
46465echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
46466 { (exit 1); exit 1; }; }
46467 ;;
46468 esac
46469 fi
46470
46471
46472
46473
46474
46475
46476
46477
46478
1e9e8aba
DE
46479
46480
a848cd7e
SC
46481 # Check whether --enable-omf or --disable-omf was given.
46482if test "${enable_omf+set}" = set; then
46483 enableval="$enable_omf"
46484 bk_os2_use_omf="$enableval"
46485fi;
46486
46487 case "${BAKEFILE_HOST}" in
46488 *-*-darwin* )
47bd5406
VZ
46489 if test "x$GCC" = "xyes"; then
46490 CFLAGS="$CFLAGS -fno-common"
46491 CXXFLAGS="$CXXFLAGS -fno-common"
46492 fi
46493 if test "x$XLCC" = "xyes"; then
46494 CFLAGS="$CFLAGS -qnocommon"
46495 CXXFLAGS="$CXXFLAGS -qnocommon"
46496 fi
a848cd7e
SC
46497 ;;
46498
46499 *-pc-os2_emx | *-pc-os2-emx )
46500 if test "x$bk_os2_use_omf" = "xyes" ; then
46501 AR=emxomfar
46502 RANLIB=:
46503 LDFLAGS="-Zomf $LDFLAGS"
46504 CFLAGS="-Zomf $CFLAGS"
46505 CXXFLAGS="-Zomf $CXXFLAGS"
46506 OS2_LIBEXT="lib"
46507 else
46508 OS2_LIBEXT="a"
46509 fi
46510 ;;
1e9e8aba
DE
46511
46512 i*86-*-beos* )
46513 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
46514 ;;
a848cd7e
SC
46515 esac
46516
46517
46518 SO_SUFFIX="so"
46519 SO_SUFFIX_MODULE="so"
46520 EXEEXT=""
46521 LIBPREFIX="lib"
46522 LIBEXT=".a"
46523 DLLPREFIX="lib"
46524 DLLPREFIX_MODULE=""
46525 DLLIMP_SUFFIX=""
810b94f0 46526 dlldir="$libdir"
a848cd7e
SC
46527
46528 case "${BAKEFILE_HOST}" in
46529 *-hp-hpux* )
46530 SO_SUFFIX="sl"
46531 SO_SUFFIX_MODULE="sl"
46532 ;;
46533 *-*-aix* )
46534 SO_SUFFIX="a"
46535 SO_SUFFIX_MODULE="a"
46536 ;;
810b94f0
MW
46537 *-*-cygwin* )
46538 SO_SUFFIX="dll"
46539 SO_SUFFIX_MODULE="dll"
46540 DLLIMP_SUFFIX="dll.a"
46541 EXEEXT=".exe"
46542 DLLPREFIX="cyg"
46543 dlldir="$bindir"
46544 ;;
46545 *-*-mingw32* )
a848cd7e
SC
46546 SO_SUFFIX="dll"
46547 SO_SUFFIX_MODULE="dll"
46548 DLLIMP_SUFFIX="dll.a"
46549 EXEEXT=".exe"
46550 DLLPREFIX=""
810b94f0 46551 dlldir="$bindir"
a848cd7e
SC
46552 ;;
46553 *-pc-msdosdjgpp )
46554 EXEEXT=".exe"
46555 DLLPREFIX=""
810b94f0 46556 dlldir="$bindir"
a848cd7e
SC
46557 ;;
46558 *-pc-os2_emx | *-pc-os2-emx )
46559 SO_SUFFIX="dll"
46560 SO_SUFFIX_MODULE="dll"
46561 DLLIMP_SUFFIX=$OS2_LIBEXT
46562 EXEEXT=".exe"
46563 DLLPREFIX=""
46564 LIBPREFIX=""
46565 LIBEXT=".$OS2_LIBEXT"
810b94f0 46566 dlldir="$bindir"
a848cd7e 46567 ;;
47bd5406 46568 *-*-darwin* )
a848cd7e
SC
46569 SO_SUFFIX="dylib"
46570 SO_SUFFIX_MODULE="bundle"
46571 ;;
46572 esac
46573
46574 if test "x$DLLIMP_SUFFIX" = "x" ; then
46575 DLLIMP_SUFFIX="$SO_SUFFIX"
46576 fi
46577
46578
46579
46580
46581
46582
46583
46584
46585
46586
46587
810b94f0 46588
1e9e8aba
DE
46589 PIC_FLAG=""
46590 if test "x$GCC" = "xyes"; then
a848cd7e
SC
46591 PIC_FLAG="-fPIC"
46592 fi
46593
1e9e8aba
DE
46594 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
46595 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 46596 WINDOWS_IMPLIB=0
1e9e8aba 46597
a848cd7e
SC
46598 case "${BAKEFILE_HOST}" in
46599 *-hp-hpux* )
1e9e8aba 46600 if test "x$GCC" != "xyes"; then
a848cd7e
SC
46601 LDFLAGS="$LDFLAGS -L/usr/lib"
46602
46603 SHARED_LD_CC="${CC} -b -o"
46604 SHARED_LD_CXX="${CXX} -b -o"
46605 PIC_FLAG="+Z"
46606 fi
46607 ;;
46608
46609 *-*-linux* )
46610 if test "x$GCC" != "xyes"; then
46611 echo "$as_me:$LINENO: checking for Intel compiler" >&5
46612echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
46613if test "${bakefile_cv_prog_icc+set}" = set; then
46614 echo $ECHO_N "(cached) $ECHO_C" >&6
46615else
46616
46617 cat >conftest.$ac_ext <<_ACEOF
46618/* confdefs.h. */
46619_ACEOF
46620cat confdefs.h >>conftest.$ac_ext
46621cat >>conftest.$ac_ext <<_ACEOF
46622/* end confdefs.h. */
46623
46624int
46625main ()
46626{
46627
46628 #ifndef __INTEL_COMPILER
e5efa97e 46629 This is not ICC
a848cd7e
SC
46630 #endif
46631
46632 ;
46633 return 0;
46634}
46635_ACEOF
46636rm -f conftest.$ac_objext
46637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 46638 (eval $ac_compile) 2>conftest.er1
a848cd7e 46639 ac_status=$?
ac1cb8d3
VS
46640 grep -v '^ *+' conftest.er1 >conftest.err
46641 rm -f conftest.er1
46642 cat conftest.err >&5
a848cd7e
SC
46643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46644 (exit $ac_status); } &&
c9a66001 46645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
46646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46647 (eval $ac_try) 2>&5
46648 ac_status=$?
46649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46650 (exit $ac_status); }; } &&
46651 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
46652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46653 (eval $ac_try) 2>&5
46654 ac_status=$?
46655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46656 (exit $ac_status); }; }; then
46657 bakefile_cv_prog_icc=yes
46658else
46659 echo "$as_me: failed program was:" >&5
46660sed 's/^/| /' conftest.$ac_ext >&5
46661
46662bakefile_cv_prog_icc=no
46663
46664fi
ac1cb8d3 46665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
46666
46667fi
46668echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
46669echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
46670 if test "$bakefile_cv_prog_icc" = "yes"; then
46671 PIC_FLAG="-KPIC"
46672 fi
46673 fi
46674 ;;
46675
46676 *-*-solaris2* )
46677 if test "x$GCC" != xyes ; then
46678 SHARED_LD_CC="${CC} -G -o"
46679 SHARED_LD_CXX="${CXX} -G -o"
46680 PIC_FLAG="-KPIC"
46681 fi
46682 ;;
46683
46684 *-*-darwin* )
46685
473276a9
VS
46686D='$'
46687cat <<EOF >shared-ld-sh
a848cd7e
SC
46688#!/bin/sh
46689#-----------------------------------------------------------------------------
46690#-- Name: distrib/mac/shared-ld-sh
46691#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
46692#-- Author: Gilles Depeyrot
46693#-- Copyright: (c) 2002 Gilles Depeyrot
46694#-- Licence: any use permitted
46695#-----------------------------------------------------------------------------
46696
46697verbose=0
46698args=""
46699objects=""
46700linking_flag="-dynamiclib"
810b94f0 46701ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 46702
473276a9
VS
46703while test ${D}# -gt 0; do
46704 case ${D}1 in
a848cd7e
SC
46705
46706 -v)
46707 verbose=1
46708 ;;
46709
46710 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
46711 # collect these options and values
473276a9 46712 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
46713 shift
46714 ;;
46715
810b94f0
MW
46716 -s|-Wl,*)
46717 # collect these load args
46718 ldargs="${D}{ldargs} ${D}1"
2113bc77 46719 ;;
810b94f0
MW
46720
46721 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 46722 # collect these options
473276a9 46723 args="${D}{args} ${D}1"
a848cd7e
SC
46724 ;;
46725
46726 -dynamiclib|-bundle)
473276a9 46727 linking_flag="${D}1"
a848cd7e
SC
46728 ;;
46729
46730 -*)
473276a9 46731 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
46732 exit 1
46733 ;;
46734
46735 *.o | *.a | *.dylib)
46736 # collect object files
473276a9 46737 objects="${D}{objects} ${D}1"
a848cd7e
SC
46738 ;;
46739
46740 *)
473276a9 46741 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
46742 exit 1
46743 ;;
46744
46745 esac
46746 shift
46747done
46748
810b94f0
MW
46749status=0
46750
a848cd7e
SC
46751#
46752# Link one module containing all the others
46753#
473276a9 46754if test ${D}{verbose} = 1; then
810b94f0 46755 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 46756fi
810b94f0 46757c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 46758status=${D}?
a848cd7e
SC
46759
46760#
810b94f0
MW
46761# Link the shared library from the single module created, but only if the
46762# previous command didn't fail:
a848cd7e 46763#
810b94f0
MW
46764if test ${D}{status} = 0; then
46765 if test ${D}{verbose} = 1; then
46766 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
46767 fi
46768 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
46769 status=${D}?
a848cd7e
SC
46770fi
46771
46772#
46773# Remove intermediate module
46774#
473276a9 46775rm -f master.${D}${D}.o
a848cd7e 46776
810b94f0 46777exit ${D}status
a848cd7e 46778EOF
473276a9 46779
583d6b4b
VZ
46780 chmod +x shared-ld-sh
46781
46782 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
46783 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
46784
46785
46786 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
46787echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
46788if test "${bakefile_cv_gcc31+set}" = set; then
46789 echo $ECHO_N "(cached) $ECHO_C" >&6
46790else
46791
46792 cat >conftest.$ac_ext <<_ACEOF
46793/* confdefs.h. */
46794_ACEOF
46795cat confdefs.h >>conftest.$ac_ext
46796cat >>conftest.$ac_ext <<_ACEOF
46797/* end confdefs.h. */
46798
46799int
46800main ()
46801{
46802
46803 #if (__GNUC__ < 3) || \
46804 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 46805 This is old gcc
583d6b4b 46806 #endif
a848cd7e 46807
583d6b4b
VZ
46808 ;
46809 return 0;
46810}
46811_ACEOF
46812rm -f conftest.$ac_objext
46813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46814 (eval $ac_compile) 2>conftest.er1
46815 ac_status=$?
46816 grep -v '^ *+' conftest.er1 >conftest.err
46817 rm -f conftest.er1
46818 cat conftest.err >&5
46819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46820 (exit $ac_status); } &&
c9a66001 46821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
46822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46823 (eval $ac_try) 2>&5
46824 ac_status=$?
46825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46826 (exit $ac_status); }; } &&
46827 { ac_try='test -s conftest.$ac_objext'
46828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46829 (eval $ac_try) 2>&5
46830 ac_status=$?
46831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46832 (exit $ac_status); }; }; then
46833
46834 bakefile_cv_gcc31=yes
46835
46836else
46837 echo "$as_me: failed program was:" >&5
46838sed 's/^/| /' conftest.$ac_ext >&5
46839
46840
46841 bakefile_cv_gcc31=no
46842
46843
46844fi
46845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46846
46847fi
46848echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46849echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46850 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 46851 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 46852 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
46853 else
46854 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 46855 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
46856 fi
46857
47bd5406
VZ
46858 if test "x$GCC" == "xyes"; then
46859 PIC_FLAG="-dynamic -fPIC"
46860 fi
46861 if test "x$XLCC" = "xyes"; then
46862 PIC_FLAG="-dynamic -DPIC"
46863 fi
a848cd7e
SC
46864 ;;
46865
46866 *-*-aix* )
f6b50c59 46867 if test "x$GCC" = "xyes"; then
583d6b4b 46868 PIC_FLAG=""
f6b50c59 46869
583d6b4b
VZ
46870 case "${BAKEFILE_HOST}" in
46871 *-*-aix5* )
46872 LD_EXPFULL="-Wl,-bexpfull"
46873 ;;
46874 esac
f6b50c59 46875
583d6b4b
VZ
46876 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46877 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46878 else
46879 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
46880set dummy makeC++SharedLib; ac_word=$2
46881echo "$as_me:$LINENO: checking for $ac_word" >&5
46882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46883if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46884 echo $ECHO_N "(cached) $ECHO_C" >&6
46885else
46886 if test -n "$AIX_CXX_LD"; then
46887 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46888else
46889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46890for as_dir in $PATH
46891do
46892 IFS=$as_save_IFS
46893 test -z "$as_dir" && as_dir=.
46894 for ac_exec_ext in '' $ac_executable_extensions; do
46895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46896 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46898 break 2
46899 fi
46900done
46901done
46902
46903 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46904fi
46905fi
46906AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46907if test -n "$AIX_CXX_LD"; then
46908 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46909echo "${ECHO_T}$AIX_CXX_LD" >&6
46910else
46911 echo "$as_me:$LINENO: result: no" >&5
46912echo "${ECHO_T}no" >&6
46913fi
46914
f6b50c59 46915 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
46916 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46917 fi
46918 ;;
46919
46920 *-*-beos* )
1e9e8aba
DE
46921 SHARED_LD_CC="${LD} -nostart -o"
46922 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
46923 ;;
46924
46925 *-*-irix* )
46926 if test "x$GCC" != "xyes"; then
46927 PIC_FLAG="-KPIC"
46928 fi
46929 ;;
46930
46931 *-*-cygwin* | *-*-mingw32* )
46932 PIC_FLAG=""
1e9e8aba
DE
46933 SHARED_LD_CC="\$(CC) -shared -o"
46934 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 46935 WINDOWS_IMPLIB=1
a848cd7e
SC
46936 ;;
46937
46938 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
46939 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46940 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 46941 PIC_FLAG=""
473276a9
VS
46942
46943D='$'
46944cat <<EOF >dllar.sh
46945#!/bin/sh
46946#
46947# dllar - a tool to build both a .dll and an .a file
46948# from a set of object (.o) files for EMX/OS2.
46949#
46950# Written by Andrew Zabolotny, bit@freya.etu.ru
46951# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46952#
46953# This script will accept a set of files on the command line.
46954# All the public symbols from the .o files will be exported into
46955# a .DEF file, then linker will be run (through gcc) against them to
46956# build a shared library consisting of all given .o files. All libraries
46957# (.a) will be first decompressed into component .o files then act as
46958# described above. You can optionally give a description (-d "description")
46959# which will be put into .DLL. To see the list of accepted options (as well
46960# as command-line format) simply run this program without options. The .DLL
46961# is built to be imported by name (there is no guarantee that new versions
46962# of the library you build will have same ordinals for same symbols).
46963#
46964# dllar is free software; you can redistribute it and/or modify
46965# it under the terms of the GNU General Public License as published by
46966# the Free Software Foundation; either version 2, or (at your option)
46967# any later version.
46968#
46969# dllar is distributed in the hope that it will be useful,
46970# but WITHOUT ANY WARRANTY; without even the implied warranty of
46971# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46972# GNU General Public License for more details.
46973#
46974# You should have received a copy of the GNU General Public License
46975# along with dllar; see the file COPYING. If not, write to the Free
46976# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46977# 02111-1307, USA.
46978
46979# To successfuly run this program you will need:
46980# - Current drive should have LFN support (HPFS, ext2, network, etc)
46981# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46982# - gcc
46983# (used to build the .dll)
46984# - emxexp
46985# (used to create .def file from .o files)
46986# - emximp
46987# (used to create .a file from .def file)
46988# - GNU text utilites (cat, sort, uniq)
46989# used to process emxexp output
46990# - GNU file utilities (mv, rm)
46991# - GNU sed
46992# - lxlite (optional, see flag below)
46993# (used for general .dll cleanup)
46994#
46995
46996flag_USE_LXLITE=1;
46997
46998#
46999# helper functions
47000# basnam, variant of basename, which does _not_ remove the path, _iff_
47001# second argument (suffix to remove) is given
47002basnam(){
47003 case ${D}# in
47004 1)
1e9e8aba 47005 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
47006 ;;
47007 2)
47008 echo ${D}1 | sed 's/'${D}2'${D}//'
47009 ;;
47010 *)
47011 echo "error in basnam ${D}*"
47012 exit 8
47013 ;;
47014 esac
47015}
47016
47017# Cleanup temporary files and output
47018CleanUp() {
47019 cd ${D}curDir
47020 for i in ${D}inputFiles ; do
47021 case ${D}i in
47022 *!)
47023 rm -rf \`basnam ${D}i !\`
47024 ;;
47025 *)
47026 ;;
47027 esac
47028 done
47029
47030 # Kill result in case of failure as there is just to many stupid make/nmake
47031 # things out there which doesn't do this.
1e9e8aba 47032 if [ ${D}# -eq 0 ]; then
473276a9
VS
47033 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
47034 fi
47035}
47036
47037# Print usage and exit script with rc=1.
47038PrintHelp() {
b1d22ded
DE
47039 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
47040 echo ' [-name-mangler-script script.sh]'
47041 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
47042 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
47043 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 47044 echo ' [*.o] [*.a]'
473276a9
VS
47045 echo '*> "output_file" should have no extension.'
47046 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
47047 echo ' The import library name is derived from this and is set to "name".a,'
47048 echo ' unless overridden by -import'
47049 echo '*> "importlib_name" should have no extension.'
47050 echo ' If it has the .o, or .a extension, it is automatically removed.'
47051 echo ' This name is used as the import library name and may be longer and'
47052 echo ' more descriptive than the DLL name which has to follow the old '
47053 echo ' 8.3 convention of FAT.'
b1d22ded
DE
47054 echo '*> "script.sh may be given to override the output_file name by a'
47055 echo ' different name. It is mainly useful if the regular make process'
47056 echo ' of some package does not take into account OS/2 restriction of'
47057 echo ' DLL name lengths. It takes the importlib name as input and is'
47058 echo ' supposed to procude a shorter name as output. The script should'
47059 echo ' expect to get importlib_name without extension and should produce'
47060 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
47061 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
47062 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
47063 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
47064 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
47065 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
47066 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
47067 echo ' If the last character of a symbol is "*", all symbols beginning'
47068 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 47069 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 47070 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 47071 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 47072 echo ' C runtime DLLs.'
b1d22ded 47073 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
47074 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
47075 echo ' unchanged to GCC at the end of command line.'
47076 echo '*> If you create a DLL from a library and you do not specify -o,'
47077 echo ' the basename for DLL and import library will be set to library name,'
47078 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
47079 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
47080 echo ' library will be renamed into gcc_s.a.'
47081 echo '--------'
47082 echo 'Example:'
47083 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
47084 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
47085 CleanUp
47086 exit 1
47087}
47088
47089# Execute a command.
47090# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
47091# @Uses Whatever CleanUp() uses.
47092doCommand() {
47093 echo "${D}*"
47094 eval ${D}*
47095 rcCmd=${D}?
47096
1e9e8aba 47097 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
47098 echo "command failed, exit code="${D}rcCmd
47099 CleanUp
47100 exit ${D}rcCmd
47101 fi
47102}
47103
47104# main routine
47105# setup globals
47106cmdLine=${D}*
47107outFile=""
47108outimpFile=""
47109inputFiles=""
b1d22ded 47110renameScript=""
473276a9
VS
47111description=""
47112CC=gcc.exe
47113CFLAGS="-s -Zcrtdll"
47114EXTRA_CFLAGS=""
47115EXPORT_BY_ORDINALS=0
47116exclude_symbols=""
47117library_flags=""
47118curDir=\`pwd\`
47119curDirS=curDir
47120case ${D}curDirS in
47121*/)
47122 ;;
47123*)
47124 curDirS=${D}{curDirS}"/"
47125 ;;
47126esac
47127# Parse commandline
47128libsToLink=0
b1d22ded 47129omfLinking=0
1e9e8aba 47130while [ ${D}1 ]; do
473276a9
VS
47131 case ${D}1 in
47132 -ord*)
47133 EXPORT_BY_ORDINALS=1;
47134 ;;
47135 -o*)
47136 shift
47137 outFile=${D}1
47138 ;;
47139 -i*)
47140 shift
47141 outimpFile=${D}1
47142 ;;
b1d22ded
DE
47143 -name-mangler-script)
47144 shift
47145 renameScript=${D}1
47146 ;;
473276a9
VS
47147 -d*)
47148 shift
47149 description=${D}1
47150 ;;
47151 -f*)
47152 shift
47153 CFLAGS=${D}1
47154 ;;
47155 -c*)
47156 shift
47157 CC=${D}1
47158 ;;
47159 -h*)
47160 PrintHelp
47161 ;;
47162 -ex*)
47163 shift
47164 exclude_symbols=${D}{exclude_symbols}${D}1" "
47165 ;;
47166 -libf*)
47167 shift
47168 library_flags=${D}{library_flags}${D}1" "
47169 ;;
47170 -nocrt*)
47171 CFLAGS="-s"
47172 ;;
47173 -nolxl*)
47174 flag_USE_LXLITE=0
47175 ;;
47176 -* | /*)
47177 case ${D}1 in
47178 -L* | -l*)
47179 libsToLink=1
47180 ;;
b1d22ded
DE
47181 -Zomf)
47182 omfLinking=1
47183 ;;
473276a9
VS
47184 *)
47185 ;;
47186 esac
47187 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47188 ;;
b1d22ded
DE
47189 *.dll)
47190 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
47191 if [ ${D}omfLinking -eq 1 ]; then
47192 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
47193 else
47194 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
47195 fi
47196 ;;
473276a9
VS
47197 *)
47198 found=0;
1e9e8aba 47199 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
47200 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47201 else
47202 for file in ${D}1 ; do
1e9e8aba 47203 if [ -f ${D}file ]; then
473276a9
VS
47204 inputFiles="${D}{inputFiles} ${D}file"
47205 found=1
47206 fi
47207 done
1e9e8aba 47208 if [ ${D}found -eq 0 ]; then
473276a9
VS
47209 echo "ERROR: No file(s) found: "${D}1
47210 exit 8
47211 fi
47212 fi
47213 ;;
47214 esac
47215 shift
47216done # iterate cmdline words
47217
47218#
1e9e8aba 47219if [ -z "${D}inputFiles" ]; then
473276a9
VS
47220 echo "dllar: no input files"
47221 PrintHelp
47222fi
47223
47224# Now extract all .o files from .a files
47225newInputFiles=""
47226for file in ${D}inputFiles ; do
47227 case ${D}file in
47228 *.a | *.lib)
47229 case ${D}file in
47230 *.a)
47231 suffix=".a"
47232 AR="ar"
47233 ;;
47234 *.lib)
47235 suffix=".lib"
47236 AR="emxomfar"
47237 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
47238 ;;
47239 *)
47240 ;;
47241 esac
47242 dirname=\`basnam ${D}file ${D}suffix\`"_%"
47243 mkdir ${D}dirname
1e9e8aba 47244 if [ ${D}? -ne 0 ]; then
473276a9
VS
47245 echo "Failed to create subdirectory ./${D}dirname"
47246 CleanUp
47247 exit 8;
47248 fi
47249 # Append '!' to indicate archive
47250 newInputFiles="${D}newInputFiles ${D}{dirname}!"
47251 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
47252 cd ${D}curDir
47253 found=0;
47254 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 47255 if [ -f ${D}subfile ]; then
473276a9 47256 found=1
1e9e8aba 47257 if [ -s ${D}subfile ]; then
473276a9
VS
47258 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
47259 newInputFiles="${D}newInputFiles ${D}subfile"
47260 fi
47261 fi
47262 done
1e9e8aba
DE
47263 if [ ${D}found -eq 0 ]; then
47264 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
47265 fi
47266 ;;
47267 *)
47268 newInputFiles="${D}{newInputFiles} ${D}file"
47269 ;;
47270 esac
47271done
47272inputFiles="${D}newInputFiles"
47273
47274# Output filename(s).
47275do_backup=0;
1e9e8aba 47276if [ -z ${D}outFile ]; then
473276a9
VS
47277 do_backup=1;
47278 set outFile ${D}inputFiles; outFile=${D}2
47279fi
47280
47281# If it is an archive, remove the '!' and the '_%' suffixes
47282case ${D}outFile in
47283*_%!)
47284 outFile=\`basnam ${D}outFile _%!\`
47285 ;;
47286*)
47287 ;;
47288esac
47289case ${D}outFile in
47290*.dll)
47291 outFile=\`basnam ${D}outFile .dll\`
47292 ;;
47293*.DLL)
47294 outFile=\`basnam ${D}outFile .DLL\`
47295 ;;
47296*.o)
47297 outFile=\`basnam ${D}outFile .o\`
47298 ;;
47299*.obj)
47300 outFile=\`basnam ${D}outFile .obj\`
47301 ;;
47302*.a)
47303 outFile=\`basnam ${D}outFile .a\`
47304 ;;
47305*.lib)
47306 outFile=\`basnam ${D}outFile .lib\`
47307 ;;
47308*)
47309 ;;
47310esac
47311case ${D}outimpFile in
47312*.a)
47313 outimpFile=\`basnam ${D}outimpFile .a\`
47314 ;;
47315*.lib)
47316 outimpFile=\`basnam ${D}outimpFile .lib\`
47317 ;;
47318*)
47319 ;;
47320esac
1e9e8aba 47321if [ -z ${D}outimpFile ]; then
473276a9
VS
47322 outimpFile=${D}outFile
47323fi
47324defFile="${D}{outFile}.def"
47325arcFile="${D}{outimpFile}.a"
47326arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
47327
47328#create ${D}dllFile as something matching 8.3 restrictions,
47329if [ -z ${D}renameScript ] ; then
47330 dllFile="${D}outFile"
47331else
47332 dllFile=\`${D}renameScript ${D}outimpFile\`
47333fi
473276a9 47334
1e9e8aba
DE
47335if [ ${D}do_backup -ne 0 ] ; then
47336 if [ -f ${D}arcFile ] ; then
473276a9
VS
47337 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
47338 fi
1e9e8aba 47339 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
47340 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
47341 fi
47342fi
47343
47344# Extract public symbols from all the object files.
47345tmpdefFile=${D}{defFile}_%
47346rm -f ${D}tmpdefFile
47347for file in ${D}inputFiles ; do
47348 case ${D}file in
47349 *!)
47350 ;;
47351 *)
47352 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
47353 ;;
47354 esac
47355done
47356
47357# Create the def file.
47358rm -f ${D}defFile
47359echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
47360dllFile="${D}{dllFile}.dll"
47361if [ ! -z ${D}description ]; then
1e9e8aba 47362 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
47363fi
47364echo "EXPORTS" >> ${D}defFile
47365
47366doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
47367grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
47368
47369# Checks if the export is ok or not.
47370for word in ${D}exclude_symbols; do
47371 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
47372 mv ${D}{tmpdefFile}% ${D}tmpdefFile
47373done
47374
47375
1e9e8aba
DE
47376if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
47377 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
47378 sed '
47379 N
47380 : loop
1e9e8aba 47381 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
47382 t loop
47383 ' > ${D}{tmpdefFile}%
47384 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
47385else
47386 rm -f ${D}{tmpdefFile}%
47387fi
47388cat ${D}tmpdefFile >> ${D}defFile
47389rm -f ${D}tmpdefFile
47390
47391# Do linking, create implib, and apply lxlite.
47392gccCmdl="";
47393for file in ${D}inputFiles ; do
47394 case ${D}file in
47395 *!)
47396 ;;
47397 *)
47398 gccCmdl="${D}gccCmdl ${D}file"
47399 ;;
47400 esac
47401done
47402doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
47403touch "${D}{outFile}.dll"
47404
47405doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 47406if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 47407 add_flags="";
1e9e8aba 47408 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
47409 add_flags="-ynd"
47410 fi
47411 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
47412fi
47413doCommand "emxomf -s -l ${D}arcFile"
47414
47415# Successful exit.
47416CleanUp 1
47417exit 0
47418EOF
47419
47420 chmod +x dllar.sh
a848cd7e
SC
47421 ;;
47422
1e9e8aba 47423 powerpc-apple-macos* | \
0ad5d837 47424 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
47425 *-*-sunos4* | \
47426 *-*-osf* | \
47427 *-*-dgux5* | \
47a7e797
MW
47428 *-*-sysv5* | \
47429 *-pc-msdosdjgpp )
a848cd7e
SC
47430 ;;
47431
47432 *)
3ecd9f92 47433 esac
a848cd7e 47434
2057db16
VS
47435 if test "x$PIC_FLAG" != "x" ; then
47436 PIC_FLAG="$PIC_FLAG -DPIC"
47437 fi
47438
a848cd7e
SC
47439 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
47440 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
47441 fi
47442 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
47443 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
47444 fi
47445
47446
47447
47448
47449
47450
47451
47452
810b94f0 47453
a848cd7e
SC
47454 USE_SOVERSION=0
47455 USE_SOVERLINUX=0
47456 USE_SOVERSOLARIS=0
810b94f0 47457 USE_SOVERCYGWIN=0
a848cd7e
SC
47458 USE_SOSYMLINKS=0
47459 USE_MACVERSION=0
47460 SONAME_FLAG=
47461
47462 case "${BAKEFILE_HOST}" in
0ad5d837 47463 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
47464 SONAME_FLAG="-Wl,-soname,"
47465 USE_SOVERSION=1
47466 USE_SOVERLINUX=1
47467 USE_SOSYMLINKS=1
47468 ;;
47469
a848cd7e
SC
47470 *-*-solaris2* )
47471 SONAME_FLAG="-h "
47472 USE_SOVERSION=1
47473 USE_SOVERSOLARIS=1
47474 USE_SOSYMLINKS=1
47475 ;;
47476
47477 *-*-darwin* )
47478 USE_MACVERSION=1
47479 USE_SOVERSION=1
47480 USE_SOSYMLINKS=1
47481 ;;
810b94f0
MW
47482
47483 *-*-cygwin* )
47484 USE_SOVERSION=1
47485 USE_SOVERCYGWIN=1
47486 ;;
a848cd7e
SC
47487 esac
47488
47489
47490
47491
47492
47493
47494
47495
47496
810b94f0 47497
f10e38c4
VZ
47498 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
47499if test "${enable_dependency_tracking+set}" = set; then
47500 enableval="$enable_dependency_tracking"
47501 bk_use_trackdeps="$enableval"
47502fi;
47503
a848cd7e
SC
47504 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
47505echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 47506
f10e38c4
VZ
47507 if test "x$bk_use_trackdeps" = "xno" ; then
47508 DEPS_TRACKING=0
47509 echo "$as_me:$LINENO: result: disabled" >&5
47510echo "${ECHO_T}disabled" >&6
47511 else
47512 DEPS_TRACKING=1
47513
47514 if test "x$GCC" = "xyes"; then
47515 DEPSMODE=gcc
47516 case "${BAKEFILE_HOST}" in
47517 *-*-darwin* )
47518 DEPSFLAG="-no-cpp-precomp -MMD"
47519 ;;
47520 * )
47521 DEPSFLAG="-MMD"
47522 ;;
47523 esac
47524 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 47525echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
47526 elif test "x$MWCC" = "xyes"; then
47527 DEPSMODE=mwcc
47528 DEPSFLAG="-MM"
47529 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 47530echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
47531 elif test "x$SUNCC" = "xyes"; then
47532 DEPSMODE=unixcc
47533 DEPSFLAG="-xM1"
47534 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 47535echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
47536 elif test "x$SGICC" = "xyes"; then
47537 DEPSMODE=unixcc
47538 DEPSFLAG="-M"
47539 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 47540echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
47541 elif test "x$HPCC" = "xyes"; then
47542 DEPSMODE=unixcc
47543 DEPSFLAG="+make"
47544 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 47545echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
47546 elif test "x$COMPAQCC" = "xyes"; then
47547 DEPSMODE=gcc
47548 DEPSFLAG="-MD"
47549 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 47550echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
47551 else
47552 DEPS_TRACKING=0
47553 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 47554echo "${ECHO_T}none" >&6
f10e38c4 47555 fi
a848cd7e 47556
f10e38c4 47557 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
47558
47559D='$'
47560cat <<EOF >bk-deps
a848cd7e
SC
47561#!/bin/sh
47562
47563# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47564# script. It is used to track C/C++ files dependencies in portable way.
47565#
47566# Permission is given to use this file in any way.
47567
473276a9 47568DEPSMODE=${DEPSMODE}
a848cd7e 47569DEPSDIR=.deps
0ad5d837 47570DEPSFLAG="${DEPSFLAG}"
a848cd7e 47571
473276a9 47572mkdir -p ${D}DEPSDIR
a848cd7e 47573
473276a9 47574if test ${D}DEPSMODE = gcc ; then
0ad5d837 47575 ${D}* ${D}{DEPSFLAG}
473276a9
VS
47576 status=${D}?
47577 if test ${D}{status} != 0 ; then
47578 exit ${D}{status}
a848cd7e
SC
47579 fi
47580 # move created file to the location we want it in:
473276a9
VS
47581 while test ${D}# -gt 0; do
47582 case "${D}1" in
a848cd7e
SC
47583 -o )
47584 shift
473276a9 47585 objfile=${D}1
a848cd7e
SC
47586 ;;
47587 -* )
47588 ;;
47589 * )
473276a9 47590 srcfile=${D}1
a848cd7e
SC
47591 ;;
47592 esac
47593 shift
47594 done
1e9e8aba
DE
47595 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
47596 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
47597 if test -f ${D}depfile ; then
47598 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47599 rm -f ${D}depfile
a848cd7e 47600 else
a1aa0349 47601 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 47602 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
47603 if test ! -f ${D}depfile ; then
47604 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
47605 depfile="${D}objfile.d"
47606 fi
473276a9
VS
47607 if test -f ${D}depfile ; then
47608 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47609 rm -f ${D}depfile
a848cd7e
SC
47610 fi
47611 fi
47612 exit 0
81f90336 47613elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 47614 ${D}* || exit ${D}?
81f90336
MW
47615 # Run mwcc again with -MM and redirect into the dep file we want
47616 # NOTE: We can't use shift here because we need ${D}* to be valid
47617 prevarg=
47618 for arg in ${D}* ; do
47619 if test "${D}prevarg" = "-o"; then
47620 objfile=${D}arg
47621 else
47622 case "${D}arg" in
47623 -* )
47624 ;;
47625 * )
47626 srcfile=${D}arg
47627 ;;
47628 esac
47629 fi
47630 prevarg="${D}arg"
47631 done
0ad5d837 47632 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 47633 exit 0
0ad5d837 47634elif test ${D}DEPSMODE = unixcc; then
f6b50c59 47635 ${D}* || exit ${D}?
a9e5b1f0
MW
47636 # Run compiler again with deps flag and redirect into the dep file.
47637 # It doesn't work if the '-o FILE' option is used, but without it the
47638 # dependency file will contain the wrong name for the object. So it is
47639 # removed from the command line, and the dep file is fixed with sed.
47640 cmd=""
47641 while test ${D}# -gt 0; do
47642 case "${D}1" in
47643 -o )
47644 shift
47645 objfile=${D}1
47646 ;;
47647 * )
47648 eval arg${D}#=\\${D}1
47649 cmd="${D}cmd \\${D}arg${D}#"
47650 ;;
47651 esac
47652 shift
47653 done
0ad5d837 47654 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 47655 exit 0
a848cd7e 47656else
473276a9
VS
47657 ${D}*
47658 exit ${D}?
a848cd7e
SC
47659fi
47660EOF
473276a9 47661
f10e38c4
VZ
47662 chmod +x bk-deps
47663 fi
a848cd7e
SC
47664 fi
47665
47666
47667
47668
a848cd7e
SC
47669 case ${BAKEFILE_HOST} in
47670 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
47671 if test -n "$ac_tool_prefix"; then
47672 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
47673set dummy ${ac_tool_prefix}windres; ac_word=$2
47674echo "$as_me:$LINENO: checking for $ac_word" >&5
47675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47676if test "${ac_cv_prog_WINDRES+set}" = set; then
47677 echo $ECHO_N "(cached) $ECHO_C" >&6
47678else
47679 if test -n "$WINDRES"; then
47680 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
47681else
47682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47683for as_dir in $PATH
47684do
47685 IFS=$as_save_IFS
47686 test -z "$as_dir" && as_dir=.
47687 for ac_exec_ext in '' $ac_executable_extensions; do
47688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47689 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
47690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47691 break 2
47692 fi
47693done
47694done
47695
47696fi
47697fi
47698WINDRES=$ac_cv_prog_WINDRES
47699if test -n "$WINDRES"; then
47700 echo "$as_me:$LINENO: result: $WINDRES" >&5
47701echo "${ECHO_T}$WINDRES" >&6
47702else
47703 echo "$as_me:$LINENO: result: no" >&5
47704echo "${ECHO_T}no" >&6
47705fi
47706
47707fi
47708if test -z "$ac_cv_prog_WINDRES"; then
47709 ac_ct_WINDRES=$WINDRES
47710 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
47711set dummy windres; ac_word=$2
47712echo "$as_me:$LINENO: checking for $ac_word" >&5
47713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47714if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
47715 echo $ECHO_N "(cached) $ECHO_C" >&6
47716else
8ced02f6
DE
47717 if test -n "$ac_ct_WINDRES"; then
47718 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
47719else
47720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47721for as_dir in $PATH
47722do
47723 IFS=$as_save_IFS
47724 test -z "$as_dir" && as_dir=.
47725 for ac_exec_ext in '' $ac_executable_extensions; do
47726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47727 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
47728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47729 break 2
47730 fi
47731done
47732done
47733
a848cd7e
SC
47734fi
47735fi
8ced02f6
DE
47736ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
47737if test -n "$ac_ct_WINDRES"; then
47738 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
47739echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
47740else
47741 echo "$as_me:$LINENO: result: no" >&5
47742echo "${ECHO_T}no" >&6
47743fi
47744
8ced02f6
DE
47745 WINDRES=$ac_ct_WINDRES
47746else
47747 WINDRES="$ac_cv_prog_WINDRES"
47748fi
47749
a848cd7e
SC
47750 ;;
47751
1e9e8aba 47752 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
47753 # Extract the first word of "Rez", so it can be a program name with args.
47754set dummy Rez; ac_word=$2
47755echo "$as_me:$LINENO: checking for $ac_word" >&5
47756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47757if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
47758 echo $ECHO_N "(cached) $ECHO_C" >&6
47759else
8ced02f6
DE
47760 if test -n "$REZ"; then
47761 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
47762else
47763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47764for as_dir in $PATH
47765do
47766 IFS=$as_save_IFS
47767 test -z "$as_dir" && as_dir=.
47768 for ac_exec_ext in '' $ac_executable_extensions; do
47769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47770 ac_cv_prog_REZ="Rez"
a848cd7e
SC
47771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47772 break 2
47773 fi
47774done
47775done
47776
8ced02f6 47777 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
47778fi
47779fi
8ced02f6
DE
47780REZ=$ac_cv_prog_REZ
47781if test -n "$REZ"; then
47782 echo "$as_me:$LINENO: result: $REZ" >&5
47783echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
47784else
47785 echo "$as_me:$LINENO: result: no" >&5
47786echo "${ECHO_T}no" >&6
47787fi
47788
47789 # Extract the first word of "SetFile", so it can be a program name with args.
47790set dummy SetFile; ac_word=$2
47791echo "$as_me:$LINENO: checking for $ac_word" >&5
47792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47793if test "${ac_cv_prog_SETFILE+set}" = set; then
47794 echo $ECHO_N "(cached) $ECHO_C" >&6
47795else
47796 if test -n "$SETFILE"; then
47797 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
47798else
47799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47800for as_dir in $PATH
47801do
47802 IFS=$as_save_IFS
47803 test -z "$as_dir" && as_dir=.
47804 for ac_exec_ext in '' $ac_executable_extensions; do
47805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47806 ac_cv_prog_SETFILE="SetFile"
47807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47808 break 2
47809 fi
47810done
47811done
47812
47813 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
47814fi
47815fi
47816SETFILE=$ac_cv_prog_SETFILE
47817if test -n "$SETFILE"; then
47818 echo "$as_me:$LINENO: result: $SETFILE" >&5
47819echo "${ECHO_T}$SETFILE" >&6
47820else
47821 echo "$as_me:$LINENO: result: no" >&5
47822echo "${ECHO_T}no" >&6
47823fi
47824
47825 ;;
47826 esac
47827
47828
47829
47830
47831
8ced02f6 47832
f10e38c4 47833 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 47834
dcc1b6ad 47835
f10e38c4 47836BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 47837
646b6ec1 47838
74b84332 47839
a848cd7e
SC
47840 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47841if test "${enable_precomp_headers+set}" = set; then
47842 enableval="$enable_precomp_headers"
47843 bk_use_pch="$enableval"
47844fi;
47845
47846 GCC_PCH=0
f10e38c4
VZ
47847 ICC_PCH=0
47848 USE_PCH=0
a848cd7e 47849
5c60e845
MW
47850 case ${BAKEFILE_HOST} in
47851 *-*-cygwin* )
47852 bk_use_pch="no"
47853 ;;
47854 esac
47855
a848cd7e
SC
47856 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47857 if test "x$GCC" = "xyes"; then
47858 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47859echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47860 cat >conftest.$ac_ext <<_ACEOF
47861/* confdefs.h. */
47862_ACEOF
47863cat confdefs.h >>conftest.$ac_ext
47864cat >>conftest.$ac_ext <<_ACEOF
47865/* end confdefs.h. */
47866
47867int
47868main ()
47869{
47870
47871 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 47872 There is no PCH support
a848cd7e
SC
47873 #endif
47874 #if (__GNUC__ < 3)
e5efa97e 47875 There is no PCH support
a848cd7e
SC
47876 #endif
47877 #if (__GNUC__ == 3) && \
47878 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
47879 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
47880 ( defined(__INTEL_COMPILER) )
e5efa97e 47881 There is no PCH support
a848cd7e
SC
47882 #endif
47883
47884 ;
47885 return 0;
47886}
47887_ACEOF
47888rm -f conftest.$ac_objext
47889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47890 (eval $ac_compile) 2>conftest.er1
a848cd7e 47891 ac_status=$?
ac1cb8d3
VS
47892 grep -v '^ *+' conftest.er1 >conftest.err
47893 rm -f conftest.er1
47894 cat conftest.err >&5
a848cd7e
SC
47895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47896 (exit $ac_status); } &&
c9a66001 47897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
47898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47899 (eval $ac_try) 2>&5
47900 ac_status=$?
47901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47902 (exit $ac_status); }; } &&
47903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47905 (eval $ac_try) 2>&5
47906 ac_status=$?
47907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47908 (exit $ac_status); }; }; then
47909
47910 echo "$as_me:$LINENO: result: yes" >&5
47911echo "${ECHO_T}yes" >&6
a848cd7e
SC
47912 GCC_PCH=1
47913
47914else
47915 echo "$as_me: failed program was:" >&5
47916sed 's/^/| /' conftest.$ac_ext >&5
47917
47918
f10e38c4
VZ
47919 cat >conftest.$ac_ext <<_ACEOF
47920/* confdefs.h. */
47921_ACEOF
47922cat confdefs.h >>conftest.$ac_ext
47923cat >>conftest.$ac_ext <<_ACEOF
47924/* end confdefs.h. */
47925
47926int
47927main ()
47928{
47929
47930 #if !defined(__INTEL_COMPILER) || \
47931 (__INTEL_COMPILER < 800)
e5efa97e 47932 There is no PCH support
f10e38c4
VZ
47933 #endif
47934
47935 ;
47936 return 0;
47937}
47938_ACEOF
47939rm -f conftest.$ac_objext
47940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47941 (eval $ac_compile) 2>conftest.er1
47942 ac_status=$?
47943 grep -v '^ *+' conftest.er1 >conftest.err
47944 rm -f conftest.er1
47945 cat conftest.err >&5
47946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47947 (exit $ac_status); } &&
c9a66001 47948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
47949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47950 (eval $ac_try) 2>&5
47951 ac_status=$?
47952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47953 (exit $ac_status); }; } &&
47954 { ac_try='test -s conftest.$ac_objext'
47955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47956 (eval $ac_try) 2>&5
47957 ac_status=$?
47958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47959 (exit $ac_status); }; }; then
47960
47961 echo "$as_me:$LINENO: result: yes" >&5
47962echo "${ECHO_T}yes" >&6
47963 ICC_PCH=1
47964
47965else
47966 echo "$as_me: failed program was:" >&5
47967sed 's/^/| /' conftest.$ac_ext >&5
47968
47969
47970 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
47971echo "${ECHO_T}no" >&6
47972
47973fi
ac1cb8d3 47974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
47975
47976fi
47977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47978 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
47979 USE_PCH=1
1e9e8aba
DE
47980
47981D='$'
47982cat <<EOF >bk-make-pch
a848cd7e
SC
47983#!/bin/sh
47984
47985# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47986# script. It is used to generated precompiled headers.
47987#
47988# Permission is given to use this file in any way.
47989
1e9e8aba
DE
47990outfile="${D}{1}"
47991header="${D}{2}"
a848cd7e
SC
47992shift
47993shift
47994
f10e38c4
VZ
47995compiler=""
47996headerfile=""
47997
1e9e8aba 47998while test ${D}{#} -gt 0; do
f10e38c4 47999 add_to_cmdline=1
1e9e8aba 48000 case "${D}{1}" in
a848cd7e 48001 -I* )
1e9e8aba
DE
48002 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
48003 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
48004 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
48005 fi
48006 ;;
f10e38c4
VZ
48007 -use-pch|-use_pch )
48008 shift
48009 add_to_cmdline=0
48010 ;;
a848cd7e 48011 esac
f10e38c4
VZ
48012 if test ${D}add_to_cmdline = 1 ; then
48013 compiler="${D}{compiler} ${D}{1}"
48014 fi
a848cd7e
SC
48015 shift
48016done
48017
1e9e8aba 48018if test "x${D}{headerfile}" = "x" ; then
f10e38c4 48019 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 48020else
1e9e8aba
DE
48021 if test -f ${D}{outfile} ; then
48022 rm -f ${D}{outfile}
a848cd7e 48023 else
1e9e8aba 48024 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 48025 fi
1e9e8aba 48026 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 48027 mkdir -p .deps
f10e38c4
VZ
48028 if test "x${GCC_PCH}" = "x1" ; then
48029 # can do this because gcc is >= 3.4:
48030 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
48031 elif test "x${ICC_PCH}" = "x1" ; then
48032 filename=pch_gen-${D}${D}
48033 file=${D}{filename}.c
48034 dfile=${D}{filename}.d
48035 cat > ${D}file <<EOT
48036#include "${D}header"
48037EOT
48038 # using -MF icc complains about differing command lines in creation/use
48039 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
48040 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
48041 rm -f ${D}file ${D}dfile ${D}{filename}.o
48042 fi
1e9e8aba 48043 exit ${D}{?}
a848cd7e
SC
48044fi
48045EOF
1e9e8aba 48046
a848cd7e
SC
48047 chmod +x bk-make-pch
48048 fi
48049 fi
48050 fi
48051
48052
48053
f10e38c4 48054
a848cd7e
SC
48055 COND_BUILD_DEBUG="#"
48056 if test "x$BUILD" = "xdebug" ; then
48057 COND_BUILD_DEBUG=""
48058 fi
48059
48060 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
48061 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
48062 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
48063 fi
48064
48065 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
48066 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
48067 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
48068 fi
48069
48070 COND_BUILD_DEBUG_UNICODE_0="#"
48071 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
48072 COND_BUILD_DEBUG_UNICODE_0=""
48073 fi
48074
48075 COND_BUILD_DEBUG_UNICODE_1="#"
48076 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
48077 COND_BUILD_DEBUG_UNICODE_1=""
48078 fi
48079
48080 COND_BUILD_RELEASE="#"
48081 if test "x$BUILD" = "xrelease" ; then
48082 COND_BUILD_RELEASE=""
48083 fi
48084
48085 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
48086 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
48087 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
48088 fi
48089
48090 COND_BUILD_RELEASE_UNICODE_0="#"
48091 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
48092 COND_BUILD_RELEASE_UNICODE_0=""
48093 fi
48094
48095 COND_BUILD_RELEASE_UNICODE_1="#"
48096 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
48097 COND_BUILD_RELEASE_UNICODE_1=""
48098 fi
48099
48100 COND_DEBUG_FLAG_1="#"
48101 if test "x$DEBUG_FLAG" = "x1" ; then
48102 COND_DEBUG_FLAG_1=""
48103 fi
48104
48105 COND_DEBUG_INFO_0="#"
48106 if test "x$DEBUG_INFO" = "x0" ; then
48107 COND_DEBUG_INFO_0=""
48108 fi
48109
48110 COND_DEBUG_INFO_1="#"
48111 if test "x$DEBUG_INFO" = "x1" ; then
48112 COND_DEBUG_INFO_1=""
48113 fi
48114
48115 COND_DEPS_TRACKING_0="#"
48116 if test "x$DEPS_TRACKING" = "x0" ; then
48117 COND_DEPS_TRACKING_0=""
48118 fi
48119
48120 COND_DEPS_TRACKING_1="#"
48121 if test "x$DEPS_TRACKING" = "x1" ; then
48122 COND_DEPS_TRACKING_1=""
48123 fi
48124
48125 COND_GCC_PCH_1="#"
48126 if test "x$GCC_PCH" = "x1" ; then
48127 COND_GCC_PCH_1=""
48128 fi
48129
f10e38c4
VZ
48130 COND_ICC_PCH_1="#"
48131 if test "x$ICC_PCH" = "x1" ; then
48132 COND_ICC_PCH_1=""
48133 fi
48134
a848cd7e
SC
48135 COND_MONOLITHIC_0="#"
48136 if test "x$MONOLITHIC" = "x0" ; then
48137 COND_MONOLITHIC_0=""
48138 fi
48139
48140 COND_MONOLITHIC_0_SHARED_0="#"
48141 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
48142 COND_MONOLITHIC_0_SHARED_0=""
48143 fi
48144
3f60522a
JS
48145 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
48146 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
48147 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
48148 fi
48149
a848cd7e
SC
48150 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
48151 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
48152 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
48153 fi
48154
90970d69
DE
48155 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
48156 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48157 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
48158 fi
48159
f10e38c4
VZ
48160 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
48161 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48162 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
48163 fi
48164
a848cd7e
SC
48165 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
48166 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48167 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
48168 fi
48169
6671c68b
VZ
48170 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
48171 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48172 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
48173 fi
48174
a848cd7e
SC
48175 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
48176 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
48177 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
48178 fi
48179
8b6682b9
JS
48180 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
48181 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
48182 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
48183 fi
48184
ceec2216
RL
48185 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
48186 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48187 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
48188 fi
48189
a848cd7e
SC
48190 COND_MONOLITHIC_0_SHARED_1="#"
48191 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
48192 COND_MONOLITHIC_0_SHARED_1=""
48193 fi
48194
3f60522a
JS
48195 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
48196 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
48197 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
48198 fi
48199
a848cd7e
SC
48200 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
48201 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
48202 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
48203 fi
48204
90970d69
DE
48205 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
48206 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48207 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
48208 fi
48209
f10e38c4
VZ
48210 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
48211 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48212 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
48213 fi
48214
a848cd7e
SC
48215 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
48216 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48217 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
48218 fi
48219
6671c68b
VZ
48220 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
48221 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48222 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
48223 fi
48224
a848cd7e
SC
48225 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
48226 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
48227 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
48228 fi
48229
8b6682b9
JS
48230 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
48231 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
48232 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
48233 fi
48234
ceec2216
RL
48235 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
48236 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48237 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
48238 fi
48239
e5efa97e
VZ
48240 COND_MONOLITHIC_0_USE_MEDIA_1="#"
48241 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
48242 COND_MONOLITHIC_0_USE_MEDIA_1=""
48243 fi
48244
a848cd7e
SC
48245 COND_MONOLITHIC_0_USE_ODBC_1="#"
48246 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
48247 COND_MONOLITHIC_0_USE_ODBC_1=""
48248 fi
48249
48250 COND_MONOLITHIC_1="#"
48251 if test "x$MONOLITHIC" = "x1" ; then
48252 COND_MONOLITHIC_1=""
48253 fi
48254
48255 COND_MONOLITHIC_1_SHARED_0="#"
48256 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
48257 COND_MONOLITHIC_1_SHARED_0=""
48258 fi
48259
48260 COND_MONOLITHIC_1_SHARED_1="#"
48261 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
48262 COND_MONOLITHIC_1_SHARED_1=""
48263 fi
48264
48265 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
48266 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
48267 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
48268 fi
48269
48270 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
48271 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
48272 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
48273 fi
48274
eb730a0c
JS
48275 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
48276 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48277 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
48278 fi
48279
a848cd7e
SC
48280 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
48281 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48282 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
48283 fi
48284
48285 COND_PLATFORM_MACOSX_1="#"
48286 if test "x$PLATFORM_MACOSX" = "x1" ; then
48287 COND_PLATFORM_MACOSX_1=""
48288 fi
48289
a30f955f
VS
48290 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
48291 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
48292 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
48293 fi
48294
a848cd7e
SC
48295 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
48296 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
48297 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
48298 fi
48299
48300 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
48301 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
48302 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
48303 fi
48304
48305 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
48306 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
48307 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
48308 fi
48309
fc480dc1
DE
48310 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
48311 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48312 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
48313 fi
48314
1e9e8aba
DE
48315 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48316 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48317 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48318 fi
48319
ebee3cd0
VS
48320 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
48321 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
48322 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
48323 fi
48324
48325 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
48326 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
48327 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
48328 fi
48329
a848cd7e
SC
48330 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
48331 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
48332 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
48333 fi
48334
48335 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
48336 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48337 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
48338 fi
48339
b48a2016
DE
48340 COND_PLATFORM_MACOS_1="#"
48341 if test "x$PLATFORM_MACOS" = "x1" ; then
48342 COND_PLATFORM_MACOS_1=""
48343 fi
48344
083508af
MW
48345 COND_PLATFORM_MAC_1="#"
48346 if test "x$PLATFORM_MAC" = "x1" ; then
48347 COND_PLATFORM_MAC_1=""
48348 fi
48349
e5efa97e
VZ
48350 COND_PLATFORM_MSDOS_0="#"
48351 if test "x$PLATFORM_MSDOS" = "x0" ; then
48352 COND_PLATFORM_MSDOS_0=""
48353 fi
48354
83d8eb47
MW
48355 COND_PLATFORM_MSDOS_1="#"
48356 if test "x$PLATFORM_MSDOS" = "x1" ; then
48357 COND_PLATFORM_MSDOS_1=""
48358 fi
48359
a848cd7e
SC
48360 COND_PLATFORM_OS2_1="#"
48361 if test "x$PLATFORM_OS2" = "x1" ; then
48362 COND_PLATFORM_OS2_1=""
48363 fi
48364
48365 COND_PLATFORM_UNIX_0="#"
48366 if test "x$PLATFORM_UNIX" = "x0" ; then
48367 COND_PLATFORM_UNIX_0=""
48368 fi
48369
48370 COND_PLATFORM_UNIX_1="#"
48371 if test "x$PLATFORM_UNIX" = "x1" ; then
48372 COND_PLATFORM_UNIX_1=""
48373 fi
48374
48375 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
48376 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
48377 COND_PLATFORM_UNIX_1_USE_GUI_1=""
48378 fi
48379
48380 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
48381 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
48382 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
48383 fi
48384
48385 COND_PLATFORM_WIN32_0="#"
48386 if test "x$PLATFORM_WIN32" = "x0" ; then
48387 COND_PLATFORM_WIN32_0=""
48388 fi
48389
48390 COND_PLATFORM_WIN32_1="#"
48391 if test "x$PLATFORM_WIN32" = "x1" ; then
48392 COND_PLATFORM_WIN32_1=""
48393 fi
48394
48395 COND_SHARED_0="#"
48396 if test "x$SHARED" = "x0" ; then
48397 COND_SHARED_0=""
48398 fi
48399
083508af
MW
48400 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
48401 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
48402 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
48403 fi
48404
48405 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
48406 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48407 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
48408 fi
48409
48410 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
48411 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
48412 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
48413 fi
48414
a848cd7e
SC
48415 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
48416 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48417 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
48418 fi
48419
48420 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48421 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48422 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48423 fi
48424
48425 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48426 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48427 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48428 fi
48429
48430 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48431 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48432 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48433 fi
48434
083508af
MW
48435 COND_SHARED_0_USE_XRC_1="#"
48436 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48437 COND_SHARED_0_USE_XRC_1=""
48438 fi
48439
a848cd7e
SC
48440 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
48441 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
48442 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
48443 fi
48444
48445 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
48446 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
48447 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
48448 fi
48449
48450 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
48451 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
48452 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
48453 fi
48454
48455 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
48456 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
48457 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
48458 fi
48459
48460 COND_SHARED_1="#"
48461 if test "x$SHARED" = "x1" ; then
48462 COND_SHARED_1=""
48463 fi
48464
48465 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
48466 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48467 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
48468 fi
48469
083508af
MW
48470 COND_SHARED_1_USE_XRC_1="#"
48471 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48472 COND_SHARED_1_USE_XRC_1=""
48473 fi
48474
a30f955f
VS
48475 COND_TOOLKIT_="#"
48476 if test "x$TOOLKIT" = "x" ; then
48477 COND_TOOLKIT_=""
48478 fi
48479
a848cd7e
SC
48480 COND_TOOLKIT_COCOA="#"
48481 if test "x$TOOLKIT" = "xCOCOA" ; then
48482 COND_TOOLKIT_COCOA=""
48483 fi
48484
a49baeab
DE
48485 COND_TOOLKIT_COCOA_USE_GUI_1="#"
48486 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
48487 COND_TOOLKIT_COCOA_USE_GUI_1=""
48488 fi
48489
a848cd7e
SC
48490 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
48491 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48492 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
48493 fi
48494
48495 COND_TOOLKIT_GTK="#"
48496 if test "x$TOOLKIT" = "xGTK" ; then
48497 COND_TOOLKIT_GTK=""
48498 fi
48499
d044deea
MW
48500 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
48501 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
48502 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
48503 fi
48504
48505 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
48506 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
48507 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
48508 fi
48509
48510 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
48511 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
48512 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
48513 fi
48514
48515 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
48516 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48517 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
48518 fi
48519
48520 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
48521 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
48522 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
48523 fi
48524
48525 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
48526 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48527 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
48528 fi
48529
a848cd7e
SC
48530 COND_TOOLKIT_GTK_USE_GUI_1="#"
48531 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
48532 COND_TOOLKIT_GTK_USE_GUI_1=""
48533 fi
48534
a848cd7e
SC
48535 COND_TOOLKIT_MAC="#"
48536 if test "x$TOOLKIT" = "xMAC" ; then
48537 COND_TOOLKIT_MAC=""
48538 fi
48539
48540 COND_TOOLKIT_MAC_USE_GUI_1="#"
48541 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48542 COND_TOOLKIT_MAC_USE_GUI_1=""
48543 fi
48544
48545 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48546 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48547 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48548 fi
48549
48550 COND_TOOLKIT_MGL="#"
48551 if test "x$TOOLKIT" = "xMGL" ; then
48552 COND_TOOLKIT_MGL=""
48553 fi
48554
48555 COND_TOOLKIT_MGL_USE_GUI_1="#"
48556 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
48557 COND_TOOLKIT_MGL_USE_GUI_1=""
48558 fi
48559
48560 COND_TOOLKIT_MOTIF="#"
48561 if test "x$TOOLKIT" = "xMOTIF" ; then
48562 COND_TOOLKIT_MOTIF=""
48563 fi
48564
48565 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
48566 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
48567 COND_TOOLKIT_MOTIF_USE_GUI_1=""
48568 fi
48569
48570 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
48571 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48572 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
48573 fi
48574
48575 COND_TOOLKIT_MSW="#"
48576 if test "x$TOOLKIT" = "xMSW" ; then
48577 COND_TOOLKIT_MSW=""
48578 fi
48579
48580 COND_TOOLKIT_MSW_USE_GUI_1="#"
48581 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
48582 COND_TOOLKIT_MSW_USE_GUI_1=""
48583 fi
48584
48585 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
48586 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48587 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
48588 fi
48589
0ee4059d
DE
48590 COND_TOOLKIT_MSW_WXUNIV_0="#"
48591 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48592 COND_TOOLKIT_MSW_WXUNIV_0=""
48593 fi
48594
a848cd7e
SC
48595 COND_TOOLKIT_PM="#"
48596 if test "x$TOOLKIT" = "xPM" ; then
48597 COND_TOOLKIT_PM=""
48598 fi
48599
48600 COND_TOOLKIT_PM_USE_GUI_1="#"
48601 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
48602 COND_TOOLKIT_PM_USE_GUI_1=""
48603 fi
48604
48605 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
48606 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48607 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
48608 fi
48609
3fd9c298
DE
48610 COND_TOOLKIT_WINCE="#"
48611 if test "x$TOOLKIT" = "xWINCE" ; then
48612 COND_TOOLKIT_WINCE=""
48613 fi
48614
48615 COND_TOOLKIT_WINCE_USE_GUI_1="#"
48616 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
48617 COND_TOOLKIT_WINCE_USE_GUI_1=""
48618 fi
48619
48620 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
48621 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48622 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
48623 fi
48624
0ee4059d
DE
48625 COND_TOOLKIT_WINCE_WXUNIV_0="#"
48626 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
48627 COND_TOOLKIT_WINCE_WXUNIV_0=""
48628 fi
48629
a848cd7e
SC
48630 COND_TOOLKIT_X11="#"
48631 if test "x$TOOLKIT" = "xX11" ; then
48632 COND_TOOLKIT_X11=""
48633 fi
48634
48635 COND_TOOLKIT_X11_USE_GUI_1="#"
48636 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
48637 COND_TOOLKIT_X11_USE_GUI_1=""
48638 fi
48639
48640 COND_UNICODE_1="#"
48641 if test "x$UNICODE" = "x1" ; then
48642 COND_UNICODE_1=""
48643 fi
48644
48645 COND_USE_EXCEPTIONS_0="#"
48646 if test "x$USE_EXCEPTIONS" = "x0" ; then
48647 COND_USE_EXCEPTIONS_0=""
48648 fi
48649
48650 COND_USE_EXCEPTIONS_1="#"
48651 if test "x$USE_EXCEPTIONS" = "x1" ; then
48652 COND_USE_EXCEPTIONS_1=""
48653 fi
48654
48655 COND_USE_GUI_0="#"
48656 if test "x$USE_GUI" = "x0" ; then
48657 COND_USE_GUI_0=""
48658 fi
48659
48660 COND_USE_GUI_1="#"
48661 if test "x$USE_GUI" = "x1" ; then
48662 COND_USE_GUI_1=""
48663 fi
48664
48665 COND_USE_GUI_1_WXUNIV_0="#"
48666 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48667 COND_USE_GUI_1_WXUNIV_0=""
48668 fi
48669
48670 COND_USE_GUI_1_WXUNIV_1="#"
48671 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
48672 COND_USE_GUI_1_WXUNIV_1=""
48673 fi
48674
48675 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48676 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48677 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48678 fi
48679
48680 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48681 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48682 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48683 fi
48684
48685 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48686 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48687 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48688 fi
48689
083508af
MW
48690 COND_USE_ODBC_1="#"
48691 if test "x$USE_ODBC" = "x1" ; then
48692 COND_USE_ODBC_1=""
48693 fi
48694
48695 COND_USE_OPENGL_1="#"
48696 if test "x$USE_OPENGL" = "x1" ; then
48697 COND_USE_OPENGL_1=""
48698 fi
48699
f10e38c4
VZ
48700 COND_USE_PCH_1="#"
48701 if test "x$USE_PCH" = "x1" ; then
48702 COND_USE_PCH_1=""
48703 fi
48704
a848cd7e
SC
48705 COND_USE_PLUGINS_0="#"
48706 if test "x$USE_PLUGINS" = "x0" ; then
48707 COND_USE_PLUGINS_0=""
48708 fi
48709
0b78747f
MW
48710 COND_USE_RTTI_0="#"
48711 if test "x$USE_RTTI" = "x0" ; then
48712 COND_USE_RTTI_0=""
48713 fi
48714
48715 COND_USE_RTTI_1="#"
48716 if test "x$USE_RTTI" = "x1" ; then
48717 COND_USE_RTTI_1=""
48718 fi
48719
a848cd7e
SC
48720 COND_USE_SOSYMLINKS_1="#"
48721 if test "x$USE_SOSYMLINKS" = "x1" ; then
48722 COND_USE_SOSYMLINKS_1=""
48723 fi
48724
eb730a0c
JS
48725 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
48726 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48727 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
48728 fi
48729
a848cd7e
SC
48730 COND_USE_SOVERLINUX_1="#"
48731 if test "x$USE_SOVERLINUX" = "x1" ; then
48732 COND_USE_SOVERLINUX_1=""
48733 fi
48734
48735 COND_USE_SOVERSION_0="#"
48736 if test "x$USE_SOVERSION" = "x0" ; then
48737 COND_USE_SOVERSION_0=""
48738 fi
48739
48740 COND_USE_SOVERSOLARIS_1="#"
48741 if test "x$USE_SOVERSOLARIS" = "x1" ; then
48742 COND_USE_SOVERSOLARIS_1=""
48743 fi
48744
0b78747f
MW
48745 COND_USE_THREADS_0="#"
48746 if test "x$USE_THREADS" = "x0" ; then
48747 COND_USE_THREADS_0=""
48748 fi
48749
48750 COND_USE_THREADS_1="#"
48751 if test "x$USE_THREADS" = "x1" ; then
48752 COND_USE_THREADS_1=""
48753 fi
48754
a13a7f89
RL
48755 COND_USE_XRC_1="#"
48756 if test "x$USE_XRC" = "x1" ; then
48757 COND_USE_XRC_1=""
48758 fi
48759
eb730a0c
JS
48760 COND_WINDOWS_IMPLIB_1="#"
48761 if test "x$WINDOWS_IMPLIB" = "x1" ; then
48762 COND_WINDOWS_IMPLIB_1=""
48763 fi
48764
a848cd7e
SC
48765 COND_WITH_PLUGIN_SDL_1="#"
48766 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
48767 COND_WITH_PLUGIN_SDL_1=""
48768 fi
48769
1e6eb025
VZ
48770 COND_WXUNIV_0="#"
48771 if test "x$WXUNIV" = "x0" ; then
48772 COND_WXUNIV_0=""
48773 fi
48774
a848cd7e
SC
48775 COND_WXUNIV_1="#"
48776 if test "x$WXUNIV" = "x1" ; then
48777 COND_WXUNIV_1=""
48778 fi
48779
48780 COND_WXUSE_EXPAT_BUILTIN="#"
48781 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
48782 COND_WXUSE_EXPAT_BUILTIN=""
48783 fi
48784
48785 COND_WXUSE_LIBJPEG_BUILTIN="#"
48786 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48787 COND_WXUSE_LIBJPEG_BUILTIN=""
48788 fi
48789
48790 COND_WXUSE_LIBPNG_BUILTIN="#"
48791 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48792 COND_WXUSE_LIBPNG_BUILTIN=""
48793 fi
48794
48795 COND_WXUSE_LIBTIFF_BUILTIN="#"
48796 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48797 COND_WXUSE_LIBTIFF_BUILTIN=""
48798 fi
48799
48800 COND_WXUSE_ODBC_BUILTIN="#"
48801 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
48802 COND_WXUSE_ODBC_BUILTIN=""
48803 fi
48804
48805 COND_WXUSE_REGEX_BUILTIN="#"
48806 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
48807 COND_WXUSE_REGEX_BUILTIN=""
48808 fi
48809
48810 COND_WXUSE_ZLIB_BUILTIN="#"
48811 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
48812 COND_WXUSE_ZLIB_BUILTIN=""
48813 fi
48814
48815
48816
810b94f0
MW
48817 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
48818 { { 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
48819echo "$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;}
48820 { (exit 1); exit 1; }; }
48821 fi
48822
2057db16
VS
48823 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
48824 { { 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
48825echo "$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;}
48826 { (exit 1); exit 1; }; }
48827 fi
48828
a848cd7e 48829
7afc46ab
KO
48830
48831if test "$wxUSE_MAC" = 1 ; then
95768535 48832 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
48833 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
48834 mv temp bk-deps
48835 chmod +x bk-deps
48836 fi
48837fi
48838
ceec2216
RL
48839if test "$wxUSE_SHARED" = "yes"; then
48840
48841 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
48842 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48843
5b674b9d
DE
48844 case "${host}" in
48845 *-pc-os2_emx | *-pc-os2-emx )
48846 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48847 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48848 cp -p ${srcdir}/src/os2/dllnames.sh .
48849 cp -p ${srcdir}/src/os2/dllar.sh .
48850 ;;
48851 esac
ceec2216
RL
48852else
48853
48854 EXE_LINKER="$CXX -o"
48855
48856fi
69120ee4
VZ
48857if test "$wxUSE_OMF" = "yes"; then
48858 case "${host}" in
48859 *-pc-os2_emx | *-pc-os2-emx )
48860 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48861 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48862 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48863 ;;
48864 esac
48865fi
a848cd7e 48866
c08ebc62 48867if test $GCC_PCH = 1 ; then
254e8e29 48868 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 48869fi
a848cd7e 48870
5ff751d6 48871WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
48872
48873SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48874
48875
48876
48877
48878
48879
48880
48881
48882
48883
48884
48885
48886
48887
48888
48889
48890
48891
48892
48893
48894
48895
48896
48897
48898
48899
48900
48901
48902
48903
48904
48905
48906
48907
48908
48909
48910
48911
48912
48913
48914
48915
a848cd7e
SC
48916
48917
48918
48919
48920
48921
48922
48923
48924
48925
48926
48927
a848cd7e
SC
48928
48929
ddd14b14 48930
370d2fd7 48931
8ced02f6 48932
a848cd7e
SC
48933
48934
48935echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48936echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 48937set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
48938if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48939 echo $ECHO_N "(cached) $ECHO_C" >&6
48940else
48941 cat >conftest.make <<\_ACEOF
48942all:
48943 @echo 'ac_maketemp="$(MAKE)"'
48944_ACEOF
48945# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48946eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48947if test -n "$ac_maketemp"; then
48948 eval ac_cv_prog_make_${ac_make}_set=yes
48949else
48950 eval ac_cv_prog_make_${ac_make}_set=no
48951fi
48952rm -f conftest.make
48953fi
48954if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48955 echo "$as_me:$LINENO: result: yes" >&5
48956echo "${ECHO_T}yes" >&6
48957 SET_MAKE=
48958else
48959 echo "$as_me:$LINENO: result: no" >&5
48960echo "${ECHO_T}no" >&6
48961 SET_MAKE="MAKE=${MAKE-make}"
48962fi
48963
48964
a848cd7e 48965
ceec2216
RL
48966 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48967
a848cd7e 48968
5c60e845
MW
48969if test "$USE_WIN32" = 1; then
48970 ac_config_commands="$ac_config_commands
48971 rcdefs.h
48972 "
48973
48974fi
48975
ceec2216 48976 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 48977
a848cd7e 48978
ceec2216 48979 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 48980
ceec2216
RL
48981
48982 ac_config_files="$ac_config_files version-script Makefile"
48983
48984
5c60e845 48985 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
48986
48987
9103d280 48988
1c14217d 48989if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
48990if test "$wxUSE_GUI" = "yes"; then
48991 SUBDIRS="samples demos utils contrib"
48992else SUBDIRS="samples utils"
48993fi
48994
48995
48996
48997# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48998if test "${with_cppunit_prefix+set}" = set; then
48999 withval="$with_cppunit_prefix"
49000 cppunit_config_prefix="$withval"
49001else
49002 cppunit_config_prefix=""
49003fi;
49004
49005# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
49006if test "${with_cppunit_exec_prefix+set}" = set; then
49007 withval="$with_cppunit_exec_prefix"
49008 cppunit_config_exec_prefix="$withval"
49009else
49010 cppunit_config_exec_prefix=""
49011fi;
49012
49013 if test x$cppunit_config_exec_prefix != x ; then
49014 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
49015 if test x${CPPUNIT_CONFIG+set} != xset ; then
49016 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
49017 fi
49018 fi
49019 if test x$cppunit_config_prefix != x ; then
49020 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
49021 if test x${CPPUNIT_CONFIG+set} != xset ; then
49022 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
49023 fi
49024 fi
49025
49026 # Extract the first word of "cppunit-config", so it can be a program name with args.
49027set dummy cppunit-config; ac_word=$2
49028echo "$as_me:$LINENO: checking for $ac_word" >&5
49029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49030if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
49031 echo $ECHO_N "(cached) $ECHO_C" >&6
49032else
49033 case $CPPUNIT_CONFIG in
49034 [\\/]* | ?:[\\/]*)
49035 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
49036 ;;
49037 *)
49038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49039for as_dir in $PATH
49040do
49041 IFS=$as_save_IFS
49042 test -z "$as_dir" && as_dir=.
49043 for ac_exec_ext in '' $ac_executable_extensions; do
49044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49045 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49047 break 2
49048 fi
49049done
49050done
49051
49052 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
49053 ;;
49054esac
49055fi
49056CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
49057
49058if test -n "$CPPUNIT_CONFIG"; then
49059 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
49060echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
49061else
49062 echo "$as_me:$LINENO: result: no" >&5
49063echo "${ECHO_T}no" >&6
49064fi
49065
49066 cppunit_version_min=1.8.0
49067
49068 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
49069echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
49070 no_cppunit=""
49071 if test "$CPPUNIT_CONFIG" = "no" ; then
3ecd9f92
MW
49072 echo "$as_me:$LINENO: result: no" >&5
49073echo "${ECHO_T}no" >&6
a848cd7e
SC
49074 no_cppunit=yes
49075 else
49076 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
49077 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
49078 cppunit_version=`$CPPUNIT_CONFIG --version`
49079
49080 cppunit_major_version=`echo $cppunit_version | \
49081 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49082 cppunit_minor_version=`echo $cppunit_version | \
49083 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49084 cppunit_micro_version=`echo $cppunit_version | \
49085 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49086
49087 cppunit_major_min=`echo $cppunit_version_min | \
49088 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49089 cppunit_minor_min=`echo $cppunit_version_min | \
49090 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49091 cppunit_micro_min=`echo $cppunit_version_min | \
49092 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49093
49094 cppunit_version_proper=`expr \
49095 $cppunit_major_version \> $cppunit_major_min \| \
49096 $cppunit_major_version \= $cppunit_major_min \& \
49097 $cppunit_minor_version \> $cppunit_minor_min \| \
49098 $cppunit_major_version \= $cppunit_major_min \& \
49099 $cppunit_minor_version \= $cppunit_minor_min \& \
49100 $cppunit_micro_version \>= $cppunit_micro_min `
49101
49102 if test "$cppunit_version_proper" = "1" ; then
49103 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
49104echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
49105 else
49106 echo "$as_me:$LINENO: result: no" >&5
49107echo "${ECHO_T}no" >&6
49108 no_cppunit=yes
49109 fi
49110 fi
49111
49112 if test "x$no_cppunit" = x ; then
c2218763 49113 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
49114 else
49115 CPPUNIT_CFLAGS=""
49116 CPPUNIT_LIBS=""
c2218763 49117 :
a848cd7e
SC
49118 fi
49119
49120
49121
49122
49123
49124for subdir in `echo $SUBDIRS`; do
49125 if test -d ${srcdir}/${subdir} ; then
49126 if test "$wxUSE_GUI" = "yes"; then
49127 if test ${subdir} = "samples"; then
49128 makefiles="samples/Makefile.in $makefiles"
49129 for sample in `echo $SAMPLES_SUBDIRS`; do
49130 if test -d $srcdir/samples/$sample; then
49131 makefiles="samples/$sample/Makefile.in $makefiles"
49132 fi
49133 done
9c112555
MW
49134 else
49135 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
49136 eval "disabled=\$$disabled_var"
49137 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
49138 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
49139 fi
49140 else if test ${subdir} = "samples"; then
49141 makefiles="samples/Makefile.in samples/console/Makefile.in"
49142 elif test ${subdir} = "utils"; then
6537ccf8
VS
49143 makefiles=""
49144 for util in HelpGen tex2rtf ; do
49145 if test -d $srcdir/utils/$util ; then
49146 makefiles="utils/$util/Makefile.in \
49147 utils/$util/src/Makefile.in \
49148 $makefiles"
49149 fi
49150 done
a848cd7e
SC
49151 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
49152 fi
49153 fi
49154
49155 for mkin in $makefiles ; do
49156 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
49157 ac_config_files="$ac_config_files $mk"
49158
49159 done
49160 fi
49161done
1c14217d 49162fi
a848cd7e
SC
49163cat >confcache <<\_ACEOF
49164# This file is a shell script that caches the results of configure
49165# tests run on this system so they can be shared between configure
49166# scripts and configure runs, see configure's option --config-cache.
49167# It is not useful on other systems. If it contains results you don't
49168# want to keep, you may remove or edit it.
49169#
49170# config.status only pays attention to the cache file if you give it
49171# the --recheck option to rerun configure.
49172#
49173# `ac_cv_env_foo' variables (set or unset) will be overridden when
49174# loading this file, other *unset* `ac_cv_foo' will be assigned the
49175# following values.
49176
49177_ACEOF
49178
49179# The following way of writing the cache mishandles newlines in values,
49180# but we know of no workaround that is simple, portable, and efficient.
49181# So, don't put newlines in cache variables' values.
49182# Ultrix sh set writes to stderr and can't be redirected directly,
49183# and sets the high bit in the cache file unless we assign to the vars.
49184{
49185 (set) 2>&1 |
49186 case `(ac_space=' '; set | grep ac_space) 2>&1` in
49187 *ac_space=\ *)
49188 # `set' does not quote correctly, so add quotes (double-quote
49189 # substitution turns \\\\ into \\, and sed turns \\ into \).
49190 sed -n \
ac1cb8d3
VS
49191 "s/'/'\\\\''/g;
49192 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
49193 ;;
49194 *)
49195 # `set' quotes correctly as required by POSIX, so do not add quotes.
49196 sed -n \
ac1cb8d3 49197 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
49198 ;;
49199 esac;
49200} |
49201 sed '
49202 t clear
49203 : clear
49204 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49205 t end
49206 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49207 : end' >>confcache
49208if diff $cache_file confcache >/dev/null 2>&1; then :; else
49209 if test -w $cache_file; then
49210 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
49211 cat confcache >$cache_file
49212 else
49213 echo "not updating unwritable cache $cache_file"
49214 fi
49215fi
49216rm -f confcache
49217
49218test "x$prefix" = xNONE && prefix=$ac_default_prefix
49219# Let make expand exec_prefix.
49220test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49221
49222# VPATH may cause trouble with some makes, so we remove $(srcdir),
49223# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49224# trailing colons and then remove the whole line if VPATH becomes empty
49225# (actually we leave an empty line to preserve line numbers).
49226if test "x$srcdir" = x.; then
ac1cb8d3 49227 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
49228s/:*\$(srcdir):*/:/;
49229s/:*\${srcdir}:*/:/;
49230s/:*@srcdir@:*/:/;
ac1cb8d3 49231s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 49232s/:*$//;
ac1cb8d3 49233s/^[^=]*=[ ]*$//;
a848cd7e
SC
49234}'
49235fi
49236
49237DEFS=-DHAVE_CONFIG_H
49238
49239ac_libobjs=
49240ac_ltlibobjs=
49241for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49242 # 1. Remove the extension, and $U if already installed.
49243 ac_i=`echo "$ac_i" |
ac1cb8d3 49244 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
49245 # 2. Add them.
49246 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
49247 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
49248done
49249LIBOBJS=$ac_libobjs
49250
49251LTLIBOBJS=$ac_ltlibobjs
49252
49253
49254
49255: ${CONFIG_STATUS=./config.status}
49256ac_clean_files_save=$ac_clean_files
49257ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49258{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49259echo "$as_me: creating $CONFIG_STATUS" >&6;}
49260cat >$CONFIG_STATUS <<_ACEOF
49261#! $SHELL
49262# Generated by $as_me.
49263# Run this file to recreate the current configuration.
49264# Compiler output produced by configure, useful for debugging
49265# configure, is in config.log if it exists.
49266
49267debug=false
49268ac_cs_recheck=false
49269ac_cs_silent=false
49270SHELL=\${CONFIG_SHELL-$SHELL}
49271_ACEOF
49272
49273cat >>$CONFIG_STATUS <<\_ACEOF
49274## --------------------- ##
49275## M4sh Initialization. ##
49276## --------------------- ##
49277
49278# Be Bourne compatible
49279if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49280 emulate sh
49281 NULLCMD=:
49282 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49283 # is contrary to our usage. Disable this feature.
49284 alias -g '${1+"$@"}'='"$@"'
49285elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
49286 set -o posix
49287fi
ac1cb8d3 49288DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
49289
49290# Support unset when possible.
ac1cb8d3 49291if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
49292 as_unset=unset
49293else
49294 as_unset=false
49295fi
49296
49297
49298# Work around bugs in pre-3.0 UWIN ksh.
49299$as_unset ENV MAIL MAILPATH
49300PS1='$ '
49301PS2='> '
49302PS4='+ '
49303
49304# NLS nuisances.
49305for as_var in \
49306 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49307 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49308 LC_TELEPHONE LC_TIME
49309do
ac1cb8d3 49310 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
49311 eval $as_var=C; export $as_var
49312 else
49313 $as_unset $as_var
49314 fi
49315done
49316
49317# Required to use basename.
49318if expr a : '\(a\)' >/dev/null 2>&1; then
49319 as_expr=expr
49320else
49321 as_expr=false
49322fi
49323
49324if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
49325 as_basename=basename
49326else
49327 as_basename=false
49328fi
49329
49330
49331# Name of the executable.
49332as_me=`$as_basename "$0" ||
49333$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49334 X"$0" : 'X\(//\)$' \| \
49335 X"$0" : 'X\(/\)$' \| \
49336 . : '\(.\)' 2>/dev/null ||
49337echo X/"$0" |
49338 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
49339 /^X\/\(\/\/\)$/{ s//\1/; q; }
49340 /^X\/\(\/\).*/{ s//\1/; q; }
49341 s/.*/./; q'`
49342
49343
49344# PATH needs CR, and LINENO needs CR and PATH.
49345# Avoid depending upon Character Ranges.
49346as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49347as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49348as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49349as_cr_digits='0123456789'
49350as_cr_alnum=$as_cr_Letters$as_cr_digits
49351
49352# The user is always right.
49353if test "${PATH_SEPARATOR+set}" != set; then
49354 echo "#! /bin/sh" >conf$$.sh
49355 echo "exit 0" >>conf$$.sh
49356 chmod +x conf$$.sh
49357 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49358 PATH_SEPARATOR=';'
49359 else
49360 PATH_SEPARATOR=:
49361 fi
49362 rm -f conf$$.sh
49363fi
49364
49365
49366 as_lineno_1=$LINENO
49367 as_lineno_2=$LINENO
49368 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49369 test "x$as_lineno_1" != "x$as_lineno_2" &&
49370 test "x$as_lineno_3" = "x$as_lineno_2" || {
49371 # Find who we are. Look in the path if we contain no path at all
49372 # relative or not.
49373 case $0 in
49374 *[\\/]* ) as_myself=$0 ;;
49375 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49376for as_dir in $PATH
49377do
49378 IFS=$as_save_IFS
49379 test -z "$as_dir" && as_dir=.
49380 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49381done
49382
49383 ;;
49384 esac
49385 # We did not find ourselves, most probably we were run as `sh COMMAND'
49386 # in which case we are not to be found in the path.
49387 if test "x$as_myself" = x; then
49388 as_myself=$0
49389 fi
49390 if test ! -f "$as_myself"; then
49391 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
49392echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
49393 { (exit 1); exit 1; }; }
49394 fi
49395 case $CONFIG_SHELL in
49396 '')
49397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49398for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
49399do
49400 IFS=$as_save_IFS
49401 test -z "$as_dir" && as_dir=.
49402 for as_base in sh bash ksh sh5; do
49403 case $as_dir in
49404 /*)
49405 if ("$as_dir/$as_base" -c '
49406 as_lineno_1=$LINENO
49407 as_lineno_2=$LINENO
49408 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49409 test "x$as_lineno_1" != "x$as_lineno_2" &&
49410 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
49411 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
49412 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
49413 CONFIG_SHELL=$as_dir/$as_base
49414 export CONFIG_SHELL
49415 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
49416 fi;;
49417 esac
49418 done
49419done
49420;;
49421 esac
49422
49423 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
49424 # uniformly replaced by the line number. The first 'sed' inserts a
49425 # line-number line before each line; the second 'sed' does the real
49426 # work. The second script uses 'N' to pair each line-number line
49427 # with the numbered line, and appends trailing '-' during
49428 # substitution so that $LINENO is not a special case at line end.
49429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
49430 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
49431 sed '=' <$as_myself |
49432 sed '
49433 N
49434 s,$,-,
49435 : loop
49436 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
49437 t loop
49438 s,-$,,
49439 s,^['$as_cr_digits']*\n,,
49440 ' >$as_me.lineno &&
49441 chmod +x $as_me.lineno ||
49442 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
49443echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
49444 { (exit 1); exit 1; }; }
49445
49446 # Don't try to exec as it changes $[0], causing all sort of problems
49447 # (the dirname of $[0] is not the place where we might find the
49448 # original and so on. Autoconf is especially sensible to this).
49449 . ./$as_me.lineno
49450 # Exit status is that of the last command.
49451 exit
49452}
49453
49454
49455case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
49456 *c*,-n*) ECHO_N= ECHO_C='
49457' ECHO_T=' ' ;;
49458 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
49459 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
49460esac
49461
49462if expr a : '\(a\)' >/dev/null 2>&1; then
49463 as_expr=expr
49464else
49465 as_expr=false
49466fi
49467
49468rm -f conf$$ conf$$.exe conf$$.file
49469echo >conf$$.file
49470if ln -s conf$$.file conf$$ 2>/dev/null; then
49471 # We could just check for DJGPP; but this test a) works b) is more generic
49472 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
49473 if test -f conf$$.exe; then
49474 # Don't use ln at all; we don't have any links
49475 as_ln_s='cp -p'
49476 else
49477 as_ln_s='ln -s'
49478 fi
49479elif ln conf$$.file conf$$ 2>/dev/null; then
49480 as_ln_s=ln
49481else
49482 as_ln_s='cp -p'
49483fi
49484rm -f conf$$ conf$$.exe conf$$.file
49485
49486if mkdir -p . 2>/dev/null; then
49487 as_mkdir_p=:
49488else
ac1cb8d3 49489 test -d ./-p && rmdir ./-p
a848cd7e
SC
49490 as_mkdir_p=false
49491fi
49492
49493as_executable_p="test -f"
49494
49495# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 49496as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
49497
49498# Sed expression to map a string onto a valid variable name.
ac1cb8d3 49499as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
49500
49501
49502# IFS
49503# We need space, tab and new line, in precisely that order.
49504as_nl='
49505'
49506IFS=" $as_nl"
49507
49508# CDPATH.
49509$as_unset CDPATH
49510
49511exec 6>&1
49512
49513# Open the log real soon, to keep \$[0] and so on meaningful, and to
49514# report actual input values of CONFIG_FILES etc. instead of their
49515# values after options handling. Logging --version etc. is OK.
49516exec 5>>config.log
49517{
49518 echo
49519 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49520## Running $as_me. ##
49521_ASBOX
49522} >&5
49523cat >&5 <<_CSEOF
49524
dd8df4fc 49525This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 49526generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
49527
49528 CONFIG_FILES = $CONFIG_FILES
49529 CONFIG_HEADERS = $CONFIG_HEADERS
49530 CONFIG_LINKS = $CONFIG_LINKS
49531 CONFIG_COMMANDS = $CONFIG_COMMANDS
49532 $ $0 $@
49533
49534_CSEOF
49535echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
49536echo >&5
49537_ACEOF
49538
49539# Files that config.status was made for.
49540if test -n "$ac_config_files"; then
49541 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
49542fi
49543
49544if test -n "$ac_config_headers"; then
49545 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
49546fi
49547
49548if test -n "$ac_config_links"; then
49549 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
49550fi
49551
49552if test -n "$ac_config_commands"; then
49553 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
49554fi
49555
49556cat >>$CONFIG_STATUS <<\_ACEOF
49557
49558ac_cs_usage="\
49559\`$as_me' instantiates files from templates according to the
49560current configuration.
49561
49562Usage: $0 [OPTIONS] [FILE]...
49563
49564 -h, --help print this help, then exit
49565 -V, --version print version number, then exit
49566 -q, --quiet do not print progress messages
49567 -d, --debug don't remove temporary files
49568 --recheck update $as_me by reconfiguring in the same conditions
49569 --file=FILE[:TEMPLATE]
ac1cb8d3 49570 instantiate the configuration file FILE
a848cd7e 49571 --header=FILE[:TEMPLATE]
ac1cb8d3 49572 instantiate the configuration header FILE
a848cd7e
SC
49573
49574Configuration files:
49575$config_files
49576
49577Configuration headers:
49578$config_headers
49579
49580Configuration commands:
49581$config_commands
49582
49583Report bugs to <bug-autoconf@gnu.org>."
49584_ACEOF
49585
49586cat >>$CONFIG_STATUS <<_ACEOF
49587ac_cs_version="\\
dd8df4fc 49588wxWidgets config.status 2.7.0
ac1cb8d3 49589configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
49590 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
49591
ac1cb8d3 49592Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
49593This config.status script is free software; the Free Software Foundation
49594gives unlimited permission to copy, distribute and modify it."
49595srcdir=$srcdir
49596INSTALL="$INSTALL"
49597_ACEOF
49598
49599cat >>$CONFIG_STATUS <<\_ACEOF
49600# If no file are specified by the user, then we need to provide default
49601# value. By we need to know if files were specified by the user.
49602ac_need_defaults=:
49603while test $# != 0
49604do
49605 case $1 in
49606 --*=*)
49607 ac_option=`expr "x$1" : 'x\([^=]*\)='`
49608 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
49609 ac_shift=:
49610 ;;
49611 -*)
49612 ac_option=$1
49613 ac_optarg=$2
49614 ac_shift=shift
49615 ;;
49616 *) # This is not an option, so the user has probably given explicit
49617 # arguments.
49618 ac_option=$1
49619 ac_need_defaults=false;;
49620 esac
49621
49622 case $ac_option in
49623 # Handling of the options.
49624_ACEOF
49625cat >>$CONFIG_STATUS <<\_ACEOF
49626 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49627 ac_cs_recheck=: ;;
49628 --version | --vers* | -V )
49629 echo "$ac_cs_version"; exit 0 ;;
49630 --he | --h)
49631 # Conflict between --help and --header
49632 { { echo "$as_me:$LINENO: error: ambiguous option: $1
49633Try \`$0 --help' for more information." >&5
49634echo "$as_me: error: ambiguous option: $1
49635Try \`$0 --help' for more information." >&2;}
49636 { (exit 1); exit 1; }; };;
49637 --help | --hel | -h )
49638 echo "$ac_cs_usage"; exit 0 ;;
49639 --debug | --d* | -d )
49640 debug=: ;;
49641 --file | --fil | --fi | --f )
49642 $ac_shift
49643 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
49644 ac_need_defaults=false;;
49645 --header | --heade | --head | --hea )
49646 $ac_shift
49647 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49648 ac_need_defaults=false;;
49649 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49650 | -silent | --silent | --silen | --sile | --sil | --si | --s)
49651 ac_cs_silent=: ;;
49652
49653 # This is an error.
49654 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
49655Try \`$0 --help' for more information." >&5
49656echo "$as_me: error: unrecognized option: $1
49657Try \`$0 --help' for more information." >&2;}
49658 { (exit 1); exit 1; }; } ;;
49659
49660 *) ac_config_targets="$ac_config_targets $1" ;;
49661
49662 esac
49663 shift
49664done
49665
49666ac_configure_extra_args=
49667
49668if $ac_cs_silent; then
49669 exec 6>/dev/null
49670 ac_configure_extra_args="$ac_configure_extra_args --silent"
49671fi
49672
49673_ACEOF
49674cat >>$CONFIG_STATUS <<_ACEOF
49675if \$ac_cs_recheck; then
49676 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
49677 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49678fi
49679
49680_ACEOF
49681
49682cat >>$CONFIG_STATUS <<_ACEOF
49683#
49684# INIT-COMMANDS section.
49685#
49686
5c60e845
MW
49687
49688 CPP="$CPP"
49689 infile="$srcdir/include/wx/msw/genrcdefs.h"
49690 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
49691
49692
ceec2216
RL
49693 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49694 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49695 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49696 LN_S="${LN_S}"
a848cd7e
SC
49697
49698
49699_ACEOF
49700
49701
49702
49703cat >>$CONFIG_STATUS <<\_ACEOF
49704for ac_config_target in $ac_config_targets
49705do
49706 case "$ac_config_target" in
49707 # Handling of arguments.
ceec2216
RL
49708 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
49709 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
49710 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
49711 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49712 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 49713 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
49714 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
49715 "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
49716 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49717echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49718 { (exit 1); exit 1; }; };;
49719 esac
49720done
49721
49722# If the user did not use the arguments to specify the items to instantiate,
49723# then the envvar interface is used. Set only those that are not.
49724# We use the long form for the default assignment because of an extremely
49725# bizarre bug on SunOS 4.1.3.
49726if $ac_need_defaults; then
49727 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49728 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49729 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49730fi
49731
49732# Have a temporary directory for convenience. Make it in the build tree
49733# simply because there is no reason to put it here, and in addition,
49734# creating and moving files from /tmp can sometimes cause problems.
49735# Create a temporary directory, and hook for its removal unless debugging.
49736$debug ||
49737{
49738 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
49739 trap '{ (exit 1); exit 1; }' 1 2 13 15
49740}
49741
49742# Create a (secure) tmp directory for tmp files.
49743
49744{
49745 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
49746 test -n "$tmp" && test -d "$tmp"
49747} ||
49748{
49749 tmp=./confstat$$-$RANDOM
49750 (umask 077 && mkdir $tmp)
49751} ||
49752{
49753 echo "$me: cannot create a temporary directory in ." >&2
49754 { (exit 1); exit 1; }
49755}
49756
49757_ACEOF
49758
49759cat >>$CONFIG_STATUS <<_ACEOF
49760
49761#
49762# CONFIG_FILES section.
49763#
49764
49765# No need to generate the scripts if there are no CONFIG_FILES.
49766# This happens for instance when ./config.status config.h
49767if test -n "\$CONFIG_FILES"; then
49768 # Protect against being on the right side of a sed subst in config.status.
49769 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
49770 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
49771s,@SHELL@,$SHELL,;t t
49772s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
49773s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
49774s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
49775s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
49776s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
49777s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
49778s,@exec_prefix@,$exec_prefix,;t t
49779s,@prefix@,$prefix,;t t
49780s,@program_transform_name@,$program_transform_name,;t t
49781s,@bindir@,$bindir,;t t
49782s,@sbindir@,$sbindir,;t t
49783s,@libexecdir@,$libexecdir,;t t
49784s,@datadir@,$datadir,;t t
49785s,@sysconfdir@,$sysconfdir,;t t
49786s,@sharedstatedir@,$sharedstatedir,;t t
49787s,@localstatedir@,$localstatedir,;t t
49788s,@libdir@,$libdir,;t t
49789s,@includedir@,$includedir,;t t
49790s,@oldincludedir@,$oldincludedir,;t t
49791s,@infodir@,$infodir,;t t
49792s,@mandir@,$mandir,;t t
49793s,@build_alias@,$build_alias,;t t
49794s,@host_alias@,$host_alias,;t t
49795s,@target_alias@,$target_alias,;t t
49796s,@DEFS@,$DEFS,;t t
49797s,@ECHO_C@,$ECHO_C,;t t
49798s,@ECHO_N@,$ECHO_N,;t t
49799s,@ECHO_T@,$ECHO_T,;t t
49800s,@LIBS@,$LIBS,;t t
49801s,@build@,$build,;t t
49802s,@build_cpu@,$build_cpu,;t t
49803s,@build_vendor@,$build_vendor,;t t
49804s,@build_os@,$build_os,;t t
49805s,@host@,$host,;t t
49806s,@host_cpu@,$host_cpu,;t t
49807s,@host_vendor@,$host_vendor,;t t
49808s,@host_os@,$host_os,;t t
49809s,@target@,$target,;t t
49810s,@target_cpu@,$target_cpu,;t t
49811s,@target_vendor@,$target_vendor,;t t
49812s,@target_os@,$target_os,;t t
49813s,@CC@,$CC,;t t
49814s,@CFLAGS@,$CFLAGS,;t t
49815s,@LDFLAGS@,$LDFLAGS,;t t
49816s,@CPPFLAGS@,$CPPFLAGS,;t t
49817s,@ac_ct_CC@,$ac_ct_CC,;t t
49818s,@EXEEXT@,$EXEEXT,;t t
49819s,@OBJEXT@,$OBJEXT,;t t
49820s,@CPP@,$CPP,;t t
49821s,@EGREP@,$EGREP,;t t
49822s,@CXX@,$CXX,;t t
49823s,@CXXFLAGS@,$CXXFLAGS,;t t
49824s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49825s,@RANLIB@,$RANLIB,;t t
49826s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49827s,@AR@,$AR,;t t
8c80d384 49828s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
49829s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49830s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49831s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49832s,@STRIP@,$STRIP,;t t
8c80d384 49833s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
49834s,@WINDRES@,$WINDRES,;t t
49835s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
49836s,@DLLTOOL@,$DLLTOOL,;t t
49837s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
49838s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
49839s,@LN_S@,$LN_S,;t t
49840s,@CXXCPP@,$CXXCPP,;t t
49841s,@subdirs@,$subdirs,;t t
49842s,@PKG_CONFIG@,$PKG_CONFIG,;t t
49843s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
49844s,@GTK_LIBS@,$GTK_LIBS,;t t
49845s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
49846s,@X_CFLAGS@,$X_CFLAGS,;t t
49847s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49848s,@X_LIBS@,$X_LIBS,;t t
49849s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
3ecd9f92 49850s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
a848cd7e
SC
49851s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49852s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
49853s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49854s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
49855s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49856s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 49857s,@REZ@,$REZ,;t t
a848cd7e
SC
49858s,@DEREZ@,$DEREZ,;t t
49859s,@SETFILE@,$SETFILE,;t t
49860s,@LIBICONV@,$LIBICONV,;t t
49861s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49862s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49863s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49864s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
49865s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49866s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
49867s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
49868s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
49869s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49870s,@HILDON_LIBS@,$HILDON_LIBS,;t t
f10e38c4
VZ
49871s,@GST_CFLAGS@,$GST_CFLAGS,;t t
49872s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
49873s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49874s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49875s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49876s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49877s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49878s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49879s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49880s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49881s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49882s,@VENDOR@,$VENDOR,;t t
49883s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
49884s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49885s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
49886s,@WXUNIV@,$WXUNIV,;t t
49887s,@MONOLITHIC@,$MONOLITHIC,;t t
49888s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49889s,@EXTRALIBS@,$EXTRALIBS,;t t
49890s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49891s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49892s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49893s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49894s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49895s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49896s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 49897s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 49898s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 49899s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
49900s,@UNICODE@,$UNICODE,;t t
49901s,@BUILD@,$BUILD,;t t
49902s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49903s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
49904s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49905s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49906s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49907s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49908s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49909s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49910s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49911s,@SET_MAKE@,$SET_MAKE,;t t
49912s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
49913s,@NM@,$NM,;t t
49914s,@ac_ct_NM@,$ac_ct_NM,;t t
49915s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49916s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49917s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49918s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49919s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49920s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 49921s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
49922s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49923s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 49924s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
49925s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49926s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49927s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49928s,@LIBPREFIX@,$LIBPREFIX,;t t
49929s,@LIBEXT@,$LIBEXT,;t t
49930s,@DLLPREFIX@,$DLLPREFIX,;t t
49931s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 49932s,@dlldir@,$dlldir,;t t
a848cd7e
SC
49933s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49934s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49935s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49936s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49937s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49938s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 49939s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
49940s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49941s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49942s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 49943s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
49944s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49945s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49946s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49947s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49948s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 49949s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
49950s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49951s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49952s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49953s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49954s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49955s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49956s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49957s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49958s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49959s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49960s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49961s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49962s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49963s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49964s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 49965s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
49966s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49967s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 49968s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 49969s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 49970s,@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 49971s,@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 49972s,@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 49973s,@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 49974s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8b6682b9 49975s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
ceec2216 49976s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 49977s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 49978s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 49979s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 49980s,@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 49981s,@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 49982s,@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 49983s,@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 49984s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
8b6682b9 49985s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
ceec2216 49986s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 49987s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
49988s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49989s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49990s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49991s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49992s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49993s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 49994s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
49995s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49996s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 49997s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
49998s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49999s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
50000s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 50001s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 50002s,@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
50003s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
50004s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
50005s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
50006s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 50007s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 50008s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 50009s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 50010s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
50011s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
50012s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
50013s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
50014s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
50015s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
50016s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
50017s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
50018s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
50019s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
50020s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
50021s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
50022s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
50023s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50024s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50025s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 50026s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
50027s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
50028s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
50029s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
50030s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
50031s,@COND_SHARED_1@,$COND_SHARED_1,;t t
50032s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 50033s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 50034s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 50035s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 50036s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
50037s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
50038s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
50039s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
50040s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
50041s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
50042s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
50043s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
50044s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 50045s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
50046s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
50047s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
50048s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
50049s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
50050s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
50051s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
50052s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
50053s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
50054s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
50055s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
50056s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 50057s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
50058s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
50059s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
50060s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
50061s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
50062s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
50063s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 50064s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
50065s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
50066s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
50067s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
50068s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
50069s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
50070s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
50071s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
50072s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
50073s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
50074s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50075s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50076s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
50077s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
50078s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 50079s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 50080s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
50081s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
50082s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 50083s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 50084s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
50085s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
50086s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
50087s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
50088s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
50089s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 50090s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 50091s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 50092s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 50093s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
50094s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
50095s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
50096s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
50097s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
50098s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
50099s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
50100s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
50101s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 50102s,@SHARED@,$SHARED,;t t
a848cd7e
SC
50103s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
50104s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
50105s,@USE_GUI@,$USE_GUI,;t t
50106s,@AFMINSTALL@,$AFMINSTALL,;t t
50107s,@WIN32INSTALL@,$WIN32INSTALL,;t t
50108s,@TOOLKIT@,$TOOLKIT,;t t
50109s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 50110s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 50111s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 50112s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
50113s,@WIDGET_SET@,$WIDGET_SET,;t t
50114s,@WX_RELEASE@,$WX_RELEASE,;t t
50115s,@WX_VERSION@,$WX_VERSION,;t t
50116s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
50117s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
50118s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
50119s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
50120s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
50121s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
50122s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
50123s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
50124s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 50125s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 50126s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 50127s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
50128s,@DISTDIR@,$DISTDIR,;t t
50129s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
50130s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
50131s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
50132s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
50133s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 50134s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
50135s,@RESFLAGS@,$RESFLAGS,;t t
50136s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
50137s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
50138s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
50139s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 50140s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 50141s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 50142s,@GCC@,$GCC,;t t
a848cd7e
SC
50143s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
50144s,@LIBOBJS@,$LIBOBJS,;t t
50145s,@LTLIBOBJS@,$LTLIBOBJS,;t t
50146CEOF
50147
50148_ACEOF
50149
50150 cat >>$CONFIG_STATUS <<\_ACEOF
50151 # Split the substitutions into bite-sized pieces for seds with
50152 # small command number limits, like on Digital OSF/1 and HP-UX.
50153 ac_max_sed_lines=48
50154 ac_sed_frag=1 # Number of current file.
50155 ac_beg=1 # First line for current file.
50156 ac_end=$ac_max_sed_lines # Line after last line for current file.
50157 ac_more_lines=:
50158 ac_sed_cmds=
50159 while $ac_more_lines; do
50160 if test $ac_beg -gt 1; then
50161 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50162 else
50163 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50164 fi
50165 if test ! -s $tmp/subs.frag; then
50166 ac_more_lines=false
50167 else
50168 # The purpose of the label and of the branching condition is to
50169 # speed up the sed processing (if there are no `@' at all, there
50170 # is no need to browse any of the substitutions).
50171 # These are the two extra sed commands mentioned above.
50172 (echo ':t
50173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
50174 if test -z "$ac_sed_cmds"; then
ac1cb8d3 50175 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 50176 else
ac1cb8d3 50177 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
50178 fi
50179 ac_sed_frag=`expr $ac_sed_frag + 1`
50180 ac_beg=$ac_end
50181 ac_end=`expr $ac_end + $ac_max_sed_lines`
50182 fi
50183 done
50184 if test -z "$ac_sed_cmds"; then
50185 ac_sed_cmds=cat
50186 fi
50187fi # test -n "$CONFIG_FILES"
50188
50189_ACEOF
50190cat >>$CONFIG_STATUS <<\_ACEOF
50191for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
50192 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50193 case $ac_file in
50194 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
50195 cat >$tmp/stdin
50196 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50197 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 50198 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 50199 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
50200 * ) ac_file_in=$ac_file.in ;;
50201 esac
50202
50203 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
50204 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50205$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50206 X"$ac_file" : 'X\(//\)[^/]' \| \
50207 X"$ac_file" : 'X\(//\)$' \| \
50208 X"$ac_file" : 'X\(/\)' \| \
50209 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50210echo X"$ac_file" |
50211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50212 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50213 /^X\(\/\/\)$/{ s//\1/; q; }
50214 /^X\(\/\).*/{ s//\1/; q; }
50215 s/.*/./; q'`
50216 { if $as_mkdir_p; then
50217 mkdir -p "$ac_dir"
50218 else
50219 as_dir="$ac_dir"
50220 as_dirs=
50221 while test ! -d "$as_dir"; do
50222 as_dirs="$as_dir $as_dirs"
50223 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50224$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50225 X"$as_dir" : 'X\(//\)[^/]' \| \
50226 X"$as_dir" : 'X\(//\)$' \| \
50227 X"$as_dir" : 'X\(/\)' \| \
50228 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50229echo X"$as_dir" |
50230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50231 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50232 /^X\(\/\/\)$/{ s//\1/; q; }
50233 /^X\(\/\).*/{ s//\1/; q; }
50234 s/.*/./; q'`
50235 done
50236 test ! -n "$as_dirs" || mkdir $as_dirs
50237 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50238echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50239 { (exit 1); exit 1; }; }; }
50240
50241 ac_builddir=.
50242
50243if test "$ac_dir" != .; then
50244 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50245 # A "../" for each directory in $ac_dir_suffix.
50246 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50247else
50248 ac_dir_suffix= ac_top_builddir=
50249fi
50250
50251case $srcdir in
50252 .) # No --srcdir option. We are building in place.
50253 ac_srcdir=.
50254 if test -z "$ac_top_builddir"; then
50255 ac_top_srcdir=.
50256 else
50257 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50258 fi ;;
50259 [\\/]* | ?:[\\/]* ) # Absolute path.
50260 ac_srcdir=$srcdir$ac_dir_suffix;
50261 ac_top_srcdir=$srcdir ;;
50262 *) # Relative path.
50263 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50264 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50265esac
ac1cb8d3
VS
50266
50267# Do not use `cd foo && pwd` to compute absolute paths, because
50268# the directories may not exist.
50269case `pwd` in
50270.) ac_abs_builddir="$ac_dir";;
50271*)
50272 case "$ac_dir" in
50273 .) ac_abs_builddir=`pwd`;;
50274 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50275 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50276 esac;;
50277esac
50278case $ac_abs_builddir in
50279.) ac_abs_top_builddir=${ac_top_builddir}.;;
50280*)
50281 case ${ac_top_builddir}. in
50282 .) ac_abs_top_builddir=$ac_abs_builddir;;
50283 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50284 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50285 esac;;
50286esac
50287case $ac_abs_builddir in
50288.) ac_abs_srcdir=$ac_srcdir;;
50289*)
50290 case $ac_srcdir in
50291 .) ac_abs_srcdir=$ac_abs_builddir;;
50292 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50293 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50294 esac;;
50295esac
50296case $ac_abs_builddir in
50297.) ac_abs_top_srcdir=$ac_top_srcdir;;
50298*)
50299 case $ac_top_srcdir in
50300 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50301 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50302 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50303 esac;;
50304esac
a848cd7e
SC
50305
50306
50307 case $INSTALL in
50308 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50309 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
50310 esac
50311
a848cd7e
SC
50312 # Let's still pretend it is `configure' which instantiates (i.e., don't
50313 # use $as_me), people would be surprised to read:
50314 # /* config.h. Generated by config.status. */
50315 if test x"$ac_file" = x-; then
50316 configure_input=
50317 else
50318 configure_input="$ac_file. "
50319 fi
50320 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 50321 sed 's,.*/,,'` by configure."
a848cd7e
SC
50322
50323 # First look for the input files in the build tree, otherwise in the
50324 # src tree.
50325 ac_file_inputs=`IFS=:
50326 for f in $ac_file_in; do
50327 case $f in
50328 -) echo $tmp/stdin ;;
50329 [\\/$]*)
ac1cb8d3
VS
50330 # Absolute (can't be DOS-style, as IFS=:)
50331 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50332echo "$as_me: error: cannot find input file: $f" >&2;}
50333 { (exit 1); exit 1; }; }
ac1cb8d3 50334 echo "$f";;
a848cd7e 50335 *) # Relative
ac1cb8d3
VS
50336 if test -f "$f"; then
50337 # Build tree
50338 echo "$f"
50339 elif test -f "$srcdir/$f"; then
50340 # Source tree
50341 echo "$srcdir/$f"
50342 else
50343 # /dev/null tree
50344 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50345echo "$as_me: error: cannot find input file: $f" >&2;}
50346 { (exit 1); exit 1; }; }
ac1cb8d3 50347 fi;;
a848cd7e
SC
50348 esac
50349 done` || { (exit 1); exit 1; }
c9a66001
VZ
50350
50351 if test x"$ac_file" != x-; then
50352 { echo "$as_me:$LINENO: creating $ac_file" >&5
50353echo "$as_me: creating $ac_file" >&6;}
50354 rm -f "$ac_file"
50355 fi
a848cd7e
SC
50356_ACEOF
50357cat >>$CONFIG_STATUS <<_ACEOF
50358 sed "$ac_vpsub
50359$extrasub
50360_ACEOF
50361cat >>$CONFIG_STATUS <<\_ACEOF
50362:t
50363/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50364s,@configure_input@,$configure_input,;t t
50365s,@srcdir@,$ac_srcdir,;t t
50366s,@abs_srcdir@,$ac_abs_srcdir,;t t
50367s,@top_srcdir@,$ac_top_srcdir,;t t
50368s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
50369s,@builddir@,$ac_builddir,;t t
50370s,@abs_builddir@,$ac_abs_builddir,;t t
50371s,@top_builddir@,$ac_top_builddir,;t t
50372s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
50373s,@INSTALL@,$ac_INSTALL,;t t
50374" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
50375 rm -f $tmp/stdin
50376 if test x"$ac_file" != x-; then
50377 mv $tmp/out $ac_file
50378 else
50379 cat $tmp/out
50380 rm -f $tmp/out
50381 fi
50382
ceec2216
RL
50383 # Run the commands associated with the file.
50384 case $ac_file in
50385 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
50386 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
50387 esac
a848cd7e
SC
50388done
50389_ACEOF
50390cat >>$CONFIG_STATUS <<\_ACEOF
50391
50392#
50393# CONFIG_HEADER section.
50394#
50395
50396# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
50397# NAME is the cpp macro being defined and VALUE is the value it is being given.
50398#
50399# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
50400ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
50401ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
50402ac_dC=' '
50403ac_dD=',;t'
50404# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 50405ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
50406ac_uB='$,\1#\2define\3'
50407ac_uC=' '
50408ac_uD=',;t'
50409
50410for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
50411 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50412 case $ac_file in
50413 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
50414 cat >$tmp/stdin
50415 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50416 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 50417 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 50418 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
50419 * ) ac_file_in=$ac_file.in ;;
50420 esac
50421
50422 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
50423echo "$as_me: creating $ac_file" >&6;}
50424
50425 # First look for the input files in the build tree, otherwise in the
50426 # src tree.
50427 ac_file_inputs=`IFS=:
50428 for f in $ac_file_in; do
50429 case $f in
50430 -) echo $tmp/stdin ;;
50431 [\\/$]*)
ac1cb8d3
VS
50432 # Absolute (can't be DOS-style, as IFS=:)
50433 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50434echo "$as_me: error: cannot find input file: $f" >&2;}
50435 { (exit 1); exit 1; }; }
ac1cb8d3
VS
50436 # Do quote $f, to prevent DOS paths from being IFS'd.
50437 echo "$f";;
a848cd7e 50438 *) # Relative
ac1cb8d3
VS
50439 if test -f "$f"; then
50440 # Build tree
50441 echo "$f"
50442 elif test -f "$srcdir/$f"; then
50443 # Source tree
50444 echo "$srcdir/$f"
50445 else
50446 # /dev/null tree
50447 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50448echo "$as_me: error: cannot find input file: $f" >&2;}
50449 { (exit 1); exit 1; }; }
ac1cb8d3 50450 fi;;
a848cd7e
SC
50451 esac
50452 done` || { (exit 1); exit 1; }
50453 # Remove the trailing spaces.
ac1cb8d3 50454 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
50455
50456_ACEOF
50457
50458# Transform confdefs.h into two sed scripts, `conftest.defines' and
50459# `conftest.undefs', that substitutes the proper values into
50460# config.h.in to produce config.h. The first handles `#define'
50461# templates, and the second `#undef' templates.
50462# And first: Protect against being on the right side of a sed subst in
50463# config.status. Protect against being in an unquoted here document
50464# in config.status.
50465rm -f conftest.defines conftest.undefs
50466# Using a here document instead of a string reduces the quoting nightmare.
50467# Putting comments in sed scripts is not portable.
50468#
50469# `end' is used to avoid that the second main sed command (meant for
50470# 0-ary CPP macros) applies to n-ary macro definitions.
50471# See the Autoconf documentation for `clear'.
50472cat >confdef2sed.sed <<\_ACEOF
50473s/[\\&,]/\\&/g
50474s,[\\$`],\\&,g
50475t clear
50476: clear
ac1cb8d3 50477s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 50478t end
ac1cb8d3 50479s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
50480: end
50481_ACEOF
50482# If some macros were called several times there might be several times
50483# the same #defines, which is useless. Nevertheless, we may not want to
50484# sort them, since we want the *last* AC-DEFINE to be honored.
50485uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
50486sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
50487rm -f confdef2sed.sed
50488
50489# This sed command replaces #undef with comments. This is necessary, for
50490# example, in the case of _POSIX_SOURCE, which is predefined and required
50491# on some systems where configure will not decide to define it.
50492cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 50493s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
50494_ACEOF
50495
50496# Break up conftest.defines because some shells have a limit on the size
50497# of here documents, and old seds have small limits too (100 cmds).
50498echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 50499echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
50500echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
50501echo ' :' >>$CONFIG_STATUS
50502rm -f conftest.tail
50503while grep . conftest.defines >/dev/null
50504do
50505 # Write a limited-size here document to $tmp/defines.sed.
50506 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
50507 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 50508 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
50509 # Work around the forget-to-reset-the-flag bug.
50510 echo 't clr' >>$CONFIG_STATUS
50511 echo ': clr' >>$CONFIG_STATUS
50512 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
50513 echo 'CEOF
50514 sed -f $tmp/defines.sed $tmp/in >$tmp/out
50515 rm -f $tmp/in
50516 mv $tmp/out $tmp/in
50517' >>$CONFIG_STATUS
50518 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
50519 rm -f conftest.defines
50520 mv conftest.tail conftest.defines
50521done
50522rm -f conftest.defines
50523echo ' fi # grep' >>$CONFIG_STATUS
50524echo >>$CONFIG_STATUS
50525
50526# Break up conftest.undefs because some shells have a limit on the size
50527# of here documents, and old seds have small limits too (100 cmds).
50528echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
50529rm -f conftest.tail
50530while grep . conftest.undefs >/dev/null
50531do
50532 # Write a limited-size here document to $tmp/undefs.sed.
50533 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
50534 # Speed up: don't consider the non `#undef'
ac1cb8d3 50535 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
50536 # Work around the forget-to-reset-the-flag bug.
50537 echo 't clr' >>$CONFIG_STATUS
50538 echo ': clr' >>$CONFIG_STATUS
50539 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
50540 echo 'CEOF
50541 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
50542 rm -f $tmp/in
50543 mv $tmp/out $tmp/in
50544' >>$CONFIG_STATUS
50545 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
50546 rm -f conftest.undefs
50547 mv conftest.tail conftest.undefs
50548done
50549rm -f conftest.undefs
50550
50551cat >>$CONFIG_STATUS <<\_ACEOF
50552 # Let's still pretend it is `configure' which instantiates (i.e., don't
50553 # use $as_me), people would be surprised to read:
50554 # /* config.h. Generated by config.status. */
50555 if test x"$ac_file" = x-; then
50556 echo "/* Generated by configure. */" >$tmp/config.h
50557 else
50558 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
50559 fi
50560 cat $tmp/in >>$tmp/config.h
50561 rm -f $tmp/in
50562 if test x"$ac_file" != x-; then
50563 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
50564 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50565echo "$as_me: $ac_file is unchanged" >&6;}
50566 else
50567 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50568$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50569 X"$ac_file" : 'X\(//\)[^/]' \| \
50570 X"$ac_file" : 'X\(//\)$' \| \
50571 X"$ac_file" : 'X\(/\)' \| \
50572 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50573echo X"$ac_file" |
50574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50575 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50576 /^X\(\/\/\)$/{ s//\1/; q; }
50577 /^X\(\/\).*/{ s//\1/; q; }
50578 s/.*/./; q'`
50579 { if $as_mkdir_p; then
50580 mkdir -p "$ac_dir"
50581 else
50582 as_dir="$ac_dir"
50583 as_dirs=
50584 while test ! -d "$as_dir"; do
50585 as_dirs="$as_dir $as_dirs"
50586 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50587$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50588 X"$as_dir" : 'X\(//\)[^/]' \| \
50589 X"$as_dir" : 'X\(//\)$' \| \
50590 X"$as_dir" : 'X\(/\)' \| \
50591 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50592echo X"$as_dir" |
50593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50594 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50595 /^X\(\/\/\)$/{ s//\1/; q; }
50596 /^X\(\/\).*/{ s//\1/; q; }
50597 s/.*/./; q'`
50598 done
50599 test ! -n "$as_dirs" || mkdir $as_dirs
50600 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50601echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50602 { (exit 1); exit 1; }; }; }
50603
50604 rm -f $ac_file
50605 mv $tmp/config.h $ac_file
50606 fi
50607 else
50608 cat $tmp/config.h
50609 rm -f $tmp/config.h
50610 fi
50611done
50612_ACEOF
50613cat >>$CONFIG_STATUS <<\_ACEOF
50614
50615#
50616# CONFIG_COMMANDS section.
50617#
50618for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
50619 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
50620 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
50621 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
50622$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50623 X"$ac_dest" : 'X\(//\)[^/]' \| \
50624 X"$ac_dest" : 'X\(//\)$' \| \
50625 X"$ac_dest" : 'X\(/\)' \| \
50626 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50627echo X"$ac_dest" |
50628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50629 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50630 /^X\(\/\/\)$/{ s//\1/; q; }
50631 /^X\(\/\).*/{ s//\1/; q; }
50632 s/.*/./; q'`
ac1cb8d3
VS
50633 { if $as_mkdir_p; then
50634 mkdir -p "$ac_dir"
50635 else
50636 as_dir="$ac_dir"
50637 as_dirs=
50638 while test ! -d "$as_dir"; do
50639 as_dirs="$as_dir $as_dirs"
50640 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50641$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50642 X"$as_dir" : 'X\(//\)[^/]' \| \
50643 X"$as_dir" : 'X\(//\)$' \| \
50644 X"$as_dir" : 'X\(/\)' \| \
50645 . : '\(.\)' 2>/dev/null ||
50646echo X"$as_dir" |
50647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50649 /^X\(\/\/\)$/{ s//\1/; q; }
50650 /^X\(\/\).*/{ s//\1/; q; }
50651 s/.*/./; q'`
50652 done
50653 test ! -n "$as_dirs" || mkdir $as_dirs
50654 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50655echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50656 { (exit 1); exit 1; }; }; }
50657
a848cd7e
SC
50658 ac_builddir=.
50659
50660if test "$ac_dir" != .; then
50661 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50662 # A "../" for each directory in $ac_dir_suffix.
50663 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50664else
50665 ac_dir_suffix= ac_top_builddir=
50666fi
50667
50668case $srcdir in
50669 .) # No --srcdir option. We are building in place.
50670 ac_srcdir=.
50671 if test -z "$ac_top_builddir"; then
50672 ac_top_srcdir=.
50673 else
50674 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50675 fi ;;
50676 [\\/]* | ?:[\\/]* ) # Absolute path.
50677 ac_srcdir=$srcdir$ac_dir_suffix;
50678 ac_top_srcdir=$srcdir ;;
50679 *) # Relative path.
50680 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50681 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50682esac
ac1cb8d3
VS
50683
50684# Do not use `cd foo && pwd` to compute absolute paths, because
50685# the directories may not exist.
50686case `pwd` in
50687.) ac_abs_builddir="$ac_dir";;
50688*)
50689 case "$ac_dir" in
50690 .) ac_abs_builddir=`pwd`;;
50691 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50692 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50693 esac;;
50694esac
50695case $ac_abs_builddir in
50696.) ac_abs_top_builddir=${ac_top_builddir}.;;
50697*)
50698 case ${ac_top_builddir}. in
50699 .) ac_abs_top_builddir=$ac_abs_builddir;;
50700 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50701 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50702 esac;;
50703esac
50704case $ac_abs_builddir in
50705.) ac_abs_srcdir=$ac_srcdir;;
50706*)
50707 case $ac_srcdir in
50708 .) ac_abs_srcdir=$ac_abs_builddir;;
50709 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50710 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50711 esac;;
50712esac
50713case $ac_abs_builddir in
50714.) ac_abs_top_srcdir=$ac_top_srcdir;;
50715*)
50716 case $ac_top_srcdir in
50717 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50718 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50719 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50720 esac;;
50721esac
a848cd7e
SC
50722
50723
50724 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
50725echo "$as_me: executing $ac_dest commands" >&6;}
50726 case $ac_dest in
5c60e845
MW
50727 rcdefs.h )
50728 mkdir -p $outdir &&
50729 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
50730 ;;
ceec2216
RL
50731 wx-config ) rm -f wx-config
50732 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
50733 ;;
a848cd7e
SC
50734 esac
50735done
50736_ACEOF
50737
50738cat >>$CONFIG_STATUS <<\_ACEOF
50739
50740{ (exit 0); exit 0; }
50741_ACEOF
50742chmod +x $CONFIG_STATUS
50743ac_clean_files=$ac_clean_files_save
50744
50745
50746# configure is writing to config.log, and then calls config.status.
50747# config.status does its own redirection, appending to config.log.
50748# Unfortunately, on DOS this fails, as config.log is still kept open
50749# by configure, so config.status won't be able to write to it; its
50750# output is simply discarded. So we exec the FD to /dev/null,
50751# effectively closing config.log, so it can be properly (re)opened and
50752# appended to by config.status. When coming back to configure, we
50753# need to make the FD available again.
50754if test "$no_create" != yes; then
50755 ac_cs_success=:
50756 ac_config_status_args=
50757 test "$silent" = yes &&
50758 ac_config_status_args="$ac_config_status_args --quiet"
50759 exec 5>/dev/null
50760 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50761 exec 5>>config.log
50762 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50763 # would make configure fail if this is the last instruction.
50764 $ac_cs_success || { (exit 1); exit 1; }
50765fi
50766
50767#
50768# CONFIG_SUBDIRS section.
50769#
50770if test "$no_recursion" != yes; then
50771
50772 # Remove --cache-file and --srcdir arguments so they do not pile up.
50773 ac_sub_configure_args=
50774 ac_prev=
50775 for ac_arg in $ac_configure_args; do
50776 if test -n "$ac_prev"; then
50777 ac_prev=
50778 continue
50779 fi
50780 case $ac_arg in
50781 -cache-file | --cache-file | --cache-fil | --cache-fi \
50782 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
50783 ac_prev=cache_file ;;
50784 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
50785 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
50786 | --c=*)
50787 ;;
50788 --config-cache | -C)
50789 ;;
50790 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
50791 ac_prev=srcdir ;;
50792 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
50793 ;;
50794 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
50795 ac_prev=prefix ;;
50796 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
50797 ;;
50798 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
50799 esac
50800 done
50801
50802 # Always prepend --prefix to ensure using the same prefix
50803 # in subdir configurations.
50804 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
50805
50806 ac_popdir=`pwd`
50807 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
50808
50809 # Do not complain, so a configure script can configure whichever
50810 # parts of a large source tree are present.
50811 test -d $srcdir/$ac_dir || continue
50812
50813 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
50814echo "$as_me: configuring in $ac_dir" >&6;}
50815 { if $as_mkdir_p; then
50816 mkdir -p "$ac_dir"
50817 else
50818 as_dir="$ac_dir"
50819 as_dirs=
50820 while test ! -d "$as_dir"; do
50821 as_dirs="$as_dir $as_dirs"
50822 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50823$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50824 X"$as_dir" : 'X\(//\)[^/]' \| \
50825 X"$as_dir" : 'X\(//\)$' \| \
50826 X"$as_dir" : 'X\(/\)' \| \
50827 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50828echo X"$as_dir" |
50829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50830 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50831 /^X\(\/\/\)$/{ s//\1/; q; }
50832 /^X\(\/\).*/{ s//\1/; q; }
50833 s/.*/./; q'`
50834 done
50835 test ! -n "$as_dirs" || mkdir $as_dirs
50836 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50837echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50838 { (exit 1); exit 1; }; }; }
50839
50840 ac_builddir=.
50841
50842if test "$ac_dir" != .; then
50843 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50844 # A "../" for each directory in $ac_dir_suffix.
50845 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50846else
50847 ac_dir_suffix= ac_top_builddir=
50848fi
50849
50850case $srcdir in
50851 .) # No --srcdir option. We are building in place.
50852 ac_srcdir=.
50853 if test -z "$ac_top_builddir"; then
50854 ac_top_srcdir=.
50855 else
50856 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50857 fi ;;
50858 [\\/]* | ?:[\\/]* ) # Absolute path.
50859 ac_srcdir=$srcdir$ac_dir_suffix;
50860 ac_top_srcdir=$srcdir ;;
50861 *) # Relative path.
50862 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50863 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50864esac
ac1cb8d3
VS
50865
50866# Do not use `cd foo && pwd` to compute absolute paths, because
50867# the directories may not exist.
50868case `pwd` in
50869.) ac_abs_builddir="$ac_dir";;
50870*)
50871 case "$ac_dir" in
50872 .) ac_abs_builddir=`pwd`;;
50873 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50874 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50875 esac;;
50876esac
50877case $ac_abs_builddir in
50878.) ac_abs_top_builddir=${ac_top_builddir}.;;
50879*)
50880 case ${ac_top_builddir}. in
50881 .) ac_abs_top_builddir=$ac_abs_builddir;;
50882 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50883 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50884 esac;;
50885esac
50886case $ac_abs_builddir in
50887.) ac_abs_srcdir=$ac_srcdir;;
50888*)
50889 case $ac_srcdir in
50890 .) ac_abs_srcdir=$ac_abs_builddir;;
50891 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50892 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50893 esac;;
50894esac
50895case $ac_abs_builddir in
50896.) ac_abs_top_srcdir=$ac_top_srcdir;;
50897*)
50898 case $ac_top_srcdir in
50899 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50900 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50901 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50902 esac;;
50903esac
a848cd7e
SC
50904
50905
50906 cd $ac_dir
50907
50908 # Check for guested configure; otherwise get Cygnus style configure.
50909 if test -f $ac_srcdir/configure.gnu; then
50910 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50911 elif test -f $ac_srcdir/configure; then
50912 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50913 elif test -f $ac_srcdir/configure.in; then
50914 ac_sub_configure=$ac_configure
50915 else
50916 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50917echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50918 ac_sub_configure=
50919 fi
50920
50921 # The recursion is here.
50922 if test -n "$ac_sub_configure"; then
50923 # Make the cache file name correct relative to the subdirectory.
50924 case $cache_file in
50925 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50926 *) # Relative path.
ac1cb8d3 50927 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
50928 esac
50929
50930 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50931echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50932 # The eval makes quoting arguments work.
50933 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
50934 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50935 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
50936echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50937 { (exit 1); exit 1; }; }
50938 fi
50939
c9a66001 50940 cd "$ac_popdir"
a848cd7e
SC
50941 done
50942fi
50943
50944
50945echo
77ffb593 50946echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 50947echo ""
c2e9ada4 50948echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
77ffb593 50949echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 50950
77ffb593
JS
50951echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
50952echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
50953echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 50954
77ffb593 50955echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
50956echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
50957echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 50958
77ffb593 50959echo " Which libraries should wxWidgets use?"
a848cd7e
SC
50960echo " jpeg ${wxUSE_LIBJPEG-none}"
50961echo " png ${wxUSE_LIBPNG-none}"
50962echo " regex ${wxUSE_REGEX}"
50963echo " tiff ${wxUSE_LIBTIFF-none}"
50964if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50965echo " xpm ${wxUSE_LIBXPM-none}"
50966fi
50967echo " zlib ${wxUSE_ZLIB}"
50968echo " odbc ${wxUSE_ODBC}"
50969echo " expat ${wxUSE_EXPAT}"
50970echo " libmspack ${wxUSE_LIBMSPACK}"
50971echo " sdl ${wxUSE_LIBSDL}"
50972
50973echo ""
50974